add service
Adds a global service to a Global Data Services pool.
Syntax
add service
[-gdspool gdspool_name]
-service service_name
(-preferred_all | (-preferred dbname_list [-available dbname_list]))
[-locality {ANYWHERE | LOCAL_ONLY [-region_failover]}]
[-role {PRIMARY | PHYSICAL_STANDBY [-failover_primary] |
LOGICAL_STANDBY | SNAPSHOT_STANDBY | TRUE_CACHE}]
[-lag {lag_value | ANY}]
[-notification {TRUE | FALSE}]
[-rlbgoal {SERVICE_TIME | THROUGHPUT}]
[-dtp {TRUE | FALSE}]
[-sql_translation_profile stp_name]
[-clbgoal {SHORT | LONG}]
[-tafpolicy {BASIC | NONE | PRECONNECT}]
[-policy policy]
[-failovertype {NONE | SESSION | SELECT | TRANSACTION | AUTO}]
[-failovermethod {NONE | BASIC}]
[-failoverretry failover_retries]
[-failoverdelay failover_delay]
[-edition edition_name]
[-commit_outcome {TRUE | FALSE}]
[-retention retention_seconds]
[-session_state {DYNAMIC | STATIC | AUTO}]
[-replay_init_time replay_init_time]
[-pdbname pdbname]
[-drain_timeout]
[-stop_option {NONE,IMMEDIATE, TRANSACTIONAL}]
[-failover_restore {NONE|LEVEL1|AUTO}]
[-table_family family]
[-failover_restore {NONE|LEVEL1|AUTO}]
[-reset_state {NONE|LEVEL1}]Options
Table 2-12 GDSCTL add service Options
| Option | Description |
|---|---|
|
|
Specify a comma-delimited list of available databases on which the service runs if the preferred databases are not available. You cannot specify a list of available instances, only databases. You can use the modify service command with the The list of available databases must be mutually exclusive with the list of preferred databases. You cannot use this option with the For True Cache implementations, specify a comma-delimited
list of available databases or True Caches on which the service runs if
the preferred ones are not available. You can't specify a list of
available instances, only databases and True Caches. You can use the
The list of available databases or True Caches must be mutually exclusive with the list of preferred ones. You cannot use this option with the |
|
|
Connection Load Balancing Goal. Use a value of
The default value for this
option, if not specified, is SHORT
for runtime load balancing.
|
|
|
Enable Transaction Guard; when set to |
|
|
Set drain time in seconds. |
|
|
Indicates whether Distributed Transaction Processing should be enabled for this service. This service can either be a service in a policy-managed database or a preferred service on a single node in an administrator-managed database. |
|
|
Specify the initial session edition of the service. When an edition is specified for a service, all subsequent connections that specify the service use this edition as the initial session edition. However, if a session connection specifies a different edition, then the edition specified in the session connection is used for the initial session edition. GDSCTL does not validate the specified edition name. During connection, the connect user must have |
|
|
If you set the -role is TRUE_CACHE, you can use this
option to enable the service to failover to the primary database if no True
Caches are available. Also include the primary database in the
-preferred or -available list, or use
the -preferred_all option.
|
|
|
For Application Continuity and TAF, this parameter specifies the time delay (in seconds) between reconnect attempts for each incident at failover. |
|
|
TAF failover method (for backward compatibility only). If the failover type ( |
|
|
For Application Continuity and TAF, this parameter determines the number of attempts to connect after an incident. |
|
|
Specify the failover type. To enable Application Continuity for Java, set this parameter to |
|
|
Specify the name of the Global Data Services pool to which you want to add a service. If the pool name is not specified and there is only one |
|
|
Specify the lag for the service in seconds. You can
use the keyword The default value for |
|
|
Specify the service region locality. If you do not
specify this option, then GDSCTL uses the default value of
LOCAL_ONLY. This indicates that GDS
only routes to True Caches in the same region, regardless of load. Use this
option together with -region_failover so that client
connections and requests are routed to another region if all True Caches in
a region have failed.
|
|
|
Enable Fast Application Notification (FAN) for OCI connections. |
|
|
Specify the pluggable database name. |
|
|
Specify the management policy for the service. If you specify If you specify |
|
-preferred dbname_list |
Specify a comma-delimited list of preferred databases or True Caches on which the service runs. You can't specify preferred instances, only databases and True Caches. You can use the modify service command to specify instance-level preferences. The list of preferred databases must be mutually exclusive with the list of available databases. You cannot use this option with the |
|
|
Specifies that all the databases in the Global Data Services pool are preferred databases. Any databases you later add to the pool are configured as preferred databases for this service. You cannot use this option with the
-
failover_primary, the primary database.
|
|
|
Indicates that the service is enabled for region failover. You can only use this option when you specify |
|
|
For Application Continuity, this parameter specifies the time (in seconds) after which replay cannot be initiated. The default value is 300 seconds. |
|
|
If |
|
|
Run-time Load Balancing Goal (for the Load Balancing
Advisory). Set this parameter to SERVICE_TIME to balance connections by response time
instead of by throughput.
If you do not use this option, then
the value defaults to |
|
|
Specify the database role that the database must be for this service to start on that database. This applies only to Global Data Services pools that contain an Oracle Data Guard broker configuration. For True Cache services, useTRUE_CACHE. This ensure that the service only runs on
other True Caches, not on the primary database
See Also: Oracle Data Guard Concepts and Administration for more information about database roles |
|
|
Specify the name of the global service. The service name specified in the A global service name must be unique within a GDS pool and when qualified by domain, must also be unique within a GDS configuration. A global service cannot be created at a database if a local or global service with the same name already exists at that database. A global service name can contain alphanumeric characters, underscore (_), and period (.). The first character must be alphanumeric. The maximum length of a global service name is 64 characters. The maximum length of a domain qualified global service name is 250 characters. An Oracle Net connect descriptor used to connect to a global service must contain a domain qualified service name. |
|
|
For Application Continuity, this parameter specifies whether the session state that is not transactional is changed by the application. A setting of |
|
|
Use this option to specify a SQL translation profile for a service that you are adding after you have migrated applications from a non-Oracle database to an Oracle database. This option corresponds to the SQL translation profile parameter in the Notes:
See Also: Oracle AI Database SQL Translation and Migration Guide for more information about SQL translation |
|
|
Set the default stop option to |
|
|
Specifies the name of the table family as a property of the service. This parameter
takes one of the table family values (root table
If the schema name or the table name is case-sensitive, use two-level quotes (single quotes outside, double quotes inside) around the whole string, for example, '"TESTUSER1.Customers6"'. No quotes are needed if neither name is case sensitive. If this parameter is not specified, but there is currently only one table family, the service created with the |
|
|
TAF policy specification (for administrator-managed databases only). |
-failover_restore |
Session state restoration for Application Continuity
( |
-reset_state |
Reset session state ( |
Usage Notes
Database-specific options cannot be set at this level. The modify service command must be used to set database-specific options.
One of -preferred_all or -preferred must be specified. If -preferred_all is specified, then all databases in the pool are preferred for this global service (databases inserted into the pool will also have this global service added).
Services cannot be added to systems that run Clusterware unless Clusterware is started on the system, even if the target database is not under CRS control. Ensure that Clusterware is started on Clusterware enabled systems before adding a new global service.
In Oracle Sharding, note that when there is no table_family parameter specified, the service is not associated with any table family, and the value of the property is set to NULL. This is the case for user-defined and composite sharding, where there is always only one table family, and can also be the case when there is only one table family in system-managed sharding. When a table family is deleted (that is, the root table of the table family is dropped) the table_family property of the service is reset to NULL.
Examples
Note:
Starting with Oracle AI Database 26ai, the session attribute valuesFAILOVER_TYPE = TRANSACTION with
SESSION_STATE_CONSISTENCY = STATIC are no longer a supported service
attribute combination. Instead use one of the following combinations in the service
configuration: FAILOVER_TYPE = AUTO with
SESSION_STATE_CONSISTENCY = AUTO or FAILOVER_TYPE =
TRANSACTION with SESSION_STATE_CONSISTENCY = DYNAMIC These
configurations enforce session state tracking in the Oracle database ensuring that
session state is preserved at session migration and session failover.
Add a service named sales_report to the Global Data Services pool
MYREADERFARM with a value of ANYWHERE for the locality.
GDSCTL> add service -gdspool myreaderfarm -service sales_report -locality ANYWHERE
Add a service named daily_sales_rept to the Global Data Services pool MYDGPOOL with preferred instance set to DB1 and the available instances set to DB3 and DB4. The service should use the basic transaction failover policy.
GDSCTL> add service -gdspool mydgpool -s daily_sales_rept -preferred db1
-available db3,db4 -tafpolicy BASICIn a system-managed sharded database, the table family ID parameter is specified as a property of the service.
GDSCTL> add service –gdspool shdpool –table_family sales.customer -service sales –preferred_all -locality ANYWHERERelated Topics