crsctl & srvctl

[grid@localhost ~]$ crsctl check css 
[grid@localhost ~]$ ps -ef | grep cssd
--查看css服务

[grid@localhost ~]$ crsctl check has
[grid@localhost ~]$ ps -ef | grep ohasd.bin
--查看has服务

[grid@localhost ~]$ crs_stat -t
--查看各个资源的状态

[grid@localhost ~]$ crsctl status resource -t
--查看各个资源的状态

[grid@localhost ~]$ crs_stat -p ora.cssd
--查看ora.cssd属性

[grid@localhost ~]$ crs_stat -p ora.diskmon
--查看ora.diskmon属性

[grid@localhost ~]$ crsctl start resource ora.cssd
--启动ora.cssd

[grid@localhost ~]$ crs_stat -p ora.diskmon
--查看ora.diskmon属性

[grid@localhost ~]$ crsctl disable has
--取消has自动启动

[grid@localhost ~]$ crsctl enable has
--启用has自动启动
[grid@localhost ~]$ crsctl start has
--启动has
[grid@localhost ~]$ crsctl stop has
--关闭has
[grid@localhost ~]$ crsctl modify resource "ora.cssd" -attr "AUTO_START=1"
[grid@localhost ~]$ crsctl modify resource "ora.diskmon" -attr "AUTO_START=1"
--设置cssd和diskmon自动启动 

[grid@localhost ~]$ crsctl modify resource "ora.cssd" -attr "AUTO_START=never"
[grid@localhost ~]$ crsctl modify resource "ora.diskmon" -attr "AUTO_START=never"
--设置cssd和diskmon不自动启动 

 

 

[grid@localhost ~]$ srvctl stop listener -l listener
[grid@localhost ~]$ srvctl start listener -l listener
--启停监听

[grid@localhost ~]$ srvctl stop database -d orcl
[grid@localhost ~]$ srvctl start database -d orcl
--启停数据库

  

 

 

  

转载于:https://www.cnblogs.com/Elaine-Lan/p/9969942.html

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值