Skip to Main Content

SQL & PL/SQL

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!

Using a synonym to represent a db link or function across a db link

user574499May 9 2014 — edited May 9 2014


Hello - I have to call a function over a DB link.

The following works:

SELECT ABCABC.CalcRTU@qa4db.world('6180PM'ABC.F@qa4db.world(ABC.FU@qa4db.world(ABC.FUN@qa4db.world(.FUNC@qa.world(ABC.FUNC@qa4db.world(parameters) from dual;

However, we have 4 different environments to push this code into and each environment has a different name for the db link.  So I would really like to replace that with a synonym that I can just propogate through the various environments.  That way our package, which calls the function, does not need to change for each environment.  I've tried many different ways, but with no success.  Does anyone have any suggestions?  Thank you!

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 6 2014
Added on May 9 2014
6 comments
2,865 views