OracleDatabaseInstantClient Instant Client configuration and use

Source: Internet
Author: User
In some cases, for example, you only want to install some client software to connect to the database for basic operations or testing. To achieve the connection, you need to install the oracle client, for this orac

In some cases, for example, you only want to install some client software to connect to the database for basic operations or testing. To achieve the connection, you need to install the oracle client, for this orac

In some cases, for example, you only want to install some client software to perform basic operations or tests on connecting to the database. To achieve the connection, you need to install the Oracle client. Therefore, oracle provides a dedicated Client installation package separately, compared with the conventional CLIENT, the software is smaller in size and free from installation steps, and can be repackaged for rapid deployment to other machines, while obtaining the same features and performance as the conventional client ,, it is literally an instant client, which is common:
In order to connect the client and perform other simple test operations, we tried to use the instant client. to connect to the server and use sqlplus, we needed to download two software packages:
Bytes. The size of the former is less than 35 Mb, which is a basic required file package. The latter is smaller than kb and is a sqlplus execution program. Compared with conventional clients, the former is very lightweight.
Decompress the downloaded two zip packages to a directory, such as D: \ oracleinstantclient. Then add two new user variables PATH, TNS_ADMIN, set two variables with the same value = D: \ oracleinstantclient, and add a connection string configuration file in the directory named tnsnames. ora, the content is as follows:
TEST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.2.203) (PORT = 1521 ))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = TEST)
)
)
For 1st variables, you can directly modify the system PATH variable to include the client PATH.
In this way, you can normally use the instant client to connect to the server:
D: \> sqlplus system/test @ test

SQL * Plus: Release 10.2.0.5.0-Production on Mon Jan 9 11:21:57 2012

Copyright (c) 1982,201 0, Oracle. All Rights Reserved.


Connected:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0-Production
With the Partitioning, OLAP and Data Mining options

SQL> select * from v $ version;

BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0-Prod
PL/SQL Release 10.2.0.1.0-Production
CORE 10.2.0.1.0 Production
TNS for 32-bit Windows: Version 10.2.0.1.0-Production
NLSRTL Version 10.2.0.1.0-Production

SQL>
-The End-

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.