Install the Oracle 10g client on Linux

Source: Internet
Author: User

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.

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.