How to install Oracle Client 10g on Solaris10

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.

5 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 ?

  3. Vladimir says:

    If its possible to install a 32 bits client on a 64bits server?, this is because I need 32 bits libraries to use them with a Cobol of 32 bits.
    Thanks!

  4. Rahesj says:

    See how can you use 64bit in 32bit ? I dont understand.
    Please give me access to your box ,so i will install it for you.

    I have done oracle client install in

    - Solaris
    - REHL
    - Windows

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>