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

    Download PDF

    OceanBase logo

    The Unified Distributed Database for the AI Era.

    Follow Us
    Products
    OceanBase CloudOceanBase EnterpriseOceanBase Community EditionOceanBase seekdb
    Resources
    DocsBlogWhite PaperLive 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.4.2
    iconOceanBase Database
    SQL - V 4.4.2
    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_ARCHIVELOG_PIECE_FILES

    Last Updated:2026-04-14 03:51:52  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 status of pieces in all tenant backup sets.

    Columns

    Column
    Type
    Nullable
    Description
    TENANT_ID bigint(20) NO The tenant ID.
    DEST_ID bigint(20) NO The path ID. The system assigns a unique ID to each path.
    ROUND_ID bigint(20) NO The ID of the round of complete clog backup data.
    PIECE_ID bigint(20) NO The ID of the backup log piece.
    INCARNATION bigint(20) NO The number of incarnations after a flashback database operation.
    DEST_NO bigint(20) NO The ID of the log_archive_dest_n parameter. For example, the dest_no of the log_archive_dest parameter is 0, and the dest_no of the log_archive_dest_1 parameter is 1.
    STATUS varchar(64) NO The status of the piece. Valid values:
    • ACTIVE: the piece is active.
      FREEZING: the piece is being frozen.
    • FROZEN: the piece is frozen. This value will not be modified after the piece is frozen.
    START_SCN bigint(20) unsigned NO The actual start point of the piece.
    START_SCN_DISPLAY varchar(26) NO The start point of the piece after conversion to a time unit.
    CHECKPOINT_SCN bigint(20) unsigned NO The current archive point.
    CHECKPOINT_SCN_DISPLAY varchar(26) NO The archive point after conversion to a time unit.
    MAX_SCN bigint(20) unsigned NO The maximum archive point.
    END_SCN bigint(20) unsigned NO The theoretical end point of the piece.
    COMPATIBLE bigint(20) NO The compatible version number of log archiving.
    UNIT_SIZE bigint(20) NO The size of a log block that is compressed or encrypted in one operation. This column is not supported.
    COMPRESSION varchar(128) NO The compression algorithm. Valid values:
    • none: no compression is performed.
    • lz4_1.0: the lz4_1.0 compression algorithm is used.
    • zstd_1.3.8: the zstd_1.3.8 compression algorithm is used.
    This column is not supported.
    INPUT_BYTES bigint(20) NO The size of the original data, in bytes.
    INPUT_BYTES_DISPLAY varchar(27) NO The size of the original data after conversion to a unit.
    OUTPUT_BYTES bigint(20) NO The size of the encrypted or compressed data, in bytes.
    OUTPUT_BYTES_DISPLAY varchar(27) NO The size of the encrypted or compressed data after conversion to a unit.
    COMPRESSION_RATIO decimal(23,2) NO The compression ratio. This column is not supported.
    FILE_STATUS varchar(64) NO The file status of the backup log piece. Valid values:
    • AVAILABLE: the backup is valid and can be used for recovery.
    • COPYING: the log file is being backed up.
    • INCOMPELTE: the logs of the piece are incomplete. Some log streams are missing.
    • DELETING: the log file is being deleted.
    • EXPIRED: the backup file has expired.
    • BROKEN: the backup file is incomplete and cannot be used.
    • DELETED: the log file has been deleted.
    PATH varchar(2048) NO The archive path.

    Sample query

    Query the status of pieces in the backup set of the tenant whose ID is 1002.

    obclient [oceanbase]> SELECT * FROM oceanbase.CDB_OB_ARCHIVELOG_PIECE_FILES WHERE TENANT_ID = 1002\G
    

    The query result is as follows:

    *************************** 1. row ***************************
                 TENANT_ID: 1002
                   DEST_ID: 1001
                  ROUND_ID: 1
                  PIECE_ID: 1
               INCARNATION: 1
                   DEST_NO: 0
                    STATUS: ACTIVE
                 START_SCN: 1736228322307513000
         START_SCN_DISPLAY: 2025-01-07 13:38:42.307513
            CHECKPOINT_SCN: 1736233365380528000
    CHECKPOINT_SCN_DISPLAY: 2025-01-07 15:02:45.380528
                   MAX_SCN: 1736233365682585000
                   END_SCN: 1736314722307513000
           END_SCN_DISPLAY: 2025-01-08 13:38:42.307513
                COMPATIBLE: 1
                 UNIT_SIZE: 1
               COMPRESSION: none
               INPUT_BYTES: 84860528
       INPUT_BYTES_DISPLAY: 80.93MB
              OUTPUT_BYTES: 84860528
      OUTPUT_BYTES_DISPLAY: 80.93MB
         COMPRESSION_RATIO: 1.00
               FILE_STATUS: AVAILABLE
                      PATH: file:///home/admin/oceanbase/arglog
    1 row in set
    

    References

    For more information about pieces, see Overview of log archiving.

    Previous topic

    oceanbase.CDB_OB_ARCHIVELOG
    Last

    Next topic

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