To get data from another user?

Hi,
I am in "scott" user. I need to use the data from another user for example user "sys". i know the database name(i.e.user@database), but i dont know the password of that user.
I think by using dblink it is possible. If it is correct then Is there any other way for this? If dblink is not correct way then please reply the correct way.
Thanks & Regards,
Shyam

You only need to use a database link if the data is in another database instances.
If you want to query data in another users schema on the same database you just need to have rights to do so. You either need to have
select any table system privilage granted to the user (not recommended for security reasons)
be granted select privalage on the object from the user
be granted a role that has select privelges on the object you want to query.
If you log in as system to the database you can grant select on the object to scott
sql> grant select on <schema>.<table> to scott;
now logged in as scott you can select from the table
sql> select * from <schema>.<table>
where <schema> is the other user and <table> is the name of the table that you want to select from.

Similar Messages

  • How can i get data from another database SQL Server use database link from

    I have a database link from Oracle connect to SQL Server database with user cdit connect default database NorthWind.How can I get data from another database(this database in this SQL Server use this database link)?

    hi,
    u should see following documentation:
    Oracle9i Heterogeneous Connectivity Administrator's Guide
    Release 1 (9.0.1)
    Part Number A88789_01
    in it u just go to chapter no. 4 (using the gateway),,u'll find ur answer there.
    regards
    umar

  • Best way To get data from another application using NDDE lbrary

    My vb.net application gets data from another application using NDDE Library. I got stocks prices (open,high,low,close,volume,change......(about 15 records for each stock)) (about 200 stocks) . I don't know if there is a problem in my code.
    This is my code:
    l : is the list of stocks.
    This Sub connects to server and requests the data :
    Public Shared Sub GetQuotes()
    Try
    client1 = New DdeClient(server, topic)
    client1.Connect()
    For i As Integer = 0 To l.Count - 1
    client1.StartAdvise("QO." & l(i).t & ".TAD$last", 1, True, 60000)
    client1.StartAdvise("QO." & l(i).t & ".TAD$open", 1, True, 60000)
    client1.StartAdvise("QO." & l(i).t & ".TAD$high", 1, True, 60000)
    client1.StartAdvise("QO." & l(i).t & ".TAD$low", 1, True, 60000)
    client1.StartAdvise("QO." & l(i).t & ".TAD$pclose", 1, True, 60000)
    client1.StartAdvise("QO." & l(i).t & ".TAD$volume", 1, True, 60000)
    client1.StartAdvise("QO." & l(i).t & ".TAD$date", 1, True, 60000)
    client1.StartAdvise("QO." & l(i).t & ".TAD$time", 1, True, 60000)
    Next
    Catch ex As Exception
    MsgBox(ex.Message)
    End Try
    End Sub
    and then I get the data from Client_advise sub (called each time a value changed )and fill the list. What I know is that client advise gets only one record for single stock each time is called..
    Example: for stock AAPL. 1st time enters client_Advise I get open price for AAPL, 2nd time I get high price for AAPL,3rd time I get low price..... and I update the value in the List (l)
    This the client_Advise Sub:
    Private Shared Sub client1_Advise(ByVal sender As Object, ByVal e As NDde.Client.DdeAdviseEventArgs) Handles client1.Advise
    For q As Integer = 0 To l.Count - 1
    If l(q).t = w(1) Then
    Dim item() As String = e.Item.Split("$")
    If l(q).Open = "#" Then
    l(q).Open = "0"
    End If
    If l(q).hi = "#" Then
    l(q).hi = "0"
    End If
    If l(q).lo = "#" Then
    l(q).lo = "0"
    End If
    If l(q).Close = "" Or l(q).Close = "#" Then
    l(q).Close = "0"
    End If
    If l(q).pclose = "#" Then
    l(q).pclose = "0"
    End If
    If item(1) = "open" Then
    l(q).Open = Format(Val(e.Text), "0.00")
    ElseIf item(1) = "last" Then
    l(q).Close = Format(Val(e.Text), "0.00")
    ElseIf item(1) = "high" Then
    l(q).hi = Format(Val(e.Text), "0.00")
    ElseIf item(1) = "volume" Then
    l(q).Volume = Val(e.Text)
    ElseIf item(1) = "low" Then
    l(q).lo = Format(Val(e.Text), "0.00")
    ElseIf item(1) = "pclose" Then
    l(q).pclose = Format(Val(e.Text), "0.00")
    If l(q).pclose <> "" And l(q).pclose <> "#" And l(q).Close <> "" And l(q).Close <> "#" Then
    l(q).c = Format(l(q).Close - l(q).pclose, "0.00")
    l(q).cp = Format(((l(q).Close - l(q).pclose) / l(q).pclose) * 100, "0.00")
    End If
    l(q).flag1 = 2
    ElseIf item(1) = "date" Then
    l(q).Date1 = e.Text
    ElseIf item(1) = "time" Then
    l(q).Time = e.Text
    End If
    Exit For
    End If
    Next
    End Sub
    Am I doing something wrong which inreases CPU usage to 80 or 90 % ?
    Thanks in advance.

    Hi MikeHammadi,
    According to your description, you'd like to get data from another app using NDDE library.
    When using the NDDE library, the CPU usage is high. As the NDDE library is third-party library, it is not supported here. I suggest you checking if the problem is caused by the NDDE library.
    If you'd like to get data from another app. I suggest you could save the data in the dataBase, and then read it in another application if necessary.
    If you have any other concern regarding this issue, please feel free to let me know.
    Best regards,
    Youjun Tang
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • SSRS Expression to compare two values and get data from another dataset

    Hi,
    I have a requirement where in i need to compare a value of a dataset (not the one which table is poiting to)
    with the value of a text box, and return the count if it matches else 0, the expression is as below. Here 
    industryName and recCount are from the dataset ds_MedimOrLowImpactEntities.  whats wrong in this expression
    =Sum(IIF(Fields!industryName.Value = reportItems!hpapra_name.Value, Fields!RecCount.Value, 0), "ds_MediumOrLowImpactEntities")
    This is the error that i am getting:
    Any help on this is appreciated
    Kruthi Hegde

    Hi Kruthi,
    After testing the issue in my local environment, I can reproduce it. Just the error message said, “Aggregate function can be used only on report items contained in page headers and footers”. So the sum function that contains report items should be stayed
    at page headers or footers. Besides, you said the hpapra_name textbox contain a field from another dataset, not the ds_MedimOrLowImpactEntities dataset. While in Reporting Services, Report item expressions can only refer to other report items within the same
    grouping scope or a containing grouping scope. So consider the two issues, we should use some other expression to instead the “reportItems!hpapra_name.Value” expression.
    Take a look at the "Looking up values from another dataset" topic here:
    http://msdn.microsoft.com/en-us/library/ms159673.aspx#LookupFunctions
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • How to get data from the user for an Insert Trigger ?

    Hi all and thanks in advance, I need to get some values from the user for a child table when a row inserted into the parent table, is that possible to use ampersand inside an "Insert Trigger" to let the user for inserting some values ?
    Edited by: user9942078 on 17-Dec-2008 16:35

    In a different words,
    When a virus attacked your body your blood cells instantly goes into operation. Just like that -> your trigger activated as a result of your DB operation on objects. So, here also you have no option to manually intervene anything.
    Hmm... Looks like some science fiction movies ultimately pays some price... ;)
    So, trigger basically fires implicitly as a result of any database operation on objects or even on user.
    So, that has to be automatic. And, when you are using & it will ask for some input value - which cannot be done in case of triggers.
    For details please refer the oracle docs.
    Regards.
    Satyaki De.

  • Using a caculated field to get data from another table.

    I have a Products Table that I need to add a  field to. This field gains data from a Supplier table by using the supplier code to find the correct supplier type. All Products have a Supplier Code. So for example in SQL this would be a simple where statement looking something like this.
    SELET Supplier.Type
    From Supplier , Product
    Where Supplier.Code = Product.SupplierCode
    And ProductID = someID
    How would you write this as a caculated field in MDM?

    Hi Chauncey
    My previous post seems to have disappeared into the ether, so here it is again.
    If you only want to do this linking for display purposes, then consider the following possibility:
    The main Products table has a field which looks up to the flat table Suppliers. The flat table Suppliers has a field that either A) looks up to a flat SupplierTypes table or B) is a normal field in which the supplier type is stored. Inside the flat Suppliers table, just set both the SupplierCode and SupplierType fields to be display fields. MDM will automatically display both pieces of data inside the single field in the Products table.
    If you need the SupplierType in a separate field then you cannot do this with an expression (calculation or assignment.) You'll need to write a piece of code using one of the MDM APIs in order to do this lookup.
    HTH,
    Mark

  • Getting pics from another user

    I would like to access pics in another user's iPhoto library.  I can I transfer them over?

    Is the other user's iPhoto library on a different computer on the same network? Then the other user should enable "Sharing" in the Preferences and if you enable "Look for Shared Photos" you can download them.
    Sharing a library on the same computer is more difficult:
    See this article: iPhoto: Sharing libraries among multiple users
    If you both are using the latest iPhoto version with MacOS X 10.8.2. or later you can exchange photos using a shared photo stream: http://support.apple.com/kb/TS4379
    Regards
    Léonie

  • How get data from another web page?

    I have my own interface..after i key In a keyword and click search, method post will post the data to server and server will response.write a HTML page that display the result based on the keyword i Key In. The problem is i want the result display on my own page. So how can i read the search result from the HTML page and display on my own design page? I use JSP to built my page. thanks

    I dont know the following solution would solve ur problem, atleast u will get basic idea.
    1st method
    Create an inline frame (IE-IFrame etc), On pressing submit button, Post the data to required page (it might be some page on another server)and specify post target is ur inline frame.
    if u want filter the result data and want to display in ur own way then send ur POST request to ur own JSP and use Http classes to read resend those data to other page (another server) and capture the results implement ur own logic to get desired data and resend to the requested browser
    I hope it would solve ur problem
    Cheers
    Rajendra Bandi

  • How to get data from another view on the RFx to populate bidders web dynpro

    i am trying to populate bidders in the table on the bidder tab when a user click a button based on the line item data.  How do i have access to get the line item since it is in a separate component controller and view for the RFx? thanks you.

    Hi,
    You mean Data transfer between two components..
    To pass the value from one component to other component, you can use used component scenario.
    For example let use assume we have two comp ..
    Comp A,
    Comp B.
    now we need to pass the value from Comp A to Comp B.
    Then declare the Comp A as used component in Comp B.
    Now then you can create a node in the comp A component controller and check the interface check box there then the
    node and the attribute will be present in the interface controller also .
    and this interface controller context you can access in the component and map it to view there and display it.
    Webdynpro Application Integration..
    http://wiki.sdn.sap.com/wiki/display/WDABAP/WebdynproApplicationsIntegration
    cheers,
    Kris.

  • Get date from another TimeZone

    Hi,
    I have to get the time from a timezone that is not the current timezone. So, I do the following:
    TimeZone timeZone = TimeZone.getTimeZone("America/La_Paz");
    Calendar calendar = Calendar.getInstance(timeZone);
    long longTime = calendar.getTime().getTime();
    Time time = new Time(longTime);
    If I print the time using:
    wdComponentAPI.getMessageManager().reportSuccess(time.toString());
    the output is right, but when I set this same Time instance to a context element (with Time type) that is linked to an InputField, that InputField shows me the time of the current TimeZone.
    Any Ideas?
    Thanks in advance
    Michel Cabral
    Edited by: Michel Amaral on Feb 7, 2008 8:58 PM

    Michel-
    Introduce this method in your -others- section of your controller:
      private Time getDateInTimeZone(Date currentDate, String timeZoneId)
      TimeZone timeZone = TimeZone.getTimeZone(timeZoneId);
      Calendar aCal = new GregorianCalendar(TimeZone.getTimeZone(timeZoneId));
      aCal.setTimeInMillis(currentDate.getTime());
      Calendar cal = Calendar.getInstance();
      cal.set(Calendar.YEAR, aCal.get(Calendar.YEAR));
      cal.set(Calendar.MONTH, aCal.get(Calendar.MONTH));
      cal.set(Calendar.DAY_OF_MONTH, aCal.get(Calendar.DAY_OF_MONTH));
      cal.set(Calendar.HOUR_OF_DAY, aCal.get(Calendar.HOUR_OF_DAY));
      cal.set(Calendar.MINUTE, aCal.get(Calendar.MINUTE));
      cal.set(Calendar.SECOND, aCal.get(Calendar.SECOND));
      cal.set(Calendar.MILLISECOND, aCal.get(Calendar.MILLISECOND));
      return new Time(cal.getTimeInMillis());
    Usage:
    Time t = getDateInTimeZone(new Date(), "PST");
    Create an attribute of type time in your context and set it to this value.
    Cheers-
    Atul

  • FIELD SYMBOL  : - Get Data from Another program

    Hi Gurus,
    I have a Z program - ZPROG1.
    I need to get the value of a variable V_VAR1 from program RV63A712 which is a routine.
    How can i get the value of V_VAR1 from RV63A712 into my program ZPROG1. using field symbol .
    The main program of RV63A712 is SAPLV61A.
    For example .
    The program RV63A712 is as below.
    *&      Form  FRM_KOND_BASIS_712
          Copper Price Participation
          John May  09/01/2009
    FORM frm_kond_basis_712.
    V_VAR1 = B_KBETR + G_KWERT .
    ENDFORM.
    Avi

    hello ,
    try this sample code...
    data: c_progvar(30) type c value '(RV63A712)V_VAL1'.
    data: v_val1 type wrbtr.
    field-sybmol: <fs> type any.
    assign (c_progvar) to <fs>.
    if <fs> is assigned.
      v_val1 =  <fs>.
    endif.
    regards
    Prabhu

  • How do I get songs from another user on my PC for iTunes Match?

    We have different "Users" on our PC. I can only get iTunes Match to upload the songs from my files. I have tried logging into our computer as my husband using his User i.d., but Match just says all of my songs are already uploaded. Anyway to get the songs from my hubby's files??

    No. iTunes Match does not support being active in multiple User Accounts on the same computer.

  • Help for transfering data from one user' all tables to another

    Hello guys,
    I have trim the extra sizes of columns in almost all tables of my database. Before doing this, I saved the data of tables by creating another user "User1" with the same objects and importing dmp file in it. After this I cleared my original objects and reduced the extra sizes of columns alomost in all tables.
    Now I want to transfer data from backup user "User1" into my original user's "User" tables.
    Can any one guid me with the way of doing so, so that I could do it just through 3 or 4 lines of code instead of individualy table wise transfering the data...??
    regards
    Kashif

    SQL> select 'insert into '||table_name||' as select * from user1.'||table_name ||' ;' from user_tables where table_name in ('EMP', 'DEPT') ;
    'INSERTINTO'||TABLE_NAME||'ASSELECT*FROMUSER1.'||TABLE_NAME||';'
    insert into DEPT as select * from user1.DEPT ;
    insert into EMP as select * from user1.EMP ;
    2 rows selected.
    SQL>You could spool the output of the query above to a .SQL script file and then just run it within the same script using @@script_name.SQL.

  • HT3787 If you accidentally eject that local file (plain white disk image) from another user, can you get it back?

    If you accidentally eject local file from mobile me from another user, how can you get it back? Or is it stored somewhere else????
    My website was saved on there. And I need it!!
    I didn't realize that was the idisk since mobileme has been gone for so long.

    That's what I was hoping.  I use Time Machine to back up the entire computer.  But I'm assuming it was a disk image, and that wouldn't be saved on the backup?  Or where could I find it?

  • Import data from another browser - Only few IE9 favorites get transfered to bookmarks. HTML solution - HTML file all favorites correct, but same result

    Win7 / IE9: First time use. Example: One favorites folder has 4 HTML entries - only 2 get transferred. Some have none transfered - folder empty. Others have random correct + some missing.

    Monday Nght
    I can see complete IE9 Favorites HTML list in HTML file on Desktop with Firefox -> New Tab -> Open File.-> Open
    In desktop HTML file, there are 37 IE9 folders with no more than nesting 3 deep in any one top folder. These are all correct wrt IE9 favorites.
    All top folders + deepest nests are copied to FF ok. Contents random. Copied contents work ok
    7 HTML web sites not allocated to IE9 top folders are also copied <- these 7 copy to FF and work ok
    Example: First folder in IE9 list has no nesting., IE9 has 4 entries - Firefox has only 2. when either method of copying is used.
    BTW - please advise how I can delete whole Bookmark list in Firefox in one keystroke to be able to retry with a clean Bookmark list
    I am going to uninstall Firefox and start again with a clean copy and use HTML method only to try to transfer IE( files. I will report result.
    BTW, I am in UK on UK time - hence delays in replying - need to sleep sometimes!!!!!
    Tuesday Evening
    Hi
    I uninstalled Firefox. Re installed and loaded IE9 favorites from HTML file.
    All seem copied correctly
    First time I started by using the "import data from another browser". Partial copied.
    Then I tried "Import from HTML file" without deleting whatever favorites had been copied. Still partial copied.
    All seems well.

Maybe you are looking for

  • Windows 7 64-bit Adobe Reader 9.3 and IE8 - Opening PDF in tab and then closing said tab causes IE8

    I've been running Win7 64-bit for quite some time now and only up until a few weeksa go started to have problems with Adobe Reader continuing to ask me how I wanted to read a document and to click here to save the settings and not ask me again.  The

  • Investment order settlement?

    hi    can anyone tell me why we settle investment order on AUC and not on cost centre.                                                                                 regards                                                                            

  • Trouble with command delete using Finder

    How do I get my Mac to stop going back to the original folder when deleting an item inside the folder? Instead of moving to the next item when I delete something, it goes back to the original folder instead.

  • My iMac (2008) keeps restarting after a system upgrade to OS X ML

    Maybe somebody can have a look at the report and tell me whats going on: Interval Since Last Panic Report:  919607 sec Panics Since Last Report:          6 Anonymous UUID:                    46F4657E-3F69-B810-F297-25FD83D390BE Sun Oct 27 20:08:07 20

  • EVERY TIME FIREFOX IS CLOSED AN ERROR COMES UP CODE 800A138F

    windows script host c:\program files(x86)mozilla firefox\greprefs\all.js line 50.char1 error objected expected code 800A138F Source microsoft JScript runtime error