Oracle 8i | Oracle 9i | Oracle 10g | Oracle 11g | Miscellaneous | Oracle RAC | Oracle Apps | Linux

Oracle9iAS (9.0.3.0.0) Installation On RedHat Advanced Server 2.1

In this article I'll describe the installation of Oracle 9iAS, Oracle's J2EE Application Server, on RedHat Advanced Server 2.1. The article assumes you've performed the standard advanced server installation including the development tools.

Download Software

Download the following software:

Unpack Files

First unzip the files:
gunzip linux_ias_903_Disk1.cpio.gz
Next unpack the contents of the files:
cpio -idmv < linux_ias_903_Disk1.cpio
You should now have a directory (Disk1) containing installation files.

Hosts File

The /etc/hosts file must contain a fully qualified name for the server:
<IP-address>  <fully-qualified-machine-name>  <machine-name>

Set Kernel Parameters

The following table contains minimum kernel settings. If the current settings exceed these figures then do not alter them:

Parameter Minimum Setting
SEMMNI 100
SEMMNS 256
SEMOPM 100
SEMMSL 100
SHMMAX 2147483648
SHMMIN 1
SHMMNI 100
SHMSEG 4096
SHMVMX 32767

The current semaphore settings can be viewed using the following command:
cat /proc/sys/kernel/sem

250 32000 32 128
The values listed are for the SEMMSL, SEMMNS, SEMOPM, and SEMMNI parameters. The adjusted values can be set using:
# echo SEMMSL_value SEMMNS_value SEMOPM_value SEMMNI_value > /proc/sys/kernel/sem
echo 250 32000 100 128 > /proc/sys/kernel/sem
The shared memory settings can be viewed using the following command:
cat shared_memory_parameter
The values can be set using:
echo 2147483648 >  /proc/sys/kernel/shmmax
Set the File Handles, Sockets and Process limit using:
echo 65536 > /proc/sys/fs/file-max
ulimit -n 65536
echo 1024 65000 > /proc/sys/net/ipv4/ip_local_port_change
ulimit -u 16384
The necessary parameter changes can be combined in a script and run during system startup:
echo 250 32000 100 128 > /proc/sys/kernel/sem
echo 65536 > /proc/sys/fs/file-max
ulimit -n 65536
echo 1024 65000 > /proc/sys/net/ipv4/ip_local_port_change
ulimit -u 16384
Alternatively the following lines can be added to the /etc/sysctl.conf file:
kernel.shmmax = 2147483648
kernel.shmmni = 128
kernel.shmall = 2097152
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
In addition the following lines can be added to the /etc/security/limits.conf file:
oracle soft nofile 65536
oracle hard nofile 65536
oracle soft nproc 16384
oracle hard nproc 16384
Adding lines into these files requires a reboot before they take effect.

Setup

Install the binutils RPM:
rpm -Uvh --force binutils-2.11.90.0.8-13.i386.rpm
Install KSH support:
rpm -Uvh --force pdksh-5.2.14-13.i386.rpm
Create the following symbolic links:
ln -s /sbin/fuser /bin/fuser
ln -s /opt/IBMJava2-131 /usr/local/java
ln -s /usr/local/java/bin/java /usr/local/bin/java
Create the new groups and users:
groupadd oinstall
groupadd dba
groupadd oper

useradd -g oinstall -G dba -s /bin/ksh oracle
passwd oracle
Create the directories in which the Oracle software will be installed:
mkdir -p /u01/app/oracle/product/903_j2ee
chown -R oracle.oinstall /u01
Login as root and issue the following command:
xhost +<machine-name>
Login as the oracle user and add the following lines at the end of the .profile file:
# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR

ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/903_j2ee; export ORACLE_HOME
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:/opt/IBMJava2-131/bin:$PATH; export PATH
PATH=$PATH:$ORACLE_HOME/bin:$ORACLE_HOME/dcm/bin:$ORACLE_HOME/opmn/bin; export PATH
PATH=$PATH:$ORACLE_HOME/Apache/Apache/bin; export PATH

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

PS1="`hostname`> "
set -o emacs
set filec

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 with the installation.

Post Installation

Once the installation is complete you should revert to the original version of binutils on the RedHat Advanced Server 2.1 CD2:
rpm -Uvh --force binutils-2.11.90.0.8-12.i386.rpm
Any subsequent relinks will generate errors. To prevent this remove the "-z defs" option from any makefiles which use it.

With the installation complete you can perform any administration tasks using Enterprise Manager:
It should be noted that the Enterprise Manager Website does not function properly unless the X Session that started it is still present. This means every time you need to use the EM website you must start an X Session, export the DISPLAY variable correctly and restart EM.

For more information see:
Hope this helps. Regards Tim...

Back to the Top.