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
1 | Page
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
2 | Page
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
3 | Page
cd /etc/profile.d
cat oracle.sh
4 | Page
cp /etc/selinux/config /etc/selinux/config.bk
cat /etc/selinux/config
5 | Page
df –h
df -h /u01
useradd -u 601 -g dba -G dba -d /home/oracle -s /bin/bash -c "Oracle RDBMS Software Owner" oracle
passwd oracle
oracle123
id 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
6 | Page
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
Output:
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
7 | Page
----------------------------------------------------------------------------
su - oracle
id
cat .bash_profile
8 | Page
exit
reboot
reboot
[oracle@oradb-server ~]#hostname
oradb-server
9 | Page
[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
Follow Less02_Installation.pdf
10 | Page