Brucalipto.org

Keep your door open!

How to Install Oracle Client 10g on Red Hat Enterprise Linux 5 64bit

| Comments

Today I needed to install the Oracle Client 10g on a Red Hat Enterprise Linux 5 64bit: 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:

Preparing for installation
1
2
3
4
5
# create user and groups
$ groupadd oinstall
$ groupadd dba
$ useradd -g oinstall -G dba oracle
$ passwd oracle
Setup filesystem
1
2
$ mkdir /opt/oracle
$ chown -R oracle:oinstall /opt/oracle
Install some needed packages
1
$ yum install libXp gcc make setarch libaio glibc-devel
Change /etc/redhat-release as RHEL5 is not a supported platform
1
2
$ 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 64bit from Oracle website: once there get the file called 10201_client_linux_x86_64.cpio.gz. Open the cpio oracle client archive and run the client installation program:

Installing oracle
1
2
3
4
$ gunzip 10201_client_linux_x86_64.cpio.gz
$ cpio -idmv < 10201_client_linux_x86_64.cpio
$ 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
1
2
$ /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:

The final touch
1
$ 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.

Comments