Overview
The CDB_OB_SERVICES view displays information about all SERVICE_NAME entries under all tenants.
Columns
Field Name |
Type |
Whether can be NULL |
Description |
|---|---|---|---|
| TENANT_ID | bigint(20) | NO | Tenant ID, including the user tenant ID. |
| CREATE_TIME | timestamp(6) | NO | The time when the service was created. |
| MODIFIED_TIME | timestamp(6) | NO | The update time of service-related information. |
| SERVICE_NAME_ID | bigint(20) | NO | Service name ID, which uniquely identifies the service name. |
| SERVICE_NAME | varchar(64) | NO | Service name. |
| SERVICE_STATUS | varchar(64) | NO | Service status. Valid values:
|
Sample query
Query information about all SERVICE_NAME instances under all tenants.
obclient [oceanbase]> SELECT * FROM oceanbase.CDB_OB_SERVICES;
The query result is as follows:
+-----------+----------------------------+----------------------------+-----------------+------------------+----------------+
| TENANT_ID | CREATE_TIME | MODIFIED_TIME | SERVICE_NAME_ID | SERVICE_NAME | SERVICE_STATUS |
+-----------+----------------------------+----------------------------+-----------------+------------------+----------------+
| 1002 | 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_NAMEinstances in the current tenant: DBA_OB_SERVICES - For operations related to
SERVICE_NAME, see the Manage services topic.