Note
This view is introduced since OceanBase Database V3.1.4.
Purpose
The oceanbase.DBA_OB_KV_TTL_TASKS view displays the ongoing time-to-live (TTL) tasks in 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. |
| TABLET_ID | bigint(20) | NO | The ID of the tablet. |
| TASK_ID | bigint(20) | NO | The ID of the task, starting from 1. |
| START_TIME | timestamp(6) | NO | The start time of the task. |
| END_TIME | timestamp(6) | NO | The end time of the task. |
| TRIGGER_TYPE | varchar(8) | NO | The triggering type of the task. Valid values: PERIODIC and USER. |
| STATUS | varchar(13) | NO | The current status of the task. |
| TTL_DEL_CNT | bigint(20) | NO | The number of records deleted based on the time_to_live value. |
| MAX_VERSION_DEL_CNT | bigint(20) | NO | The number of records deleted based on MAX_VERSION. |
| SCAN_CNT | bigint(20) | NO | The number of records scanned for the task. |
| RET_CODE | varchar(512) | NO | The return code of the task. |