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

    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 status of pieces in the backup set of the current tenant.

    Columns

    Column
    Type
    Nullable
    Description
    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 full Clog backup data.
    PIECE_ID bigint(20) NO The ID of the backup log piece.
    INCARNATION bigint(20) NO The number of incarnations after Flashback Database.
    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. After this status is set, it will no longer change.
    START_SCN bigint(20) unsigned NO The actual start point of the piece.
    START_SCN_DISPLAY datetime(6) NO The time converted from START_SCN.
    CHECKPOINT_SCN bigint(20) unsigned NO The current archive point.
    CHECKPOINT_SCN_DISPLAY datetime(6) NO The time converted from CHECKPOINT_SCN.
    MAX_SCN bigint(20) unsigned NO The maximum archive point.
    END_SCN bigint(20) unsigned NO The theoretical end point of the piece.
    END_SCN_DISPLAY datetime(6) NO The time when the piece ends.
    COMPATIBLE bigint(20) NO The compatible version number of log archiving.
    UNIT_SIZE bigint(20) NO The size of a single log block that is compressed or encrypted in one log archiving operation. This field 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 field 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 converted to a unit.
    OUTPUT_BYTES bigint(20) NO The size of the effective data after encryption and compression, in bytes.
    OUTPUT_BYTES_DISPLAY varchar(27) NO The size of the effective data after encryption and compression, converted to a unit.
    COMPRESSION_RATIO decimal(23,2) NO The compression ratio. This field 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 log file is incomplete. Some log streams are missing.
    • DELETING: the log file is being deleted.
    • EXPIRED: the backup file is invalid.
    • BROKEN: the backup file is incomplete and cannot be used.
    • DELETED: the log file is deleted.
    PATH varchar(2048) NO The archive path.

    Sample query

    Query the status of pieces in the backup set of the current user tenant.

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

    The query result is as follows:

    *************************** 1. row ***************************
                   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: 1736233485415914000
    CHECKPOINT_SCN_DISPLAY: 2025-01-07 15:04:45.415914
                   MAX_SCN: 1736233485717186000
                   END_SCN: 1736314722307513000
           END_SCN_DISPLAY: 2025-01-08 13:38:42.307513
                COMPATIBLE: 1
                 UNIT_SIZE: 1
               COMPRESSION: none
               INPUT_BYTES: 85183742
       INPUT_BYTES_DISPLAY: 81.24MB
              OUTPUT_BYTES: 85183742
      OUTPUT_BYTES_DISPLAY: 81.24MB
         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.DBA_OB_ARCHIVELOG
    Last

    Next topic

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