- srvctl add service -d leo -s cmcc -q TRUE -P BASIC -e SESSION -z 4 -w 5 具体使用参数如下:
- Usage: srvctl add service -d <db_unique_name> -s <service_name> {-r "<preferred_list>" [-a "<available_list>"] [-P {BASIC | NONE | PRECONNECT}]
- | -g <pool_name> [-c {UNIFORM | SINGLETON}] } [-k <net_num>] [-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 <failover_retries>] [-w <failover_delay>] [-t <edition>] [-f]
- -d <db_unique_name> Unique name for the database
- -s <service> Service name
- -r "<preferred_list>" Comma separated list of preferred instances
- -a "<available_list>" Comma separated list of available instances
- -g <pool_name> Server pool name
- -c {UNIFORM | SINGLETON} Service runs on every active server in the server pool hosting this service (UNIFORM) or just one server (SINGLETON)
- -k <net_num> network number (default number is 1)
- -P {NONE | BASIC | PRECONNECT} TAF policy specification
- -l <role> Role of the service (primary, physical_standby, logical_standby, snapshot_standby)
- -y <policy> Management policy for the service (AUTOMATIC or MANUAL)
- -e <Failover type> Failover type (NONE, SESSION, or SELECT)
- -m <Failover method> Failover method (NONE or BASIC)
- -w <integer> Failover delay
- -z <integer> Failover retries
- -t <edition> Edition (or "" for empty edition value)
- -j <clb_goal> Connection Load Balancing Goal (SHORT or LONG). Default is LONG.
- -B <Runtime Load Balancing Goal> Runtime Load Balancing Goal (SERVICE_TIME, THROUGHPUT, or NONE)
- -x <Distributed Transaction Processing> Distributed Transaction Processing (TRUE or FALSE)
- -q <AQ HA notifications> AQ HA notifications (TRUE or FALSE)
- Usage: srvctl add service -d <db_unique_name> -s <service_name> -u {-r "<new_pref_inst>" | -a "<new_avail_inst>"} [-f]
- -d <db_unique_name> Unique name for the database
- -s <service> Service name
- -u Add a new instance to service configuration
- -r <new_pref_inst> Name of new preferred instance
- -a <new_avail_inst> Name of new available instance
- -f Force the add operation even though a listener is not configured for a network
- -h Print usage
- Fast Connection Failover and Fast Application Notification
instance failure failover。
