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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-08 07:03:13  来源:igfitidea点击:

How to execute an Oracle stored procedure via a database link

databaseoraclestored-proceduresdatabase-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# 中对我来说有效