Overview
Displays the backup job tasks of the current tenant.
Columns
Field Name |
Field Name |
Whether can be NULL |
Field Name |
|---|---|---|---|
| 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 following modes are supported: 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
You can view the backup job tasks of the current tenant.
obclient [oceanbase]> SELECT * FROM oceanbase.DBA_OB_BACKUP_JOBS\G
The query result is as follows:
*************************** 1. row ***************************
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: NULL
STATUS: DOING
RESULT: 0
COMMENT:
DESCRIPTION:
PATH: file:///home/admin/oceanbase/backupdata
1 row in set
References
View the historical records of job-level backup tasks for a tenant: DBA_OB_BACKUP_JOB_HISTORY
View the tenant's own task-level backup tasks: DBA_OB_BACKUP_TASKS
View the history of task-level backup tasks for a tenant: DBA_OB_BACKUP_TASK_HISTORY
For detailed operations and descriptions on viewing the data backup progress, see View the data backup progress.