Home > Database, Informasi, Kerjaan, Oprek > [Linux] Membuat autostart oracle

[Linux] Membuat autostart oracle


Buat script startup dengan nama orastart.sh:

#!/bin/sh
PATH=$PATH:$HOME/bin:/u01/app/oracle/product/10.2.0/db_1/bin
ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1
LD_LIBRARY_PATH=/u01/app/oracle/product/10.2.0/db_1/lib
CLASSPATH=/usr/java/lib/classes.zip
ORACLE_SID=db920
export PATH ORACLE_HOME ORACLE_SID LD_LIBRARY_PATH CLASSPATH
lsnrctl start &
sqlplus /nolog<<EOF
conn / as sysdba
startup
EOF
exit
/

Edit file /etc/rc.local, masukan perintah :

/bin/su – oracle -c /home/oracle/bin/oraStart.sh

Selesai.

Categories: Database, Informasi, Kerjaan, Oprek Tags: , ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: