Oracle RAC維護命令集

ogam發表於2010-12-12

--啟動資料庫

$srvctl start nodeapps -n rac1
$srvctl start nodeapps -n rac2
$srvctl start asm -n rac1
$srvctl start asm -n rac2
$srvctl start instance -d racdb -i racdb1
$srvctl start instance -d racdb -i racdb2

[@more@]

--檢查叢集狀態:
$crs_stat -t

--檢查crs狀態:
$crsctl check crs

--禁止Clusterware在系統重啟後自動啟動:
$ /etc/init.d/init.crs disable

--讓Clusterware在系統重啟後自動啟動:
$ /etc/init.d/init.crs enable

--可以用以下方法手動啟動crs:
#/etc/init.d/init.cssd start
#/etc/init.d/init.crs start

--重啟RAC:
#su – oracle
$crs_stop –all
$srvctl stop nodeapps -n wdch1
$srvctl stop nodeapps -n wdch2
$srvctl start nodeapps -n wdch1
$srvctl start nodeapps -n wdch2
$crs_start –all
$srvctl start database -d wdchpacs
$srvctl stop database -d orcl

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/16712909/viewspace-1042984/,如需轉載,請註明出處,否則將追究法律責任。

相關文章