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!

Database Link Not Working

pthoopthJul 1 2015 — edited Jul 1 2015

In DATABASE2 I have a database link named DBLINK which connects to DATABASE1 as a fixed user of USERDB2

In DATABASE2 I can do:

SELECT * FROM USERDB1.TABLE1@DBLINK

and everything works fine

Now I want to select from TABLE2 in DATABASE1 so basically I want to do

SELECT * FROM USERDB1.TABLE2@DBLINK

TABLE2 does exist in DATABASE1. 

I have connected to DATABASE1 and granted SELECT ON TABLE2 TO USERDB2

I have verified that USERDB2 can select TABLE2 while connected to DATABASE1

However when I run the

SELECT * FROM USERDB1.TABLE2@DBLINK

I get the following error:

ORA-00942: table or view does not exist

ORA-02063: preceding line from DBLINK

00942. 00000 -  "table or view does not exist"

Any help will be greatly appreciated.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 29 2015
Added on Jul 1 2015
3 comments
192 views