Installing Oracle 11gR2 On RHEL6
During my practies on Oracle i decided to install Oracle 11gR2 On OEL 6.4,So follow steps and enjoy it :)
The first Step is Download the zip of Linux on oracle site
Oracle’s Technical Network and downloaded the two Linux x86-64 files for 11.2.0.1.0.unzip linux.x64_11gR2_database_1of2.zip
unzip linux.x64_11gR2_database_2of2.zip
The second Step Prerequisites
Update /etc/sysctl.conf
Open sysctl with command "vi" and scroll to the bottom write the necessaries
vi /etc/sysctl.conf
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.core.rmem_default = 4194304
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.ipv4.ip_local_port_range = 9000 65500
fs.file-max = 6815744
net.core.wmem_max = 1048576
fs.aio-max-nr = 1048576
Update /etc/security//limits.conf
vi /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
Add users and groups
On Oracle-base you can see some others group whichs are for grid control
groupadd -g 501 oinstall
groupadd -g 502 dba
groupadd -g 503 oper
useradd -u 502 -g oinstall -G dba,oper oracle -p oracle
Create directories and grant permissions
I used my oow directories however you can follow differnts or set like oracle doc.
mkdir /app/oracle
mkdir /u01
chown -R oracle:oinstall /u01
chmod -R 775 /u01
chown -R oracle:oinstall /app/oracle
chmod -R 775 /app/oracle
Switch to the bkup directorywhich is i create before and setup the permissions there: which is i create before
cd /bkup
chown -R oracle:oinstall database
chmod -R 775 database
Set up the oracle user environment
su oracle
vi /home/oracle/.bash_profile
export TMP=/tmp
export TMPDIR=$TMP
export ORACLE_HOSTNAME=************
export ORACLE_UNQNAME=********
export ORACLE_BASE=/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1
export ORACLE_SID=********
export PATH=/usr/sbin:$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/usr/lib64
export CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
AND VERIFY BASH PROFILE WITH FOLLOWING COMMAND
. .bash_profile
Verify and/or install specific dependencies
Oracle has a list of dependencies which have to be verified. yum are noted with (*):binutils-2.17.50.0.6
compat-libstdc++-33-3.2.3 (*)
compat-libstdc++-33.3.2.3 (32 bit) (*)
elfutils-libelf-0.125
elfutils-libelf-devel-0.125 (*)
gcc-4.1.2
gcc-c++-4.1.2 (*)
glibc-2.5-24
glibc-2.5-24 (32 bit)
glibc-common-2.5
glibc-devel-2.5
glibc-devel-2.5 (32 bit)
glibc-headers-2.5
ksh-20060214 (*)
libaio-0.3.106
libaio-0.3.106 (32 bit) (*)
libaio-devel-0.3.106
libaio-devel-0.3.106 (32 bit) (*)
libgcc-4.1.2
libgcc-4.1.2 (32 bit)
libgomp-4.1.2
libstdc++-4.1.2
libstdc++-4.1.2 (32 bit)
libstdc++-devel-4.1.2
make-3.81
numactl-devel-0.9.8.i386 (*)
sysstat-7.0.2 (*)
Then proceded with the other dependencies:
yum install unixODBC.x86_64
yum install unixODBC-devel.x86_64
yum install unixODBC.i686
yum install unixODBC-devel.i686
Create a recovery area for backups
I create a recovery area (see the screen shots below) on my backup drive with the following:cd /bkup
mkdir -p oracle/recovery_area
chown -R oracle:oinstall oracle
The third Step is insall oracle
cd /bkup/database
./runInstaller
The following are screen shots of all the steps I’ve taken with the graphical installer:
If you wanna to take support from Oracle you have to give your mail address which is you already registered on Oracle Support site.
This is where I choose the UTF8
character set