database 如何通过数据库链接执行 Oracle 存储过程
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/240788/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to execute an Oracle stored procedure via a database link
提问by dacracot
Can I call a stored procedure in Oracle via a database link?
我可以通过数据库链接调用 Oracle 中的存储过程吗?
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
回答by Justin Cave
The syntax is
语法是
EXEC mySchema.myPackage.myProcedure@myRemoteDB( 'someParameter' );
回答by tptp
check http://www.tech-archive.net/Archive/VB/microsoft.public.vb.database.ado/2005-08/msg00056.html
检查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#
在 vb.net、c# 中对我来说有效