Configure the lite version of the Oracle client

Source: Internet
Author: User


Generally, it is only used as a client to access Oracle and does not need to install a large Oracle database. Sometimes I often forget how to configure the lite version of Oracle. This article creates a record backup. You can download the client suitable for your own system from the http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html, usually dozens of M, download the Basic version. After downloading and decompressing it to a directory, it can be used as an Oracle client, but some configuration is required. For example, if I put it in the D: \ Oracle directory, set the environment variable configuration as follows:
Www.2cto.com ORACLE_HOME points to D: \ OracleTNS_ADMIN points to D: \ OracleNLS_LANG. Set the value to the beginning of the SIMPLIFIED CHINESE_CHINA.ZHS16GBKPath environment variable to add D: \ Oracle. My local D: \ Oracle file is: the cfg suffix file and Sample are useless, listerner. ora is the listening file of the Oracle server, and it is useless here, sqlnet. the ora file is useless. The file directory of the latest win64 version that I downloaded is as follows, the 1.3 JDBC library is replaced by the classes12.jar package and the ojdbc14.jar package that supports JDK1.4 and later versions with ojdbc5.jar and ojdbc6.jar. The client connection file tnsnames. ora is configured as follows: cqyxtx =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP) (HOST = 172.23.1.253) (PORT = 1521 ))
)
(CONNECT_DATA =
(SERVICE_NAME = yxtx)
)
) Indicates that the connection IP address is 172.23.1.253 and the port is the default 1521 yxtx database instance. The database connection name is cqyxtx. Open PL/SQL and select Tools> preferences. The configuration is as follows:
Such as www.2cto.com, PL/SQL can be used as the oracle client.

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.