Note
This view is available starting with V4.6.0.
Purpose
The oceanbase.DBA_OB_TTL_TASKS view displays the execution status of TTL tasks in the SQL mode for the current tenant.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| TABLE_NAME | varchar(256) | NO | The name of the table. |
| TABLE_ID | bigint(20) | NO | The ID of the table. |
| TASK_ID | bigint(20) | NO | The ID of the current batch task. |
| START_TIME | timestamp(6) | NO | The start time of the task. |
| MODIFIED_TIME | timestamp(6) | NO | The update time of the row. |
| TRIGGER_TYPE | varchar(8) | NO | The type of the task trigger. Valid values:
|
| STATUS | varchar(10) | NO | The status of the task. Valid values:
|
| RET_CODE | varchar(512) | NO | The error code returned when the task ends. |
| TASK_TYPE | varchar(10) | NO | The type of the TTL task. Valid values:
|
References
View the execution history of TTL tasks for all user tenants: CDB_OB_TTL_TASK_HISTORY
