Installing Oracle 11gR2 On RHEL6 In 4
(Long) Steps
Installing Oracle 11gR2 On RHEL6 In 4
(Long) Steps
April 30, 2011
|Posted in:
Oracle
,
Posts
,
RHEL6
18 Comments
Home
»
Blog
»
Oracle
» Installing Oracle 11gR2 On RHEL6 In 4 (Long) Steps


My database development activities center around Oracle 11g and I recently installed the
11.2.0.1.0 x86_64 on a RHEL6 server. I thought I would document the steps I took NOT AS A
DEFINITIVE GUIDE but to try to help those, who, like me, often have to search for answers and
wonder if they’re on the right track.
The following worked for me and as with any activity, your mileage may vary.
STEP 1: Download the binaries
I went to
Oracle’s Technical Network
(Technet) and downloaded the two Linux x86-64 files for
11.2.0.1.0.

I moved these to my backup drive (/bkup) and unzipped them with:
unzip linux.x64_11gR2_database_1of2.zip
unzip linux.x64_11gR2_database_2of2.zip
This provided me with a single directory containing the 11gR2 binaries at /bkup/database
STEP 2: Prerequisites
There are many prerequisites to installing Oracle 11gR2 and the following are the steps I took.
Update /etc/sysctl.conf
vi /etc/sysctl.conf
Scroll to the bottom and add the following:
# ###########################
# ORACLE PARMS
# ###########################
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
Scroll to the bottom and above the “# End of file” line, add:
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
Add users and groups
The following needed to be added:
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
Oracle has a particular structure they like to use and I have mine. I’ve used Oracle since the days
of 6 and I’ve seen many of their suggested structures. I have one that works for my needs.
mkdir /opt/oracle
mkdir /u01

chown -R oracle:oinstall /u01
chmod -R 775 /u01
chown -R oracle:oinstall /opt/oracle
chmod -R 775 /opt/oracle
Switch to the bkup directory and setup the permissions there:
cd /bkup
chown -R oracle:oinstall database
chmod -R 775 database
Set up the oracle user environment
su oracle
vi /home/oracle/.bash_profile
Add the following (use hostname from the command line to get your hostname and use the
correct paths for your install):
export TMP=/tmp
export TMPDIR=$TMP
export ORACLE_HOSTNAME=local_host /bkup***********
export ORACLE_UNQNAME=oracle-test
export ORACLE_BASE=/opt/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1
export ORACLE_SID=oracle1
export PATH=/usr/sbin:$ORACLE_HOME/bin:$PATH


You've reached the end of your free preview.
Want to read all 33 pages?
- Winter '15
- Zaki
- Oracle Corporation