How to execute an Oracle stored procedure via a database link

时光毁灭记忆、已成空白 提交于 2019-11-29 04:58:19

问题


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

回答1:


The syntax is

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



回答2:


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#



来源:https://stackoverflow.com/questions/240788/how-to-execute-an-oracle-stored-procedure-via-a-database-link

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!