Oracle RAC crsctl 命令详解

教程发布:风哥 教程分类:ITPUX技术网 更新日期:2022-02-12 浏览学习:793

crsctlcommands in Oracle RAC crsctl - Cluster Ready Service Control

$crsctl -- to get help$crsctl query crs activeversion$crsctl query crs softwareversion [node_name]· Cargps tracker· Gpscar tracker· UsedFor· Jobdescription administrative assistant· JobInterview #crsctl start crs#crsctl stop crs(or)#/etc/init.d/init.crs start#/etc/init.d/init.crs stop #crsctl enable crs#crsctl disable crs(or)#/etc/init.d/init.crs enable#/etc/init.d/init.crs disable $crsctl ]check crs$crsctl ]checkcluster [-node node_name]-- http://satya-dba.blogspot.com/2009/01/whats-new-in-11g.html]Oracle RAC 11g command, checks the viability of CSS across nodes#crsctl start cluster -n HostName -- 11g R2#crsctl stop cluster -n HostName -- 11g R2#crsctl stop cluster -all -- 11g R2 $crsctl ]check cssd$crsctl ]check crsd$crsctl ]check evmd$crsctl ]check oprocd$crsctl check ctss #/etc/init.d/init.cssd stop#/etc/init.d/init.cssd start #/etc/rc.d/init.d/init.evmd#/etc/rc.d/init.d/init.cssd#/etc/rc.d/init.d/init.crsd #mv /etc/rc3.d/S96init.cssd /etc/rc3.d/_S96init.cssd -- tostop cssd from autostarting after reboot #crsctl check css votedisk#crsctl query css votedisk -- lists the voting disks used by CSS #crsctl add css votedisk PATH#crsctl add css votedisk PATH -force -- if Clusterware isnot running #crsctl delete css votedisk PATH#crsctl delete css votedisk PATH -force -- if Clusterware isnot running #crsctl set css parameter_name value -- set parameters onOCR#crsctlset css misscount 100#crsctl unset css parameter_name -- sets CSS parameter to its default#crsctlunset css misscount #crsctl get css parameter_name -- gets the value of a CSS parameter#crsctlget css disktimeout#crsctlget css misscount#crsctlget css reboottime #crsctl start resources -- starts Clusterware resources./crsctlstart resource ora.DATA.dg
#crsctl stop resources -- stops Clusterware resources $crsctl status resource$crsctl status resource -t$crsctl stat resource-t$crsctl lsmodules crs -- lists CRS modules that can be usedfor debuggingCRSUICRSCOMMCRSRTICRSMAINCRSPLACECRSAPPCRSRESCRSCOMMCRSOCRCRSTIMERCRSEVTCRSDCLUCLSCSSCLNTCOMMCRSCOMMNS $crsctl lsmodules css -- lists CSS modules that can be usedfor debuggingCSSDCOMMCRSCOMMNS $crsctl lsmodules evm -- lists EVM modules that can be usedfor debuggingEVMDEVMDMAINEVMCOMMEVMEVTEVMAPPEVMAGENTCRSOCRCLUCLSCSSCLNTCOMMCRSCOMMNS
$crsctl start has (HAS - ]High Availability Services)
$crsctl stop has
$crsctl check hasOCRModules-- cannot be listed with [i]crsctl lsmodules commandOCRAPIOCRCLIOCRSRVOCRMASOCRMSGOCRCACOCRRAWOCRUTLOCROSD #crsctl debug statedump crs -- dumps state info for crs objects#crsctl debug statedump css -- dumps state info for css objects#crsctl debug statedump evm -- dumps state info for evm objects #crsctl debug log crs [module:level]{,module:level} ... --Turns on debugging for CRS#crsctldebug log crs CRSEVT:5,CRSAPP:5,CRSTIMER:5,CRSRES:5,CRSRTI:1,CRSCOMM:2#crsctl debug log css [module:level]{,module:level} ... --Turns on debugging for CSS#crsctldebug log css CSSD:1#crsctl debug log evm [module:level]{,module:level} ... --Turns on debugging for EVM#crsctldebug log evm EVMCOMM:1 #crsctl debug trace crs -- dumps CRS in-memory tracing cache#crsctl debug trace css -- dumps CSS in-memory tracing cache#crsctl debug trace evm -- dumps EVM in-memory tracing cache #crsctl debug log res resource_name:level -- turns ondebugging for resources#crsctldebug log res "ora.lnx04.vip:1" #crsctl trace all_the_above_commands -- tracing by addinga "trace" argument.#crsctltrace check css

