0% found this document useful (0 votes)
170 views

Steps To Configure Linux For Oracle 9i Installation: 1. Change Kernel Parameters

The document outlines 8 steps to configure a Linux system for installing Oracle 9i: 1. Change kernel parameters and file limits to optimize the system for Oracle. 2. Create a dedicated oraoinstall group and oracle user for installation. 3. Set up the Oracle software directory structure and assign permissions. 4. Install prerequisite packages needed for dependencies. 5. Configure the environment and login profile for the oracle user. 6. Resolve any Java compatibility issues on Red Hat Enterprise Linux 5. 7. Copy the Oracle software and start the installation process.

Uploaded by

ruhelanik
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
170 views

Steps To Configure Linux For Oracle 9i Installation: 1. Change Kernel Parameters

The document outlines 8 steps to configure a Linux system for installing Oracle 9i: 1. Change kernel parameters and file limits to optimize the system for Oracle. 2. Create a dedicated oraoinstall group and oracle user for installation. 3. Set up the Oracle software directory structure and assign permissions. 4. Install prerequisite packages needed for dependencies. 5. Configure the environment and login profile for the oracle user. 6. Resolve any Java compatibility issues on Red Hat Enterprise Linux 5. 7. Copy the Oracle software and start the installation process.

Uploaded by

ruhelanik
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 5

Steps To Configure Linux For Oracle 9i Installation

1. Change Kernel Parameters:

This can be done by the following command


# vi /etc/sysctl.conf
Now when the file opens, insert into the file the following lines,

kernel.shmmax = 2147483648
kernel.shmall = 2097152
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_default = 262144
net.core.wmem_max = 262144

and save and quit by :wq

Now, we run the file to check for errors..

# sysctl –p
If it runs successfully then there are no errors in the file.

2. Set file and process limits :

This is done by editing the file ‘limts.conf’ which is present in the memory,
hence need not be checked for errors in editing.
The command used is
# vi /etc/security/limits.conf

Add the following lines at the end of the file:

oracle soft nofile 65536


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

3. Create Group and User for Oracle Installation:

With this step, we create a group and user to install oracle software with
sufficient privileges.

# groupadd oinstall
#groupadd dba
#groupadd oper
#useradd oracle –g oinstall –G dba,oper –password oracle

4. Create Directory Structure for Oracle Installation :

In this step, we create the required directory structure for Oracle installation
following the OFA standard. Here, we also assign the ownerships and rights to
‘Oracle’ user.

# mkdir –p /u01/app/oracle/product/9.2.0/db1
# chown –R oracle.oinstall /u01
#chmod –R 755 /u01
5. Installation of required packages to resolve dependencies :

This step guides us through installation of various redhat packages to resolve


dependencies. To install these packages, mount the Redhat Disc to CD/DVD
Drive and follow the steps given below:

# cd /media/RHEL_5\ i386\ DVD/Server/


# rpm -ivh compat-db-4.2.52-5.1.i386.rpm
compat-gcc-34-3.4.6-4.i386.rpm
compat-gcc-34-c++-3.4.6-4.i386.rpm
compat-libstdc++-296-2.96-138.i386.rpm
compat-libstdc++-33-3.2.3-61.i386.rpm
compat-glibc-headers-2.3.4-2.26.i386.rpm
openmotif22-2.2.3-18.i386.rpm
openmotif-2.3.0-0.3.el5.i386.rpm
openmotif-devel-2.3.0-0.3.el5.i386.rpm
libXp-1.0.0-8.i386.rpm
libXp-devel-1.0.0-8.i386.rpm
libaio-0.3.106-3.2.i386.rpm
libaio-devel-0.3.106-3.2.i386.rpm

 Additional steps for RHEL_5


Mount the ISO image containing

 j2re-1_3_1_19-linux-i586.bin
 compat-libcwait-2.1-1.i386.rpm
 compat-oracle-rhel4-1.0-5.i386.rpm
 profile.txt

to the CD/DVD Drive

Now copy the file ‘j2re-1_3_1_19-linux-i586.bin’ to the folder ‘/usr/local’ using

#cp /media/NAME OF IMAGE FILE/ j2re-1_3_1_19-linux-i586.bin /usr/local


#cd /usr/local
#chmod +x j2re-1_3_1_19-linux-i586.bin
# ./ j2re-1_3_1_19-linux-i586.bin
#cd
#cd /media/NAME OF IMAGE FILE
#rpm –uvh compat-libcwait-2.1-1.i386.rpm –nodeps
#rpm –uvh compat-oracle-rhel4-1.0-5.i386.rpm –nodeps
#cd
#cd /usr/lib
# ln –s libstdc++-3-libc6.2-2-2.10.0.so libstdc++-libc6.1-1.so.2
# ln –s libgdbm.so.2.0.0 libdb.so.2
#cd /usr/bin
# ln –s gcc34 gcc32

6. Creating Login Profile for Oracle User :

Copy the file ‘profile.txt’ which has changes to be made to the file
‘.bash_profile’, to the folder ‘/home/oracle’.

Now perform the following operations

#cd /home/oracle
# chown root .bash_profile
#cat profile.txt >> .bash_profile
# dos2unix .bash_profile
#chown oracle .bash_profile

7. Resolving Java compatibility Issues

Follow the following steps to resolve java compatibility issues


#cd $ORACLE_HOME
#rm JRE
# ln -s /U01/app/oracle/jre/1.3.1 JRE
#cd JRE/
#cd bin/
#ln –s java jre
#cd i386/
#cd native_threads/
#ln –s java jre

8. Copying Oracle setup and starting the installer.

Now, mount the image of Oracle9i on the CD/DVD Drive. Make a folder as
‘/data’ and copy the files from Oracle9i disc in that folder.
#mkdir /data
# cp /media/20090202_1505/ship_9204_linux_disk1.cpio.gz /data
# cp /media/20090202_1505/ship_9204_linux_disk2.cpio.gz /data
# cp /media/20090202_1505/ship_9204_linux_disk3.cpio.gz /data
#cd /data
#gunzip ship_9204_linux_disk1.cpio.gz
#gunzip ship_9204_linux_disk2.cpio.gz
#gunzip ship_9204_linux_disk3.cpio.gz
#cpio –idmv ship_9204_linux_disk1.cpio
#cpio –idmv ship_9204_linux_disk2.cpio
#cpio –idmv ship_9204_linux_disk3.cpio
#cd Disk1/install/linux/
Here, we edit the location of Java package in the file ‘oraparam.ini’ as
‘JRE_LOCATION=/usr/local/jre1.3.1_19’ using the ‘vi’ command.
# vi oraparam.ini

Now we are ready to install Oracle9i on RHEL_5

#cd /data/Disk1
#./runInstaller

You might also like