Pages

Friday, August 15, 2014

Instalasi Oracle 11gR2 di OEL 5


Postingan ini merupakan pengalaman saya dalam melakukan instalasi Oracle 11gR2 pada Oracle Enterprise Linux (OEL) 5. Semoga bermanfaat!

1. Instal paket – paket yang dibutuhkan, yaitu: 


binutils-2.17.50.0.6
compat-libstdc++-33-3.2.3
compat-libstdc++-33-3.2.3 (32 bit)
elfutils-libelf-0.125
elfutils-libelf-devel-0.125
gcc-4.1.1
gcc-c++-4.1.1
glibc-2.5-12
glibc-2.5-12 (32 bit)
glibc-common-2.5
glibc-devel-2.5
glibc-devel-2.5-12 (32 bit)
libaio-0.3.106
libaio-0.3.106 (32 bit)
libaio-devel-0.3.106
libgcc-4.1.1
libgcc-4.1.1 (32 bit)
libstdc++-4.1.1
libstdc++-4.1.1 (32 bit)
libstdc++-devel 4.1.1
make-3.81
sysstat-7.0.0
Caranya:
1)       Masukkan CD instalasi Sistem Operasi
2)       Login sebagai Root, Mounting CD instalasi:
         mount -t iso9660 -r /dev/cdrom /media
         cd /media/Server
3)       Instal Paket:
rpm -ivh elfutils-libelf-devel*.x86_64.rpm glibc-devel-2* gcc-4*.x86_64.rpm gcc-c++-4*.x86_64.rpm libstdc++-devel-4*.x86_64.rpm glibc-headers*.x86_64.rpm libgomp*.x86_64.rpm
rpm -ivh compat-libstdc++-33* libaio-devel*.x86_64.rpm
rpm -ivh sysstat*
4)       Buat user dan group account, Set Password
groupadd oinstall
groupadd dba
useradd -m -g oinstall -G dba oracle
id oracle
passwd
5)       Buat Direktori:
mkdir -p /u01/app/oracle
chown -R oracle:oinstall /u01/app
chmod -R 775 /u01/app
6)  Kemudian login sebagai user oracle, dan ubah profile user untuk instalasi oracle di /home/oracle/.bash_profile :
       # Oracle Settings
 TMP=/tmp; export TMP
 TMPDIR=$TMP; export TMPDIR
  ORACLE_HOSTNAME=; export ORACLE_HOSTNAME
  ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
  ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1; export ORACLE_HOME
  ORACLE_SID=;
  export ORACLE_SID
  ORACLE_TERM=xterm;
 export ORACLE_TERM
  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/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; 
export CLASSPATH
  if [ $USER = "oracle" ]; then
 if [ $SHELL = "/bin/ksh" ]; then
 ulimit -p 16384
 ulimit -n 65536
 else
 ulimit -u 16384 -n 65536
 fi
 fi
7)       Konfigurasi Parameter Linux Kernel
Vi /etc/sysctl.conf
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=4194304
net.core.wmem_default=262144
net.core.rmem_max=4194304
net.core.wmem_max=262144
8)       Setting shell limits untuk user oracle di file /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
Cek juga pada file /etc/pam.d/login, tambahkan parameter :
session required /lib/security/pam_limits.so
session required pam_limits.so
Untuk memastikan SELINUX sudah dinon-aktifkan silahkan lihat file /etc/selinux/config dan pastikan entry-nya disable :
SELINUX=disabled

2. Lakukan instalasi, yaitu: