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.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 & 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.3.5
    iconOceanBase Database
    SQL - V 4.3.5
    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

    DBA_OB_BACKUP_DELETE_JOB_HISTORY

    Last Updated:2026-04-09 02:53:56  Updated
    Share
    What is on this page
    Purpose
    Columns
    Sample query
    References

    folded

    Share

    Notes

    This view is available starting with V4.0.0.

    Purpose

    Displays information about completed backup cleanup tasks.

    Columns

    Column
    Type
    Nullable?
    Description
    JOB_ID NUMBER(38) NO The task ID. The ID is unique and monotonically increasing.
    INCARNATION NUMBER(38) NO The incarnation ID.
    INITIATOR_TENANT_ID NUMBER(38) NO The tenant ID that initiated this job.
    INITIATOR_JOB_ID NUMBER(38) NO The JOB_ID of the tenant that initiated this job.
    EXECUTOR_TENANT_ID VARCHAR2(65536) NO The list of tenants that execute the cleanup task.
    TYPE VARCHAR2(64) NO Cleanup type:
    • DELETE OBSOLETE BACKUP: obsolete cleanup
    PARAMETER VARCHAR2(1024) NO Cleanup parameters. Records the expiration time.
    JOB_LEVEL VARCHAR2(64) NO Job initiator level. Valid values:
    • USER_TENANT: tasks initiated by a user tenant
    • SYS_TENANT: tasks initiated by the system tenant
    START_TIMESTAMP VARCHAR2(256) NO The current time in the tenant when the task starts.
    END_TIMESTAMP VARCHAR2(256) NO The current time in the tenant when the task ends.
    STATUS VARCHAR2(64) NO Task status. Valid values:
    • INIT: initializing
    • DOING: executing
    • CANCELING: being canceled
    • COMPLETED: completed successfully
    • FAILED: failed
    • CANCELED: canceled successfully
    TASK_COUNT NUMBER(38) YES Number of backup_set/piece tasks.
    SUCCESS_TASK_COUNT NUMBER(38) YES Number of backup_set/piece tasks executed successfully.
    RESULT NUMBER(38) NO Error code.
    COMMENT VARCHAR2(4096) YES Description of the task execution.

    Sample query

    User tenants query the history of executed backup cleanup tasks for their tenant, displaying the first 5 records.

    obclient [SYS]> SELECT * FROM SYS.DBA_OB_BACKUP_DELETE_JOB_HISTORY WHERE ROWNUM <= 5\G
    

    The query result is as follows:

    *************************** 1. row ***************************
                 JOB_ID: 20
            INCARNATION: 1
    INITIATOR_TENANT_ID: 1004
       INITIATOR_JOB_ID: 20
     EXECUTOR_TENANT_ID: 1004
                   TYPE: DELETE OBSOLETE BACKUP
              PARAMETER: 2025-01-07 06:33:50.079557
              JOB_LEVEL: USER_TENANT
        START_TIMESTAMP: 2025-01-08 06:33:50.084931
          END_TIMESTAMP: 2025-01-08 06:33:50.160191
                 STATUS: COMPLETED
             TASK_COUNT: 0
     SUCCESS_TASK_COUNT: 0
                 RESULT: 0
                COMMENT:
    *************************** 2. row ***************************
                 JOB_ID: 21
            INCARNATION: 1
    INITIATOR_TENANT_ID: 1004
       INITIATOR_JOB_ID: 21
     EXECUTOR_TENANT_ID: 1004
                   TYPE: DELETE OBSOLETE BACKUP
              PARAMETER: 2025-01-07 07:33:50.384197
              JOB_LEVEL: USER_TENANT
        START_TIMESTAMP: 2025-01-08 07:33:50.387567
          END_TIMESTAMP: 2025-01-08 07:33:50.435527
                 STATUS: COMPLETED
             TASK_COUNT: 0
     SUCCESS_TASK_COUNT: 0
                 RESULT: 0
                COMMENT:
    *************************** 3. row ***************************
                 JOB_ID: 22
            INCARNATION: 1
    INITIATOR_TENANT_ID: 1004
       INITIATOR_JOB_ID: 22
     EXECUTOR_TENANT_ID: 1004
                   TYPE: DELETE OBSOLETE BACKUP
              PARAMETER: 2025-01-07 08:33:50.660556
              JOB_LEVEL: USER_TENANT
        START_TIMESTAMP: 2025-01-08 08:33:50.663947
          END_TIMESTAMP: 2025-01-08 08:33:50.710906
                 STATUS: COMPLETED
             TASK_COUNT: 0
     SUCCESS_TASK_COUNT: 0
                 RESULT: 0
                COMMENT:
    *************************** 4. row ***************************
                 JOB_ID: 23
            INCARNATION: 1
    INITIATOR_TENANT_ID: 1004
       INITIATOR_JOB_ID: 23
     EXECUTOR_TENANT_ID: 1004
                   TYPE: DELETE OBSOLETE BACKUP
              PARAMETER: 2025-01-07 09:33:50.931100
              JOB_LEVEL: USER_TENANT
        START_TIMESTAMP: 2025-01-08 09:33:50.934741
          END_TIMESTAMP: 2025-01-08 09:33:50.984381
                 STATUS: COMPLETED
             TASK_COUNT: 0
     SUCCESS_TASK_COUNT: 0
                 RESULT: 0
                COMMENT:
    *************************** 5. row ***************************
                 JOB_ID: 24
            INCARNATION: 1
    INITIATOR_TENANT_ID: 1004
       INITIATOR_JOB_ID: 24
     EXECUTOR_TENANT_ID: 1004
                   TYPE: DELETE OBSOLETE BACKUP
              PARAMETER: 2025-01-07 10:33:51.206735
              JOB_LEVEL: USER_TENANT
        START_TIMESTAMP: 2025-01-08 10:33:51.210244
          END_TIMESTAMP: 2025-01-08 10:33:51.258817
                 STATUS: COMPLETED
             TASK_COUNT: 0
     SUCCESS_TASK_COUNT: 0
                 RESULT: 0
                COMMENT:
    5 rows in set
    

    References

    • Query the execution progress of the job that is cleaning up the ongoing backup: DBA_OB_BACKUP_DELETE_JOBS

    • View the task progress of running backup cleanup tasks: DBA_OB_BACKUP_DELETE_TASKS

    • View the history information about the backup cleanup tasks: DBA_OB_BACKUP_DELETE_TASK_HISTORY

    • For information about how to automatically clean up expired backups, see Automatically clean up expired backups.

    Previous topic

    DBA_OB_AUX_STATISTICS
    Last

    Next topic

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