solaris How to install Oracle Client 10g on Solaris10Today I needed to install an Oracle Client on a new Solaris10 (x86 64bit) installation: I found a useful tutorial here but it helps you to install the whole database and not only the client. As you may guess the client installation is easier than the Oracle DB Server one.

The first thing to do is to check if you have installed the prerequisites packages:

# pkginfo -i SUNWbtool SUNWarc SUNWhea SUNWlibmr
SUNWlibm SUNWlibms SUNWsprot SUNWtoo SUNWi1of
SUNWi1cs SUNWi15cs SUNWxwfnt SUNWpoolr SUNWpool
SUNWuiu8

If you see any error here you must install the missing packages: if you did the “full installation” you should have all packages already installed.

Now its time to create user, groups, directories and project: as root type

//create user and groups
# groupadd oinstall
# groupadd dba
# useradd -g oinstall -G dba -m -d /export/home/oracle -s /usr/bin/bash oracle
//create the project (this is optional)
# projadd -U oracle oracle
//create the installation dir and give the right permissions
# mkdir /opt/oracle
# chown -R oracle:oinstall /opt/oracle

OK… as root we have temporarily finished!

Now log in with the oracle user and download the Oracle Client 10g for Solaris10 from Oracle website: once there you need to select the right architecture (Solaris exists for SPARC and x86 both 32 and 64 bit) and get the right archive for the Oracle client installation. In my own situation (Solaris10 on a x86 64bit) I downloaded the file called 10201_client_solx86_64.zip and I typed:

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

01 150x150 How to install Oracle Client 10g on Solaris10 As you can see (click on the image to see a bigger picture) I used /opt/oracle/oraInventory and I leaved the group oinstall as the default group.

03 150x150 How to install Oracle Client 10g on Solaris10 As ORACLE_HOME I used /opt/oracle/product/10.2.0/client_1.

04 150x150 How to install Oracle Client 10g on Solaris10Just 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/oraInventory/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, if you want to use the just installed oracle binaries, you need to change the .profile of the user adding at the end:

ORACLE_BASE=/opt/oracle
ORACLE_HOME=/opt/oracle/product/10.2.0/client_1
PATH=$PATH:/opt/oracle/product/10.2.0/client_1/bin/
export ORACLE_BASE
export ORACLE_HOME
export PATH

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

button1 addthis How to install Oracle Client 10g on Solaris10     AddThis Feed Button

3 Responses to “How to install Oracle Client 10g on Solaris10”

  1. Dugz says:

    You saved my life. Very clear explanation, thank you very much.

  2. John says:

    /opt/oracle/product/10.2.0/client_1/bin/ doesn’t exists after client install. What bin should be executed to fireup the client ?

Leave a Reply