Monday, March 28, 2011

Install Oracle 10g di CentOS 5.5

Langsung saja ke langkah-langkah berikut

PAKET YANG PERLU DI INSTALL
compat-db-4.2.52-5.1.i386.rpm
sysstat-7.0.2-1.el5.i386.rpm
libaio-devel-0.3.106-3.2.i386.rpm
libXp-1.0.0-8.1.el5.i386.rpm

edit kernel parameter

/etc/sysctl.conf
tambahkan di baris paling bawah
kernel.shmmax = 2147483648
kernel.shmall = 2097152
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=1048576
net.core.rmem_max=1048576
net.core.wmem_default=262144
net.core.wmem_max=262144

jalankan yang anda  tambahkan tadi
/sbin/sysctl -p

tambah shell limits for the oracle user

/etc/security/limits.conf

oracle              soft    nproc   2047
oracle              hard    nproc   16384
oracle              soft    nofile  1024
oracle              hard    nofile  65536

tambahkan juga di baris paling bawah

/etc/pam.d/login

session    required     /lib/security/pam_limits.so
session    required     pam_limits.so

langkah selanjutnya edit file /etc/profile tambahkan script dibawah
if [ $USER = "oracle" ]; then

        if [ $SHELL = "/bin/ksh" ]; then

              ulimit -p 16384

              ulimit -n 65536

        else

              ulimit -u 16384 -n 65536

        fi

fi

edit redhat release di /etc/redhat-release dan ganti menjadi

redhat-4

tambahkan group dan user untuk installasi oracle
groupadd  oinstall
groupadd  dba
useradd -m -g oinstall -G dba -d /home/oracle -s /bin/bash -c “Oracle Software Owner” oracle
passwd oracle

buat folder di tmp dengan cara

cd /tmp/
mkdir install
chown -R oracle:oinstall install/
copy semua installer oracle nya ke folder /tmp/install
jalankan perintah
chmod u+x /tmp/database/runInstaller
chmod u+x /tmp/database/install/.oui
chmod u+x /tmp/database/install/unzip
silahkan masuk ke gui server nya dan login user oracle jalankan ./runInstaller

Untuk dokumentasi punya saya sbb :

[root@localhost]#cd /media/CentOS_5.5_Final/Centos/
[root@localhost CentOS]# rpm -Uvh compat-db-4.2.52-5.1.i386.rpm
warning: compat-db-4.2.52-5.1.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
Preparing...                ########################################### [100%]
   1:compat-db              ########################################### [100%]
[root@localhost CentOS]# rpm -Uvh sysstat-7.0.2-3.el5.i386.rpm
warning: sysstat-7.0.2-3.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
Preparing...                ########################################### [100%]
   1:sysstat                ########################################### [100%]
[root@localhost CentOS]# rpm -Uvh libaio-devel-0.3.106-5.i386.rpm
warning: libaio-devel-0.3.106-5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
Preparing...                ########################################### [100%]
   1:libaio-devel           ########################################### [100%]
[root@localhost CentOS]# rpm -Uvh libXp-1.0.0-8.1.el5.i386.rpm
warning: libXp-1.0.0-8.1.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
Preparing...                ########################################### [100%]
   1:libXp                  ########################################### [100%]
[root@localhost CentOS]# nano /etc/sysctl.conf
[root@localhost CentOS]# /sbin/sysctl -p
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 = 4294967295
kernel.shmall = 268435456
kernel.shmmax = 2147483648
kernel.shmall = 2097152
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 = 1048576
net.core.rmem_max = 1048576
net.core.wmem_default = 262144
net.core.wmem_max = 262144
[root@localhost CentOS]# nano /etc/security/limits.conf
[root@localhost CentOS]# nano /etc/pam.d/login
[root@localhost CentOS]# nano /etc/profile
[root@localhost CentOS]# nano /etc/redhat-release
[root@localhost CentOS]# groupadd oinstall
[root@localhost CentOS]# groupadd dba
[root@localhost CentOS]# useradd -m -g oinstall -G dba -d /home/oracle -s /bin/bash -c "Oracle Software Owner" oracle
[root@localhost CentOS]# passwd oracle
Changing password for user oracle.
New UNIX password:
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[root@localhost CentOS]# cd /tmp/
[root@localhost tmp]# mkdir install
[root@localhost tmp]# chown -R oracle:oinstall /tmp/install/
[root@localhost tmp]# cd /install/database
[root@localhost database]# su oracle
[oracle@localhost database]$
[oracle@localhost database]$chmod u+x /tmp/database/runInstaller
[oracle@localhost database]$chmod u+x /tmp/database/install/.oui
[oracle@localhost database]$chmod u+x /tmp/database/install/unzip
[oracle@localhost database]$./runInstaller

0 komentar em “Install Oracle 10g di CentOS 5.5”

Post a Comment

 

Catatan kecil seorang newbie Copyright © 2012 Powered by Blogger