Skip to content

How to install Oracle Client 10g on Red Hat Enterprise Linux 5

Today I needed to install the Oracle Client 10g on a Red Hat Enterprise Linux 5 32bit: all around the net you can find many useful tutorial on how to install the Oracle DB Server but I cannot find how to install only the client. As you may guess the client installation is easier than the Oracle DB Server one.

On the linux machine, as root, you have to run the following commands:

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

//prepare the filesystem
# mkdir /opt/oracle
# chown -R oracle:oinstall /opt/oracle

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

//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: once there get the file called 10201_client_linux32.zip. Unzip and run the client:

# unzip 10201_client_linux32.zip
# cd client
# ./runInstaller

I pointed the oraInventory directory to /opt/oracle in the first screen; in the second one I choose to install the Oracle 10g Client in /opt/oracle/product/10.2.0/client_1/. Just before the installation finishes it prompts to you to execute two more commands as root: in my own installation I run

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

but, as you may guess, your path may be different from mine.

Now the final step: we have to restore the /etc/redhat-release file we changed before:

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

I hope this tutorial can help you… if you find errors please report them to me and I will correct as soon as possible.

    AddThis Feed Button

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*