Preparing RedHat Enterprise Linux 5 for Oracle Database Software

Check if the Secure Linux feature is disabled (SELINUX=disabled):

$ cat /etc/selinux/config

Set up the environment to install Oracle:

$ su -
# yum -y install libXp
# yum -y install compat-libstdc++-33

Insert CD 1 of RHEL 5 (or mount the .iso)

# cd /media/RHEL-5.6\ i386\ Disc\ 1/Server/
# rpm -Uvh setarch-2*
# rpm -Uvh make-3*
# rpm -Uvh glibc-2*
# rpm -Uvh libaio-0*
# cd /
# eject

Insert CD 2

# cd /media/RHEL-5.6\ i386\ Disc\ 2/Server/
# rpm -Uvh compat-libstdc++-33-3*
# rpm -Uvh compat-gcc-34-3*
# rpm -Uvh compat-gcc-34-c++-3*
# rpm -Uvh gcc-4*
# cd /
# eject

Insert CD 3

# cd /media/RHEL-5.6\ i386\ Disc\ 3/Server/
# rpm -Uvh openmotif-2*
# rpm -Uvh compat-db-4*
# cd /
# eject
# vi /etc/security/limits.conf

* soft nproc 2047
* hard nproc 16384
* soft nofile 1024
* hard nofile 65536

# vi /etc/pam.d/login

session required pam_limits.so

# vi /etc/sysctl.conf

#kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
# semaphores: semmsl, semmns, semopm, semmni
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

Update Kernel parameters:

# /sbin/sysctl -p

Create the groups and users:

# groupadd oinstall
# groupadd dba
# groupadd oper
# useradd -g oinstall -G dba oracle
# passwd oracle

Create the directories to install oracle:

# mkdir -p /u01/app/oracle/product/10.2.0/db_1
# chown -R oracle.oinstall /u01
# vi /etc/redhat-release

(replace the existing value for the below):

redhat-4

# vi /etc/sysconfig/network-scripts/ifcfg-eth0

BOOTPROTO=static
IPADDR=your.static.ip.address

# vi /etc/hosts

your.static.ip.address complete.machine.name machine_name

Disable access control on X manager:

# xhost +

Login as Oracle and add the below text to file .bash_profile

$ su -
# vi /home/oracle/.bashrc

# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME
ORACLE_SID=TSH1; export ORACLE_SID
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; 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
if [ $USER = “oracle” ]; then
if [ $SHELL = “/bin/ksh” ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi

Start the installation of Oracle Database 10g R2:

Reboot the system, so all configurations will be updated.

Unzip the file containing oracle software

# unzip 10201_database_linux.zip > log.txt
# exit

Check the log.txt file for errors, if no errors were found you can go ahead (logged as oracle)

$ cd database
$ ./runInstaller
Advertisements

About Bruno Carvalho

Coffee addicted tech guy.
This entry was posted in Linux and tagged , , , , , , , . Bookmark the permalink.

5 Responses to Preparing RedHat Enterprise Linux 5 for Oracle Database Software

  1. Pingback: Video – Preparing RedHat Enterprise Linux 5 for Oracle Database Software « SAP and Database administration

  2. ludriff says:

    thanks a lot )) very helpful post …

  3. neeshu says:

    I am getting an error saying

    error reading from file ” glibc-2.5-24.i686.rpm” what should I do where should I download this file from

    • dbabasis says:

      Hello neeshu, in which part of installation are you getting this error message? During the installation of oracle or the configuration of the O.S? Please copy/paste the end of the install action logs and I’ll take a look =)

  4. shahnawaj says:

    Hi,
    I am enable to install oracle developer suite on red hat5 .
    please tell me step to installation.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s