Ever wondered how you can call a packaged procedure (or function) which resides at the far end of a database link? Wonder no more!
|
|
Calling a function is just as easy:
|
|
Unfortunately, you don’t appear to be able to do this sort of thing via a synonym:
|
|
You get ORA-00904: “SQLTEST”.“TEST”: invalid identifier instead of a result. :-(
Update: 20 January 2011: If you prefix the remote object name with the remote object owner, regardless of the fact that the database link is connecting to that schema anyway, then you can subsequently call the function, procedure or packaged code using the synonym. Result - thanks to Oracle Support.
|
|
It “just” works. :-)
Cheers,
Norm.