简体   繁体   English

连接c#与oracle 11g 64位机器的错误?

[英]error in connection c# with oracle 11g 64 bit machine?

My c# form has an error in the connection from c# with oracle 11g express edition, I've put my connection string in app.config file. 我的c#表单在c#与oracle 11g express edition的连接中有错误,我把我的连接字符串放在app.config文件中。 This is my connection string: 这是我的连接字符串:

add name="ConnectionString" connectionString="Provider=MSDAORA;Data Source=localhost;Password=LIB314;User ID=LIB_DB" providerName="System.Data.OleDb"

When I want to run a query, it gives me error saying 当我想运行查询时,它给我错误说

The 'MSDAORA' provider is not registered on the local machine “MSDAORA”提供程序未在本地计算机上注册

I use Windows 8.1 Pro x64... Can anyone please help me? 我使用的是Windows 8.1 Pro x64 ......任何人都可以帮帮我吗?

UseORAOLEDB.ORACLE rather than MSDAORA. 使用ORAOLEDB.ORACLE而不是MSDAORA。

Check below URL 检查以下网址

https://community.oracle.com/thread/1022162 https://community.oracle.com/thread/1022162

Thanks Nipun 谢谢Nipun

Try using OraOLEDB instead of MSDAORA. 尝试使用OraOLEDB而不是MSDAORA。 Register OraOLEDB11.dll using regsvr32.exe. 使用regsvr32.exe注册OraOLEDB11.dll

To do so, open command prompt and browse to the BIN folder of under your Oracle HOME's installation path (probably oracle\\product\\11.2.0\\dbhome1\\BIN) and execute the following line: 为此,请打开命令提示符并浏览到Oracle HOME安装路径下的BIN文件夹(可能是oracle \\ product \\ 11.2.0 \\ dbhome1 \\ BIN)并执行以下行:

>regsvr32.exe OraOLEDB11.dll

Also, ensure verify that the PATH variable is set properly and points to Oracle's installation path ie: C:\\oracle\\product\\11.2.0\\dbhome1\\BIN 另外,请确保验证PATH变量是否设置正确并指向Oracle的安装路径,即:C:\\ oracle \\ product \\ 11.2.0 \\ dbhome1 \\ BIN

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM