Brucalipto.org

Keep your door open!

How to Install Oracle Client 10g on Solaris10

| Comments

Today 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:

Check for mandatory packages
1
2
3
4
$ 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

Preparing for installation
1
2
3
4
5
6
7
8
9
//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:

Installing oracle
1
2
3
$ unzip 10201_client_solx86_64.zip
$ cd client/
$ ./runInstaller

As you can see I used /opt/oracle/oraInventory and I leaved the group oinstall as the default group.

As ORACLE_HOME I used /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

Finishing installation
1
2
3
//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:

Environment variables
1
2
3
4
5
6
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.

Comments