Note
This view is introduced since OceanBase Database V3.1.4.
Purpose
The oceanbase.DBA_OB_KV_TTL_TASK_HISTORY view displays the historical time-to-live (TTL) tasks of 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. For more information, see the following section. |
| TTL_DEL_CNT | bigint(20) | No | The number of records deleted based on the value of the time_to_live parameter. |
| MAX_VERSION_DEL_CNT | bigint(20) | No | The number of records deleted based on MAX_VERSION. |
| SCAN_CNT | bigint(20) | No | The number of scanned records for the task. |
| RET_CODE | varchar(512) | No | The return code of the task. |