Environment
Operating system: Win8.1 Enterprise
Oracle Development tools: PL/SQL Developer 7.0.1.1066 (MBCS)
Steps to download instantclient
Oracle Instant Client download is available in downloads in http://www.oracle.com/cn/downloads/index.html navigation.
Unzip the downloaded compressed package into a directory, this article is extracted in the C:\Oracle directory.
Create a Tnsnames.ora file
Create the Tnsnames.ora file in the C:\Oracle directory created in the previous step:
= = = = = = 192.168 . 1.100 = 1521 )))) ())))
Configuring Environment variables
Environment variable Name |
Value |
Use |
Tns_admin |
C:\Oracle |
Tell the Oracle database where the connection drives the Tnsnames.ora |
Nls_lang |
Simplified Chinese_china. Zhs16gbk |
According to the actual situation of your database configuration |
Environment variables Tns_admin and Nls_lang can use the registry configuration instead of details to see the official FAQs.
PATH environment variable
In order for the program to automatically find these instantclient library files, it is recommended that the instantclient directory (in this article, C:\Oracle) be added to the system PATH environment variable . This is necessary if you need to use odp.net and are not a managed version (Odp.net Managed driver does not need to install any Oracle clients). It's also a bit better to use odp.net to download Oracle Data Access Components (ODAC), which contains both instantclient and Odp.net, which maximizes their version compatibility.
Configuring PL/SQL Developer
Tools->preferences->oracle->connection:
Oracle home=c:\oracle
OCI Library=c:\oracle\oci.dll
If the Instantclient directory is added to the system PATH environment variable, then this step is not required, and PL/SQL automatically loads the OCI according to the environment variables.
Try to connect
Configured, log in to test the connection using the database account password.
Reference
Instant client:http://www.oracle.com/technetwork/database/features/instant-client/index-100365.html
Instant Client faq:http://www.oracle.com/technetwork/database/features/oci/ic-faq-094177.html?sssourcesiteid=otncn#a5028
[Oracle] uses instantclient to access the Oracle database