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: Running a package from another instance

RE: Running a package from another instance

From: Jamadagni, Rajendra <Rajendra.Jamadagni_at_espn.com>
Date: Thu, 31 Jan 2002 08:54:03 -0800
Message-ID: <F001.004022EF.20020131084244@fatcity.com>

  1. Create a dblink to SID1 from SID2 connecting as userA_at_SID1.
  2. On SID2 create a synonym MYPKG for the user (who wishes to execute the package) for mail_pkg_at_dblink created above.
  3. On SID1 grant execute on package to userA (identified in step1).
  4. from SID2, execute mypkg with appropriate parameters.

HTH
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, January 31, 2002 10:56 AM To: Multiple recipients of list ORACLE-L

Hi DBAs,

I have a package(mail_pkg) in instance SID1. Can I run the package from instance SID2? If so how do I proceed?
Is it just a matter of creating a db_link. ex. exec mail_pkg.send_mail (....)@dblink_name.

Thanks
Rick

*********************************************************************2

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
Received on Thu Jan 31 2002 - 10:54:03 CST

Original text of this message

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