• 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
    --启停数据库
    

      

      

  • 相关阅读:
    剑指 Offer 13. 机器人的运动范围
    32个触发事件XSS语句的总结
    CSS实现垂直居中的5种方法
    微信、QQ浏览器X5内核问题汇总
    值得关注的顶级开发者社区
    HTML5本地数据库(WebSQL)[转]
    按首字母排序汉字
    jQuery 源码中的 camelCase
    jQuery中的quickExpr
    手绘计划
  • 原文地址:https://www.cnblogs.com/Elaine-Lan/p/9969942.html
Copyright © 2020-2023  润新知