Oracle Database 11g Release 2 (11.2) Installation On RedhatLinux 6
--------------------------------------------------------------While Installation RHEL6 make sure Swap memory will be 4GB minimum, along with /u01 partition 15GB minimum space.
Unzip the files.
# 11.2.0.1
unzip linux.x64_11gR2_database_1of2.zip
unzip linux.x64_11gR2_database_2of2.zip
You should now have a single directory called "database" containing installation files.
Hosts File
The "/etc/hosts" file must contain a fully qualified name for the server.
<IP-address> <fully-qualified-machine-name> <machine-name>
For example.
127.0.0.1 localhost.localdomain localhost
192.168.0.181 desktop2.example.com desktop2
Add or amend the following lines in the "/etc/sysctl.conf" file.
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
Run the following command to change the current kernel parameters.
/sbin/sysctl -p
Configure your /etc/yum.repos.d/rhel.repo
[redhat]
name=rhel6.5
baseurl=http://192.168.0.254/rhel-6-64
enabled=1
gpgcheck=0
Save the file.
# yum clean all
# yum list all
Install these Packages:
# yum install binutils* compat-libcap* compat-libstdc++-33* compat-libstdc++-33* gcc* gcc-c++* glibc* glibc* glibc-devel* libaio* libaio-devel* libgcc* libstdc++* libstdc++-devel* libXext* libXtst* openmotif* openmotif22* sysstat* ksh* java* numactl-devel-2*x86_64* make-3.81*x86_64* elfutils-libelf-0*x86_64* elfutils-libelf-devel-0*x86_64* -y
Add the following lines to the "/etc/security/limits.conf" file.
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 4096
oracle hard nofile 65536
oracle soft stack 10240
Add the following line to the "/etc/pam.d/login" file, if it does not already exist.
session required pam_limits.so
Amend the "/etc/security/limits.d/90-nproc.conf" file as described below.
# Change this
* soft nproc 1024
# To this
* - nproc 16384
Set secure Linux to permissive by editing the "/etc/selinux/config" file, making sure the SELINUX flag is set as follows.
SELINUX=permissive
Once the change is complete, restart the system.
Create the new groups and users.
groupadd -g 501 oinstall
groupadd -g 502 dba
groupadd -g 503 oper
useradd -u 502 -g oinstall -G dba,oper oracle
passwd oracle
Create the directories in which the Oracle software will be installed.
mkdir -p /u01/app/oracle/product/11.2.0/db_1
chown -R oracle:oinstall /u01
chmod -R 775 /u01
Login as the oracle user and add the following lines at the end of the ".bash_profile" file.
-- Let's see which shell is being used by the user Oracle.
$ echo $SHELL
/bin/bash
Add the following lines at the end of the ".bash_profile" file.
# vim ~/.bash_profile
#ORACLE SETTING
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_HOSTNAME=desktop2.example.com; export ORACLE_HOSTNAME
ORACLE_UNQNAME=orcl; export ORACLE_UNQNAME
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1; export ORACLE_HOME
ORACLE_SID=orcl; export ORACLE_SID
ORACLE_TERM=xterm; export ORACLE_TERM
LD_LIBRARY_PATH=$ORACLE_HOME/jdk/jre/i386:$ORACLE_HOME/jdk/jre/lib/i386/server:$ORACLE_HOME/rdbms/lib:$ORACLE_HOME/lib:$LD_LIBRARY_PATH;
export LD_LIBRARY_PATH
PATH=$PATH:$HOME/bin; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH
export username
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
umask 022
Save the file.
Now run the following command to make these changes effective in the current session of user oracle.
-- for bash shell
$ source ~/.bash_profile
Login as root and issue the following command.
# xhost +<machine-name>
Flush the Iptables
# iptables -F
Start the Oracle Universal Installer (OUI) by issuing the following command in the database directory.
$ cd Desktop/database/
$ ./runInstaller
No comments:
Post a Comment