[Oracle] access to Oracle database using Instantclient

Source: Internet
Author: User

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

Related Article

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.