database

How do I install the Oracle 10g client on a RedHat Enterprise Linux 5 server?

To install Oracle 10g on a RHEL 5 server, you need to perform the following steps as root:

//create user and groups
# groupadd oracle
# useradd -g oracle -G oracle
# passwd oracle

//prepare the filesystem
# mkdir /apps/oracle
# chown -R oracle:oracle /apps/oracle

//install some needed packages
# yum install libXp gcc make setarch libaio glibc-devel

//change /etc/redhat-release as RHEL5 is not a supported platform
# cp /etc/redhat-release /etc/redhat-release.5
# echo redhat-4 > /etc/redhat-release

OK… as root we have now finished!

Now log in with the oracle user and download the Oracle Client 10g from Oracle website (http://www.oracle.com/technetwork/database/10201linuxsoft-097986.html). Download the file named 10201_client_linux32.zip.

Unzip and run the client:
# unzip 10201_client_linux32.zip
# cd client
# ./runInstaller

Point the oraInventory directory to /apps/oracle in the first screen. In the second screen choose to install the Oracle 10g Client in /apps/oracle/product/10.2.0/client_1/. Just before the installation finishes it prompts to you to execute two more commands as root.

//execute the following commands as root
# /apps/oracle/orainstRoot.sh
# /apps/oracle/product/10.2.0/client_1/root.sh

Finally restore the /etc/redhat-release file we changed previously.

# mv /etc/redhat-release.5 /etc/redhat-release

Click to comment

Leave a Reply

Your email address will not be published. Required fields are marked *

To Top