Overview
Displays the historical records of backup job tasks for all tenants in the cluster.
Columns
Field Name |
Field Name |
Whether can be NULL |
Field Name |
|---|---|---|---|
| TENANT_ID | bigint(20) | NO | Tenant ID |
| JOB_ID | bigint(20) | NO | Backup Job Task ID. Each backup operation corresponds to a job task record. |
| INCARNATION | bigint(20) | NO | Indicates the number of forks after a flashback database operation. |
| BACKUP_SET_ID | bigint(20) | YES | Backup set ID. The default value for the sys tenant is 0, and for user tenants, it starts from 1 and increments sequentially. |
| INITIATOR_TENANT_ID | bigint(20) | NO | The tenant ID of the task initiator, indicating the tenant that initiated the task and executed the backup SQL command. |
| INITIATOR_JOB_ID | bigint(20) | NO | JOB ID of the task initiator |
| EXECUTOR_TENANT_ID | varchar(65536) | NO | The tenant ID for which backup is to be performed, associated with this job-level backup task. |
| PLUS_ARCHIVELOG | varchar(4096) | NO | Whether to enable log completion:
|
| BACKUP_TYPE | varchar(4096) | NO | Backup type:
|
| JOB_LEVEL | varchar(4096) | NO | JOB Level:
|
| ENCRYPTION_MODE | varchar(4096) | YES | Encryption Mode:
The current supported modes are None and Password. |
| PASSWD | varchar(4096) | YES | password |
| START_TIMESTAMP | timestamp(6) | NO | Start Time of JOB-Level Backup Task |
| END_TIMESTAMP | timestamp(6) | NO | End Time of Job-Level Backup Task |
| STATUS | varchar(4096) | NO | Backup Status |
| RESULT | bigint(20) | NO | Backup Error Code Result |
| COMMENT | varchar(4096) | YES | Error Code Description |
| DESCRIPTION | varchar(4096) | YES | User-specified backup description |
| PATH | varchar(4096) | YES | Backup Path |
Sample query
The system tenant queries the backup job history of the tenant with ID 1002.
obclient [oceanbase]> SELECT * FROM oceanbase.CDB_OB_BACKUP_JOB_HISTORY WHERE TENANT_ID = 1002\G
The query result is as follows:
*************************** 1. row ***************************
TENANT_ID: 1002
JOB_ID: 1
INCARNATION: 1
BACKUP_SET_ID: 1
INITIATOR_TENANT_ID: 1002
INITIATOR_JOB_ID: 0
EXECUTOR_TENANT_ID: 1002
PLUS_ARCHIVELOG: OFF
BACKUP_TYPE: FULL
JOB_LEVEL: USER_TENANT
ENCRYPTION_MODE: NONE
PASSWD:
START_TIMESTAMP: 2025-01-07 14:02:11.456564
END_TIMESTAMP: 2025-01-07 14:04:31.184971
STATUS: COMPLETED
RESULT: 0
COMMENT:
DESCRIPTION:
PATH: file:///home/admin/oceanbase/backupdata
*************************** 2. row ***************************
TENANT_ID: 1002
JOB_ID: 2
INCARNATION: 1
BACKUP_SET_ID: 2
INITIATOR_TENANT_ID: 1002
INITIATOR_JOB_ID: 0
EXECUTOR_TENANT_ID: 1002
PLUS_ARCHIVELOG: OFF
BACKUP_TYPE: FULL
JOB_LEVEL: USER_TENANT
ENCRYPTION_MODE: NONE
PASSWD:
START_TIMESTAMP: 2025-01-07 14:24:12.797543
END_TIMESTAMP: 2025-01-07 14:26:22.479357
STATUS: COMPLETED
RESULT: 0
COMMENT:
DESCRIPTION:
PATH: file:///home/admin/oceanbase/backupdata
2 rows in set
References
View backup jobs for all tenants: CDB_OB_BACKUP_JOBS
View task-level backup tasks for all tenants: CDB_OB_BACKUP_TASKS
View the history of task-level backup tasks for all tenants: CDB_OB_BACKUP_TASK_HISTORY
For detailed operations and instructions on viewing the data backup progress, see View the data backup progress.