OceanBase logo

OceanBase

A unified distributed database ready for your transactional, analytical, and AI workloads.

Product Overview
DEPLOY YOUR WAY

OceanBase Cloud

The best way to deploy and scale OceanBase

OceanBase Enterprise

Run and manage OceanBase on your infra

TRY OPEN SOURCE

OceanBase Community Edition

The free, open-source distributed database

OceanBase seekdb

Open source AI native search database

Customer Stories

Real-world success stories from enterprises across diverse industries.

View All
BY USE CASES

Mission-Critical Transactions

Global & Multicloud Application

Elastic Scaling for Peak Traffic

Real-time Analytics

Active Geo-redundancy

Database Consolidation

Resources

Comprehensive knowledge hub for OceanBase.

Blog

Live Demos

Training & Certification

Documentation

Official technical guides, tutorials, API references, and manuals for all OceanBase products.

View All
PRODUCTS

OceanBase Cloud

OceanBase Database

Tools

Connectors and Middleware

QUICK START

OceanBase Cloud

OceanBase Database

BEST PRACTICES

Practical guides for utilizing OceanBase more effectively and conveniently

Company

Learn more about OceanBase – our company, partnerships, and trust and security initiatives.

About OceanBase

Partner

Trust Center

Contact Us

International - English
中国站 - 简体中文
日本 - 日本語
Sign In
Start on Cloud

OceanBase

A unified distributed database ready for your transactional, analytical, and AI workloads.

Product Overview
DEPLOY YOUR WAY

OceanBase Cloud

The best way to deploy and scale OceanBase

OceanBase Enterprise

Run and manage OceanBase on your infra

TRY OPEN SOURCE

OceanBase Community Edition

The free, open-source distributed database

OceanBase seekdb

Open source AI native search database

Customer Stories

Real-world success stories from enterprises across diverse industries.

View All
BY USE CASES

Mission-Critical Transactions

Global & Multicloud Application

Elastic Scaling for Peak Traffic

Real-time Analytics

Active Geo-redundancy

Database Consolidation

Comprehensive knowledge hub for OceanBase.

Blog

Live Demos

Training & Certification

Documentation

Official technical guides, tutorials, API references, and manuals for all OceanBase products.

View All
PRODUCTS
OceanBase CloudOceanBase Database
ToolsConnectors and Middleware
QUICK START
OceanBase CloudOceanBase Database
BEST PRACTICES

Practical guides for utilizing OceanBase more effectively and conveniently

Learn more about OceanBase – our company, partnerships, and trust and security initiatives.

About OceanBase

Partner

Trust Center

Contact Us

Start on Cloud
编组
All Products
    • Databases
    • iconOceanBase Database
    • iconOceanBase Cloud
    • iconOceanBase Tugraph
    • iconInteractive Tutorials
    • iconOceanBase Best Practices
    • Tools
    • iconOceanBase Cloud Platform
    • iconOceanBase Migration Service
    • iconOceanBase Developer Center
    • iconOceanBase Migration Assessment
    • iconOceanBase Admin Tool
    • iconOceanBase Loader and Dumper
    • iconOceanBase Deployer
    • iconKubernetes operator for OceanBase
    • iconOceanBase Diagnostic Tool
    • iconOceanBase Binlog Service
    • Connectors and Middleware
    • iconOceanBase Database Proxy
    • iconEmbedded SQL in C for OceanBase
    • iconOceanBase Call Interface
    • iconOceanBase Connector/C
    • iconOceanBase Connector/J
    • iconOceanBase Connector/ODBC
    • iconOceanBase Connector/NET
icon

OceanBase Database

