Oracle9I (9.2.0.4.0) Installation On Redhat Advanced Server 3.0 Linux
Oracle9I (9.2.0.4.0) Installation On Redhat Advanced Server 3.0 Linux
Oracle9I (9.2.0.4.0) Installation On Redhat Advanced Server 3.0 Linux
0) Installation on RedHat
Advanced Server 3.0 Linux
This article is intended as a brief guide to installing Oracle9i (9.2.0.4.0) on RedHat
Advanced Server 3.0 Linux.
Download Software
Download Sun's Java Development Kit (JDK 1.3.1).
Unpack Files
First unzip the files:
gunzip lnx_920_disk1.cpio.gz
gunzip lnx_920_disk2.cpio.gz
gunzip lnx_920_disk3.cpio.gz
Next unpack the contents of the files:
cpio -idmv < lnx_920_disk1.cpio
cpio -idmv < lnx_920_disk2.cpio
cpio -idmv < lnx_920_disk3.cpio
mkdir 92040
unzip -d 92040 p3095277_9204_LINUX.zip
cd 92040
cpio -idmv < 9204_lnx32_release.cpio
You should now have three directories (Disk1, Disk2 and Disk3) containing installation
files and a 92040/Disk1 directory containing the patch installation files.
The current semaphore settings can be viewed using the following command:
cat /proc/sys/kernel/sem
Setup
Install the Java development kit:
# Make the bin file executable
chmod u+x j2sdk-1_3_1_09-linux-i586.rpm.bin
# Run the bin file. Agree to the terms and conditions.
./j2sdk-1_3_1_09-linux-i586.rpm.bin
# Install the RPM file.
rpm -ivh jdk-1.3.1_09.i586.rpm
Create the new groups and users:
groupadd oinstall
groupadd dba
groupadd oper
groupadd apache
With the installation complete start the 9.2.0.4.0 patchset installation by issuing the
following command in the 92040/Disk1 directory:
./runInstaller
First complete the "Oracle Universal Installer 2.2.0.18.0" installation option, then complete
the "Oracle9iR2 Patch Set 3 9.2.0.4.0" installation.
Post Installation
With this done the DBCA can be started to create a database instance using dbca from the
command line.
Once the instance is created edit the /etc/oratab file setting the restart flag for each instance
to 'Y':
TSH1:/u01/app/oracle/product/9.2.0.1.0:Y
Create a file called /etc/init.d/dbora containing the following:
#!/bin/sh
# description: Oracle auto start-stop script.
# chkconfig: - 20 80
#
# Set ORA_HOME to be equivalent to the $ORACLE_HOME
# from which you wish to execute dbstart and dbshut;
#
# Set ORA_OWNER to the user id of the owner of the
# Oracle database in ORA_HOME.
ORA_HOME=/u01/app/oracle/product/9.2.0.1.0
ORA_OWNER=oracle
if [ ! -f $ORA_HOME/bin/dbstart ]
then
echo "Oracle startup: cannot start"
exit
fi
case "$1" in
'start')
# Start the Oracle databases:
# The following command assumes that the oracle login
# will not prompt the user for any values
su - $ORA_OWNER -c "$ORA_HOME/bin/lsnrctl start"
su - $ORA_OWNER -c $ORA_HOME/bin/dbstart
;;
'stop')
# Stop the Oracle databases:
# The following command assumes that the oracle login
# will not prompt the user for any values
su - $ORA_OWNER -c $ORA_HOME/bin/dbshut
su - $ORA_OWNER -c "$ORA_HOME/bin/lsnrctl stop"
;;
esac
Use chmod to set the privileges to 750:
chmod 750 /etc/init.d/dbora
Link the file into the appropriate run-level script directories:
ln -s /etc/init.d/dbora /etc/rc0.d/K10dbora
ln -s /etc/init.d/dbora /etc/rc3.d/S99dbora
Associate the dbora service with the appropriate run levels:
chkconfig --level 345 dbora on
The relevant instances should now startup/shutdown automatically at system
startup/shutdown.