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

    DBA_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 historical and current log archives of the current tenant.

    Columns

    Column
    Type
    Nullable
    Description
    DEST_ID NUMBER(38) NO The path ID. The system assigns a unique ID to each path.
    ROUND_ID NUMBER(38) NO The ID of the round of full clog backup data.
    INCARNATION NUMBER(38) NO The number of incarnations after a flashback database operation.
    DEST_NO NUMBER(38) NO The ID 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 VARCHAR2(64) NO The status of the log archive. Valid values:
    • PREPARE: The system is preparing to archive from the START_SCN point.
    • BEGINNING: The system is starting to archive logs.
    • DOING: The system is archiving logs.
    • INTERRUPTED: The log archive is interrupted and requires manual intervention.
    • STOP: The log archive has been stopped.
    • STOPPING: The system is stopping the log archive.
    • SUSPENDING: The system is pausing the log archive.
    • SUSPEND: The log archive has been paused.
    START_SCN NUMBER(38) NO The start point of the backup.
    START_SCN_DISPLAY TIMESTAMP(9) NO The start point of the backup, converted to a timestamp.
    CHECKPOINT_SCN NUMBER(38) NO The current archive point.
    CHECKPOINT_SCN_DISPLAY TIMESTAMP(9) NO The current archive point, converted to a timestamp.
    COMPATIBLE NUMBER(38) NO The compatibility version.
    BASE_PIECE_ID NUMBER(38) NO The ID of the first PIECE in this round.
    USED_PIECE_ID NUMBER(38) NO The ID of the PIECE used in this round.
    PIECE_SWITCH_INTERVAL NUMBER(38) NO The interval for switching PIECES.
    UNIT_SIZE NUMBER(38) NO The size of a single log block for compression or encryption in the log archive. This column is not supported in OceanBase Database.
    COMPRESSION VARCHAR2(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 in OceanBase Database.
    INPUT_BYTES NUMBER NO The size of the data read.
    This column is not supported in OceanBase Database.
    INPUT_BYTES_DISPLAY VARCHAR2(42) NO The size of the data read, with a unit. For example: 798.01 M or 5.25 G.
    This column is not supported in OceanBase Database.
    OUTPUT_BYTES NUMBER NO The size of the data output.
    This column is not supported in OceanBase Database.
    OUTPUT_BYTES_DISPLAY VARCHAR2(42) NO The size of the data output, with a unit. For example: 798.01 M or 5.25 G.
    This column is not supported in OceanBase Database.
    COMPRESSION_RATIO NUMBER NO The compression ratio.
    This column is not supported in OceanBase Database.
    DELETED_INPUT_BYTES NUMBER(38) NO The size of the original data deleted.
    DELETED_INPUT_BYTES_DISPLAY VARCHAR2(42) NO The size of the original data deleted, with a unit. Valid values: MB, GB, TB, and PB.
    DELETED_OUTPUT_BYTES NUMBER(38) NO The size of the effective data deleted.
    DELETED_OUTPUT_BYTES_DISPLAY VARCHAR2(42) NO The size of the effective data deleted, with a unit. Valid values: MB, GB, TB, and PB.
    PATH VARCHAR2(2048) NO The archive path.
    COMMENT VARCHAR2(262144) NO The error message.

    Sample query

    Query the status of all log archives of the current user tenant.

    obclient [SYS]> SELECT * FROM SYS.DBA_OB_ARCHIVELOG_SUMMARY\G
    

    The query result is as follows:

    *************************** 1. row ***************************
                         DEST_ID: 1002
                        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: 1736233725601484000
          CHECKPOINT_SCN_DISPLAY: 2025-01-07 15:08:45.601484
                      COMPATIBLE: 1
                   BASE_PIECE_ID: 1
                   USED_PIECE_ID: 1
           PIECE_SWITCH_INTERVAL: 86400000000
                       UNIT_SIZE: 1
                     COMPRESSION: none
                     INPUT_BYTES: 85762972
             INPUT_BYTES_DISPLAY: 81.79MB
                    OUTPUT_BYTES: 85762972
            OUTPUT_BYTES_DISPLAY: 81.79MB
               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/arglogorc
                         COMMENT:
    1 row in set
    

    Previous topic

    DBA_OB_ARCHIVELOG_PIECE_FILES
    Last

    Next topic

    DBA_OB_AUX_STATISTICS
    Next
    What is on this page
    Purpose
    Columns
    Sample query