Step By Step Guide to Oracle
11g R2 Database Installation on RHEL 5
1.
Download the Oracle
11g R2 from the below Link.
2.
Open Terminal
Window
3.
Login as SuperUser
using ‘su’ command.
- Make Network Configuration
Check you
hostname and IP is on /etc/hosts
Get your
hostname: hostname
Get your
IP:
/sbin/ifconfig |
You will Find your Ip under the Output “lo” Section.
Check if Hostname and IP are already inserted into the Enabled
Hosts File.
cat /etc/hosts |
If It’s Not Present then Insert it!
nano /etc/hosts |
Insert:
Example: ’127.0.0.1 localhost.localdomain localhost’
Ctrl+x to Save and Exit from nano Editor :)
Add you Host IP to the List of Hosts Granted of Connection with the X Server
xhost +<b><yourip></yourip></b> |
Example: #xhost +127.0.0.1
5. If
You Do Not Dispose of RHEL Subscription
How-to Setup YUM
- Install
dependencies
- Add Groups and User
groupadd -g 502
oinstall
|
groupadd -g 503 dba
|
groupadd -g 504 oper
|
groupadd -g 505
asmadmin
|
useradd -u 502 -g oinstall -G
dba,asmadmin,oper -s /bin/bash -m oracle
|
|
passwd oracle
|
- Create the directories where
Oracle will be installed and give right ownership and permission
mkdir -p
/u01/app/oracle/product/11.2.0/dbhome_1
|
chown -R oracle:oinstall /u01
|
chmod -R 775 /u01
|
- Set Kernel’s Parameters
nano /etc/sysctl.conf
|
- Add or amend the
following lines in the /etc/sysctl.conf file.
- ####
Oracle 11g Kernel Parameters ####
fs.suid_dumpable = 1
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
# semaphores: semmsl, semmns, semopm, semmni
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default=4194304
net.core.rmem_max=4194304
net.core.wmem_default=262144
net.core.wmem_max=1048586 - Comment
out these lines below than give an error
- #net.bridge.bridge-nf-call-ip6tables
= 0
#net.bridge.bridge-nf-call-iptables = 0
#net.bridge.bridge-nf-call-arptables = 0
nano
/etc/security/limits.conf
|
- Add the
following lines to the /etc/security/limits.conf file.
- #### oracle User Settings 4 Oracle
11g ####
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 10240
nano /etc/selinux/config
|
- Disable
Secure Linux by editing the /etc/selinux/config file, making
sure the SELINUX flag is set as follows.
SELINUX=disabled<br>
|
- Run
the following command to Load the New Kernel Parameters.
/sbin/sysctl -p
|
- Unzip the Oracle
11g Database, Set oracle as Owner and Move it into the
oracle’s Home
cd </path/2>
|
unzip linux_11gR2_database_1of2.zip
|
unzip linux_11gR2_database_2of2.zip
|
chown -R oracle:oinstall database
|
mv database
/home/oracle
|
- Add Paths to oracle’s .bashrc
Login as Oracle
su oracle
|
- Edit .bashrc file
nano /home/oracle/.bashrc
|
- Insert:
- # Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR - ORACLE_HOSTNAME=myHOSTNAME;
export ORACLE_HOSTNAME
ORACLE_UNQNAME=DB11G; export ORACLE_UNQNAME
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1; export ORACLE_HOME
ORACLE_SID=dbSID; export ORACLE_SID - PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH - LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib;
export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH - Substitute HOSTNAME and DBSID with the
Values you Will Use During Software Installation
In this Example Respectively: - HOSTNAME = 127.0.0.1
- DBSID = SID
Load New .bashrc Settings
source ~/.bashrc
|
Latest and Optional to Add Cross-Shell
Compatibility edit also oracle’s .bash_profile
nano ~/.bash_profile
|
Add as Latest Entry the Line
source ~/.bashrc
|
- Install the Oracle 11g Software
cd /home/oracle/database
|
./runInstaller
|
On
the first screen If you Do Not Dispose of an Oracle Subscription Just Leave
Blank eMail and Un-Check the Demand of Security Update Support then Click on Next
Click Next..
- Give
“Global Database name” – ORCL
- Set Administrative Password – Admin123
- Confirm Password – Admin123,
- If Prerequisite
check is failed then check ignore All box and Click Next.
Click Finish button to
start the installation
Click on Password Management and Unlock the
Schema and Provide Passwords.
Later Click Ok
Now run the scripts shown in image in
terminal as a ROOT user for oracle privileges.
No comments:
Post a Comment