#crsctl backup -h#crsctl backup css votedisk Hereis the list of the options for CRSCTL in 11gR2: crsctl add - add a resource, type or otherentity crsctl backup - ]back up voting disk for CSS crsctl check - check a service, resource or otherentity crsctl config - output autostart configuration crsctl debug - obtain or modify debug state crsctl delete - delete a resource, type or other entity crsctl disable - disable autostart crsctl discover - discover DHCP server crsctl enable - enable autostart crsctl get - get an entity value crsctl getperm - get entity permissions crsctl lsmodules - list debug modules crsctl modify - modify a resource, type or other entity crsctl query - query service state crsctl pin - Pin the nodes in the nodelist crsctl relocate - relocate a resource, server or other entity crsctl replace - replaces the location of voting files crsctl release - release a DHCP lease crsctl request - request a DHCP lease crsctl setperm - set entity permissions crsctl set - set an entity value crsctl start - start aresource, server or other entity crsctl status - get status of a resource or other entity crsctl stop - stop a resource, server or otherentity crsctl unpin - unpin the nodes in the nodelist crsctl unset - unset a entity value, restoring itsdefault[font="]
[font="]
[font="]crsctl add resource resource_name -type resource_type [-file file_path |-attr"attribute_name=attribute_value,attribute_name=attribute_value,..."][-i] [-f][font="]
[font="]crsctladd resource r1 -type test_type1 -attr "PATH_NAME=/tmp/r1.txt"[font="]
[font="]crsctladd resource app.appvip -type app.appvip.type -attr "RESTART_ATTEMPTS=2,START_TIMEOUT=100,STOP_TIMEOUT=100,CHECK_INTERVAL=10,USR_ORA_VIP=172.16.0.0,START_DEPENDENCIES=hard(ora.net1.network)pullup(ora.net1.network),STOP_DEPENDENCIES=hard(ora.net1.network)"[font="]
[font="]crsctl add type type_name -basetype base_type_name {-attr"ATTRIBUTE=attribute_name | -file file_path,TYPE={string | int}[,DEFAULT_VALUE=default_value][,FLAGS=[READONLY][|REQUIRED]]"}[font="]
[font="]crsctladd type test_type1 -basetype cluster_resource -attr"ATTRIBUTE=FOO,TYPE=integer,DEFAULT_VALUE=0"[font="]
[font="]crsctl add crs administrator -u user_name [-f][font="]
[font="]crsctladd crs administrator -u scott[font="]
[font="]crsctl add css votedisk path_to_voting_disk [path_to_voting_disk ...][-purge][font="]
[font="]crsctladd css votedisk /stor/grid/ -purge[font="]
[font="]crsctl add serverpool server_pool_name {-file file_path | -attr"attr_name=attr_value[,attr_name=attr_value[,...]]"} [-i] [-f][font="]
[font="]crsctladd serverpool testsp -attr "MAX_SIZE=5"[font="]
[font="]crsctladd serverpool sp1 -file /tmp/sp1_attr[font="]
[font="]
crsctl check cluster [-all | [-n server_name [...]][font="]
[font="]crsctlcheck cluster -all[font="]
[font="]crsctl check crs[font="]
[font="]crsctl check css[font="]
[font="]crsctl check ctss -- Cluster Time Synchronization services[font="]
[font="]crsctl check evm[font="]
[font="]crsctl check resource {resource_name [...] | -w "filter" } [-nnode_name] [-k cardinality_id] [-d degree_id] }[font="]
[font="]crsctlcheck resource appsvip[font="]
[font="]
crsctl config crs[font="]
[font="]
crsctl delete crs administrator -u user_name [-f][font="]
[font="]crsctldelete crs administrator -u scott[font="]
[font="]crsctl delete resource resource_name [-i] [-f][font="]
[font="]crsctldelete resource myResource[font="]
[font="]crsctl delete type type_name [-i][font="]
[font="]crsctldelete type app.appvip.type[font="]
[font="]crsctl delete css votedisk voting_disk_GUID [voting_disk_GUID [...]][font="]
[font="]crsctldelete css votedisk 61f4273ca8b34fd0bfadc2531605581d[font="]
[font="]crsctl delete node -n node_name[font="]
[font="]crsctldelete node -n node06[font="]
[font="]crsctl delete serverpool server_pool_name [server_pool_name [...]] [-i][font="]
[font="]crsctldelete serverpool sp1[font="]
[font="]
crsctl disable crs[font="]
[font="]
crsctl discover dhcp -clientid clientid [-port port][font="]
[font="]crsctldiscover dhcp -clientid dsmjk252clr-dtmk01-vip[font="]
[font="]
crsctl enable crs[font="]
[font="]
crsctl get hostname[font="]
[font="]crsctl get clientid dhcp -cluname cluster_name -viptype vip_type [-vipvip_res_name] [-n node_name][font="]
[font="]crsctlget clientid dhcp -cluname dsmjk252clr -viptype HOSTVIP -n tmjk01[font="]
[font="]crsctl get css parameter[font="]
[font="]crsctl get css disktimeout[font="]
[font="]crsctl get css ipmiaddr[font="]
[font="]crsctl get nodename[font="]
[font="]crsctl getperm resource resource_name [ {-u user_name | -g group_name} ][font="]
[font="]crsctlgetperm resource app.appvip[font="]
[font="]crsctlgetperm resource app.appvip -u oracle[font="]
[font="]crsctlgetperm resource app.appvip -g dba[font="]
[font="]crsctl getperm type resource_type [-u user_name] | [-g group_name][font="]
[font="]crsctlgetperm type app.appvip.type[font="]
[font="]crsctl getperm serverpool server_pool_name [-u user_name | -ggroup_name][font="]
[font="]crsctlgetperm serverpool sp1[font="]
[font="]
crsctl lsmodules {mdns | gpnp | css | crf | crs | ctss | evm | gipc}[font="]
[font="]crsctl lsmodules evm[font="]
[font="] mdns: Multicast [font="][size=11.0pt]]domain name[font="] server [font="]
[font="] gpnp: Grid Plug and Playservice [font="]
[font="] css: Cluster SynchronizationServices [font="]
[font="] crf: Cluster Health Monitor[font="]
[font="] crs: Cluster Ready Services[font="]
[font="] ctss: Cluster TimeSynchronization Service [font="]
[font="] evm: Event Manager[font="]
[font="] gipc: Grid InterprocessCommunication [font="]
[font="]
crsctl modify resource resource_name -attr"attribute_name=attribute_value" [-i] [-f] [-delete][font="]
[font="]crsctlmodify resource appsvip -attr USR_ORA_VIP=10.1.220.17 -i[font="]
[font="]crsctl modify type type_name -attr "ATTRIBUTE=attribute_name,TYPE={string| int} [,DEFAULT_VALUE=default_value [,FLAGS=[READONLY][| REQUIRED]]" [-i][-f]][font="]
[font="]crsctlmodify type myType.type -attr "ATTRIBUTE=FOO,DEFAULT_VALUE=0ATTRIBUTE=BAR,DEFAULT_VALUE=baz"[font="]
[font="]crsctl modify serverpool server_pool_name -attr "attr_name=attr_value[,attr_name=attr_value[, ...]]" [-i] [-f][font="]
[font="]crsctlmodify serverpool sp1 -attr "MAX_SIZE=7"[font="]
[font="]
crsctl pin css -n node_name [ node_name [..]][font="]
[font="]crsctlpin css -n node2[font="]
[font="]
crsctl query crs administrator[font="]
[font="]crsctl query crs activeversion[font="]
[font="]crsctl query crs releaseversion[font="]
[font="]crsctl query crs softwareversion node_name[font="]
[font="]crsctl query css ipmiconfig[font="]
[font="]crsctl query css ipmidevice[font="]
[font="]crsctl query css votedisk[font="]
[font="]crsctl query dns {-servers | -name name [-dnsserver DNS_server_address][-port port] [-attempts number_of_attempts] [-timeout timeout_in_seconds] [-v]}[font="]
[font="]
crsctl release dhcp -clientid clientid [-port port][font="]
[font="]crsctlrelease dhcp -clientid spmjk662clr-spmjk03-vip[font="]
[font="]
crsctl relocate resource {resource_name | resource_name | -all -s source_server| -w "filter"} [-n destination_server] [-k cid] [-env"env1=val1,env2=val2,..."] [-i] [-f][font="]
[font="]crsctlrelocate resource myResource1 -s node1 -n node3[font="]
[font="]crsctl relocate server server_name [...] -c server_pool_name [-i] [-f][font="]
[font="]crsctlrelocate server node6 node7 -c sp1[font="]
[font="]
crsctl replace discoverystring 'absolute_path[,...]'[font="]
[font="]crsctlreplace discoverystring "/oracle/css1/*,/oracle/css2/*"[font="]
[font="]crsctl replace votedisk [+asm_disk_group | path_to_voting_disk [...]][font="]
[font="]crsctlreplace votedisk +diskgroup1[font="]
[font="]crsctlreplace votedisk /mnt/nfs/disk1 /mnt/nfs/disk2[font="]
[font="]
crsctl request dhcp -clientid clientid [-port port][font="]
[font="]crsctlrequest dhcp -clientid tmj0462clr-tmjk01-vip[font="]
[font="]
crsctl set css parameter value[font="]
[font="]crsctl set css ipmiaddr ip_address[font="]
[font="]crsctlset css ipmiaddr 192.0.2.244[font="]
[font="]crsctl set css ipmiadmin ipmi_administrator_name[font="]
[font="]crsctlset css ipmiadmin scott[font="]
[font="]
crsctl set log {[crs | css | evm "component_name=log_level, [...]"] |[all=log_level]}[font="]
[font="]crsctlset log crs "CRSRTI=1,CRSCOMM=2"[font="]
[font="]crsctlset log evm all=2[font="]
[font="]crsctlset log res "myResource1=3"[font="]
[font="]crsctl set {log | trace} module_name "component:debugging_level[,component:debugging_level][,...]"[font="]
[font="]crsctlset log crs "CRSRTI:1,CRSCOMM:2"[font="]
[font="]crsctlset log crs "CRSRTI:1,CRSCOMM:2,OCRSRV:4"[font="]
[font="]crsctlset log evm "EVMCOMM:1"[font="]
[font="]crsctlset log res "resname:1"[font="]
[font="]crsctlset log res "resource_name=debugging_level"[font="]
[font="]crsctlset log res "ora.node1.vip:1"[font="]
[font="]crsctlset log crs "CRSRTI:1,CRSCOMM:2" -nodelist node1,node2[font="]
[font="]crsctl set trace "component_name=tracing_level,..."[font="]
[font="]crsctlset trace "css=3"[font="]
[font="]
crsctl setperm resource resource_name {-u acl_string | -x acl_string | -ouser_name | -g group_name}[font="]
[font="]crsctlsetperm resource myResource -u user:scott:rwx[font="]
[font="]crsctl setperm type resource_type_name {-u acl_string | -x acl_string |-o user_name | -g group_name}[font="]
[font="]crsctlsetperm type resType -u user:scott:rwx[font="]
[font="]crsctl setperm serverpool server_pool_name {-u acl_string | -xacl_string | -o user_name | -g group_name}[font="]
[font="]crsctlsetperm serverpool sp3 -u user:scott.tiger:rwx[font="]
[font="]
crsctl start cluster [-all | -n server_name [...]][font="]
[font="]crsctlstart cluster -n node1 node2[font="]
[font="]crsctl start crs[font="]
[font="]crsctl start ip -A {IP_name | IP_address}/netmask/interface_name[font="]
[font="]crsctlstart ip -A 192.168.29.220/255.255.252.0/eth0[font="]
[font="]crsctl start resource {resource_name [...] | -w filter | -all} [-nserver_name] [-k cid] [-d did] [-env "env1=val1,env2=val2,..."] [-i][-f][font="]
[font="]crsctlstart resource myResource -n server1[font="]
[font="]crsctl start testdns [-address address [-port port]] [-once] [-v][font="]
[font="]crsctlstart testdns -address 192.168.29.218 -port 63 -v[font="]
[font="]
crsctl status resource {resource_name [...] | -w "filter"} [-p | -v[-e]] | [-f | -l | -g] [[-k cid | -n server_name] [-d did]] | [-s -k cid [-ddid]] [-t][font="]
[font="]crsctlstatus resource ora.stai14.vip[font="]
[font="]crsctlstat res -w "TYPE = ora.scan_listner.type"[font="]
[font="]crsctl status type resource_type_name [...]] [-g] [-p] [-f][font="]
[font="]crsctlstatus type ora.network.type[font="]
[font="]crsctl status ip -A {IP_name | IP_address}[font="]
[font="]crsctl status server [-p | -v | -f][font="]
[font="]crsctl status server { server_name [...] | -w "filter"} [-g |-p | -v | -f][font="]
[font="]crsctlstatus server node2 -f[font="]
[font="]crsctl status serverpool [-p | -v | -f][font="]
[font="]crsctl status serverpool [server_pool_name [...]] [-w] [-g | -p | -v |-f][font="]
[font="]crsctlstatus serverpool sp1 -f[font="]
[font="]crsctlstatus serverpool[font="]
[font="]crsctlstatus serverpool -p[font="]
[font="]crsctlstatus serverpool -w "MAX_SIZE > 1"[font="]
[font="]crsctl status testdns [-server DNS_server_address] [-port port] [-v][font="]
[font="]
crsctl stop cluster [-all | -n server_name [...]] [-f][font="]
[font="]crsctlstop cluster -n node1[font="]
[font="]crsctlstop crs [-f][font="]
[font="]crsctlstop crs[font="]
[font="]crsctl stop resource {resource_name [...] | -w "filter" |-all} [-n server_name] [-k cid] [-d did] [-env"env1=val1,env2=val2,..."] [-i] [-f][font="]
[font="]crsctlstop resource -n node1 -k 2[font="]
[font="]crsctl stop ip -A {IP_name | IP_address}/interface_name[font="]
[font="]crsctlstop ip -A MyIP.domain.com/eth0[font="]
[font="]crsctl stop testdns [-address address [-port port]] [-domain GNS_domain][-v][font="]
[font="]
crsctl unpin css -n node_name [node_name [...exit]][font="]
[font="]crsctlunpin css -n node1 node4[font="]
[font="]
crsctl unset css parameter[font="]
[font="]crsctl unset css reboottime[font="]
[font="]crsctl unset css ipmiconfig[font="]
[font="]
[font="]HAS(High Availability Service)[font="]
[font="]crsctl check has[font="]
[font="]crsctl config has[font="]
[font="]crsctl disable has[font="]
[font="]crsctl enable has[font="]
[font="]crsctl query has releaseversion[font="]
[font="]crsctl query has softwareversion[font="]
[font="]crsctl start has[font="]
[font="]crsctl stop has [-f][font="]

本文标签:
网站声明:本文由风哥整理发布,转载请保留此段声明,本站所有内容将不对其使用后果做任何承诺,请读者谨慎使用!
【上一篇】
【下一篇】