Friday, October 02, 2009

Installation Oracle10gR2 on RHEL 5 x86_64

*** Add Group & User
[tatshuya]# groupadd oinstall
[tatshuya]# groupadd dba
[tatshuya]# groupadd oper
[tatshuya]# useradd -g oinstall -G dba,oper oracle
[tatshuya]#


*** Check package that Oracle need

[tatshuya]# rpm -q binutils compat-db compat-libstdc++-33 glibc glibc-devel glibc-headers gcc gcc-c++ libstdc++ cpp make libaio ksh elfutils-libelf sysstat libaio libaio-devel setarch libXp --qf '%{name}.%{arch}\n'|sort

*** Result when check package
binutils.x86_64
compat-libstdc++-33.i386
compat-libstdc++-33.x86_64
cpp.x86_64
elfutils-libelf.i386
elfutils-libelf.x86_64
gcc-c++.x86_64
gcc.x86_64
glibc-devel.i386
glibc-devel.x86_64
glibc-headers.x86_64
glibc.i686
glibc.x86_64
ksh.x86_64
libaio.i386
libaio.i386
libaio.x86_64
libaio.x86_64
libstdc++.i386
libstdc++.x86_64
make.x86_64
package compat-db is not installed
package libaio-devel is not installed
package libXp is not installed
package sysstat is not installed
setarch.x86_64

*** Find Package that not installed and install them!!!!

[tatshuya]# rpm -ivh libaio-devel-0.3.106-3.2.x86_64.rpm compat-db-4.2.52-5.1.x86_64.rpm sysstat-7.0.2-3.el5.x86_64.rpm libXp-1.0.0-8.1.el5.i386.rpm
warning: libaio-devel-0.3.106-3.2.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:sysstat ########################################### [ 33%]
2:libaio-devel ########################################### [ 67%]
3:compat-db ########################################### [100%]


*** Setting System parameters at /etc/sysctl.cong
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_default = 262144
net.core.wmem_max = 262144

*** After save file then execute command 'sysctl -p' to apply
[tatshuya]# sysctl -p

*** Result of 'sysctl -p' command
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
net.ipv4.tcp_syncookies = 1
kernel.msgmnb = 65536
kernel.msgmax = 65536
kernel.shmmax = 68719476736
kernel.shmall = 4294967296
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_default = 262144
net.core.wmem_max = 262144

*** Edit the /etc/pam.d/login file and add following line:
session required pam_limits.so

*** Edit the /etc/security/limits.conf file and add following lines:
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536

*** Run installer
[tatshuya#] ./runInstaller


--TaTsHuYa--

No comments: