srvctl add service -d db_unique_name -s service_name {-r "preferred_list" [-a "available_list"] [-P {BASIC | NONE | PRECONNECT}] | -g server_pool [-c {UNIFORM | SINGLETON]} [-k network_number] [-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]Table A-17 srvctl add service Options
Option | Description |
---|---|
-d db_unique_name
|
Unique name for the database. |
-s service_name
|
The |
-r preferred_list
|
A list of preferred instances on which the service runs when the database is administrator managed. The list of preferred instances must be mutually exclusive with the list of available instances. Note: This option is available only with Oracle RAC and only for administrator-managed databases. |
-a available_list
|
A list of available instances to which the service fails over when the database is administrator managed. The list of available instances must be mutually exclusive with the list of preferred instances. Note: This option is available only with Oracle RAC and only for administrator-managed databases. |
-P {BASIC | NONE | PRECONNECT} |
TAF policy specification (for administrator-managed databases only). Notes:
|
-g server_pool
|
The name of a server pool used when the database is policy managed. Note: This option is available only with Oracle RAC and only for policy-managed databases. |
-c {UNIFORM | SINGLETON} |
The
cardinality of the service, either Notes:
|
-k network_number
|
Use this option to determine on which network this service is offered. The service is configured to depend on VIPs from the specified network. Note: This option is available only with Oracle RAC and Oracle RAC One Node database configurations. |
-l {[PRIMARY] | [PHYSICAL_STANDBY] | [LOGICAL_STANDBY] | [SNAPSHOT_STANDBY]} |
The service role. You use this option to indicate that the service should only be automatically started when the Oracle Data Guard database role matches one of the specified service roles. See Also: Oracle Data Guard Concepts and Administration for more information about database roles |
-y {AUTOMATIC | MANUAL} |
Service management policy. If If Note: Using CRSCTL to stop and start the Oracle Clusterware restarts the service in the same way that a failure does. |
-x {TRUE | FALSE} |
Indicates whether or not Distributed Transaction Processing should be enabled for this service. This service will either be a singleton service in a policy-managed database or a preferred service on a single node in an administrator-managed database. Note: This option is available only with Oracle RAC. |
-j {SHORT | LONG} |
Assign
a connection load balancing goal to the service: |
-B {NONE | SERVICE_TIME | THROUGHPUT} |
Goal for the Load Balancing Advisory. |
-e {NONE | SESSION | SELECT} |
Failover type. |
-m {NONE | BASIC} |
Failover method. If the failover type ( Note: This option is available only with Oracle RAC. |