Note
- This view is available starting with V4.3.3 in V4.3.x.
- This view is available starting with V4.2.4 in V4.2.x.
Purpose
The DBA_OB_SERVICES view displays information about all SERVICE_NAME in the current tenant.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| CREATE_TIME | timestamp(6) | NO | The creation time of the service. |
| MODIFIED_TIME | timestamp(6) | NO | The update time of the service information. |
| SERVICE_NAME_ID | bigint(20) | NO | The ID of the service name, which uniquely identifies the service name. |
| SERVICE_NAME | varchar(64) | NO | The name of the service. |
| SERVICE_STATUS | varchar(64) | NO | The status of the service. Valid values:
|
Sample query
Query information about all SERVICE_NAME in the current tenant.
obclient [oceanbase]> SELECT * FROM oceanbase.DBA_OB_SERVICES;
The query result is as follows:
+----------------------------+----------------------------+-----------------+------------------+----------------+
| CREATE_TIME | MODIFIED_TIME | SERVICE_NAME_ID | SERVICE_NAME | SERVICE_STATUS |
+----------------------------+----------------------------+-----------------+------------------+----------------+
| 2024-06-18 14:18:36.405999 | 2024-06-18 14:18:36.405999 | 3 | service_mysql001 | STARTED |
+----------------------------+----------------------------+-----------------+------------------+----------------+
1 row in set
References
- Query information about all
SERVICE_NAMEin all tenants: CDB_OB_SERVICES - For information about operations related to
SERVICE_NAME, see Manage services.