天天看點

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

官網解釋:

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 實際上後面會把