How to execute an Oracle stored procedure via a da

2020-02-24 10:47发布

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

2条回答
Deceive 欺骗
2楼-- · 2020-02-24 11:25

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#

查看更多
一夜七次
3楼-- · 2020-02-24 11:45

The syntax is

EXEC mySchema.myPackage.myProcedure@myRemoteDB( 'someParameter' );
查看更多
登录 后发表回答