Note
This view is available starting with V4.6.0.
Purpose
The DBA_OB_TTL_TASKS view displays the execution status of TTL tasks in 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 task trigger:
|
| STATUS | VARCHAR2(10) | NO | The status of the task:
|
| RET_CODE | VARCHAR2(512) | NO | The error code returned when the task ends. |
| TASK_TYPE | VARCHAR2(10) | NO | The type of the TTL task:
|
Sample query
Query the execution status of TTL tasks in the current user tenant.
obclient(SYS@oracle001)[SYS]> SELECT * FROM SYS.DBA_OB_TTL_TASKS;
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 | 3 | 1773199108238139 | 1773199108238139 | USER | TRIGGERING | OB_SUCCESS | COMPACTION |
+------------+----------+---------+------------------+------------------+--------------+------------+------------+------------+
1 row in set
References
View the execution history of TTL tasks in the current tenant: DBA_OB_TTL_TASK_HISTORY
View TTL tasks of all user tenants:
