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
- Unpack Files
- Hosts File
- Set Kernel Parameters
- Setup
- Installation
- Post Installation
Download Software
Download the following software:Unpack Files
First unzip the files:Next unpack the contents of the files:gunzip linux_ias_903_Disk1.cpio.gz
You should now have a directory (Disk1) containing installation files.cpio -idmv < linux_ias_903_Disk1.cpio
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:
The values listed are for the SEMMSL, SEMMNS, SEMOPM, and SEMMNI parameters. The adjusted values can be set using:cat /proc/sys/kernel/sem 250 32000 32 128
The shared memory settings can be viewed using the following command:# echo SEMMSL_value SEMMNS_value SEMOPM_value SEMMNI_value > /proc/sys/kernel/sem echo 250 32000 100 128 > /proc/sys/kernel/sem
The values can be set using:cat shared_memory_parameter
Set the File Handles, Sockets and Process limit using:echo 2147483648 > /proc/sys/kernel/shmmax
The necessary parameter changes can be combined in a script and run during system startup: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: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
In addition the following lines can be added to the /etc/security/limits.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
Adding lines into these files requires a reboot before they take effect.oracle soft nofile 65536 oracle hard nofile 65536 oracle soft nproc 16384 oracle hard nproc 16384
Setup
Install the binutils RPM:Install KSH support:rpm -Uvh --force binutils-2.11.90.0.8-13.i386.rpm
Create the following symbolic links:rpm -Uvh --force pdksh-5.2.14-13.i386.rpm
Create the new groups and users: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 directories in which the Oracle software will be installed:groupadd oinstall groupadd dba groupadd oper useradd -g oinstall -G dba -s /bin/ksh oracle passwd oracle
Login as root and issue the following command:mkdir -p /u01/app/oracle/product/903_j2ee chown -R oracle.oinstall /u01
Login as the oracle user and add the following lines at the end of the .profile file:xhost +<machine-name>
# 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:Start the Oracle Universal Installer (OUI) by issuing the following command in the Disk1 directory:DISPLAY=<machine-name>:0.0; export DISPLAY
During the installation enter the appropriate ORACLE_HOME and name then continue with the installation../runInstaller
Post Installation
Once the installation is complete you should revert to the original version of binutils on the RedHat Advanced Server 2.1 CD2:Any subsequent relinks will generate errors. To prevent this remove the "-z defs" option from any makefiles which use it.rpm -Uvh --force binutils-2.11.90.0.8-12.i386.rpm
With the installation complete you can perform any administration tasks using Enterprise Manager:
- Connect to the Enterprise Manager Website (http://<fully-qualified-machine-name>:1810) using the username "ias_admin" and the password you assigned during the installation. If EM is not available start it with the "emctl start" command.
- Stop enterprise manager by issuing the "emctl stop" command.
For more information see:
Hope this helps. Regards Tim...
Back to the Top.
