Install Oracle10gR2 on Solaris 10 in few easy steps.

Directions :: First do gunzip then cpio of the file you downloaded from oracle.com
1. Run “gunzip <filename>” on all the files.   Eg.: gunzip solarisx86_DB_10_1_0_3_Disk1.cpio.gz
2. Extract the cpio archives with the command “cpio -idcmv < filename>”
Eg.: cpio -idcmv <solarisx86_DB_10_1_0_3_Disk1.cpio
A. Create Oracle Group and User:
—————-
A. create group name “dba”, oracle inventory group “oinstall” and “oracle” user
# /usr/sbin/groupadd oinstall
# /usr/sbin/groupadd dba
{Determine oracle user exist or not
# id -a oracle
{if exist, should be look like this=
uid=440(oracle) gid=200(oinstall) groups=201(dba),202(oper)
{create oracle user=
# useradd -d /export/home/oracle -g dba -G oinstall -m -s /bin/ksh oracle
{set password=
# passwd -r files oracle
/*to delete user if it exists command is “userdel”
#mkdir /export/home/oracle
#chown oracle:dba /export/home/oracle
{to determine nobody user=
# id nobody
# /usr/sbin/useradd nobody >>run if does not exist
B. EDIT FILE /export/home/oracle/.profile
————————————–
umask 022
TMP=/tmp
TMPDIR=$TMP
DISPLAY=localhost:0.0
export TMP TMPDIR DISPLAY
ORACLE_BASE=/u01/app/oracle [replace with ur Oracle base Directory]
ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1 [replace with ur Oracle home Directory]
ORACLE_SID=jktdb [replace with your database]
PATH=$ORACLE_HOME/bin:$PATH
export ORACLE_BASE ORACLE_HOME ORACLE_SID PATH
C. Configure Kernel Parameter
AS A ROOT USER:-
projadd -U oracle -K “project.max-shm-memory=(priv,4096MB,deny)” user.oracle
AS A ORACLE USER:-
# su – oracle
$ prctl -n project.max-shm-memory $$
For User details:-
AS A ROOT USER:-
# more /etc/project
D. Make Directories in /u01 and give permissions to /u01
# mkdir /u01/app/oracle
#mkdir /u01/app/oracle/product/10.2.0/db_ 1
Give oracle:dba to /u01/app/oracle/product/10.2.0/
AS ROOT:-
# chmod -R 777 /u01
# chown –R oracle:dba /u01
Put a parameter –f if few files not changing ownership
E. Performing the Oracle Installation
$su – oracle
$xhost +
$export DISPLAY=localhost:0.0
$xhost +localhost
/*localhost is the ip of your current machine or laptop from where you are installing*/
$ cd /export/home/database/ [the source unzipped here]
As Root user:
# chown oracle:dba /export/home/database/runInstaller
./runInstaller
F. Finishing Installation
Run the 2 scripts as root user
When you run root.sh and this message comes, just hit enter
Enter the full pathname of the local bin directory: [/usr/local/bin]:





G. Post Installation Tasks
Set $ORACLE_HOME and $ORACLE_BASE
As a Root User
# ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1
# export ORACLE_HOME
# cd $ORACLE_HOME
# ORACLE_BASE=/u01/app/oracle
# export ORACLE_BASE
# cd $ORACLE_BASE
You can run dbca and create the database if you chose not to install the database while using the runinstaller.
Simply from any Xwindows client. I prefer using NetSarangs Xbrowser.
$  su – oracke
$ dbca
And continue with creating the database…

Category: DatabaseSolarisUnix

Tags:

Leave a Reply

Article by: Shadab Mohammad