services
Retrieves information about the services that are registered with the specified global service manager.
Syntax
[status service | services] [-gsm gsm_name]
[-service service_name]
[-raw | -verbose | -support]Options
Table 2-89 GDSCTL services Options
| Option | Description |
|---|---|
-gsm gsm_name |
Specify the name of a global service manager. If the name is not specified, then GDSCTL uses the current global service manager name for the session (specified with the GDSCTL |
-raw |
If specified, GDSCTL output is presented in a raw, non-parsed format. |
-service service_name |
Specify a fully qualified service name. If the service name is not specified, then the information about all the services registered with the global service manager is retrieved. |
-support |
If specified, GDSCTL output displays additional information. |
-verbose |
Enables verbose output mode. |
Usage Notes
You must run this command on the host where the global service manager for which you want to retrieve service information resides.
You must have the privileges of the user who started the global service manager to run this command.
If -service is not specified, then information for all global services is displayed.
Example
Display information about the services registered with global service manager mygsm:
GDSCTL> services -gsm mygsm
The gdsctl services command returns output similar to the following:
GDSCTL>services -gsm mygsm Service "localsvc.dbpoolora.oradbcloud" has 2 instance(s). Affinity: LOCALPREF Instance "dbpoolora%1", name: "gdscat", db: "gdscat", region: "regionora", status: ready. Instance "dbpoolora%11", name: "gdscat2", db: "gdscat2", region: "regionora", status: ready. Service "sales_report1.dbpoolora.oradbcloud" has 2 instance(s). Affinity: LOCALONLY Instance "dbpoolora%1", name: "gdscat", db: "gdscat", region: "regionora", status: ready. Instance "dbpoolora%11", name: "gdscat2", db: "gdscat2", region: "regionora", status: ready. Service "sales_report2.dbpoolora.oradbcloud" has 2 instance(s). Affinity: ANYWHERE Instance "dbpoolora%1", name: "gdscat", db: "gdscat", region: "regionora", status: ready. Instance "dbpoolora%11", name: "gdscat2", db: "gdscat2", region: "regionora", status: ready.
Note:
Affinity values can be LOCALONLY when the service locality is defined as local_only, LOCALPREF when the service locality is defined as local_only with the region_failover option enabled, and ANYWHERE when the service locality is defined as anywhere.
Display the status of mthly_report service:
GDSCTL>services -service mthly_report.sales.oradbcloud
Returns output similar to the following:
Service "mthly_report.sales.oradbcloud" has 1 instance(s). Affinity:
ANYWHERE
Instance "sales%1", name: "debug", db: "debug", region: "eastcoast",
status: ready.