oceanbase.DBA_OB_SERVICES

2025-11-19 10:08:13  Updated

Note

This view was introduced in OceanBase Database V4.2.4.

Purpose

The oceanbase.DBA_OB_SERVICES view displays all services in the current tenant.

Columns

Column Type Nullable? Description
CREATE_TIME timestamp(6) NO The time when the service was created.
MODIFIED_TIME timestamp(6) NO The time when the service information was last modified.
SERVICE_NAME_ID bigint(20) NO The ID of the service, which uniquely identifies the name of the service.
SERVICE_NAME varchar(64) NO The name of the service.
SERVICE_STATUS varchar(64) NO The status of the service. Valid values:
  • STARTED: The service has been started.
  • STOPPING: The service is being stopped.
  • STOPPED: The service has been stopped.

Sample query

Query all services 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 (0.012 sec)

References

CDB_OB_SERVICES

Contact Us