Install oracle 10g di RHEL5 atau Oracle Enterpreice Linux 5
Wah akhirnya sempet juga bikin catatan kecil install oracle....biar gak lupa...maklum dah tua...dan siapa tahu bermanfaat buat orang lain.....
1. Install
install RHEL 5 atau Oracle Enterpreice linux 5 seperti biasa dengan user biasa
2. Download oracle
oracle 10201_database_linux32.zip
3. Install oraToolkit
bisa download di oraToolKit
4. Nama Host
harus benar /etc/hosts
5. Set kernel parameter
/etc/sysctl.conf
#kernel.shmall = 2097152 #kernel.shmmax = 2147483648 kernel.shmmni = 4096 # semaphores: semmsl, semmns, semopm, semmni 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
jalankan
#/sbin/sysctl -p
edit /etc/security/limits.conf
* soft nproc 2047 * hard nproc 16384 * soft nofile 1024 * hard nofile 65536
edit /etc/pam.d/login jika belum ada
session required pam_limits.so
non aktipkan selinux edit /etc/selinux/config
SELINUX=disabled
6. Paket tambahan yang diperlukan jangan lupa tambahkan repository cd/dvd via yum.d
#
rpm -Uvh setarch-2* rpm -Uvh make-3* rpm -Uvh glibc-2* rpm -Uvh libaio-0*
rpm -Uvh compat-libstdc++-33-3* rpm -Uvh compat-gcc-34-3* rpm -Uvh compat-gcc-34-c++-3* rpm -Uvh gcc-4* rpm -Uvh libXp-1*
rpm -Uvh openmotif-2* rpm -Uvh compat-db-4*
rpm -Uvh xorg-x11-xauth*
grup dan user oracle sudah di buat sama oraToolkit
7. Buat directory buat install#mkdir -p /opt/app/oracle/product/10.2.0/db_1
#chown -R oracle.oinstall /opt/app/oracle
8. Edit release untuk membypass certificate, edit /etc/redhat-release
ganti dengan redhat-4
9. Edit .bash_profile yang ada di oracle home
# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_BASE=/opt/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME
ORACLE_SID=TSH1; 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 10. Remot x #xhost +
#su oracle
$export DISPLAY=127.0.0.1:0.0
$ xhost + jika error
$export DISPLAY=:0
11. Runinstaller
untuk memuliai install masuk ke directory dimana oracle 10201_database_linux32.zip di ectract
./runInstaller
silahkan lanjutkan instruksi seperti tampilan
setelah selesai...
bisa buka browser kesayangan anda http://localhost:1158/em/
12. Auto strart up nya
Edit "/etc/oratab"
orcl:/u01/app/oracle/product/10.2.0:Y
bikin file "/etc/init.d/dbora"
#!/bin/sh
# Set ORA_HOME ke $ORACLE_HOME
# execute dbstart and dbshut;
#
# Set ORA_OWNER ke user
# Oracle database di ORA_HOME.
ORACLE_HOME=/opt/app/oracle/product/10.2.0/db_1
PATH=$PATH:$ORACLE_HOME/bin
export ORACLE_HOME PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib
export LD_LIBRARY_PATH
ORA_HOME=/opt/app/oracle/product/10.2.0/db_1
ORA_OWNER=oracle
if [ ! -f $ORA_HOME/bin/dbstart ]
then
echo "Oracle startup: cannot start"
exit
fi
case "$1" in
'start')
# Start the Oracle databases:
# The following command assumes that the oracle login
# will not prompt the user for any values
su $ORA_OWNER -c "$ORA_HOME/bin/dbstart $ORA_HOME"
;;
'stop')
# Stop the Oracle databases:
# The following command assumes that the oracle login
# will not prompt the user for any values
su $ORA_OWNER -c "$ORA_HOME/bin/dbshut $ORA_HOME"
;;
esac#
#Starting Oracle enterprice manager
# export ORACLE_SID=orcl su $ORA_OWNER -c "$ORACLE_HOME/bin/emctl start dbconsole $ORA_HOME"
chmod 750 /etc/init.d/dbora
chkconfig --add dbora
edit dbstart yang ada di $ORACLE_HOME/bin/dbstart
ORACLE_HOME_LISTNER=/ade/vikrkuma_new/oracle
menjadi
ORACLE_HOME_LISTNER=$ORACLE_HOME
Note: Jangan lupa tambahkan rule di firewall untuk oracle service port 1158, 1521
karena default firewall tertutup untuk port ini klalau tidak mau report matikan dulu sementara firewall nya......
semoga membantu dan bermanfaat
Salam


Komentar
Posting Komentar