Note
- For OceanBase Database V4.3.x, this variable was introduced in OceanBase Database V4.3.3.
- For OceanBase Database V4.2.x, this variable was introduced in OceanBase Database V4.2.4.
Purpose
The DBA_OB_SERVICES view displays all service names in the current tenant.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| CREATE_TIME | TIMESTAMP(6) WITH LOCAL TIME ZONE | NO | The time when the service was created. |
| MODIFIED_TIME | TIMESTAMP(6) WITH LOCAL TIME ZONE | NO | The time when the service information was last modified. |
| SERVICE_NAME_ID | NUMBER(38) | NO | The ID of the service, which uniquely identifies the name of the service. |
| SERVICE_NAME | VARCHAR2(64) | NO | The name of the service. |
| SERVICE_STATUS | VARCHAR2(64) | NO | The status of the service. Valid values:
|
Sample query
Query all service names in the current tenant.
obclient [SYS]> SELECT * FROM SYS.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_oracle001 | STARTED |
+----------------------------+----------------------------+-----------------+------------------+----------------+
1 row in set (0.005 sec)