Note
This view is available starting with V4.0.0.
Purpose
This view displays backup tasks for the current user.
Columns
| Column | Column | Nullable | Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Column | Type | Nullable | Description | --- | --- | --- | --- | JOB_ID | bigint(20) | NO | The ID of a backup task. One backup task is represented by a record. | ||
| INCARNATION | bigint(20) | NO | The number of times the Flashback Database was created. | ||||||||||
| BACKUP_SET_ID | bigint(20) | YES | Backup set ID. The default value is 0 for the sys tenant and starts from 1 for a regular tenant. | ||||||||||
| INITIATOR_TENANT_ID | bigint(20) | NO | The ID of the tenant that initiated the task. The value is the ID of the tenant that executed the backup SQL statement. | ||||||||||
| INITIATOR_JOB_ID | bigint(20) | NO | The ID of the job that initiated the task. | ||||||||||
| EXECUTOR_TENANT_ID | varchar(65536) | NO | The tenant ID associated with the backup task at the job level. | ||||||||||
| COLUMN_NAME | DATA_TYPE | NULLABLE | COLUMN_COMMENT | -------------- | ------------ | ------------ | ---------------- | PLUS_ARCHIVELOG | varchar(4096) | NO | Specifies whether to enable log filling.
|
||
| BACKUP_TYPE | varchar(4096) | NO | The backup type. Valid values:
|
||||||||||
| JOB_LEVEL | varchar(4096) | NO | Job level:
|
||||||||||
| ENCRYPTION_MODE | varchar(4096) | YES | Encryption mode:
|
||||||||||
| Column | Type | Nullable | Description | --- | --- | --- | --- | 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 backup job. | ||||||||||
| STATUS | varchar(4096) | NO | Status of the backup | ||||||||||
| RESULT | bigint(20) | NO | The result of a backup error code. | ||||||||||
| COMMENT | varchar(4096) | YES | Description of the error | ||||||||||
| Description | varchar(4096) | YES | The backup description information specified by the user | ||||||||||
| PATH | varchar(4096) | YES | Backup path |
Sample query
User tenants can view backup jobs in their own tenant.
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
References
View the history records of job-level backup tasks of your own tenant: DBA_OB_BACKUP_JOB_HISTORY
View tenant-level task-based backup tasks: DBA_OB_BACKUP_TASKS.
View historical Task-level backup tasks for the current tenant: DBA_OB_BACKUP_TASK_HISTORY
For more information about how to view the data backup progress, see View the data backup progress.
