Note
This view is available starting with V4.0.0.
Purpose
This view displays the history of backup jobs of the current tenant.
Columns
| Column | Column | Nullable | Column | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Column | Type | Nullable | Description | --- | --- | --- | --- | JOB_ID | NUMBER(38) | NO | The ID of the backup job. One job record is created for each backup task. | ||
| Column | Type | Nullable | Description | --- | --- | --- | --- | INCARNATION | NUMBER(38) | NO | This value indicates the incarnation number after a Flashback Database operation. | ||
| BACKUP_SET_ID | NUMBER(38) | YES | The backup set ID. For the sys tenant, the default value is 0. For other tenants, the value starts from 1 and increments sequentially. | ||||||||||
| INITIATOR_TENANT_ID | NUMBER(38) | NO | The ID of the tenant that initiated the task, which is the ID of the tenant that executed the backup SQL statement. | ||||||||||
| INITIATOR_JOB_ID | NUMBER(38) | NO | the JOB_ID of the task initiator | ||||||||||
| EXECUTOR_TENANT_ID | VARCHAR2(65536) | NO | The ID of the tenant for which backup is performed for the job-level backup task. | ||||||||||
| PLUS_ARCHIVELOG | VARCHAR2(4096) | NO | Indicates whether to enable the archive log fill-in feature:
|
||||||||||
| BACKUP_TYPE | VARCHAR2(4096) | NO | Backup type:
|
||||||||||
| JOB_LEVEL | VARCHAR2(4096) | NO | The backup level of a job. Valid values:
|
||||||||||
| ENCRYPTION_MODE | VARCHAR2(4096) | YES | The encryption mode. Valid values are as follows:
|
||||||||||
| PASSWD | VARCHAR2(4096) | YES | Password | ||||||||||
| START_TIMESTAMP | VARCHAR2(256) | NO | The start time of the backup task at the job level. | ||||||||||
| END_TIMESTAMP | VARCHAR2(256) | NO | JOB-level backup task end time | ||||||||||
| Column | Type | Nullable | Description | --- | --- | --- | --- | STATUS | VARCHAR2(4096) | NO | The status of the backup. | ||
| RESULT | NUMBER(38) | NO | The result of the backup error code | ||||||||||
| COMMENT | VARCHAR2(4096) | YES | Error message | ||||||||||
| Column | Type | Nullable | Description | --- | --- | --- | --- | DESCRIPTION | VARCHAR2(4096) | YES | User-specified backup description | ||
| PATH | VARCHAR2(4096) | YES | Backup path |
Sample query
The user queries the history record of backup jobs of the current tenant.
obclient [SYS]> SELECT * FROM SYS.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: 1004
INITIATOR_JOB_ID: 0
EXECUTOR_TENANT_ID: 1004
PLUS_ARCHIVELOG: OFF
BACKUP_TYPE: FULL
JOB_LEVEL: USER_TENANT
ENCRYPTION_MODE: NONE
PASSWD: NULL
START_TIMESTAMP: 2025-06-05 10:07:30
END_TIMESTAMP: 2025-06-05 10:08:40
STATUS: COMPLETED
RESULT: 0
COMMENT: NULL
DESCRIPTION: NULL
PATH: file:///home/admin/oceanbase/backupdataoracle
1 row in set
References
View the backup job tasks of the current tenant: DBA_OB_BACKUP_JOBS
View the task-level backup tasks of the current tenant: DBA_OB_BACKUP_TASKS.
View the task-level historical records of the current tenant: DBA_OB_BACKUP_TASK_HISTORY
For more information about how to view the progress of data backup, see View the progress of data backup.