Using the database link to connect to two databases

Hi guys,.
Here's my question. I need to give to a Select rights contractor on the tables located in two schemas located on two different servers. A dev server and a prod. Let's say we have a user schema: EMPLOYEE on the dev and user schema: DEPARTMENT on prod. The outside contractor needs certain rights on all the tables in the schema DEPARTMENT but just select on a few (4 to be exact) tables from a diagram of the EMPLOYEE.

My first train of thougth is: CREATE a named user: TEST (of course, only used for an example of random name) for contractor on prod. Give some rights to TEST user on all the tables in the schema of DEPARTMENT.
Create the link of database to the dev server so user TEST can access the EMPLOYEE schema.

How can I go to limit the user TEST link database to display only 4 tables to EMPLOYEE instead of all the tables?

Should I also do this scenario backwards? Creating user TEST on dev, giving rights TEST for 4 tables in the FRAMEWORK, and then creating the database for you link connect to schema Department on production database?

Any help will be appreciated. Thanks in advance.

Just set up a new DEV scheme to be used by the link of database connection string.

-create synonyms in this schema@DEV for these four tables.
-grant select access on these four tables to this schema@DEV.

Tags: Database

Similar Questions

  • Loding data using the database link.

    Dear all,

    I am new to Oracle GoldenGate...

    How to use the database connection in GG?

    below is the script...


    I have a source table in the client machine (. 28) and I have Norman to laod given in the target computer (. 149) per database connection.

    I run application GG in (. 28) and create the link of database called docqvoice_db alos.

    I used below extracted code also

    REPLICAT load6
    Username, PASSWORD sh
    ASSUMETARGETDEFS
    CARD sh.products, TARGET products@docqvoice_db;

    I have created the structure of the source in the target also.
    I got the error

    WARNING OGG - 01194 Oracle GoldenGate for Oracle, LOAD5.prm Capture: EXTRACT task LOAD6 added: Table PRODUCTS@DOCQVOICE_DB does not exist in the target database.


    Please advice...
    Thanks in advacne...
    Amina Hussain
    [email protected]
    No cell + 91-9886006549

    Amina,

    You have two choices. First choice, that's what you do, but your syntax is off. It should be:

    REPLICAT load6
    Sh@docqvoice_db username, PASSWORD sh
    ASSUMETARGETDEFS
    CARD sh.products, sh.products of the TARGET.

    Second choice is to create a view on the source using the link from the target database and map display just as in:

    REPLICAT load6
    Username, PASSWORD sh
    ASSUMETARGETDEFS
    CARD sh.products, sh.view_on_products of the TARGET.

    Good luck
    -joe

  • How s/n know when and what account perform a function using the database link?

    Dear,

    My application of the CIM team asked DBA to create new function and run it. Function must use the database link for remote database data. So I need to create a new database to their licensing link. Cause we guess we'll experience the performance issue after the user performs this function, or another question and errors may occur. So we want to know when and who use this feature that connects to a remote database through the new database connection in advance. And I also need to know when and which connect to the remote database using this new database link. We have no idea to get this information?  Can anyone recommend how do? Thank you very much.

    Best reqards, Otis.

    Check what business purpose, it will solve.  If the function is so safe, why everyone will use. Only admin people should access.

    All of these additional controls of this kind must be avoided as much as possible to improve the overall performance of the application.

    Still if you need, see the database audit mechanism, specifically designed for this type of activity.

    Kind regards

    Harman

  • SpeedGrade CC14 does not open when you use the "Direct Link to Adobe SpeedGrade... "of PremierePro CC14.

    SpeedGrade CC14 does not open when you use the "Direct Link to Adobe SpeedGrade... "of PremierePro CC14.

    I can open the SG of start menu/desktop computer and I can open the PP project in SG very well. The PP project contains 3 deadlines and I take one I want without any problem. Returning to the SG PP works fine as well. It seems only thing doesn't work does not automatically open the PP file and selecting the correct timeline in the Official Journal of the project.

    I had a glance at the "C:\Users\john Bishop images\AppData\Roaming\Adobe\SpeedGrade\8.0\logs\SpeedGrade.log ' but it is not updated when I try to use the link Direct from PP. command It updated when I invoke the start menu/desktop computer SG. Note that none of the other newspaper, the files are updated either (Plugin Loading.log, Database.txt Trace and Debug Database.txt). All these get updated when I run the desktop/start. It would appear that SG is not yet known.

    I uninstalled the SG and the PP and re-installed (all in the directories by default) and everything seemed to go OK but no change.

    I also added 2 political profile the NVIDIA Control Panel, just display a message when loading SpeedGrade.exe and another for a slightly different message when loading SpeedGradeCmd.exe. SG invoking the desktop/start causes the SpeedGrade.exe message to display. Using the 'Direct link' PP file option does not display anything, reinforcing my thought that SG is just never called from PP.

    SP1 Windows 7 Professional 64 bit

    12 GB OF RAM

    2-Intel Xeon E5640 (16 sons) processors

    NVIDIA GeForce GTX580 1536 MB memory graphics

    PS... I used the Adobe cleaning tool noted elsewhere and tried NVIDIA workarounds as well - all to nothing does not.

    Problem solved!

    My Antivirus software was in the way. Once I have updated, things work fine.

    Thanks for your help!

  • I want to use the database to 10g control

    Hello

    I installed oracle 10g on Windows client. He installed Oracle Enterprise Management Console.

    I created all of my databases by using create database on a UNIX server instructions.

    Now, I want to use the database to monitor these databases. How can I do this? I don't see a link or the icon of the database command console.

    Thank you

    OracleGuy777 wrote:
    Hello

    I installed oracle 10g on Windows client. He installed Oracle Enterprise Management Console.

    How did you do that?

    If you talk about the control of database (http), once to create the DB control repository (which should be on the UNIX server), and then use the URL and the Port number that you learned at the end of the installation to access it from the Windows machine. This should be in the format:

    http://yourunixservername:port / em

    for example

    http://dbmsdirect01:1158 / em

    or

    https://dbmsdirect01:1158 / em



    Oracle database FAQ

  • I use the trial version of CS5 version, two years ago. I was deleted from my computer after using the program. Now, once again I want to install a trial version of CS5 on my computer. I want to improve my program information. That copyright law is there a

    I use the trial version of CS5 version, two years ago. I was deleted from my computer after using the program. Now, once again I want to install a trial version of CS5 on my computer. I want to improve my program information. That copyright law are there downsides to the wonder of Adobe?

    Hello

    Please Download CS5 products

    But you can only use it as a trial for a limited time unless you do not provide a serial number to activate the product.

    Kind regards

    Sheena

  • If you use the direct link to go from first pro to speedgrade can I make sure that he stays in 2014 releases

    I have just completed a project in first pro cc 2014 I want using the direct link in speedgrade grade but want to keep within the release of 2014.  Can I

    set or it will automatically launch the speedgrade 2015 version since it is also installed on my system?

    Thank you in advance!

    That is great news!  Thank you so much for getting back to me quickly!

  • list of sql-operators, who use the database indexes.

    Give a list of the sql operators, who use the database indexes.

    I'm interested to know if ' group by '-operator uses indexes.

    why it has not been used here?

    because there is no general rule to that: as stated it depends on table and index layout if the optimizer decides to go to index or not.

  • Using the database links in a process of page plsql

    I try to use a database link in a process of pl/sql page.

    It works fine when I use the link name in the plsql like this:

    BEGIN 
    SELECT  
    CARD_ID 
    into   
     :P12_HDR_CARD_NUMBER  
    from     [email protected]; 
    

    But the name of the link will come an element of page (P12_DBLINK) filled as follows:

    select db_link d, db_link r from user_db_links;  
    

    I tried the following and it doesn't work:

    DECLARE 
    l_link VARCHAR2(30); 
    BEGIN 
    l_link :=  :P12_DBLINK; 
    SELECT  
    CARD_ID 
    into   
     :P12_HDR_CARD_NUMBER  
    from     fusion.EXM_CC_COMPANY_ACCOUNTS@l_link; 
    

    It gives me:

    • ORA-04052: error occurred when searching to the top of the remote object MERGER. EXM_CC_COMPANY_ACCOUNTS@L_LINK. WORLD ORA-00604: error occurred at recursive SQL level 3 ORA-02019: description of the connection to the remote database not found

    I thought that perhaps the name of the link was joined with. WORLD automatically but already has the name of the link. WORLD at the end I tried stripping first but the error is the same.

    Is there some synatx for what will work? Can I use dynamic sql statements?

    Any suggestions are most appreciated.

    Thank you

    John

    Hi John,.

    see the following example to use the execute immediate for your purpose

    SQL - Variable for the name of the database link - Stack Overflow

    Let me know if that answers your query in the active thread

  • ORA-03113 while using the database link

    From our database, we use a database link to query on a different database tables: they are the two 10.2.0.4
    It is not always occur, but often. You have an idea? Thank you

    Take a look at this note:
    ORA-03113 UNIX - what information collect [ID 17613.1]

  • Using the database link in the applications

    Hello
    I just configured and created a PUBLIC database link on my oracle 10g. Can I use it with success of sqlplus do some like select simple:

    "SQL > select * from table"@dblink ".

    The query returns the result as expected.

    Now, I would like to use this public link in my applications, but the problem is that the link seems to be only available in the SYS schema.

    Ho can I access to a schema?

    In other words, to do some select (and insert) of my applications APEX by using the link to the db. If I try to select said, all I get is

    ORA-02019: description of the connection to the remote database not found

    OK, thanks all for the help, I found the problem.
    It seems that I created the link of database public and not public.

    I gave both of them and re - create public database link and now it works.

    Thanks for the help.

  • creating user using the database link

    Hello

    I have 11g installed on one of the server
    I created the database BUGAU to bugau.us.oracle.com link
    link works fine

    "Select * from table@"Bugau "gives the expected result

    I ran the Sub statement to my server using the dblink.but do not know how to use the dblink to that effect. Please sat down

    CREATE USER ABC IDENTIFIED BY welcome TEMPORARY by DEFAULT TABLESPACE USERS_001 temp123 TABLESPACE;

    GRANT DEFAULT TO abc;

    ALTER USER abc PROFILE LEVEL_1;

    Thank you
    Archana

    Bravid wrote:

    You cannot create a user on a remote database using a database link.

    You can, but it is not a good design:

    SQL> exec dbms_utility.exec_ddl_statement@orcl('CREATE USER ABC IDENTIFIED BY ABC');
    
    PL/SQL procedure successfully completed.
    
    SQL> exec dbms_utility.exec_ddl_statement@orcl('GRANT CREATE SESSION TO ABC');
    
    PL/SQL procedure successfully completed.
    
    SQL> connect abc@orcl/ABC
    Connected.
    SQL> 
    

    Of course, the user in the database unite ORCL must have EXECUTE on DBMS_UTILITY privilege.

    SY.

  • error "invalid character" using the database link

    Hello!

    I use db 9.2 and trying to connect to a 10g database.
    I created the db link... when I use it (select * from table@dblink), an error occurred: ORA-00911 invalid character. It does not accept the '@'!

    I tried to use it on sql * plus, worked well...

    Any ideas?
    Thank you!

    Can you try to set America/America in preferences - Database - NLS?

    Hope that helps,
    K.

  • Reading large data using the database connectivity

    Hello

    I use the Labview database connectivity toolkit to connect to my database sqlitev3 (I'm using ODBC). I just have to connect to the database (using the block of open_connection) and read all the values inside (using the select_data block). The problem is that my database is huge (about 2 GB), and I get this error:

    . VI NI_Database_API.lvlib:Rec FETCH Recordset Data (R)-> NI_Database_API.lvlibB Tools Select Data.vi-> real_web.vi-> real_web.vi.ProxyCallerADO error: 0x8007000E Exception occurred in provider: not enough memory is available to complete this operation. in .vi NI_Database_API.lvlib:Rec Fetch Recordset Data (R)-> NI_Database_API.lvlibB Tools Select Data.vi-> real_web.vi-> real_web.vi.ProxyCaller

    What should I do? It seems that he reads the data in the memory and it doesn't have enough space for it. When I read the data I want to write to a file.

    Read it in pieces. Write each piece to the file, and then repeat with the next segment. Try to read and process all data in one shot is not very practical and you found out will not work.

  • keep the contents of the database by using the URL link

    Try to add a url link on a column of data to client code post a link to the information. Well that fall on a minor problem...

    For some reason any if I use a URL and do not fill in the link text. This interactive report column is empty.

    Text link:

    URL: javascript:popupURL('f?p=&APP_ID.:3:&SESSION.:3:&DEBUG.::P3_CUSTOMER_CODE:#DB_CUSTOMER_CODE#','','');

    http://i.imgur.com/ZRN26.PNG


    I also tried...

    Text link: #CUSTOMER_CODE #.

    It is now clickable and works... but it just fate as #CUSTOMER_CODE # in the interactive report.

    http://i.imgur.com/2jPF3.PNG

    Here what original looks like without the help and the URL link in my interactive report.
    http://i.imgur.com/HG0pW.PNG

    PandaOracle wrote:
    Try to add a url link on a column of data to client code post a link to the information. Well that fall on a minor problem...

    For some reason any if I use a URL and do not fill in the link text. This interactive report column is empty.

    Text link:

    URL: javascript:popupURL('f?p=&APP_ID.:3:&SESSION.:3:&DEBUG.::P3_CUSTOMER_CODE:#DB_CUSTOMER_CODE#','','');

    http://i.imgur.com/ZRN26.PNG

    Which is expected. This generates a link with no content element:

    
    

    I also tried...

    Text link: #CUSTOMER_CODE #.

    It is now clickable and works... but it just fate as #CUSTOMER_CODE # in the interactive report.

    The column of the report seems to be named #DB_CUSTOMER_CODE # (at least that's what appears in the the JS that 'works'...).

    Is there really a column named/alias CUSTOMER_CODE?

Maybe you are looking for

  • CA does not

    Hi all I have a Time Capsule airport as my main router (connected to a cable modem) and two extreme base stations (a "expand" and the other "bridge" mode) airport.  I have my network during the investigation and noticed recently that the TC is not br

  • Satellite M60 Hardware Upgrade question

    Hi all I have a PC laptop Toshiba M60 just after some information to be upgraded for online games (if its worth it) plug as follows: -. [Information on PC]Model name Satellite M60Part number PSM60A-02F00DSerial numberVersion of the OS Microsoft Windo

  • Rotation screen

    While watching TV Online I pushed my remote keyboard and the image is now on the side and I have no sound.  I can't remember how to fix it.  Can someone advise please?

  • What should I do if I gave remote access, and then realisedi it's a scam

    Received a phone call from someone who says they called windows - told me I had a problem with my pc. I gave them remote access - what do I do now? I realized that it was a scam and now I turned off my pc. What should I do now? This will also affect

  • There is no client saved application

    HelloA that someone has encountered the following problem?POS 6.0 running on vSphere 5.5.After working normally for a period of time at a given moment for unknown reason, I noticed the message "there is no application registered customer. Please go b