rac中 crsctl start/stop crs and crsctl start/stop cluster 區別

pentium發表於2018-12-25

官網解釋:


crsctl start/stop crs - Manage start/stop the entire Oracle Clusterware stack on a node, including the OHASD process, this command is to be used only on the local node..


crsctl start/stop cluster - Manage start/stop the Oracle Clusterware stack on local node if you do not specify either -all or -n and nodes remote if option -n or -all be specified , NOT including the OHASD process. You can't start/stop clusterware stack without OHASD process running .


Despite crsctl start/stop crs manage entire Oracle Clusterware stack on local node crsctl start/stop crs not allow you to manage remote nodes, unlike crsctl start/stop cluster that allows you to manage all the nodes, but if the process OASH is runing.


To manage Oracle Clusterware Stack on remote nodes, the ohasd (Oracle High Availability Services Daemon) must be running on all managed nodes. (i.e using crsctl start cluster -n <node1>, <node2>)


Then if you try use crsctl start cluster -n node1,node2 and your local node is node1 and on node1 or node2 OHASD not running this command will fails. 


中文解釋:


1 crsctl start/stop crs 是單節管理 


crsctl start/stop cluster [-all 所有節點] 可以管理多個節點


  2 crsctl start/stop crs 管理crs 包含程式 OHASD


  crsctl start/stop cluster 不包含OHASD程式 必須要先啟動 OHASD程式才可以使用


  3  11gr2 rac 手動啟動或關閉過程


使用crsctl start/stop cluster手動啟動和關閉的過程如下:


crsctl start/stop cluster -all 會啟動所有OHAS是啟動狀態的所有節點


使用crsctl start/stop crs手動啟動/關閉流程


節點1


crsctl start/stop crs 實際上後面會把Oracle crs 管理的資源都會啟動


節點2


crsctl start/stop crs


......


  Enable CRS to start on reboot


 crsctl enable crs


Disable CRS to start on reboot


 crsctl disable crs


  4 查詢資源啟動情況


crsctl stat res -init -t


  注:



crsctl start/stop crs 與crsctl start/stop has 作用相同


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

相關文章