Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: PL/SQL proc calls to a remote DB via DB link

RE: PL/SQL proc calls to a remote DB via DB link

From: Jamadagni, Rajendra <Rajendra.Jamadagni_at_espn.com>
Date: Thu, 20 Jun 2002 11:13:30 -0800
Message-ID: <F001.0048332E.20020620111330@fatcity.com>


If you create a synonym  

create myPkgR for user.pkgR_at_dblinkR <mailto:user.pkgR_at_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-----
Sent: Thursday, June 20, 2002 2:51 PM
To: Multiple recipients of list ORACLE-L

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_at_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


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Jamadagni, Rajendra
  INET: Rajendra.Jamadagni_at_espn.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Received on Thu Jun 20 2002 - 14:13:30 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US