RAC常用命令(不断更新)

节点层:osnodes
网络层:oifcfg
集群层:crsctl, ocrcheck,ocrdump,ocrconfig
应用层:srvctl,onsctl,crs_stat

root:

check
crsctl check has [-f]
crsctl check cluster
crsctl check crs
ocrcheck


stop
crsctl stop crs
crsctl stop has -f


start
crsctl stat res -t
crsctl start crs -excl -nocrs
crsctl start resource ora.cssd


query
crsctl query css votedisk
  
config
ocrconfig -restore /g01/11.2.0/grid/cdata/vrh-cluster/backup00.ocr
crsctl replace votedisk +systemdg
 


grid:

crs_stat -t
 
crsctl modify resource "ora.cssd" -attr "AUTO_START=1"

srvctl config database -d xxx -a

srvctl status nodeapps
 srvctl status listener

 srvctl status listener -a

srvctl status scan

oracle:

$ srvctl start -h

srvctl status database -d xxx


注意

crsctl stop resources 只停止了所操作节点的CRS resources,但是crs的相关进程并未停止
crsctl stop crs 不但停止了所操作节点的CRS resources,crs的相关进程也停止

你可能感兴趣的:(RAC常用命令(不断更新))