[英]When Executing proc: Cannot fetch a row from OLE DB provider “OraOLEDB.Oracle” for linked server
I have an Oracle linked server in my SQL Server database. 我的SQL Server数据库中有一个Oracle链接服务器。
I log into SQL Server using local and then Windows authentication. 我先使用本地身份验证然后再通过Windows身份验证登录到SQL Server。
As the Administrator (which is the account that set up the linked server) I can query directly or embed in a stored proc and then execute the proc without a problem. 作为管理员(是设置链接服务器的帐户),我可以直接查询或嵌入存储的proc中,然后执行该proc不会出现问题。
As my named user, which has full administrator rights and also has had all SQL Server Groups on the Windows security settings added, I can query my linked server just fine using either synonyms or the OpenQuery syntax. 作为我的命名用户,它具有完全的管理员权限,并且还添加了Windows安全设置上的所有SQL Server组,因此我可以使用同义词或OpenQuery语法很好地查询链接的服务器。 But if I try to execute one of the stored procedures, it will give me the error messages 但是,如果我尝试执行其中一个存储过程,它将给我错误消息
Message 1:
The OLE DB provider "OraOLEDB.Oracle" for linked server "<server name>" reported an error. The provider did not give any information about the error.
Message 2:
Cannot execute the query "<query string>" against OLE DB provider "OraOLEDB.Oracle" for linked server "<server name>".
I have searched online and typically people see this emssage when trying to run an ad hoc query. 我在网上搜索过,通常在尝试运行临时查询时人们会看到此提示。 My ad hoc query runs just fine. 我的临时查询运行正常。 Still, I applied the solution selected, which was to check the "Allow inprocess" option on the OLEDB Provider. 仍然,我应用了选择的解决方案,该解决方案是检查OLEDB Provider上的“允许进程内”选项。 Doing that did not help. 这样做没有帮助。
any ideas? 有任何想法吗?
Please enable "Allow in Process" option for the provider by opening up Linked Server > Providers and checking on "Allow in Process". 请通过打开链接服务器>提供程序并选中“允许进程”来为提供程序启用“允许进程”选项。 For more detail information, please refer to the following link: 有关更多详细信息,请参考以下链接:
Demystifying SQL-Oracle Distributed Query Issues http://blogs.msdn.com/b/bindeshv/archive/2008/05/21/demystifying-sql-oracle-distributed-query-issues.aspx 解密SQL-Oracle分布式查询问题http://blogs.msdn.com/b/bindeshv/archive/2008/05/21/demystifying-sql-oracle-distributed-query-issues.aspx
source: http://social.msdn.microsoft.com/Forums/sqlserver/en-US/902f5edf-e357-4ee7-82e8-ea5760882985/cannot-fetch-a-row-from-ole-db-provider-oraoledboracle-for-linked-server-linkedservername?forum=sqldataaccess 来源: http : //social.msdn.microsoft.com/Forums/sqlserver/en-US/902f5edf-e357-4ee7-82e8-ea5760882985/cannot-fetch-a-row-from-ole-db-provider-oraoledboracle-用于连接服务器,linkedservername?论坛= sqldataaccess
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.