Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to access Public and Private DB link of same name

sourav_biswasDec 24 2014 — edited Dec 25 2014

SQL> select * from dba_db_links;


OWNER                          DB_LINK                 USERNAME                       HOST            CREATED

------------------------------ ----------------------- ------------------------------ --------------- ---------

PUBLIC                         ORCL.WORLD              SCOTT                          ORCL            09-APR-14

JAMES                          ORCL.WORLD              SNWADMIN                       ORCL            16-JAN-14



My question is every user in this database is able to access ORCL.WORLD db_link, as its owned by Public. However, when user James tries to access this DB_link, it connects him to his own private db_link, because both Public and Private db_link have same name.


What is the workaround for james , in case he wants to connect to public db_link ORCL.WORLD, as the public db_link is conencting to a different schema on ORCL database?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 22 2015
Added on Dec 24 2014
7 comments
4,170 views