Note
This view is available starting with V4.0.0.
Purpose
You can view the history of backup job tasks in your own tenant.
Columns
| Column | Type | Nullable | Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| JOB_ID | bigint(20) | NO | The ID of the backup task. One job record corresponds to one backup task. | ||||||||||
| INCARNATION | bigint(20) | NO | 1. The number of times the database has been flashed back. | ||||||||||
| BACKUP_SET_ID | bigint(20) | YES | The ID of the backup set. The ID is 0 for the sys tenant. The IDs for user tenants are sequentially assigned from 1. | ||||||||||
| INITIATOR_TENANT_ID | bigint(20) | NO | The tenant ID of the task initiator, which indicates the tenant that initiated the task and corresponds to the tenant ID of the tenant that executed the backup SQL statement. | ||||||||||
| INITIATOR_JOB_ID | bigint(20) | NO | The ID of the job in the task initiator | ||||||||||
| EXECUTOR_TENANT_ID | varchar(65536) | NO | This is the ID of the tenant that is associated with the job-level backup task and needs to perform the backup. | ||||||||||
| PLUS_ARCHIVELOG | varchar(4096) | NO | Specifies whether to enable the feature that supplements the missing entries in log files. Valid values: ON and OFF. |
||||||||||
| BACKUP_TYPE | varchar(4096) | NO | Backup type: |
||||||||||
| JOB_LEVEL | varchar(4096) | NO | JOB level: |
||||||||||
| ENCRYPTION_MODE | varchar(4096) | YES | Encryption mode: Only None and Password encryption modes are supported at present. |
||||||||||
| 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. | ||||||||||
| Column | Type | Nullable | Description | --- | --- | --- | --- | STATUS | varchar(4096) | NO | The backup status. | ||
| RESULT | bigint(20) | NO | The error code | ||||||||||
| COMMENT | varchar(4096) | YES | The error code description | ||||||||||
| Description | varchar(4096) | YES | The description information specified by the user. | ||||||||||
| PATH | varchar(4096) | YES | The backup path. |
Sample query
The user can query the job history of the current tenant's backup jobs.
obclient [oceanbase]> SELECT * FROM oceanbase.DBA_OB_BACKUP_JOB_HISTORY \G
The query result is as follows:
*************************** 1. row ***************************
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 ***************************
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