Jeff,

Thanks, this looks really close.  One refinement though, I need to pass the
target link name as a parameter.  The name is already being passed, I just
need the link syntax to interprit the variable before trying to use it.  Any
advice?

create or replace procedure setup_replication_group_load (groupname IN
VARCHAR2, nsite IN VARCHAR2) IS
...
    dbms_offline_og.begin_load@nsite(gname => groupname, new_site => nsite);
...
END;
/


John P Weatherman
Database Administrator
Replacements Ltd.



-----Original Message-----
Sent: Tuesday, June 25, 2002 12:14 PM
To: Multiple recipients of list ORACLE-L



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

....
proc_on_b@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: [EMAIL PROTECTED]
>
> 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: [EMAIL PROTECTED] (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: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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: John Weatherman
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).

Reply via email to