Achmad Mardiansyah's Journal

Manage your knowledge by writing it

Oracle DBA: shutdown & start database, and other stuffs

without comments

Tugas DBA adalah management database termasuk start, stop, maintain, install patch, serta setting security.

Beberapa hal umum yang perlu diketahui:

  • File /var/opt/oracle/oratab. file ini berguna untuk menentukan apakah database akan dijalankan otomatic ketika OS booting. biasanya akan di link ke /etc/oratab
  • File /etc/init.d/oracle. file ini dibuat sendiri. gunanya sebagai init script yang menjalankan oracle ketika booting. oracle tidak menyediakan init script. sehingga harus bikin sendiri. file ini mengambil inputan dari /etc/oratab.
  • file /usr/local/bin/oraenv. ini berguna untuk menentukan environment oracle.
  • file $HOME/.profile –> berguna untuk mengeset environment yang berhubungan dengan shell. berguna ketika kita mengakses database dari shell.
  • File /usr/local/bin/coraenv. –> sebagai enterprise manager database control
  • file /export/home/oracle/product/10.2/network/admin/listener.ora. ini file konfigurasi listener oracle
  • setup alias –> alias sqlplus=”rlwrap sqlplus” ini agar kita bisa pake history function jika mengakses oracle via CLI. tentu saja software rlwrap harus diinstall terlebih dahulu

Prosedur shutdown oracle database instance:

  • oracle$ sqlplus /nolog
  • SQL> CONNECT SYS/sys_password as SYSDBA
  • SQL> SHUTDOWN NORMAL

Prosedur startup oracle database instance:

  • oracle$ sqlplus /nolog
  • SQL> CONNECT SYS/sys_password as SYSDBA
  • SQL> STARTUP

Reset oracle cluster service synchronization (CSS)

  • root# /export/home/oracle/product/10.2/bin/localconfig

Shutdown/start oracle listener

  • cek apakah listener running? ps -ef | grep tnslsnr
  • /export/home/oracle/product/10.2/bin/lsnrctl stop/start LISTENER

Stop/start isqlplus:

  • $ /export/home/oracle/product/10.2/bin/isqlplusctl stop/start

Stop/Start enterprise manager:

  • >oracle$ /export/home/oracle/product/10.2/bin/emctl stop|start dbconsole

Stop/Start EM agent:

  • /export/home/oracle/product/10.2/bin/emctl stop|start agent

Database configuration Assistant:

  • dbca

Sekian dulu catatannya

qlplus /nolog

Written by Achmad Mardiansyah

January 25th, 2007 at 12:46 pm

Leave a Reply