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-