Command for adminstration for clusterware resource
In fact this article should be named 'Description of crsctl, srvctl, ocrcheck, olsnodes and oifconfig'. I want to introduce all the description about these commands.
Srvctl and crsctl are used to manage clusterware resources. The general rule is to use srvctl for whatever resource management you can. Crsctl should only be used for things that you cannot do with srvctl (like start the cluster). Both have a help feature to see the available syntax.
Note that the following only shows the available srvctl syntax. For additional explanation on what these commands do, see the
Oracle Documentation .
Srvctl syntax:
$ srvctl -h Usage: srvctl [-V] Usage: srvctl add database -d -o [-m ] [-p ] [-r {PRIMARY | PHYSICAL_STANDBY | LOGICAL_STANDBY | SNAPSHOT_STANDBY}] [-s ] [-t ] [-n ] [-y {AUTOMATIC | MANUAL}] [-g ""] [-x ] [-a ""] Usage: srvctl config database [-d [-a] ] Usage: srvctl start database -d [-o ] Usage: srvctl stop database -d [-o ] [-f] Usage: srvctl status database -d [-f] [-v] Usage: srvctl enable database -d [-n ] Usage: srvctl disable database -d [-n ] Usage: srvctl modify database -d [-n ] [-o ] [-u ] [-m ] [-p ] [-r {PRIMARY | PHYSICAL_STANDBY | LOGICAL_STANDBY | SNAPSHOT_STANDBY}] [-s ] [-t ] [-y {AUTOMATIC | MANUAL}] [-g "" [-x ]] [-a ""|-z] Usage: srvctl remove database -d [-f] [-y] Usage: srvctl getenv database -d [-t ""] Usage: srvctl setenv database -d {-t =[,=,...] | -T =} Usage: srvctl unsetenv database -d -t "" Usage: srvctl add instance -d -i -n [-f] Usage: srvctl start instance -d {-n [-i ] | -i } [-o ] Usage: srvctl stop instance -d {-n | -i } [-o ] [-f] Usage: srvctl status instance -d {-n | -i } [-f] [-v] Usage: srvctl enable instance -d -i "" Usage: srvctl disable instance -d -i "" Usage: srvctl modify instance -d -i { -n | -z } Usage: srvctl remove instance -d [-i ] [-f] [-y] Usage: srvctl add service -d -s {-r "" [-a ""] [-P {BASIC | NONE | PRECONNECT}] | -g [-c {UNIFORM | SINGLETON}] } [-k ] [-l [PRIMARY][,PHYSICAL_STANDBY][,LOGICAL_STANDBY][,SNAPSHOT_STANDBY]] [-y {AUTOMATIC | MANUAL}] [-q {TRUE|FALSE}] [-x {TRUE|FALSE}] [-j {SHORT|LONG}] [-B {NONE|SERVICE_TIME|THROUGHPUT}] [-e {NONE|SESSION|SELECT}] [-m {NONE|BASIC}] [-z ] [-w ] Usage: srvctl add service -d -s -u {-r "" | -a ""} Usage: srvctl config service -d [-s ] [-a] Usage: srvctl enable service -d -s "" [-i | -n ] Usage: srvctl disable service -d -s "" [-i | -n ] Usage: srvctl status service -d [-s ""] [-f] [-v] Usage: srvctl modify service -d -s -i -t [-f] Usage: srvctl modify service -d -s -i -r [-f] Usage: srvctl modify service -d -s -n -i "" [-a ""] [-f] Usage: srvctl modify service -d -s [-c {UNIFORM | SINGLETON}] [-P {BASIC|PRECONNECT|NONE}] [-l [PRIMARY][,PHYSICAL_STANDBY][,LOGICAL_STANDBY][,SNAPSHOT_STANDBY]] [-y {AUTOMATIC | MANUAL}][-q {true|false}] [-x {true|false}] [-j {SHORT|LONG}] [-B {NONE|SERVICE_TIME|THROUGHPUT}] [-e {NONE|SESSION|SELECT}] [-m {NONE|BASIC}] [-z ] [-w ] Usage: srvctl relocate service -d -s {-i -t | -c -n } [-f] Specify instances for an administrator-managed database, or nodes for a policy managed database Usage: srvctl remove service -d -s [-i ] [-f] Usage: srvctl start service -d [-s "" [-n | -i ] ] [-o ] Usage: srvctl stop service -d [-s "" [-n | -i ] ] [-f] Usage: srvctl add nodeapps { { -n -A //[if1[|if2...]] } | { -S //[if1[|if2...]] } } [-p ] [-m ] [-e ] [-l ] [-r ] [-t [:][,[:]...]] [-v] Usage: srvctl config nodeapps [-a] [-g] [-s] [-e] Usage: srvctl modify nodeapps {[-n -A /[/if1[|if2|...]]] | [-S /[/if1[|if2|...]]]} [-m ] [-p ] [-e ] [ -l ] [-r ] [-t [:][,[:]...]] [-v] Usage: srvctl start nodeapps [-n ] [-v] Usage: srvctl stop nodeapps [-n ] [-f] [-r] [-v] Usage: srvctl status nodeapps Usage: srvctl enable nodeapps [-v] Usage: srvctl disable nodeapps [-v] Usage: srvctl remove nodeapps [-f] [-y] [-v] Usage: srvctl getenv nodeapps [-a] [-g] [-s] [-e] [-t ""] Usage: srvctl setenv nodeapps {-t "=[,=,...]" | -T "="} Usage: srvctl unsetenv nodeapps -t "" [-v] Usage: srvctl add vip -n -k -A //[if1[|if2...]] [-v] Usage: srvctl config vip { -n | -i } Usage: srvctl disable vip -i [-v] Usage: srvctl enable vip -i [-v] Usage: srvctl remove vip -i "" [-f] [-y] [-v] Usage: srvctl getenv vip -i [-t ""] Usage: srvctl start vip { -n | -i } [-v] Usage: srvctl stop vip { -n | -i } [-f] [-r] [-v] Usage: srvctl status vip { -n | -i } Usage: srvctl setenv vip -i {-t "=[,=,...]" | -T "="} Usage: srvctl unsetenv vip -i -t "" [-v] Usage: srvctl add asm [-l ] Usage: srvctl start asm [-n ] [-o ] Usage: srvctl stop asm [-n ] [-o ] [-f] Usage: srvctl config asm [-a] Usage: srvctl status asm [-n ] [-a] Usage: srvctl enable asm [-n ] Usage: srvctl disable asm [-n ] Usage: srvctl modify asm [-l ] Usage: srvctl remove asm [-f] Usage: srvctl getenv asm [-t [, ...]] Usage: srvctl setenv asm -t "= [,...]" | -T "=" Usage: srvctl unsetenv asm -t "[, ...]" Usage: srvctl start diskgroup -g [-n ""] Usage: srvctl stop diskgroup -g [-n ""] [-f] Usage: srvctl status diskgroup -g [-n ""] [-a] Usage: srvctl enable diskgroup -g [-n ""] Usage: srvctl disable diskgroup -g [-n ""] Usage: srvctl remove diskgroup -g [-f] Usage: srvctl add listener [-l ] [-s] [-p "[TCP:][, ...][/IPC:][/NMP:][/TCPS:] [/SDP:]"] [-o ] [-k ] Usage: srvctl config listener [-l ] [-a] Usage: srvctl start listener [-l ] [-n ] Usage: srvctl stop listener [-l ] [-n ] [-f] Usage: srvctl status listener [-l ] [-n ] Usage: srvctl enable listener [-l ] [-n ] Usage: srvctl disable listener [-l ] [-n ] Usage: srvctl modify listener [-l ] [-o ] [-p "[TCP:][, ...][/IPC:][/NMP:][/TCPS:] [/SDP:]"] [-u ] [-k ] Usage: srvctl remove listener [-l | -a] [-f] Usage: srvctl getenv listener [-l ] [-t [, ...]] Usage: srvctl setenv listener [-l ] -t "=