"ORAOLEDB.ORACLE.1" Provider is not registered on the local computer--handling of the problem

Source: Internet
Author: User

Recently the up master took over the C # connection to Oracle's project, encountered a variety of problems, the most serious is the connection string is not connected to Oracle.


Throws the following question System.InvalidOperationException: "ORAOLEDB.ORACLE.1" Provider is not registered on the local computer.

650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M02/9D/E5/wKiom1mILfPwHorMAABUHEMwXDk308.png-wh_500x0-wm_ 3-wmp_4-s_4111817542.png "title=" Invalid operation. The connection is closed. PNG "alt=" Wkiom1milfpwhormaabuhemwxdk308.png-wh_50 "/>

and an error occurred.

In System.Data.ProviderBase.DbConnectionClosed.get_ServerVersion ()

In System. Data.OleDb.OleDbConnection.get_ServerVersion ()


Be aware that the machine has 32-bit and 64-bit installed on the Oracle client side, and that the environment variables are already configured. Even if the win 10 64-bit system should not be able to, refer to the online many articles are no use!


Finally, a foreign friend of the method to successfully solve the problem. The key is to download a instantclient-basic-win-x86-64xxxx, unzip it and put it in the C:\Oracle\ directory

650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M01/9D/E5/wKiom1mILxPSGxIEAABHz9K6_-E206.png-wh_500x0-wm_ 3-wmp_4-s_2659120091.png "title=" File path.png "alt=" Wkiom1milxpsgxieaabhz9k6_-e206.png-wh_50 "/>

Finally configure environment variables

650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M02/9D/E5/wKioL1mIL1zCfgH2AAA4A1PgIME682.png-wh_500x0-wm_ 3-wmp_4-s_2766750234.png "title=" environment variable. PNG "alt=" Wkiol1mil1zcfgh2aaa4a1pgime682.png-wh_50 "/>

Restart vs on it.



Ps:

English good can refer to the following articles:

Http://www.dbatoolz.com/t/installing-oracle-instantclient-basic-and-instantclient-sqlplus-on-win32.html


This article is from the "to IS EX" blog, please make sure to keep this source http://gleolee.blog.51cto.com/10632675/1954256

"ORAOLEDB.ORACLE.1" Provider is not registered on the local computer--handling of the problem

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.