I hope you are talking about Oracle databases here when you say "Different" databases, Otherwise, you may need to implement Heterogenous services or Generic Connectivity in your setup.
Robbie
"The rule is, not to besiege walled cities if it can possibly be avoided" -- Art of War
This is the service name of the remote database where you want to connect to. This name must be listed in the tnsnames.ora in your server where the database db2 resides.
Robbie
"The rule is, not to besiege walled cities if it can possibly be avoided" -- Art of War
You might be using another user to access the remote database from the one that created the db link. In this case, you should create a PUBLIC database link, and not a PRIVATE one.
CREATE PUBLIC DATABASE LINK db1
CONNECT TO scott IDENTIFIED BY tiger
USING 'db1';
Robbie
"The rule is, not to besiege walled cities if it can possibly be avoided" -- Art of War
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.