Note
Available starting with V4.0.0.
Purpose
This view displays backup jobs of this tenant.
Columns
| Column | Type | Nullable | Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| JOB_ID | bigint(20) | NO | Job ID for a backup task. Each backup request generates a task record. | ||||||||||
| INCARNATION | bigint(20) | NO | Number of times the database is incarnated after the flashback operation. | ||||||||||
| BACKUP_SET_ID | bigint(20) | YES | The ID of the backup set. For the sys tenant, it is 0 by default. For ordinary users, the ID starts from 1. | ||||||||||
| INITIATOR_TENANT_ID | bigint(20) | NO | The tenant ID of the task initiator, which indicates the tenant that initiated the task. This ID corresponds to the tenant ID that executed the backup SQL command. | ||||||||||
| INITIATOR_JOB_ID | bigint(20) | NO | The job ID of the job that started the task. | ||||||||||
| EXECUTOR_TENANT_ID | varchar(65536) | NO | the tenant ID of the backup executor associated with this backup task | ||||||||||
| PLUS_ARCHIVELOG | varchar(4096) | NO | Specifies whether to enable log archiving: |
||||||||||
| 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 modes are supported. |
||||||||||
| passwd | varchar(4096) | YES | password | ||||||||||
| START_TIMESTAMP | timestamp(6) | NO | Job-level backup task start time | ||||||||||
| END_TIMESTAMP | timestamp(6) | NO | The end time of the backup at the job level. | ||||||||||
| Column | Type | Nullable | Description | --- | --- | --- | --- | STATUS | varchar(4096) | NO | The backup status. | ||
| RESULT | bigint(20) | NO | Backup error code result | ||||||||||
| Column | Type | Nullable | Description | --- | --- | --- | --- | COMMENT | varchar(4096) | YES | The description of the error code. | ||
| DESCRIPTION | varchar(4096) | YES | User-specified description information of the backup task | ||||||||||
| PATH | varchar(4096) | YES | Backup path |
Sample query
The user tenant view its own backup job tasks.
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