1.srvctl命令用法查询
用法: srvctl <command> <object> [<options>]
命令: enable|disable|start|stop|relocate|status|add|remove|modify|getenv|setenv|unsetenv|config
对象: database|instance|service|nodeapps|asm|listener
有关各个命令和对象的详细帮助, 请使用: srvctl <command> <object> -h
2.有关srvctl的详细用法
用法: srvctl [-V]
用法: srvctl add database -d <name> -o <oracle_home> [-m <domain_name>] [-p <spfile>] [-A <name|ip>/netmask] [-r
{PRIMARY | PHYSICAL_STANDBY | LOGICAL_STANDBY}] [-s <start_options>] [-n <db_name>] [-y {AUTOMATIC | MANUAL}]
用法: srvctl add instance -d <name> -i <inst_name> -n <node_name>
用法: srvctl add service -d <name> -s <service_name> -r "<preferred_list>" [-a "<available_list>"] [-P
<TAF_policy>]
用法: srvctl add service -d <name> -s <service_name> -u {-r "<new_pref_inst>" | -a "<new_avail_inst>"}
用法: srvctl add nodeapps -n <node_name> -o <oracle_home> -A <name|ip>/netmask[/if1[|if2|...]]
用法: srvctl add asm -n <node_name> -i <asm_inst_name> -o <oracle_home> [-p <spfile>]
用法: srvctl config database
用法: srvctl config database -d <name> [-a] [-t]
用法: srvctl config service -d <name> [-s <service_name>] [-a] [-S <level>]
用法: srvctl config nodeapps -n <node_name> [-a] [-g] [-o] [-s] [-l]
用法: srvctl config asm -n <node_name>
用法: srvctl config listener -n <node_name>
用法: srvctl disable database -d <name>
用法: srvctl disable instance -d <name> -i "<inst_name_list>"
用法: srvctl disable service -d <name> -s "<service_name_list>" [-i <inst_name>]
用法: srvctl disable asm -n <node_name> [-i <inst_name>]
用法: srvctl enable database -d <name>
用法: srvctl enable instance -d <name> -i "<inst_name_list>"
用法: srvctl enable service -d <name> -s "<service_name_list>" [-i <inst_name>]
用法: srvctl enable asm -n <node_name> [-i <inst_name>]
用法: srvctl getenv database -d <name> [-t "<name_list>"]
用法: srvctl getenv instance -d <name> -i <inst_name> [-t "<name_list>"]
用法: srvctl getenv service -d <name> -s <service_name> [-t "<name_list>"]
用法: srvctl getenv nodeapps -n <node_name> [-t "<name_list>"]
用法: srvctl modify database -d <name> [-n <db_name] [-o <ohome>] [-m <domain>] [-p <spfile>] [-r {PRIMARY |
PHYSICAL_STANDBY | LOGICAL_STANDBY}] [-s <start_options>] [-y {AUTOMATIC | MANUAL}]
用法: srvctl modify instance -d <name> -i <inst_name> -n <node_name>
用法: srvctl modify instance -d <name> -i <inst_name> {-s <asm_inst_name> | -r}
用法: srvctl modify service -d <name> -s <service_name> -i <old_inst_name> -t <new_inst_name> [-f]
用法: srvctl modify service -d <name> -s <service_name> -i <avail_inst_name> -r [-f]
用法: srvctl modify service -d <name> -s <service_name> -n -i <prefered_inst> [-a <available_list>] [-f]
用法: srvctl modify asm -n <node_name> -i <asm_inst_name> [-o <oracle_home>] [-p <spfile>]
用法: srvctl relocate service -d <name> -s <service_name> -i <old_inst_name> -t <new_inst_name> [-f]
用法: srvctl remove database -d <name> [-f]
用法: srvctl remove instance -d <name> -i <inst_name> [-f]
用法: srvctl remove service -d <name> -s <service_name> [-i <inst_name>] [-f]
用法: srvctl remove nodeapps -n "<node_name_list>" [-f]
用法: srvctl remove asm -n <node_name> [-i <asm_inst_name>] [-f]
用法: srvctl setenv database -d <name> {-t <name>=<val>[,<name>=<val>,...] | -T <name>=<val>}
用法: srvctl setenv instance -d <name> [-i <inst_name>] {-t "<name>=<val>[,<name>=<val>,...]" | -T "<name>=<val>"}
用法: srvctl setenv service -d <name> [-s <service_name>] {-t "<name>=<val>[,<name>=<val>,...]" | -T
"<name>=<val>"}
用法: srvctl setenv nodeapps -n <node_name> {-t "<name>=<val>[,<name>=<val>,...]" | -T "<name>=<val>"}
用法: srvctl start database -d <name> [-o <start_options>] [-c <connect_str> | -q]
用法: srvctl start instance -d <name> -i "<inst_name_list>" [-o <start_options>] [-c <connect_str> | -q]
用法: srvctl start service -d <name> [-s "<service_name_list>" [-i <inst_name>]] [-o <start_options>] [-c
<connect_str> | -q]
用法: srvctl start nodeapps -n <node_name>
用法: srvctl start asm -n <node_name> [-i <asm_inst_name>] [-o <start_options>] [-c <connect_str> | -q]
用法: srvctl start listener -n <node_name> [-l <lsnr_name_list>]
用法: srvctl status database -d <name> [-f] [-v] [-S <level>]
用法: srvctl status instance -d <name> -i "<inst_name_list>" [-f] [-v] [-S <level>]
用法: srvctl status service -d <name> [-s "<service_name_list>"] [-f] [-v] [-S <level>]
用法: srvctl status nodeapps -n <node_name>
用法: srvctl status asm -n <node_name>
用法: srvctl stop database -d <name> [-o <stop_options>] [-c <connect_str> | -q]
用法: srvctl stop instance -d <name> -i "<inst_name_list>" [-o <stop_options>] [-c <connect_str> | -q]
用法: srvctl stop service -d <name> [-s "<service_name_list>" [-i <inst_name>]] [-c <connect_str> | -q] [-f]
用法: srvctl stop nodeapps -n <node_name>
用法: srvctl stop asm -n <node_name> [-i <asm_inst_name>] [-o <stop_options>] [-c <connect_str> | -q]
用法: srvctl stop listener -n <node_name> [-l <lsnr_name_list>]
用法: srvctl unsetenv database -d <name> -t "<name_list>"
用法: srvctl unsetenv instance -d <name> [-i <inst_name>] -t "<name_list>"
用法: srvctl unsetenv service -d <name> [-s <service_name>] -t "<name_list>"
用法: srvctl unsetenv nodeapps -n <node_name> -t "<name_list>"