Note
This view is available starting with V4.6.0.
Purpose
The DBA_OB_TTL_TASK_HISTORY view displays the execution history of TTL tasks for the current tenant in SQL mode.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| TABLE_NAME | VARCHAR2(256) | NO | The name of the table. |
| TABLE_ID | NUMBER(38) | NO | The ID of the table. |
| TASK_ID | NUMBER(38) | NO | The ID of the current batch task. |
| START_TIME | NUMBER(38) | NO | The start time of the task. |
| MODIFIED_TIME | NUMBER(38) | NO | The update time of the row. |
| TRIGGER_TYPE | VARCHAR2(8) | NO | The type of the task trigger. Valid values:
|
| STATUS | VARCHAR2(10) | NO | The status of the task. Valid values:
|
| RET_CODE | VARCHAR2(512) | NO | The error code returned when the task ends. |
| TASK_TYPE | VARCHAR2(10) | NO | The type of the TTL task. Valid values:
|
Sample query
Query the execution history of TTL tasks for the current user tenant.
obclient(SYS@oracle001)[SYS]> SELECT * FROM SYS.DBA_OB_TTL_TASK_HISTORY;
The query result is as follows:
+------------+----------+---------+------------------+------------------+--------------+----------+------------+------------+
| TABLE_NAME | TABLE_ID | TASK_ID | START_TIME | MODIFIED_TIME | TRIGGER_TYPE | STATUS | RET_CODE | TASK_TYPE |
+------------+----------+---------+------------------+------------------+--------------+----------+------------+------------+
| NULL | -1 | 1 | 1773199073784266 | 1773199087897361 | USER | FINISHED | OB_SUCCESS | COMPACTION |
| NULL | 500010 | 1 | 1773199087874362 | 1773199087884145 | USER | FINISHED | OB_SUCCESS | COMPACTION |
| NULL | -1 | 2 | 1773199100539863 | 1773199102918473 | USER | FINISHED | OB_SUCCESS | COMPACTION |
| NULL | 500010 | 2 | 1773199102909689 | 1773199102915427 | USER | FINISHED | OB_SUCCESS | COMPACTION |
| NULL | -1 | 3 | 1773199108238139 | 1773199117934924 | USER | FINISHED | OB_SUCCESS | COMPACTION |
| NULL | 500010 | 3 | 1773199117926406 | 1773199117931988 | USER | FINISHED | OB_SUCCESS | COMPACTION |
+------------+----------+---------+------------------+------------------+--------------+----------+------------+------------+
6 rows in set
References
View the execution status of TTL tasks for the current tenant: DBA_OB_TTL_TASKS
View the TTL tasks of all user tenants:
