crsctl

crsctl

#crsctl 
Usage: crsctl <command> <object> [<options>]
    command: enable|disable|config|start|stop|relocate|replace|status|add|delete|modify|getperm|setperm|check|set|get|unset|debug|lsmodules|query|pin|unpin|discover|release|request
For complete usage, use:
    crsctl [-h | --help]
For detailed help on each command and object and its options use:
    crsctl <command> <object> -h  e.g. crsctl relocate resource -h

crsctl stat res

#crsctl stat res -h
Usage:
  crsctl status resource [<resName>[...]|-w <filter>] [<-p|-v> [-e]] | [[-f|-l|-g]] | [[-k <cid>|-n <server>] [-d <did>]] | [-s -k <cid> [-d <did>]]
     Check status of designated resources

  crsctl status resource [<resName>[...]|-w <filter>] -t
     Print status of resources in tabular format

  crsctl status resource [<resName>[...]] -dependency [-stop | -pullup]
    Print resource dependencies
where 
     resName [...]     One or more blank-separated resource names
     -w                Resource filter (e.g., "TYPE = ora.database.type")
     -p                Print static configuration
     -v                Print runtime configuration
     -e                Evaluate a resource instance's special values
     -f                Print full configuration
     -l                Print all cardinal and degree members
     -g                Check if resources are registered
     -k                Cardinality ID
     -d                Degree ID
     -n                Server name
     -s                Get target servers for relocation
     -t                Tabular display
     -dependency       Display resource dependencies, default is start dependencies
     -stop             Display resource stop dependencies
     -pullup           Display resource pullup dependencies
        
#crsctl stat res -t 
#crsctl stat res -t -init

crsctl stop crs

#crsctl stop crs -h
Usage:
  crsctl stop crs [-f]
    Stop OHAS on this server
where
    -f              Force option

#crsctl stop crs
#crsctl stop crs -f

crsctl start crs

#crsctl start crs -h
Usage:
  crsctl start crs [-excl [-nocrs]|-nowait]
     Start OHAS on this server
where
     -excl        Start Oracle Clusterware in exclusive mode
     -nocrs       Start Oracle Clusterware in exclusive mode without starting CRS
     -nowait      Do not wait for OHAS to start
#crsctl start crs

crsctl query crs

#crsctl query crs
Parse error:
  Missing additional arguments

Usage:
  crsctl query crs administrator
     Display admin list

  crsctl query crs activeversion
     Lists the Oracle Clusterware operating version

  crsctl query crs releaseversion
     Lists the Oracle Clusterware release version

  crsctl query crs softwareversion [<nodename>| -all]
     Lists the version of Oracle Clusterware software installed
where
     Default         List software version of the local node
     nodename        List software version of named node
     -all            List software version for all the nodes in the cluster
#crsctl query crs activeversion

crsctl query css votedisk

#crsctl query css votedisk -h
Usage:
  crsctl query css votedisk
     Lists the voting files used by Cluster Synchronization Services

#crsctl query css votedisk

crsctl check

#crsctl check -h
Usage:
  crsctl check crs
     Check status of OHAS and CRS stack

  crsctl check cluster [[-all]|[-n <server>[...]]]
     Check status of CRS stack

  crsctl check ctss
    Check status of Cluster Time Synchronization Services

  crsctl check resource {<resName> [...]|-w <filter>} [-n <server>] [-k <cid>] [-d <did>]
     Check status of resources

  crsctl check css
     Check status of Cluster Synchronization Services

  crsctl check evm
     Check status of Event Manage
    
#crsctl check crs
#crsctl check cluster
#crsctl check css
#crsctl check evm
#ps -ef|grep d.bin
root     29018     1  0 Apr15 ?        00:20:10 /opt/grid/products/11.2.0/bin/ohasd.bin reboot
grid     29377     1  0 Apr15 ?        00:00:28 /opt/grid/products/11.2.0/bin/mdnsd.bin
grid     29432     1  0 Apr15 ?        00:01:42 /opt/grid/products/11.2.0/bin/gpnpd.bin
grid     29460     1  0 Apr15 ?        00:19:31 /opt/grid/products/11.2.0/bin/gipcd.bin
root     29473     1  3 Apr15 ?        03:27:54 /opt/grid/products/11.2.0/bin/osysmond.bin
grid     29523     1  0 Apr15 ?        00:17:29 /opt/grid/products/11.2.0/bin/ocssd.bin
root     30092     1  0 Apr15 ?        00:18:12 /opt/grid/products/11.2.0/bin/octssd.bin reboot
grid     30165     1  0 Apr15 ?        00:12:37 /opt/grid/products/11.2.0/bin/evmd.bin
root     30879     1  0 Apr15 ?        00:31:07 /opt/grid/products/11.2.0/bin/crsd.bin reboot
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值