Install the Oracle10g client in Linux (CentOS5)

Source: Internet
Author: User
Tags scp command
2. Because I am using Remote Installation, and I do not use remote operations like xmanager, I can only use the client. The server only provides ssh management, so I can only use se

2. Because I am using Remote Installation, and I do not use remote operations like xmanager, I can only use the client. The server only provides ssh management, so I can only use se

Oracle10 Client installation

1. First, go to the linux client that downloaded oracle10g named 10201_client_linux32.zip. Size: 467 mb. Register and download it.

2. because I am using Remote Installation, and I do not use remote operations like xmanager, I can only use clients, and the server only provides ssh management, therefore, you can only use secureCRT and the like for installation. Of course, you can also use putty. Here we recommend the Chinese version pietty. The author adds the menu and enhances Chinese support.

3. Upload the client to the server and use the rz command on secureCRT. Of course, you can also use winscp or the scp command with putty.

4. I put 10201_client_linux32.zip to the/tmp directory.

Unzip./10201_client_linux32.zip-d./decompress oracle_client

5. Check the physical memory size, swap space size, available memory size, and temporary space as instructed in the manual:

Check available memory:

# Grep MemTotal/proc/meminfo

Check swap space

# Grep SwapTotal/proc/meminfo

Check available memory

# Free

The/tmp space is greater than 400 MB, because I put the installation program here and need a larger space

# Df-k/tmp

For more information, see the installation manual.

Check whether your operating system supports:

# Cat/etc/issue

Check whether the kernel of your system meets the requirements.

# Uname-r

6. Create the users and user groups required for Installation

# Groupadd oinstall

# Useradd-g oinstall oracle

# Passwd oracle

7. Create an Oracle basic directory

# Mkdir-p/usr/local/oracle

# Chown-R oracle: oinstall/usr/local/oracle

# Chmod-R 775/usr/local/oracle

6. My operating system is CentOS release 5 ,. Modify the/etc/RedHat-release file and change the file content to: redhat-4. It is mainly consistent with oraparam. ini in the installation package.

7. OK. Continue and go to the response directory of the installation directory. Cd./oracle_client/client/response modify the clientcustom. rsp file in the response and modify the following lines:

# Oracle home Directory

ORACLE_HOME =/usr/local/oracle

# Oracle home Name, used to create directories and services

ORACLE_HOME_NAME = "ORACLE_HOME"

# Language of Installation

Component_ages = {"en", "zh_CN "}

8. Start installation:

First, su to the oracle user:

# Su-oracle

$ Cd/tmp/oracle_client/client

./RunInstaller-silent-responseFile/tmp/oracle_client/client/response/clientcustom. rsp

If no package is missing, it will be completed, but the system will prompt that Oracle Net Configuration Assistant is not configured

Run the/ur/local/oracle/root. sh file as the root user.

9. Modify the. bash_profile file of the Oracle user,

# Su-oracle

$ Vi./bash_profile

Add:

Export ORACLE_HOME =/usr/local/oracle

Export ORACLE_SID = orcl

Export PATH = $ PATH: $ HOME/bin: $ ORACLE_HOME/bin

Export LD_LIBRARY_PATH = $ ORACLE_HOME/lib:/usr/lib

Export NLS_LANG = "SIMPLIFIED CHINESE_CHINA.ZHS16GBK"

Set it as follows:

$ .~ /. Bash_profile

10. Configure tnsname. ora under $ ORACLE_HOME/network/admin, and sqlnet. ora

Sqlnet. ora file:

Qlnet. ora Network Configuration File:/home/oracle/client/app/network/admin/s

Qlnet. ora

# Generated by Oracle configuration tools.

NAMES. DIRECTORY_PATH = (TNSNAMES, ONAMES, HOSTNAME)

Tnsname. ora File

Orcl_name =

(DESCRIPTION =

(ADDRESS =

(PROTOCOL = tcp)

(HOST = 192.168.0.7)

(PORT = 1521)

)

(CONNECT_DATA =

(SID = orcl)

(SERVER = DEDICATED)

(SERVICE_NAME = orcl)

)

)

11. The OK oracle client has been installed. Test it:

$ Sqlplus account/password @ orcl_name

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.