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

    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.4.2
    iconOceanBase Database
    SQL - V 4.4.2
    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.DBA_OB_BACKUP_DELETE_JOB_HISTORY

    Last Updated:2026-04-02 06:23:58  Updated
    share
    What is on this page
    Purpose
    Columns
    Sample query
    References

    folded

    share

    Note

    This view is available starting with V4.0.0.

    Purpose

    This view displays the history of backup cleanup tasks executed in the tenant.

    Columns

    Column Type Nullable Description
    TENANT_ID bigint(20) NO The tenant ID.
    JOB_ID bigint(20) NO The task ID, which is a monotonic increasing value.
    INCARNATION bigint(20) NO The incarnation ID.
    INITIATOR_TENANT_ID bigint(20) NO The tenant ID that initiated the task.
    INITIATOR_JOB_ID bigint(20) NO The task ID of the tenant that initiated the task.
    EXECUTOR_TENANT_ID varchar(65536) NO The list of tenants that executed the cleanup task.
    TYPE varchar(64) NO The cleanup type. Valid values:
    • DELETE OBSOLETE BACKUP: obsolete backup cleanup
    • DELETE BACKUP ALL: clear all backups or archived data in the path
    • DELETE BACKUPSET: clear the specified data backup set
    • DELETE ARCHIVELOG_PIECE: clear the specified log archive piece
    PARAMETER timestamp(6) NO The cleanup parameters. This column describes the specific parameters for different cleanup types.
    JOB_LEVEL varchar(64) NO The task initiation level. Valid values:
    • USER_TENANT : a task initiated by a user tenant
    • SYS_TENANT : a task initiated by a system tenant
    START_TIMESTAMP timestamp(6) NO The current time of the tenant when the task started.
    END_TIMESTAMP timestamp(6) NO The current time of the tenant when the task ended.
    STATUS varchar(64) NO The task status. Valid values:
    • INIT : the task initialization phase
    • DOING: the task execution phase
    • CANCELING : the task cancellation phase
    • COMPLETED: the task execution succeeded
    • FAILED: the task execution failed
    • CANCELED: the task was successfully canceled
    TASK_COUNT bigint(20) YES The number of backup_set/piece tasks.
    SUCCESS_TASK_COUNT bigint(20) YES The number of backup_set/piece tasks that executed successfully.
    RESULT bigint(20) NO The error code.
    COMMENT varchar(4096) YES The task execution description.

    Sample query

    Query the history of backup cleanup tasks executed in the current user tenant and display the first five records.

    obclient [oceanbase]> SELECT * FROM oceanbase.DBA_OB_BACKUP_DELETE_JOB_HISTORY LIMIT 5\G
    

    The query result is as follows:

    *************************** 1. row ***************************
                 JOB_ID: 7
            INCARNATION: 1
    INITIATOR_TENANT_ID: 1002
       INITIATOR_JOB_ID: 7
     EXECUTOR_TENANT_ID: 1002
                   TYPE: DELETE OBSOLETE BACKUP
              PARAMETER: expired_time:2025-09-09 17:33:46.374127
              JOB_LEVEL: USER_TENANT
        START_TIMESTAMP: 2025-09-10 17:33:46.377760
          END_TIMESTAMP: 2025-09-10 17:33:46.426616
                 STATUS: COMPLETED
             TASK_COUNT: 0
     SUCCESS_TASK_COUNT: 0
                 RESULT: 0
                COMMENT:
    *************************** 2. row ***************************
                 JOB_ID: 8
            INCARNATION: 1
    INITIATOR_TENANT_ID: 1002
       INITIATOR_JOB_ID: 8
     EXECUTOR_TENANT_ID: 1002
                   TYPE: DELETE OBSOLETE BACKUP
              PARAMETER: expired_time:2025-09-09 18:33:46.641517
              JOB_LEVEL: USER_TENANT
        START_TIMESTAMP: 2025-09-10 18:33:46.645269
          END_TIMESTAMP: 2025-09-10 18:33:46.692936
                 STATUS: COMPLETED
             TASK_COUNT: 0
     SUCCESS_TASK_COUNT: 0
                 RESULT: 0
                COMMENT:
    *************************** 3. row ***************************
                 JOB_ID: 9
            INCARNATION: 1
    INITIATOR_TENANT_ID: 1002
       INITIATOR_JOB_ID: 9
     EXECUTOR_TENANT_ID: 1002
                   TYPE: DELETE OBSOLETE BACKUP
              PARAMETER: expired_time:2025-09-09 19:33:46.913048
              JOB_LEVEL: USER_TENANT
        START_TIMESTAMP: 2025-09-10 19:33:46.916564
          END_TIMESTAMP: 2025-09-10 19:33:46.964739
                 STATUS: COMPLETED
             TASK_COUNT: 0
     SUCCESS_TASK_COUNT: 0
                 RESULT: 0
                COMMENT:
    *************************** 4. row ***************************
                 JOB_ID: 10
            INCARNATION: 1
    INITIATOR_TENANT_ID: 1002
       INITIATOR_JOB_ID: 10
     EXECUTOR_TENANT_ID: 1002
                   TYPE: DELETE OBSOLETE BACKUP
              PARAMETER: expired_time:2025-09-09 20:33:47.194699
              JOB_LEVEL: USER_TENANT
        START_TIMESTAMP: 2025-09-10 20:33:47.199112
          END_TIMESTAMP: 2025-09-10 20:33:47.252810
                 STATUS: COMPLETED
             TASK_COUNT: 0
     SUCCESS_TASK_COUNT: 0
                 RESULT: 0
                COMMENT:
    *************************** 5. row ***************************
                 JOB_ID: 11
            INCARNATION: 1
    INITIATOR_TENANT_ID: 1002
       INITIATOR_JOB_ID: 11
     EXECUTOR_TENANT_ID: 1002
                   TYPE: DELETE OBSOLETE BACKUP
              PARAMETER: expired_time:2025-09-09 21:33:47.474197
              JOB_LEVEL: USER_TENANT
        START_TIMESTAMP: 2025-09-10 21:33:47.477776
          END_TIMESTAMP: 2025-09-10 21:33:47.527881
                 STATUS: COMPLETED
             TASK_COUNT: 0
     SUCCESS_TASK_COUNT: 0
                 RESULT: 0
                COMMENT:
    5 rows in set
    

    References

    • View the execution progress of a backup cleanup job: DBA_OB_BACKUP_DELETE_JOBS

    • View the execution progress of a backup cleanup task: DBA_OB_BACKUP_DELETE_TASKS

    • View the history of backup cleanup tasks: DBA_OB_BACKUP_DELETE_TASK_HISTORY

    • For more information about how to set automatic cleanup of obsolete backups, see Automatically clear obsolete backups.

    Previous topic

    DBA_OB_AUX_STATISTICS
    Last

    Next topic

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