SQL - V4.6.0

    Download PDF

    OceanBase logo

    The Unified Distributed Database for the AI Era.

    Follow Us
    Products
    OceanBase CloudOceanBase EnterpriseOceanBase Community EditionOceanBase seekdb
    Resources
    DocsBlogLive DemosTraining & CertificationTicket
    Company
    About OceanBaseTrust CenterLegalPartnerContact Us
    Follow Us

    © OceanBase 2026. All rights reserved

    Cloud Service AgreementPrivacy PolicySecurity
    Contact Us
    Document Feedback
    1. Documentation Center
    2. OceanBase Database
    3. SQL
    4. V4.6.0
    iconOceanBase Database
    SQL - V 4.6.0
    Databases
    • OceanBase Database
    • OceanBase Cloud
    • OceanBase Tugraph
    • Interactive Tutorials
    • OceanBase Best Practices
    Tools
    • OceanBase Cloud Platform
    • OceanBase Migration Service
    • OceanBase Developer Center
    • OceanBase Migration Assessment
    • OceanBase Admin Tool
    • OceanBase Loader and Dumper
    • OceanBase Deployer
    • Kubernetes operator for OceanBase
    • OceanBase Diagnostic Tool
    • OceanBase Binlog Service
    Connectors and Middleware
    • OceanBase Database Proxy
    • Embedded SQL in C for OceanBase
    • OceanBase Call Interface
    • OceanBase Connector/C
    • OceanBase Connector/J
    • OceanBase Connector/ODBC
    • OceanBase Connector/NET
    SQL
    KV
    • V 4.6.0
    • V 4.4.2
    • V 4.3.5
    • V 4.3.3
    • V 4.3.1
    • V 4.3.0
    • V 4.2.5
    • V 4.2.2
    • V 4.2.1
    • V 4.2.0
    • V 4.1.0
    • V 4.0.0
    • V 3.1.4 and earlier

    oceanbase.CDB_OB_BACKUP_VALIDATE_JOBS

    Last Updated:2026-05-07 11:26:24  Updated
    Share
    What is on this page
    Purpose
    Columns
    Sample query
    References

    folded

    Share

    Note

    This view is available starting with V4.6.0.

    Purpose

    The oceanbase.CDB_OB_BACKUP_VALIDATE_JOBS view displays information about backup validation tasks initiated by all tenants. Each job corresponds to a backup validation instruction. If an instruction involves multiple user tenants, the view may display multiple sub-jobs at the user tenant level.

    Columns

    Column
    Type
    Nullable
    Description
    TENANT_ID bigint(20) NO The ID of the tenant that initiated the validation task.
    JOB_ID bigint(20) NO The task ID.
    INCARNATION bigint(20) NO The incarnation ID.
    INITIATOR_TENANT_ID bigint(20) NO The ID of the tenant that initiated the job.
    INITIATOR_JOB_ID bigint(20) NO The job ID of the job that initiated the current job. If the value is 0, it indicates that the current job is the initiator.
    EXECUTOR_TENANT_ID varchar(65536) NO The tenant ID of the user tenant that needs to execute the validation task for the current job. If the value is 0, it indicates that the current tenant is executing the validation task.
    TYPE varchar(64) NO The type of the validation task. Valid values:
    • DATABASE: validates all backup sets and archive logs under the specified backup path and archive path.
    • BACKUPSET: validates the specified backup set.
    • ARCHIVELOG_PIECE: validates the specified archive log piece.
    PATH longtext YES The backup path or archive log path specified by the user for validation. If the value is empty, it indicates that the task is not for a specified path.
    PATH_TYPE varchar(64) YES The type of the specified path for validation. If the value is empty, it indicates that the task is not for a specified path. Valid values:
    • BACKUPSET: validates the backup set under the specified path.
    • ARCHIVELOG_PIECE: validates the archive log piece under the specified path.
    ID longtext YES

    The backup_set_id of the backup set to be validated or the piece_id of the archive log piece to be validated.

    If the value is empty, it indicates that all backup sets and archive log pieces under the current backup path and archive path are to be validated. If the user specifies the backup_set_id of a backup set or the piece_id of an archive log piece to be validated, the value will be updated to the corresponding ID or ID list.

    VALIDATE_LEVEL varchar(64) NO The validation level. Valid values:
    • basic: checks only the completeness of the file list.
    • physical: checks the correctness and logical consistency of the physical data.
    START_TIMESTAMP timestamp(6) NO The start time of the validation task.
    END_TIMESTAMP timestamp(6) NO The end time of the validation task.
    STATUS varchar(64) NO The status of the job. Valid values:
    • INIT: the validation task is being initialized.
    • DOING: the validation task is in progress.
    • COMPLETED: the validation task has been completed.
    • FAILED: the validation task has failed.
    • CANCELED: the validation task has been canceled.
    RETRY_COUNT bigint(20) YES The number of retries.
    TASK_COUNT bigint(20) YES The total number of validation tasks for the backup set or archive log piece.
    SUCCESS_TASK_COUNT bigint(20) YES The number of successful validation tasks for the backup set or archive log piece.
    RESULT bigint(20) NO The error code of the validation result.
    DESCRIPTION varchar(4096) YES The external information provided by OCP.
    COMMENT varchar(4096) YES The description of the reason for the failure of the validation task.

    Sample query

    Query the information about all backup validation tasks initiated by all tenants.

    obclient(root@sys)[oceanbase]> SELECT * FROM oceanbase.CDB_OB_BACKUP_VALIDATE_JOBS\G
    

    The query result is as follows:

    *************************** 1. row ***************************
              TENANT_ID: 1
                 JOB_ID: 5
            INCARNATION: 1
    INITIATOR_TENANT_ID: 1
       INITIATOR_JOB_ID: 0
     EXECUTOR_TENANT_ID: 1002
                   TYPE: BACKUPSET
                   PATH:
              PATH_TYPE:
                     ID: 1,2
         VALIDATE_LEVEL: physical
        START_TIMESTAMP: 2026-03-03 14:43:58.603856
          END_TIMESTAMP: NULL
                 STATUS: DOING
            RETRY_COUNT: 0
             TASK_COUNT: 0
     SUCCESS_TASK_COUNT: 0
                 RESULT: 0
            DESCRIPTION:
                COMMENT:
    *************************** 2. row ***************************
              TENANT_ID: 1002
                 JOB_ID: 8
            INCARNATION: 1
    INITIATOR_TENANT_ID: 1
       INITIATOR_JOB_ID: 5
     EXECUTOR_TENANT_ID:
                   TYPE: BACKUPSET
                   PATH:
              PATH_TYPE:
                     ID: 1,2
         VALIDATE_LEVEL: physical
        START_TIMESTAMP: 2026-03-03 14:43:58.616794
          END_TIMESTAMP: NULL
                 STATUS: DOING
            RETRY_COUNT: 0
             TASK_COUNT: 3
     SUCCESS_TASK_COUNT: 0
                 RESULT: 0
            DESCRIPTION:
                COMMENT:
    2 rows in set
    

    References

    • View the execution history of all tenant-level backup validation tasks: CDB_OB_BACKUP_VALIDATE_JOB_HISTORY

    • View all task-level backup validation tasks:

      • CDB_OB_BACKUP_VALIDATE_TASKS

      • CDB_OB_BACKUP_VALIDATE_TASK_HISTORY

    • View the backup validation progress

    Previous topic

    oceanbase.CDB_OB_BACKUP_TASKS
    Last

    Next topic

    oceanbase.CDB_OB_BACKUP_VALIDATE_JOB_HISTORY
    Next
    What is on this page
    Purpose
    Columns
    Sample query
    References