Installing the Oracle 10g client on RHEL5.5

Source: Internet
Author: User

Operating system version: rhel5.5
Oracle Client Version: 10g64-bit
Client: http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html
 
1. Find the corresponding version, download the following file, and install it.

Install basic first, and then install other.
Installation Method:
[Root @ szapp01 ~] # Rpm-Uvh oracle *
 
2. Create an oracle user and create a directory
[Root @ szapp01 ~] # Groupadd oinstall
[Root @ szapp01 ~] # Groupadd dba
[Root @ szapp01 ~] # Groupadd rule
[Root @ szapp01 ~] # Useradd-g oinstall-G dba, role oracle
[Root @ szapp01 ~] # Passwd oracle
[Root @ szapp01 ~] # Mkdir-p/home/oracle/network/admin
[Root @ szapp01 ~] # Chown-R oracle: oinstall/home/oracle
[Root @ szapp01 ~] # Chmod-R 755/home/oracle
 
4. Copy the tnsnames. ora file on the oracle server to the/home/oracle/network/admin directory.
[Oracle @ szapp01 admin] $ cat tnsnames. ora
# Tnsnames. ora Network Configuration File: #/oracle/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames. ora
# Generated by Oracle configuration tools.
ORACATT =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP) (HOST = 172.27.254.4) (PORT = 1521 ))
)
(CONNECT_DATA =
(SERVICE_NAME = oracatt)
)
)
Host. If the alias is not set in the/etc/hosts file, change it to the IP address of the oracle Database Server.
 
3. Add Environment Variables
Export ORACLE_HOME =/home/oracle
Export SQLPATH =/home/oracle/network/admin
# Search for the tnsnames. ora path
Export TNS_ADMIN =/home/oracle/network/admin
Export NLS_LANG = "SIMPLIFIED CHINESE_CHINA.ZHS16GBK"
Export LD_LIBRARY_PATH =/usr/lib/oracle/10.2.0.4/client64/lib/:/usr/lib/oracle/11.2/client/lib: $ LD_LIBRARY_PATH
Export PATH = $ PATH: $ ORACLE_HOME: $ LD_LIBRARY_PATH
 
Run the command.
[Oracle @ szapp01 ~] $. Bash_profile
 
4. Connect to the server from the client.
[Oracle @ szapp01 ~] $ Sqlplus develop/develop @ // 172.27.254.4/oracatt
SQL * Plus: Release 10.2.0.4.0-Production on Mon Oct 15 16:13:25 2012
Copyright (c) 1982,200 7, Oracle. All Rights Reserved.
Connected:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0-64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
 
SQL>
 
You can see the oracle11g installed on the 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.