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: Remote execution of pl/sql

Re: Remote execution of pl/sql

From: Jeff Herrick <jherrick_at_host.ott.igs.net>
Date: Tue, 25 Jun 2002 08:13:43 -0800
Message-ID: <F001.00486DEF.20020625081343@fatcity.com>

Create a dblink to instance B from A and then within your proc on A do

....
proc_on_b_at_B_INSTANCE(parameter1....parameter_n);

The schema that you use for the link to B must have execute access to the procedure on B

HTH Jeff Herrick
Jeff HErrick & Associates

On Tue, 25 Jun 2002, John Weatherman wrote:

> I am in the process of writing a pl/sql block to run on instance A. At one
> point, I need to run a procedure that resides in instance B against instance
> B's dataset. Is there an easy way to do this?
>
> The basic problem is:
>
> ### Set up Instance Source for replication ###
> ...
> ...
> dbms_offline_og.begin_instantiation(gname => '&gname', new_site =>
> '&new_site');
>
> ### Execute begin load against target ###
> dbms_offline_og.begin_load(gname => '&gname', new_site => '&new_site');
>
> ### Return to Instance A to return code if everything is ready ###
>
> Is it possible to issue a connect within a PL/Sql block?
>
> TIA,
>
> John P Weatherman
> Database Administrator
> Replacements Ltd.
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: John Weatherman
> INET: john.weatherman_at_replacements.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).
>

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Jeff Herrick
  INET: jherrick_at_host.ott.igs.net

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 Tue Jun 25 2002 - 11:13:43 CDT

Original text of this message

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