ITPub博客

首页 > 数据库 > Oracle > RAC 开启关闭(12c 小计)

RAC 开启关闭(12c 小计)

Oracle 作者:kingsql 时间:2014-10-11 16:30:29 0 删除 编辑

检查RAC状态

[grid@rac01 ~]$ crsctl check crs

CRS-4638: Oracle High Availability Services is online

CRS-4537: Cluster Ready Services is online

CRS-4529: Cluster Synchronization Services is online

CRS-4533: Event Manager is online

 

[grid@rac01 ~]$ olsnodes -n

rac01   1

rac02   2

 

[grid@rac01 ~]$ srvctl status asm -a

ASM is running on rac01,rac02

ASM is enabled.

[grid@rac01 ~]$srvctl status res -t   //12c新功能

 

[grid@rac01 ~]$ crs_stat -t

 

关闭开启RAC环境

[grid@rac01 ~]$ crs_stop -all

[grid@rac01 ~]$ crs_start -all

 

关闭开启单节点

关闭

[root@rac01 ~]# /u01/app/12.1.0/grid/bin/crsctl stop crs

或者

[grid@rac02 ~]$ srvctl stop listener -n rac01

[grid@rac02 ~]$ srvctl stop nstance -d testshf_n -i TESTSHF1

[grid@rac02 ~]$ srvctl stop asm -n rac01

[grid@rac02 ~]$ srvctl stop nodeapps -n  rac01

 

开启

[root@rac01 ~]# /u01/app/12.1.0/grid/bin/crsctl start crs

或者

[grid@rac02 ~]$ srvctl start listener -n rac01

[grid@rac02 ~]$ srvctl start nstance -d testshf_n -i TESTSHF1

[grid@rac02 ~]$ srvctl start asm -n rac01

[grid@rac02 ~]$ srvctl start nodeapps -n  rac01

 

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/28389881/viewspace-1295468/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
OCM

注册时间:2013-02-28

  • 博文量
    237
  • 访问量
    918399