简体   繁体   中英

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. 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

I use Windows 8.1 Pro x64... Can anyone please help me?

UseORAOLEDB.ORACLE rather than MSDAORA.

Check below URL

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

Thanks Nipun

Try using OraOLEDB instead of MSDAORA. Register OraOLEDB11.dll using regsvr32.exe.

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:

>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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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