Back to normal view: https://oracle-base.com/articles/9i/oracle-db-9i-installation-on-rhel-3

Oracle9i (9.2.0.4.0) Installation On Red Hat Enterprise Linux 3 (RHEL3)

This article is intended as a brief guide to installing Oracle9i (9.2.0.4.0) on Red Hat Enterprise Linux 3 (RHEL3). For additional information and platform variations read the Installation Guide for UNIX Systems.

Download Software

Download the Oracle installation files from Oracle Technology Network.

Download the 3006854 from Oracle Support.

Unpack Files

First unzip the files.

gunzip ship_9204_linux_disk1.cpio.gz
gunzip ship_9204_linux_disk2.cpio.gz
gunzip ship_9204_linux_disk3.cpio.gz

Next unpack the contents of the files.

cpio -idmv < ship_9204_linux_disk1.cpio
cpio -idmv < ship_9204_linux_disk2.cpio
cpio -idmv < ship_9204_linux_disk3.cpio

You should now have three directories (Disk1, Disk2 and Disk3) containing installation files.

Set Kernel Parameters

Add the following lines to the "/etc/sysctl.conf" file.

kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 150
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65536
kernel.msgmni = 2878
kernel.msgmnb = 360000

Run the following command to change the current kernel parameters:

/sbin/sysctl -p

Add the following lines to the "/etc/security/limits.conf" file.

oracle soft nofile 65536
oracle hard nofile 65536
oracle soft nproc 16384
oracle hard nproc 16384

Setup

Create the new groups and users.

groupadd oinstall
groupadd dba
groupadd oper
groupadd apache

useradd -g oinstall -G dba oracle
passwd oracle

useradd -g oinstall -G apache apache
passwd apache

Create the directories in which the Oracle software will be installed.

mkdir -p /u01/app/oracle/product/9.2.0
chown -R oracle.oinstall /u01

Login as the oracle user and add the following lines at the end of the ".bash_profile" file.

# Oracle 9i
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/9.2.0; export ORACLE_HOME
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=$ORACLE_HOME/bin:$PATH; export PATH
ORACLE_OWNER=oracle; export ORACLE_OWNER
ORACLE_SID=DB9I; export ORACLE_SID

LD_LIBRARY_PATH=$ORACLE_HOME/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
CLASSPATH=$CLASSPATH:$ORACLE_HOME/network/jlib; export CLASSPATH

LD_ASSUME_KERNEL=2.4.1; export LD_ASSUME_KERNEL
THREADS_FLAG=native; export THREADS_FLAG
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR

Install the following packages.

# From RedHat AS3 Disk 2
cd /mnt/cdrom/RedHat/RPMS
rpm -Uvh setarch-1*
rpm -Uvh tcl-8*

# From RedHat AS3 Disk 3
cd /mnt/cdrom/RedHat/RPMS
rpm -Uvh openmotif21-2*
rpm -Uvh compat-db-4* \
         compat-gcc-7* \
         compat-gcc-c++-7* \
         compat-libstdc++-7* \
         compat-libstdc++-devel-7*

Put gcc296 and g++296 first in $PATH variable by creating the following symbolic links.

mv /usr/bin/gcc /usr/bin/gcc323
mv /usr/bin/g++ /usr/bin/g++323
ln -s /usr/bin/gcc296 /usr/bin/gcc
ln -s /usr/bin/g++296 /usr/bin/g++

Apply the patch 3006854.

# unzip p3006854_9204_LINUX.zip
# cd 3006854
# ./rhel3_pre_install.sh

Installation

Log into the oracle user. If you are using X emulation then set the DISPLAY environmental variable.

DISPLAY=<machine-name>:0.0; export DISPLAY

Start the Oracle Universal Installer (OUI) by issuing the following command in the Disk1 directory.

./runInstaller

During the installation enter the appropriate ORACLE_HOME and name then continue as normal. For a more detailed look at the installation process, click on the links below to see screen shots of each stage.

  1. Welcome
  2. Inventory Location
  3. UNIX Group Name
  4. UNIX Group Name Privileges Dialog
  5. File Locations
  6. Available Products
  7. Installation Types
  8. Database Configuration
  9. Database Identification
  10. Database File Location
  11. Database Character Set
  12. Summary
  13. Install
  14. Setup Privileges
  15. Configuration Tools
  16. Database Configuration Assistant
  17. Database Configuration Assistant Passwords
  18. End Of Installation

Post Installation

Once the instance is created edit the /etc/oratab file setting the restart flag for each instance to 'Y'.

DB9I:/u01/app/oracle/product/9.2.0:Y

For more information see:

Hope this helps. Regards Tim...

Back to the Top.

Back to normal view: https://oracle-base.com/articles/9i/oracle-db-9i-installation-on-rhel-3