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

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

    oceanbase.CDB_OB_ARCHIVELOG_SUMMARY

    Last Updated:2026-04-27 03:14:13  Updated
    Share
    What is on this page
    Purpose
    Columns
    Sample query

    folded

    Share

    Note

    This view is available starting with V4.0.0.

    Purpose

    This view displays the status of all tenants' historical and current log archives.

    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 set path.
    ROUND_ID bigint(20) NO The ID of the round of complete clog backup data stream.
    INCARNATION bigint(20) NO The number of incarnations after Flashback Database.
    DEST_NO bigint(20) NO The number of log_archive_dest_n. For example, the dest_no of log_archive_dest is 0, and the dest_no of log_archive_dest_1 is 1.
    STATUS varchar(64) NO The archive status. Valid values:
    • PREPARE: The archive starts at START_SCN.
    • BEGINNING: The log archive is being started.
    • DOING: The log archive is being performed.
    • INTERRUPTED: The log archive is interrupted and requires manual intervention.
    • STOP: The log archive has been stopped.
    • STOPPING: The log archive is being stopped.
    • SUSPENDING: The log archive is being suspended.
    • SUSPEND: The log archive has been suspended.
    START_SCN bigint(20) unsigned NO The start backup point.
    START_SCN_DISPLAY datetime(6) NO The start backup point converted into a time unit.
    CHECKPOINT_SCN bigint(20) unsigned NO The current archive point.
    CHECKPOINT_SCN_DISPLAY datetime(6) NO The current archive point converted into a time unit.
    COMPATIBLE bigint(20) NO The compatibility version.
    BASE_PIECE_ID bigint(20) NO The ID of the first PIECE in the current round.
    USED_PIECE_ID bigint(20) NO The ID of the PIECE used in the current round.
    PIECE_SWITCH_INTERVAL bigint(20) NO The piece switch cycle.
    UNIT_SIZE bigint(20) NO The size of a single log block for compression or encryption in the current round. This field is not supported.
    COMPRESSION varchar(128) NO The compression algorithm. Valid values:
    • none: No compression.
    • lz4_1.0: The lz4_1.0 compression algorithm.
    • zstd_1.3.8: The zstd_1.3.8 compression algorithm.
    This field is not supported.
    INPUT_BYTES bigint(20) NO The amount of data read.
  • This field is not supported in OceanBase Database.
  • INPUT_BYTES_DISPLAY varchar(27) NO The amount of data read, with a unit. For example: 798.01 M or 5.25 G.
  • This field is not supported in OceanBase Database.
  • OUTPUT_BYTES bigint(20) NO The amount of data output.
  • This field is not supported in OceanBase Database.
  • OUTPUT_BYTES_DISPLAY varchar(27) NO The amount of data output, with a unit. For example: 798.01 M or 5.25 G.
  • This field is not supported in OceanBase Database.
  • COMPRESSION_RATIO decimal(23,2) NO The compression rate.
  • This field is not supported in OceanBase Database.
  • DELETED_INPUT_BYTES bigint(20) NO The amount of original data deleted.
    DELETED_INPUT_BYTES_DISPLAY varchar(27) NO The amount of original data deleted, with a unit. Valid values: MB, GB, TB, and PB.
    DELETED_OUTPUT_BYTES bigint(20) NO The amount of effective data deleted.
    DELETED_OUTPUT_BYTES_DISPLAY varchar(27) NO The amount of effective data deleted, with a unit. Valid values: MB, GB, TB, and PB.
    PATH varchar(2048) NO The archive path.
    COMMENT varchar(262144) NO The error message.

    Sample query

    Query the status of all log archives for tenant 1002 in the sys tenant.

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

    The query result is as follows:

    *************************** 1. row ***************************
                       TENANT_ID: 1002
                         DEST_ID: 1001
                        ROUND_ID: 1
                     INCARNATION: 1
                         DEST_NO: 0
                          STATUS: DOING
                       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
                      COMPATIBLE: 1
                   BASE_PIECE_ID: 1
                   USED_PIECE_ID: 1
           PIECE_SWITCH_INTERVAL: 86400000000
                       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
             DELETED_INPUT_BYTES: 0
     DELETED_INPUT_BYTES_DISPLAY: 0.00MB
            DELETED_OUTPUT_BYTES: 0
    DELETED_OUTPUT_BYTES_DISPLAY: 0.00MB
                            PATH: file:///home/admin/oceanbase/arglog
                         COMMENT:
    1 row in set
    

    Previous topic

    oceanbase.DBA_OB_TABLET_TO_LS
    Last

    Next topic

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