Title: PL/SQL proc calls to a remote DB via DB link
If you create a synonym
 
create myPkgR for user.pkgR@dblinkR;
 
Then you can use
 
MyValR    MyPkgR.typeR;
 
This is much cleaner and less confusing ...
 
Raj
______________________________________________________

Rajendra Jamadagni              MIS, ESPN Inc.

Rajendra dot Jamadagni at ESPN dot com

Any opinion expressed here is personal and doesn't reflect that of ESPN Inc.

QOTD: Any clod can have facts, but having an opinion is an art!

-----Original Message-----
From: Martin, Alan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 20, 2002 2:51 PM
To: Multiple recipients of list ORACLE-L
Subject: PL/SQL proc calls to a remote DB via DB link

Listers:

You have 2 DBs, "L" local, "R" remote. From within a PL/SQL package or procedure on the *local* DB, is it legal to:
declare a local variable using a *remote* type:

MyVar_L   userR.pkgR.typeR@dblinkR;

or call a *remote* procedure:

userR.procR(...)@dblinkR;

If it is legal to reference remote pkg/procs, is my syntax correct?
If it is not, how do I accomplish this without having someone login to the remote DB?

Thanx,
Alan Martin
Principal Consultant
Defense Logistics Information Service
Battle Creek, MI

*********************************************************************This e-mail 
message is confidential, intended only for the named recipient(s) above and may 
contain information that is privileged, attorney work product or exempt from 
disclosure under applicable law. If you have received this message in error, or are 
not the named recipient(s), please immediately notify corporate MIS at (860) 766-2000 
and delete this e-mail message from your computer, Thank 
you.*********************************************************************2


Reply via email to