简体   繁体   中英

How to execute an Oracle stored procedure via a database link

Can I call a stored procedure in Oracle via a database link?

The database link is functional so that syntax such as...

SELECT * FROM myTable@myRemoteDB

is functioning. But is there a syntax for...

EXECUTE mySchema.myPackage.myProcedure('someParameter')@myRemoteDB

语法是

EXEC mySchema.myPackage.myProcedure@myRemoteDB( 'someParameter' );

check http://www.tech-archive.net/Archive/VB/microsoft.public.vb.database.ado/2005-08/msg00056.html

one needs to use something like

cmd.CommandText = "BEGIN foo@v; END;" 

worked for me in vb.net, c#

for me, this worked

exec utl_mail.send@myotherdb(
  sender => 'myfromemail@giggle.com',recipients => 'mytoemail@giggle.com, 
  cc => null, subject => 'my subject', message => 'my message'
); 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM