11g Install Onrhel5.3
-
Upload
shafeeq1985gmail -
Category
Documents
-
view
5 -
download
0
Transcript of 11g Install Onrhel5.3
Setting Kernel Parameters
$ /sbin/sysctl –pfs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
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
2.2 Creating Groups and User for Oracle
$ /usr/sbin/groupadd -g 501 oinstall
$ /usr/sbin/groupadd -g 502 dba
$ /usr/sbin/groupadd -g 503 oper
$ /usr/sbin/groupadd -g 504 asm
$ /usr/sbin/groupadd -g 505 asmdba
$ /usr/sbin/useradd -m -u 501 -g oinstall -G dba,oper,asm, asmdba -d /home/oracle -s /bin/bash -c
“Oracle Software Owner” oracle
$ /usr/sbin/passwd oracle
2.3 Creating the Oracle Base Directory
$ mkdir -p /u01/app/oracle
$ chown -R oracle:oinstall /u01/app
$ chmod -R 775 /u01/app
2.4 Setting /home/oracle/.bash_profile for the Oracle user
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
export PATH=/usr/sbin:$PATH
export PATH=$ORACLE_HOME/bin:$PATH
export ORACLE_TERM=xterm
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/lib:/usr/lib:/usr/local/lib
export CLASSPATH=$ORACLE_HOME/JRE
export CLASSPATH=${CLASSPATH}:$ORACLE_HOME/jlib
export CLASSPATH=${CLASSPATH}:$ORACLE_HOME/rdbms/jlib
export TEMP=/tmp
2.5 Setting Shell Limits for the Oracle User
$ cat >> /etc/security/limits.conf <<EOF
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
EOF
$ cat >> /etc/pam.d/login <<EOF
session required /lib/security/pam_limits.so
session required pam_limits.so
EOF
3. Installing Oracle Database 11g Release 2
We used “/home/oracle/wkdir/11gr2″.
$ su – oracle
$ mkdir -p /home/oracle/wkdir/11gr2
$ cd /home/oracle/wkdir/11gr2
$ unzip linux_11gR2_database_1of2.zip
$ unzip linux_11gR2_database_2of2.zip
Installing the Oracle Database 11gR2 software procedure step-by step:
$ cd /home/oracle/wkdir/11gr2
$ cd database
$ ./runInstaller
Paxkeges Requirment
binutils-2.15.92.0.2compat-libstdc++-33-3.2.3compat-libstdc++-33-3.2.3 (32 bit)elfutils-libelf-0.97elfutils-libelf-devel-0.97expat-1.95.7gcc-3.4.6gcc-c++-3.4.6glibc-2.3.4-2.41glibc-2.3.4-2.41 (32 bit)glibc-common-2.3.4
glibc-devel-2.3.4glibc-headers-2.3.4libaio-0.3.105libaio-0.3.105 (32 bit)libaio-devel-0.3.105libaio-devel-0.3.105 (32 bit)libgcc-3.4.6libgcc-3.4.6 (32-bit)libstdc++-3.4.6libstdc++-3.4.6 (32 bit)libstdc++-devel 3.4.6make-3.80numactl-0.6.4.x86_64pdksh-5.2.14sysstat-5.0.5
For RHEL 6
binutils-2.20.51.0.2-5.11.el6 (x86_64)compat-libcap1-1.10-1 (x86_64)compat-libstdc++-33-3.2.3-69.el6 (x86_64)compat-libstdc++-33-3.2.3-69.el6.i686gcc-4.4.4-13.el6 (x86_64)gcc-c++-4.4.4-13.el6 (x86_64)glibc-2.12-1.7.el6 (i686)glibc-2.12-1.7.el6 (x86_64)glibc-devel-2.12-1.7.el6 (x86_64)glibc-devel-2.12-1.7.el6.i686kshlibgcc-4.4.4-13.el6 (i686)libgcc-4.4.4-13.el6 (x86_64)libstdc++-4.4.4-13.el6 (x86_64)libstdc++-4.4.4-13.el6.i686libstdc++-devel-4.4.4-13.el6 (x86_64)libstdc++-devel-4.4.4-13.el6.i686libaio-0.3.107-10.el6 (x86_64)libaio-0.3.107-10.el6.i686libaio-devel-0.3.107-10.el6 (x86_64)libaio-devel-0.3.107-10.el6.i686make-3.81-19.el6sysstat-9.0.4-11.el6 (x86_64)