OceanBase logo

OceanBase

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

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

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

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.3.5

    Download PDF

    OceanBase logo

    The Unified Distributed Database for the AI Era.

    Follow Us
    Products
    OceanBase CloudOceanBase EnterpriseOceanBase Community EditionOceanBase seekdb
    Resources
    DocsBlogLive DemosTraining & Certification
    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.3.5
    iconOceanBase Database
    SQL - V 4.3.5
    SQL
    KV
    • 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_TASK_HISTORY

    Last Updated:2026-04-15 06:09:08  Updated
    share
    What is on this page
    Purpose
    Columns
    Sample query
    References

    folded

    share

    Note

    This view is introduced since OceanBase Database V4.0.0.

    Purpose

    The oceanbase.CDB_OB_BACKUP_TASK_HISTORY view displays the history of backup tasks of all tenants in the cluster.

    Columns

    Column Type Nullable? Description
    TENANT_ID bigint(20) NO The ID of the tenant.
    TASK_ID bigint(20) NO The ID of the backup task, which corresponds to a backup set.
    JOB_ID bigint(20) NO The job ID of the backup task.
    INCARNATION bigint(20) NO The nth incarnation of the database after the Flashback Database operation.
    BACKUP_SET_ID bigint(20) NO The ID of the backup set that corresponds to the backup task.
    START_TIMESTAMP timestamp(6) NO The start time of the backup task.
    END_TIMESTAMP timestamp(6) NO The end time of the backup task.
    STATUS varchar(4096) NO The backup status.
    START_SCN bigint(20) unsigned NO The SCN at which the backup started.
    END_SCN bigint(20) unsigned NO The SCN at which the backup ended.
    USER_LS_START_SCN bigint(20) unsigned NO The SCN of the metadata of the backup log stream.
    ENCRYPTION_MODE varchar(4096) YES The encryption mode. Valid values:
    None: indicates that encryption is not implemented.
    Password: indicates that only the password is used for protection.
    Password Encryption: indicates that encryption is implemented and the password is used for protection.
    Transparent Encryption: indicates that TDE is used for encryption.
    Dual Mode Encryption: indicates that TDE encryption is implemented and the password is used for protection.
    Currently, only the None and Password modes are supported.
    PASSWD varchar(4096) YES The password.
    INPUT_BYTES bigint(20) YES The number of input bytes.
    OUTPUT_BYTES bigint(20) YES The number of output bytes.
    OUTPUT_RATE_BYTES decimal(28,4) NO The number of bytes that are output per second.
    EXTRA_META_BYTES bigint(20) YES The number of extra bytes.
    TABLET_COUNT bigint(20) YES The total number of tablets.
    FINISH_TABLET_COUNT bigint(20) YES The total number of tablets backed up.
    MACRO_BLOCK_COUNT bigint(20) YES The number of macroblocks.
    FINISH_MACRO_BLOCK_COUNT bigint(20) YES The number of macroblocks backed up.
    FILE_COUNT bigint(20) YES The number of backup files.
    META_TURN_ID bigint(20) YES The round of metadata backup.
    DATA_TURN_ID bigint(20) YES The round of data backup.
    RESULT bigint(20) YES The returned backup error code.
    COMMENT varchar(4096) YES The description of the error code.
    PATH varchar(4096) YES The backup path.
    MINOR_TURN_ID bigint(20) NO The ID of the round at which the backup of minor compaction data ended.
    MAJOR_TURN_ID bigint(20) NO The ID of the round at which the backup of baseline data ended.

    Sample query

    Query the history of backup tasks in all tenants in the cluster from the sys tenant.

    obclient [oceanbase]> SELECT * FROM oceanbase.CDB_OB_BACKUP_TASK_HISTORY\G
    

    The query result is as follows:

    *************************** 1. row ***************************
                   TENANT_ID: 1002
                     TASK_ID: 1
                      JOB_ID: 1
                 INCARNATION: 1
               BACKUP_SET_ID: 1
             START_TIMESTAMP: 2024-05-09 17:43:38.705117
               END_TIMESTAMP: 2024-05-09 17:45:52.737037
                      STATUS: COMPLETED
                   START_SCN: 1715247825077980000
                     END_SCN: 1715247952707346000
           USER_LS_START_SCN: 1715247835736673000
             ENCRYPTION_MODE: NONE
                      PASSWD:
                 INPUT_BYTES: 175358314
                OUTPUT_BYTES: 18706196
           OUTPUT_RATE_BYTES: 139565.2319
            EXTRA_META_BYTES: 0
                TABLET_COUNT: 668
         FINISH_TABLET_COUNT: 668
           MACRO_BLOCK_COUNT: 83
    FINISH_MACRO_BLOCK_COUNT: 83
                  FILE_COUNT: 0
                META_TURN_ID: 1
                DATA_TURN_ID: 0
                      RESULT: 0
                     COMMENT:
                        PATH: file:///home/admin/oceanbase/backupdata
               MINOR_TURN_ID: 1
               MAJOR_TURN_ID: 1
    1 row in set
    

    References

    • oceanbase.CDB_OB_BACKUP_JOB_HISTORY

    • oceanbase.CDB_OB_BACKUP_TASKS

    • View the data backup history

    Previous topic

    oceanbase.CDB_OB_BACKUP_STORAGE_INFO_HISTORY
    Last

    Next topic

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