简体   繁体   English

创建从 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

Aware that this topic has been raised many times here (I have gone through the posts), but none of the suggestion on the posts has resolved my issue.知道这个话题已经在这里提出了很多次(我已经浏览了帖子),但是帖子上的建议都没有解决我的问题。

When I attempt to create a linked server to the oracle database from SQL Server Management Studio, I get the error:当我尝试从 SQL Server Management Studio 创建到 oracle 数据库的链接服务器时,我收到错误消息:

Cannot create an instance of OLE DB Provider 'OraOLEDB.Oracle' for linker server ''.无法为链接器服务器“”创建 OLE DB 提供程序“OraOLEDB.Oracle”的实例。 (Microsoft SQL Server, Error: 7302) (Microsoft SQL Server,错误:7302)

My understanding of this error is that the Oracle provider is not installed correctly or not at all.我对这个错误的理解是 Oracle 提供程序没有正确安装或根本没有安装。

To check this I ran 'ODBC Data Source Administrator (64-bit) and attempted to add the provider (which was not available).为了检查这一点,我运行了“ODBC 数据源管理器”(64 位)并尝试添加提供程序(该提供程序不可用)。

To resolve this I fully installed Oracle 10g Client as an admin and restarted the server.为了解决这个问题,我以管理员身份完全安装了 Oracle 10g 客户端并重新启动了服务器。 I added the new oracle bin folder to the environment %PATH% as well as %TNS_ADMIN% to point to the tnsnames.ora file.我将新的 oracle bin 文件夹添加到环境 %PATH% 以及 %TNS_ADMIN% 以指向 tnsnames.ora 文件。

I have run 'tnsping' using the value specified in the tnsname.ora file and it is able to connect.我已经使用 tnsname.ora 文件中指定的值运行了“tnsping”,并且它能够连接。

I have exhausted my ideas to get the oracle provider recognised by the ODBC 64 bit connector.我已经用尽了我的想法来让 ODBC 64 位连接器识别 Oracle 提供程序。

Does anyone have any idea that could resolve this issue?有没有人有任何想法可以解决这个问题?

Thank you for any help.感谢您的任何帮助。

The solution was to follow the steps suggested by Dmitry.解决方案是遵循 Dmitry 建议的步骤。 However, make sure you carry out the following step:但是,请确保执行以下步骤:

C:\Users\dbrowne\Downloads\ODAC121010Xcopy_x64>.\install.bat oledb c:\oracle\odac64 odac64 true C:\Users\dbrowne\Downloads\ODAC121010Xcopy_x64>.\install.bat oledb c:\oracle\odac64 odac64 true

as an admin!作为管理员!

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 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 执行proc时:无法从OLE DB提供程序“ OraOLEDB.Oracle”获取链接服务器的行 - When Executing proc: Cannot fetch a row from OLE DB provider “OraOLEDB.Oracle” for linked server 如何修复错误“灾难性故障。无法从链接服务器的 OLE DB 提供程序“OraOLEDB.Oracle”获取行” - How to fix error "Catastrophic failure. Cannot fetch a row from OLE DB provider "OraOLEDB.Oracle" for linked server" 无法初始化链接服务器的 OLE DB 提供程序“OraOLEDB.Oracle”的数据源对象 - Cannot initialize the data source object of OLE DB provider "OraOLEDB.Oracle" for linked server 链接服务器的OLE DB提供程序“ OraOLEDB.Oracle”返回消息“ ROW-00004:无效的列数据类型” - OLE DB provider “OraOLEDB.Oracle” for linked server returned message “ROW-00004: Invalid column datatype” 链接服务器[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 SQL-Server 中的 CLR 编程问题(System.InvalidOperationException: The 'OraOLEDB.Oracle' provider is not registered on local machine) - CLR programming in SQL-Server problem(System.InvalidOperationException: The 'OraOLEDB.Oracle' provider is not registered on the local machine) sql server 2014无法为链接服务器“(null)”创建OLE DB提供程序“ Microsoft.ACE.OLEDB.12.0”的实例 - sql server 2014 Cannot create an instance of OLE DB provider “Microsoft.ACE.OLEDB.12.0” for linked server “(null)”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM