Note
This view is available starting with V4.0.0.
Purpose
This view displays the history of backup jobs for the current tenant.
Columns
| Column | Type | Nullable | Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Column | Type | Nullable | Description | --- | --- | --- | --- | JOB_ID | NUMBER(38) | NO | The ID of the backup job. Each backup job corresponds to a record. | ||
| Column | Type | Nullable | Description | --- | --- | --- | --- | INCARNATION | NUMBER(38) | NO | Indicates how many times Flashback Database has been performed. | ||
| BACKUP_SET_ID | NUMBER(38) | YES | ID of a backup set. 0 is used by default for the SYS tenant. 1 and above are used for user tenants. | ||||||||||
| INITIATOR_TENANT_ID | NUMBER(38) | NO | The ID of the initiator tenant. The value indicates the tenant that initiated the task. This value is the tenant ID that executed the backup SQL command. | ||||||||||
| INITIATOR_JOB_ID | NUMBER(38) | NO | The job ID of the task initiator | ||||||||||
| EXECUTOR_TENANT_ID | VARCHAR2(65536) | NO | The tenant ID of the tenant that performs the backup job. | ||||||||||
| PLUS_ARCHIVELOG | VARCHAR2(4096) | NO | Specifies whether to enable the archive log backup feature:
|
||||||||||
| BACKUP_TYPE | VARCHAR2(4096) | NO | Backup type:
|
||||||||||
| JOB_LEVEL | VARCHAR2(4096) | NO | JOB level:
|
||||||||||
| ENCRYPTION_MODE | VARCHAR2(4096) | YES | Encryption mode:
Currently, only the None and Password modes are supported. |
||||||||||
| PASSWD | VARCHAR2(4096) | YES | Password | ||||||||||
| START_TIMESTAMP | VARCHAR2(256) | NO | The start time of the job-level backup task. | ||||||||||
| END_TIMESTAMP | VARCHAR2(256) | NO | The end time of the job-level backup. | ||||||||||
| Column | Type | Nullable | Description | --- | --- | --- | --- | STATUS | VARCHAR2(4096) | NO | Backup status. | ||
| RESULT | NUMBER(38) | NO | Error code of backup | ||||||||||
| COMMENT | VARCHAR2(4096) | YES | A description of the error code | ||||||||||
| Description | VARCHAR2(4096) | YES | User-specified backup description. | ||||||||||
| Column | Type | Nullable | Description | --- | --- | --- | --- | PATH | VARCHAR2(4096) | YES | The backup path. |
Sample query
The view shows the list of Backup Jobs in a specific user 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 backup jobs for the current tenant: DBA_OB_BACKUP_JOBS
Query Task-level backup tasks of a tenant: DBA_OB_BACKUP_TASKS
View the history of task-level backups for the tenant: DBA_OB_BACKUP_TASK_HISTORY
For details about how to view the progress of data backup, see View data backup progress.
