简体   繁体   English

执行proc时:无法从OLE DB提供程序“ OraOLEDB.Oracle”获取链接服务器的行

[英]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.

相关问题 如何修复错误“灾难性故障。无法从链接服务器的 OLE DB 提供程序“OraOLEDB.Oracle”获取行” - How to fix error "Catastrophic failure. Cannot fetch a row from OLE DB provider "OraOLEDB.Oracle" for linked server" T-SQL:无法从链接服务器的OLE DB提供程序“ OraOLEDB.Oracle”中获取行的数据 - T-SQL: cannot get the data of the row from the OLE DB provider “OraOLEDB.Oracle” for linked server 创建从 SQL Server 到 Oracle 的链接服务器时,无法创建 OLE DB 提供程序“OraOLEDB.Oracle”错误的实例 - Cannot create an instance of OLE DB Provider 'OraOLEDB.Oracle' error when creating linked servers from SQL Server to Oracle 链接服务器的OLE DB提供程序“ OraOLEDB.Oracle”返回消息“ ROW-00004:无效的列数据类型” - OLE DB provider “OraOLEDB.Oracle” for linked server returned message “ROW-00004: Invalid column datatype” 无法初始化链接服务器的 OLE DB 提供程序“OraOLEDB.Oracle”的数据源对象 - Cannot initialize the data source object of OLE DB provider "OraOLEDB.Oracle" for linked server 链接服务器[ORA]的OLE DB提供程序[OraOLEDB.Oracle]返回了消息ORA-00936:缺少表达式 - OLE DB provider [OraOLEDB.Oracle] for linked server [ORA] returned message ORA-00936: missing expression 链接服务器的OLE DB提供程序“ OraOLEDB.Oracle”返回消息“ ORA-06576:无效的函数或过程名称” - OLE DB provider “OraOLEDB.Oracle” for linked server returned message “ORA-06576: not a valid function or procedure name” 在链接服务器提供程序中找不到OraOLEDB.Oracle提供程序 - Unable to find OraOLEDB.Oracle provider in the Linked Server Providers 错误:无法从OLE DB提供程序“ADsDSOObject”获取链接服务器“ADSI”的行 - Error : Cannot fetch a row from OLE DB provider “ADsDSOObject” for linked server “ADSI” 如何通过批量插入导入SQL Server? 无法从OLE DB提供程序“ BULK”获取链接服务器“(空)”的行 - How to import with bulk insert into SQL Server? Cannot fetch a row from OLE DB provider “BULK” for linked server “(null)”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM