Note
This view is available starting with V4.0.0.
Purpose
This view displays backup job tasks for the current tenant.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| JOB_ID | NUMBER(38) | NO | The backup job ID. Each backup job corresponds to one job task record. |
| INCARNATION | NUMBER(38) | NO | The number of times the database has been flashed back. |
| BACKUP_SET_ID | NUMBER(38) | YES | The ID of the backup set. For the sys tenant, the value is 0. For other tenants, it starts at 1 and increments for each new backup. |
| INITIATOR_TENANT_ID | NUMBER(38) | NO | The tenant ID of the initiator of the task, corresponding to the tenant 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 that is associated with the backup task at the job level and that needs to be backed up. |
| PLUS_ARCHIVELOG | VARCHAR2(4096) | NO | Whether to enable archive log filling: |
| BACKUP_TYPE | VARCHAR2(4096) | NO | Backup type:
|
| JOB_LEVEL | VARCHAR2(4096) | NO | JOB level. Valid values: |
| ENCRYPTION_MODE | VARCHAR2(4096) | YES | Encryption mode: Currently, only None and Password are supported. |
| PASSWD | VARCHAR2(4096) | YES | The 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 task. |
| STATUS | VARCHAR2(4096) | NO | Backup status. |
| RESULT | NUMBER(38) | NO | Backup error code. |
| COMMENT | VARCHAR2(4096) | YES | Error code description. |
| DESCRIPTION | VARCHAR2(4096) | YES | User-specified backup description. |
| PATH | VARCHAR2(4096) | YES | Backup path. |
Sample query
User tenants can view the backup jobs in their own tenants.
obclient [SYS]> SELECT * FROM SYS.DBA_OB_BACKUP_JOBS\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: NULL
STATUS: DOING
RESULT: 0
COMMENT: NULL
DESCRIPTION: NULL
PATH: file:///home/admin/oceanbase/backupdataoracle
1 row in set