In Linux, the total number of Oracle clients is less than 40 MB, which is very convenient and quick to install.
1. First, check the directory structure after downloading:
Copy it to linux.
2. Use the root user in the command line window to operate in the rpm directory:
Rpm-ivh... rpm
Rpm-ivh... rpm
Rpm-ivh... rpm
Rpm-ivh... rpm
(Install the four RPMs separately. Install the basic one first, and install the other three in any order)
3. Modify the tansnames. ora File
# Tnsnames. ora Network Configuration File:/home/oracle/orahome/product/10.1.0/db_1/network/admin/tnsnames. ora
# Generated by Oracle configuration tools.
Orcl =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP) (HOST = 172.16.0.0) (PORT = 1521 ))
)
(CONNECT_DATA =
(SERVICE_NAME = orcl)
)
)
Note: Enter the Instance name of your oracle server, and the IP address is the IP address of your oracle server.
3. Enter the following command:
Cd/
Mkdir oracle
Cd oracle
Mkdir 10g
Cd 10g
Mkdir network
Cd network
Mkdir admin
Cd amdin
(Copy the modified tnsnames. ora here)
4. Compile a file, for example, oracle10.profile, and insert the following statement into the file:
Export ORACLE_HOME =/oracle/10g
Export LD_LIBRARY_PATH =/usr/lib/oracle/10.1.0.3/client/lib
PATH = $ PATH: $ ORACLE_HOME: $ LD_LIBRARY_PATH
5. source oracle10.profile (make the new environment variable take effect) to complete the configuration.
Inspection:
Input: sqlplus zhang/zhang @ orcl to check whether it can connect to the oracle server.
Here, zhang/zhang is the user name and password. orcl is the Instance name of the oracle server.