Oracle DB Pre-Requests and Installation Steps on RHEL5
Oracle DB Pre-Requests and Installation Steps on RHEL5
This Document describes the tasks that you must complete before you start Oracle
Universal Installer (OUI).
This guide contains information required to install Oracle Database 11g Release 2
(11.2) on RHEL5 - for training purpose.
Ensure the compatibility between Oracle Database Software version and release
with OS version, release, and CPU architecture.
<-- Run all below steps by root account with password root123 -->
Network Setup:
--------------
Configure Hostname and IP Address for the machine:
free -m
grep MemTotal /proc/meminfo
grep SwapTotal /proc/meminfo
Check TEMP:
-----------
Ensure that you have at least 1GB of space in /tmp.
df -h /tmp
uname -rm
cp /etc/sysctl.conf /etc/sysctl.conf.bk
cat /etc/sysctl.conf
Security limits:
----------------
cp /etc/security/limits.conf /etc/security/limits.conf.bk
cat /etc/security/limits.conf
cp /etc/pam.d/login /etc/pam.d/login.bk
cat /etc/pam.d/login
As the root account, create a shell script labeled oracle.sh within /etc/profile.d/
to create the appropriate ulimits for the oracle user.
cd /etc/profile.d
cat oracle.sh
cat /etc/selinux/config
df -h
df -h /u01
passwd oracle
oracle123
id oracle
cat /etc/passwd | grep oracle
Create Directories:
-------------------
mkdir -p /u01/app/oracle
ls -l /u01
ls -l /u01/app
mkdir -p /u01/app/oracle/product/11.2.0/dbhome_1
ls -l /u01/app/oracle
ls -l /u01/app/oracle/product
ls -l /u01/app/oracle/product/11.2.0
Make sure the Oracle Database 11g (database software are staged in the following
directories):
-----------------------------------------------------------------------------------
-----------
cd /stage/11.2.0/
ls -l
-rwxr-xr-x 1 root root 1285396902 Jan 27 2014 linux_11gR2_database_1of2.zip
-rwxr-xr-x 1 root root 995359177 Jan 27 2014 linux_11gR2_database_2of2.zip
unzip -o linux_11gR2_database_1of2.zip
unzip -o linux_11gR2_database_2of2.zip
ls -l
drwxr-xr-x 8 root root 4096 Aug 18 2009 database
-rwxr-xr-x 1 root root 1285396902 Jan 27 2014 linux_11gR2_database_1of2.zip
-rwxr-xr-x 1 root root 995359177 Jan 27 2014 linux_11gR2_database_2of2.zip
Switch to oracle OS user's, setup & set the environment variables in the
initialization file (for this example we are using bash shell (.bash_profile)):
-----------------------------------------------------------------------------------
---------------------------------------------------------------------
su - oracle
id
cat .bash_profile
[oracle@oradb-server ~]#hostname
oradb-server
##############################################################
# Oracle Database Software 11gR2 Installation Steps on RHEL5 #
##############################################################
[oracle@oradb-server database]$ ls -l
total 40
drwxr-xr-x 12 root root 4096 Aug 17 2009 doc
drwxr-xr-x 4 root root 4096 Aug 14 2009 install
drwxrwxr-x 2 root root 4096 Aug 14 2009 response
drwxr-xr-x 2 root root 4096 Aug 14 2009 rpm
-rwxr-xr-x 1 root root 4352 Aug 14 2009 runInstaller
drwxrwxr-x 2 root root 4096 Aug 14 2009 sshsetup
drwxr-xr-x 14 root root 4096 Aug 14 2009 stage
-rw-r--r-- 1 root root 5400 Aug 17 2009 welcome.html
[oracle@oradb-server database]$ ./runInstaller