srvctl

srvctl

#srvctl
Usage: srvctl <command> <object> [<options>]
    commands: enable|disable|export|import|start|stop|relocate|status|add|remove|modify|getenv|setenv|unsetenv|config|convert|update|upgrade|downgrade|predict
    objects: database|instance|service|nodeapps|vip|network|asm|asmnetwork|diskgroup|listener|srvpool|server|scan|scan_listener|qosmserver|home|filesystem|gns|cvu|havip|exportfs|rhpserver|rhpclient|mgmtdb|mgmtlsnr|volume|cha|mountfs|vm|ovmm|acfsrapps|oraclehome|rhpplsnr|cdp|cdpproxy|tfa|ioserver|ons|netstorageservice
For detailed help on each command and object and its options use:
  srvctl <command> -help [-compatible] or
  srvctl <command> <object> -help [-compatible]

srvctl stop instance

#srvctl stop instance -h

Stops the database instance.

Usage: srvctl stop instance {-node "<node_list>" | -db <db_unique_name> {-node "<node_list>" | -instance "<inst_name_list>"}} [-stopoption <stop_options>] [-drain_timeout <timeout>] [-force] [-failover] [-verbose]
    -node "<node_list>"            Comma separated node names
    -db <db_unique_name>           Unique name for the database
    -instance "<inst,...>"         Comma separated instance names
    -stopoption <stop_options>     Options to instance shutdown command (e.g. NORMAL, "TRANSACTIONAL LOCAL", IMMEDIATE, or ABORT)
    -drain_timeout <drain_timeout> Service drain timeout specified in seconds
    -force                         Forcibly stop the instance and any running services.
    -failover                      Allow the running services to fail over to another instance
    -verbose                       Verbose output
    -help                          Print usage
#srvctl stop instance -d rac -i rac2 -o immediate

srvctl stop database

#srvctl stop database -h

Stops the database.

Usage: srvctl stop database -db <db_unique_name> [-stopoption <stop_options>] [-stopconcurrency <stop_concurrency>] [-serverpool "<serverpool_list>"] [-drain_timeout <timeout>] [-force] [-eval] [-verbose]
    -db <db_unique_name>           Unique name for the database
    -stopoption <stop_options>     Options to shutdown command (e.g. NORMAL, TRANSACTIONAL, IMMEDIATE, or ABORT)
    -stopconcurrency <stop_concurrency> Number of instances to be stopped simultaneously (or 0 for empty stop_concurrency value )
    -serverpool "<serverpool_list>" Comma separated list of database server pool names
    -drain_timeout <drain_timeout> Service drain timeout specified in seconds
    -eval                          Evaluates the effects of event without making any changes to the system
    -force                         Force stop, will stop database and any associated services and any dependent resources
    -verbose                       Verbose output
    -help                          Print usage

srvctl status instance

#srvctl status instance -h

Displays the current state of the database instance.

Usage: srvctl status instance -db <db_unique_name> {-node <node_list> | -instance <inst_name_list>} [-force] [-detail] [-verbose]
    -db <db_unique_name>           Unique name for the database
    -node "<node_list>"            Comma separated node names
    -instance "<inst,...>"         Comma separated instance names
    -force                         Include disabled applications
    -detail                        Print detailed status information
    -verbose                       Verbose output
    -help                          Print usage
srvctl status instance -db rac -node qone1
srvctl status instance -db rac -instance rac1

srvctl status database

srvctl status database -h

Displays the current state of the database.

Usage: srvctl status database {-db <db_unique_name> {[-serverpool <serverpool_name>] | [-sid] [-home]}  | -serverpool <serverpool_name> | -thisversion | -thishome} [-force] [-detail] [-verbose]
    -db <db_unique_name>           Unique name for the database
    -serverpool <pool_name>        Display information on nodes within server pool
    -sid                           Displays the SID of the Oracle instance running on this node
    -home                          Displays Oracle home of specified database
    -thisversion                   Display status of databases that are of the same Oracle product version as 'srvctl.'
    -thishome                      Display status of databases that are configured in this Oracle Home.
    -force                         Include disabled applications
    -detail                        Print detailed status information
    -verbose                       Verbose output
    -help                          Print usage

