Note
This view is available starting with V4.0.0.
Purpose
This view displays the backup tasks of the current tenant.
Columns
| Column | Column | Nullable | Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| JOB_ID | bigint(20) | NO | The ID of the backup job. A job record is generated for each backup operation. | ||||||||||
| Column | Type | Nullable | Description | --- | --- | --- | --- | INCARNATION | bigint(20) | NO | Indicates the number of incarnations for Flashback Database. | ||
| BACKUP_SET_ID | bigint(20) | YES | The ID of the backup set. For a SYS tenant, the value is 0. For a user tenant, it starts from 1 and is automatically incremented. | ||||||||||
| INITIATOR_TENANT_ID | bigint(20) | NO | The ID of the tenant that initiated the task. This corresponds to the tenant ID that executed the backup SQL command. | ||||||||||
| INITIATOR_JOB_ID | bigint(20) | NO | The job ID of the task initiator. | ||||||||||
| EXECUTOR_TENANT_ID | varchar(65536) | NO | The tenant ID that the backup executor belongs to. | ||||||||||
| PLUS_ARCHIVELOG | varchar(4096) | NO | Whether to enable log backfilling:
|
||||||||||
| BACKUP_TYPE | varchar(4096) | NO | Backup type:
|
||||||||||
| JOB_LEVEL | varchar(4096) | NO | The job level. Valid values:
|
||||||||||
| ENCRYPTION_MODE | varchar(4096) | YES | The encryption mode. Valid values: None, Password, Password Encryption, Transparent Encryption, and Dual mode Encryption. This field specifies the encryption method.
|
||||||||||
| Column | Type | Nullable | Description | --- | --- | --- | --- | PASSWD | varchar(4096) | YES | Password. | ||
| START_TIMESTAMP | timestamp(6) | NO | The start time of the job-level backup task. | ||||||||||
| END_TIMESTAMP | timestamp(6) | NO | The end time of the job-level backup task. | ||||||||||
| Column | Type | Nullable | Description | --- | --- | --- | --- | STATUS | varchar(4096) | NO | Backup status | ||
| COLUMN | Type | Nullable | Description | --- | --- | --- | --- | RESULT | bigint(20) | NO | Backup error code result. | ||
| COLUMN | VARCHAR(4096) | YES | Description of the error code | ||||||||||
| DESCRIPTION | varchar(4096) | YES | User-specified backup description | ||||||||||
| Column | Type | Nullable | Description | --- | --- | --- | --- | PATH | varchar(4096) | YES | The backup path. |
Sample query
A user tenant can view backup tasks of this 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 backup task history for its own tenant: DBA_OB_BACKUP_JOB_HISTORY
View task-level backup tasks of the current tenant: DBA_OB_BACKUP_TASKS
Query your own task-level backup history: DBA_OB_BACKUP_TASK_HISTORY
For more information about how to view the progress of data backup, see View the progress of data backup.