Note
This view is available starting with V4.0.0.
Overview
Displays the execution progress of the backup cleanup job for the current tenant.
Columns
Field Name |
Type |
Whether can be NULL |
Description |
|---|---|---|---|
| TENANT_ID | bigint(20) | NO | Tenant ID |
| JOB_ID | bigint(20) | NO | Task ID, which is monotonically increasing. |
| INCARNATION | bigint(20) | NO | Avatar ID |
| INITIATOR_TENANT_ID | bigint(20) | NO | Tenant ID that initiated the job |
| INITIATOR_JOB_ID | bigint(20) | NO | JOB ID of the tenant that initiated this job |
| EXECUTOR_TENANT_ID | varchar(65536) | NO | List of Tenants for Which the Cleanup Task Is to Be Performed |
| TYPE | varchar(64) | NO | Cleanup type:
|
| PARAMETER | timestamp(6) | NO | Clean-up parameters, record expiration time |
| JOB_LEVEL | varchar(64) | NO | Task Initiation Level:
|
| START_TIMESTAMP | timestamp(6) | NO | Current Tenant Time at Task Start |
| END_TIMESTAMP | timestamp(6) | NO | Current Tenant Time at Task End |
| STATUS | varchar(64) | NO | Task status:
|
| TASK_COUNT | bigint(20) | YES | Number of backup_set/piece Tasks |
| SUCCESS_TASK_COUNT | bigint(20) | YES | Number of Successfully Executed Tasks in backup_set/piece |
| RESULT | bigint(20) | NO | Error Code |
| COMMENT | varchar(4096) | YES | Task Execution Instructions |
Sample query
Users can query the execution progress of backup cleanup jobs for their own tenant.
obclient [oceanbase]> SELECT * FROM oceanbase.DBA_OB_BACKUP_DELETE_JOBS\G
The query result is as follows:
*************************** 1. row ***************************
JOB_ID: 7
INCARNATION: 1
INITIATOR_TENANT_ID: 1002
INITIATOR_JOB_ID: 7
EXECUTOR_TENANT_ID: 1002
TYPE: DELETE OBSOLETE BACKUP
PARAMETER: 2022-05-31 12:09:40.060284
JOB_LEVEL: USER_TENANT
START_TIMESTAMP: 2022-06-01 12:09:53.389512
END_TIMESTAMP:
STATUS: DOING
TASK_COUNT: 2
SUCCESS_TASK_COUNT: 1
RESULT: 0
COMMENT:
1 row in set
References
View the execution progress of ongoing backup cleanup tasks: DBA_OB_BACKUP_DELETE_TASKS
View the job history of backup cleanup: DBA_OB_BACKUP_DELETE_JOB_HISTORY
View the history of a backup cleanup task: DBA_OB_BACKUP_DELETE_TASK_HISTORY
For detailed operations on setting up automatic cleanup of expired backups, see Automatically clean up expired backups.
