Installation of Oracle 10g on Redhat 5

This entry was posted in Unix and tagged on June 17, 2012, by

Following are the steps for Installation of Oracle 10g on Redhat 5

  • Pre-Installation Tasks
  • Download and Install
  • Post Installation Tasks

Pre-Installation Tasks

1. Create a Oracle user Account. Login as root and create user. That user should belong to dba group

# su – root

# groupadd dba

# useradd -g dba oracle

2. Set the system parameters .

* Edit /etc/sysctl.conf file and edit the following parameters

# vi /etc/sysctl.conf

kernel.shmall = 2097152
kernel.shmmax = 2147483648
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

save and quit

Update the settings

# sysctl -p

# more /etc/sysctl.conf

You will see the file has been updated with the above parameters.

Edit /etc/pam.d/login and /etc/security/limits.conf file

# vi /etc/pam.d/login

session required pam_limits.so

Save and quit.

# vi /etc/security/limits.conf

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

Save and quit.

3. Create oracle directories.

# mkdir /opt/oracle

# mkdir /opt/oracle/102

# chown -R oracle:dba /opt/oracle

4. Set the oracle enviornment.

# vi /home/oracle/.bash_profile

ORACLE_BASE=/opt/oracle
ORACLE_HOME=$ORACLE_BASE/102
ORACLE_SID=ORCL
LD_LIBRARY_PATH=$ORACLE_HOME/lib
PATH=$PATH:$ORACLE_HOME/bin

export ORACLE_BASE ORACLE_HOME ORACLE_SID LD_LIBRARY_PATH PATH

Save and quit

Execute the following command to load enviornment

# cd /home/oracle

# . .bash_profile

Download and install

* Install the required packages

binutils
compat-gcc
compat-gcc-c++
compat-libstdc++
compat-libstdc++-devel
cpp
gcc
gcc-c
glibc
glibc-common
glibc-devel
glibc-headers
glibc-kernheaders
libstdc++
libstdc++-devel
libaio
libai-devel
pdksh
setarch
sysstat

libXp

 

Look for the above packages , if not install install it.

Next step to download the orcle software. If you already have cd of oracle software , install with it. If not, download from oracle website.The software will be in zip format.

su – oracle

# unzip oracle_databse _software

Also edit the file database/install/oraparam.init file in the installation directory. Add redhat-5 in Certified Versions.

# cd database

# ./runInstaller

Continue with the installation. If some error it will prompt you.

Post Installation

1. Set the display

# su – root

# export DISPLAY=:0.0

# xhost +

Leave a Reply

Your email address will not be published. Required fields are marked *

Copyright 2017 ©Aceadmins. All rights reserved.