Professional Documents
Culture Documents
EL 5 & Centos 5
Installation of Oracle 11g Release 2 (11.2.0.1.0) on RedHat EL 5, (Oracle)
Enteprise Linux 5 and Centos 5
Pre-Installation Tasks
Post-Installation Tasks
Pre-Instalation Tasks
1. Create oracle User Account
Login as root and create te user oracle which belongs to oinstall,dba,asmdba and
asmadmin groups.
su # groupadd dba
# groupadd oinstall
# groupadd asmdba
# groupadd asmadmin
# useradd -g oinstall -G dba,asmdba,asmadmin oracle
Note: "#" sign means that you need execute this command as root user.
You can separate ASM and DBA roles between more users. You can create for example
"asm" user as ASM administrator.
2. Setting System parameters
Edit the /etc/sysctl.confand add following lines:
# vi /etc/sysctl.conf
kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 6815744
fs.aio-max-nr = 1048576
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
Note: You need reboot system or execute "sysctl -p" command to apply above settings.
/sbin/sysctl -p
oracle
oracle
oracle
oracle
Save the .bash_profileand execute following commands for load new enviroment:
cd /home/oracle
. .bash_profile
To prevent Enforcing mode restore after next reboots or to disable SELinux modify the
/etc/sysconfig/selinux change value of SELINUX variable to permissive or disabled:
SELINUX=permissive
If some package is not installed then install it from installation media or download it from
following locations:
RedHat Enterprise Linux 5- source packages only
CentOS Linux 5i386
CentOS Linux 5x86_64
This is example how to build RPM package from source package (libaio-0.3.1052.src.rpm). Note gcc, make and rpm-build (and dependent) packages must be already
installed on your system.
# rpm -ivh libaio-0.3.105-2.src.rpm
# cd /usr/src/redhat/SPECS/
# rpmbuild -bb --target i386 libaio.spec
# cd ../RPMS/i386/
# rpm -ivh libaio-0.3.105-2.i386.rpm libaio-devel-0.3.105-2.i386.rpm
2. Download the Oracle 11g release 2 (11.2.0.1.0) software from Oracle website.
Extract the files using following command:
For Grid (CRS)software installation:
unzip linux.x64_11gR2_grid.zip
cd grid
./runInstaller
cd database
./runInstaller
Post-Instalation Tasks
1. (Optional) Auto Startup and Shutdown of Database and Listener
Login as root and modify /etc/oratab file and change last character to Y for apropriate
database.
ORCL:/u01/app/oracle/product/11.2.0/db_1:Y
As root user create new file "oracle" (init script for startup and shutdown the database) in
/etc/init.d/ directory with following content:
#!/bin/bash
#
Execute (as root) following commands (First script change the permissions, second script
is configuring execution for specific runlevels):
chmod 750 /etc/init.d/oracle
chkconfig --add oracle --level 0356
Execute (as root) following commands (First script change the permissions, second script
is configuring execution for specific runlevels):
chmod 750 /etc/init.d/oraemctl
chkconfig --add oraemctl --level 0356
3. (Optional) You may consider to use rlwrap for comfortable work with sqlplus,
rman and adrci utility. RPM package for RedHat compatible distribution you can
download it here:
For Redhat 32 bit (i386)
For Redhat 32 bit (x86_64)
Install downloaded packages: