Home
 | 
Articles
 | 
Installation
 | 
11g Installation
 | 
Oracle Database Server 11g R2
             installation(CentOS 6.0 x64)
Overview
Recent Article
All Archives
Topics
Comments 
Last modified: September 2010
This articles describes the step-by-step installation procedure of Oracle 11g Release 2 on CentOS 6.0 (x64) operating system.
Oracle Software dump
Download these files from Oracle site and unzip.
linux.x64_11gR2_database_1of2.zip
linux.x64_11gR2_database_1of2.zip
$
unzip linux.x64_11gR2_database_1of2.zip
unzip linux.x64_11gR2_database_2of2.zip
Install the dependent package(s)
$
yum -y install glibc glibc-common glibc-devel gcc gcc-c++ libaio libaio-devel libgcc libstdc++ libstdc++-devel make binutils compat-libstdc++-33 \
       elfutils-libelf elfutils-libelf-devel sysstat unixODBC unixODBC-devel
Configuring the host
Modify '/etc/hosts' and must contain a fully-qualified name of the host server.
192.168.1.3 centos.shannura.local centos
Setting kernel parameters: ( /etc/sysctl.conf )
Comment these entries:
#net.bridge.bridge-nf-call-ip6tables = 0
#net.bridge.bridge-nf-call-iptables = 0
#net.bridge.bridge-nf-call-arptables = 0
Add these entries:
net.ipv4.ip_local_port_range = 9000 65500
fs.file-max = 6815744
kernel.shmall = 10523004
kernel.shmmax = 6465333657
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.core.rmem_default=262144
net.core.wmem_default=262144
net.core.rmem_max=4194304
net.core.wmem_max=1048576
fs.aio-max-nr = 1048576
Make the changes as permanent using:
$
/sbin/sysctl -p
Add the following lines to '/etc/security/limits.conf' file.
oracle     soft     nproc      2047
oracle     hard     nproc      16384
oracle     soft     nofile     4096
oracle     hard     nofile     65536
After this line in '/etc/pam.d/login'
session      required        pam_namespace.so

Add this:
session      required        pam_limits.so
Adding groups (oinstall / dba) and user (oracle)
$
groupadd -g 200 oinstall
groupadd -g 201 dba
useradd -u 440 -g oinstall -G dba -d /home/oracle oracle
Creating directory structure
Create the directories in which the Oracle software will be installed.
$
mkdir -p /opt/app/oracle/product/11.2.0/db_1
chown -R oracle:oinstall opt/
chmod -R 775 /opt/app/oracle
Oracle environment settings
Login as 'oracle' user and add the following lines at the end of '~/.bash_profile'
umask 022
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_BASE=/opt/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1; export ORACLE_HOME
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

if [ $USER = "oracle" ]; then
   if [ $SHELL = "/bin/ksh" ]; then
      ulimit -u 16384
      ulimit -n 65536
   else
      ulimit -u 16384 -n 65536
   fi
fi
Starting installation
Move to the location where 11g software is unzipped:
cd /software/oracle/11g/database/
$
./runInstaller
NOTE: Some packages can usually be ignored since OUI does not recognize these newer packages. So, they can be ignored:
libaio-0.3.105 (i386)
compat-libstdc++-33-3.2.3 (i386)
libaio-devel-0.3.105 (i386)
libgcc-3.4.6 (i386)
libstdc++-3.4.6 (i386)
unixODBC-2.2.11 (i386)
unixODBC-devel-2.2.11 (i386)
pdksh-5.2.14
Please write your comment if this article was useful.

Shannura

/