srvctl start instance

#srvctl start instance -h

Starts the database instance.

Usage: srvctl start instance {-node "<node_list>" | -db <db_unique_name> {-node <node_name> [-instance <inst_name>] | -node "<node_list>" | -instance "<inst_name_list>"}} [-startoption <start_options>]
    -db <db_unique_name>           Unique name for the database
    -node "<node_list>"            Comma separated node names
    -instance "<inst,...>"         Comma separated instance names
    -startoption <start_options>   Options to startup command (e.g. OPEN, MOUNT, or "READ ONLY")
    -help                          Print usage
    

srvctl start database

#srvctl start database -h

Starts the database.

Usage: srvctl start database -db <db_unique_name> [-startoption <start_options>] [-startconcurrency <start_concurrency>] [-node <node> | -serverpool "<serverpool_list>"] [-eval] [-verbose]
    -db <db_unique_name>           Unique name for the database
    -startoption <start_options>   Options to startup command (e.g. OPEN, MOUNT, or "READ ONLY")
    -startconcurrency <start_concurrency> Number of instances to be started simultaneously (or 0 for empty start_concurrency value)
    -node <node>                   Node on which to start the database (only for RAC One Node databases)
    -serverpool "<serverpool_list>" Comma separated list of database server pool names
    -eval                          Evaluates the effects of event without making any changes to the system
    -verbose                       Verbose output
    -help                          Print usage

srvctl config database

#srvctl config database -h

Displays the configuration for the database.

Usage: srvctl config database [-d <db_unique_name> [-a] ] [-v]
    -d <db_unique_name>      Unique name for the database
    -a                       Print detailed configuration information
    -v                       Verbose output
    -h                       Print usage
    
#srvctl config database
#srvctl config databae -d bpxtest

srvctl status nodeapps

#srvctl status nodeapps -h

Displays the current state of the node applications.

Usage: srvctl status nodeapps
    -h                       Print usage

#srvctl status nodeapps

srvctl status asm

#srvctl status asm -h

Displays the current state of ASM.

Usage: srvctl status asm [-n <node_name>] [-a] [-v]
    -n <node_name>           Node name
    -a                       Print detailed status information
    -v                       Verbose output
    -h                       Print usage
    
#srvctl status asm 
#srvctl status -a
#srvctl status -v

srvctl status scan

#srvctl status scan -h

Displays the current state of the SCAN VIP.

Usage: srvctl status scan [-i <ordinal_number>] [-v]
    -i <scan_ordinal_number> Ordinal number of IP address
    -v                       Verbose output
    -h                       Print usage

#srvctl status scan

srvctl status listener

#srvctl status listener -h

Displays the current state of the listener.

Usage: srvctl status listener [-l <lsnr_name>] [-n <node_name>] [-v]
    -l <lsnr_name>           Listener name
    -n <node_name>           Node name
    -v                       Verbose output
    -h                       Print usage
    
#srvctl status listener    

srvctl status scan_listener

#srvctl status scan_listener -h

Displays the current state of the SCAN listener.

Usage: srvctl status scan_listener [-i <ordinal_number>] [-v]
    -i <scan_ordinal_number> Ordinal number of IP address
    -v                       Verbose output
    -h                       Print usage
    
#srvctl status scan_listener

srvctl status vip

#srvctl status vip -h

Displays the current state of the VIP.

Usage: srvctl status vip { -n <node_name> | -i <vip_name> } [-v]
    -n <node_name>           Node name
    -i <vip_name>            VIP name
    -v                       Verbose output
    -h                       Print usage

#srvctl status vip -n 节点主机名
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值