OceanBase logo

OceanBase

A unified distributed database ready for your transactional, analytical, and AI workloads.

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

A unified distributed database ready for your transactional, analytical, and AI workloads.

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

    Download PDF

    OceanBase logo

    The Unified Distributed Database for the AI Era.

    Follow Us
    Products
    OceanBase CloudOceanBase EnterpriseOceanBase Community EditionOceanBase seekdb
    Resources
    DocsBlogLive DemosTraining & Certification
    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.1
    iconOceanBase Database
    SQL - V 4.3.1
    SQL
    KV
    • 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

    Views related to log archiving

    Last Updated:2026-04-15 08:25:14  Updated
    share
    What is on this page
    CDB_OB_ARCHIVE_DEST
    DBA_OB_ARCHIVE_DEST
    CDB_OB_ARCHIVELOG
    DBA_OB_ARCHIVELOG
    CDB_OB_ARCHIVELOG_SUMMARY
    DBA_OB_ARCHIVELOG_SUMMARY
    CDB_OB_ARCHIVELOG_PIECE_FILES
    DBA_OB_ARCHIVELOG_PIECE_FILES

    folded

    share

    OceanBase Database allows you to query views for information related to log archiving.

    CDB_OB_ARCHIVE_DEST

    CDB_OB_ARCHIVE_DEST displays the log archive paths of all tenants in the cluster. The log archive paths are specified by the LOG_ARCHIVE_DEST parameter.

    Field Description
    TENANT_ID The ID of the tenant.
    DEST_NO The destination number of log_archive_dest_n. The value 0 indicates LOG_ARCHIVE_DEST.
    NAME The attribute name.
    VALUE The attribute value.

    DBA_OB_ARCHIVE_DEST

    DBA_OB_ARCHIVE_DEST displays the log archive path of the current tenant. The log archive path is specified by the LOG_ARCHIVE_DEST parameter.

    Field Description
    DEST_NO The destination number of log_archive_dest_n. The value 0 indicates LOG_ARCHIVE_DEST.
    NAME The attribute name.
    VALUE The attribute value.

    CDB_OB_ARCHIVELOG

    CDB_OB_ARCHIVELOG displays the current archiving progress of all tenants in the cluster.

    Field Description
    TENANT_ID The ID of the tenant.
    DEST_ID The ID of the archive path.
    ROUND_ID The ID of the archiving round.
    INCARNATION The ID of the incarnation.
    DEST_NO The destination number of log_archive_dest_n. The value 0 indicates LOG_ARCHIVE_DEST.
    STATUS The archiving status. Valid values:
    • PREPARE: Log archiving from the start system change number (SCN) specified by the START_SCN field is being prepared.
    • BEGINNING: Log archiving is being started.
    • DOING: Log archiving is in progress.
    • INTERRUPTED: Log archiving is interrupted and requires manual intervention.
    • STOP: Log archiving is stopped.
    • STOPPING: Log archiving is being stopped.
    • SUSPENDING: Log archiving is being suspended.
    • SUSPEND: Log archiving is suspended.
    START_SCN The start SCN for archiving.
    START_SCN_DISPLAY The value of START_SCN after being converted into the unit of time.
    CHECKPOINT_SCN The end SCN for archiving.
    CHECKPOINT_SCN_DISPLAY The value of CHECKPOINT_SCN after being converted into the unit of time.
    COMPATIBLE The version number for compatibility.
    BASE_PIECE_ ID The ID of the first piece generated during this round of archiving.
    USED_PIECE_ID The piece ID that has been used in this round of archiving.
    PIECE_SWITCH_INTERVAL The switching interval of pieces.
    UNIT_SIZE The size of the log block into which archive log data is compressed or encrypted. This field has not been used.
    COMPRESSION The compression algorithm. This field has not been used.
    INPUT_BYTES The amount of raw log data.
    INPUT_BYTES_DISPLAY The amount of raw log data with a unit, such as 798.01 MB or 5.25 GB.
    OUTPUT_BYTES The amount of archive log data after compression or encryption.
    OUTPUT_BYTES_DISPLAY The amount of actual log data with a unit, such as 798.01 MB or 5.25 GB.
    COMPRESSION_RATIO The compression ratio of archive logs.
    DELETED_INPUT_BYTES The amount of deleted raw log data.
    DELETED_INPUT_BYTES_DISPLAY The amount of deleted raw log data with a unit.
    DELETED_OUTPUT_BYTES The actual amount of deleted log data.
    DELETED_OUTPUT_BYTES_DISPLAY The actual amount of deleted log data with a unit.
    COMMENT The comment.
    PATH The archive path.

    DBA_OB_ARCHIVELOG

    DBA_OB_ARCHIVELOG displays the archiving progress of the current tenant.

    Field Description
    DEST_ID The ID of the archive path.
    ROUND_ID The ID of the archiving round.
    INCARNATION The ID of the incarnation.
    DEST_NO The archive path. The value 0 indicates the LOG_ARCHIVE_DEST parameter.
    STATUS The archiving status. Valid values:
    • PREPARE: Log archiving from the start SCN specified by the START_SCN field is being prepared.
    • BEGINNING: Log archiving is being started.
    • DOING: Log archiving is in progress.
    • INTERRUPTED: Log archiving is interrupted and requires manual intervention.
    • STOP: Log archiving is stopped.
    • STOPPING: Log archiving is being stopped.
    • SUSPENDING: Log archiving is being suspended.
    • SUSPEND: Log archiving is suspended.
    START_SCN The start SCN for archiving.
    START_SCN_DISPLAY The value of START_SCN after being converted into the unit of time.
    CHECKPOINT_SCN The end SCN for archiving.
    CHECKPOINT_SCN_DISPLAY The value of CHECKPOINT_SCN after being converted into the unit of time.
    COMPATIBLE The version number for compatibility.
    BASE_PIECE_ID The ID of the first piece generated during this round of archiving.
    USED_PIECE_ID The piece ID that has been used in this round of archiving.
    PIECE_SWITCH_INTERVAL The switching interval of pieces.
    UNIT_SIZE The size of the log block into which archive log data is compressed or encrypted. This field has not been used.
    COMPRESSION The compression algorithm. This field has not been used.
    INPUT_BYTES The amount of raw log data.
    INPUT_BYTES_DISPLAY The amount of raw log data with a unit, such as 798.01 MB or 5.25 GB.
    OUTPUT_BYTES The amount of archive log data after compression or encryption.
    OUTPUT_BYTES_DISPLAY The amount of actual log data with a unit, such as 798.01 MB or 5.25 GB.
    COMPRESSION_RATIO The compression ratio of archive logs.
    DELETED_INPUT_BYTES The amount of deleted raw log data.
    DELETED_INPUT_BYTES_DISPLAY The amount of deleted raw log data with a unit.
    DELETED_OUTPUT_BYTES The actual amount of deleted log data.
    DELETED_OUTPUT_BYTES_DISPLAY The actual amount of deleted log data with a unit.
    COMMENT The comment.
    PATH The archive path.

    CDB_OB_ARCHIVELOG_SUMMARY

    CDB_OB_ARCHIVELOG_SUMMARY displays all archiving information of all tenants in the cluster.

    Field Description
    TENANT_ID The ID of the tenant.
    DEST_ID The ID of the archive path.
    ROUND_ID The ID of the archiving round.
    INCARNATION The ID of the incarnation.
    DEST_NO The archive path. The value 0 indicates the LOG_ARCHIVE_DEST parameter.
    STATUS The archiving status. Valid values:
    • PREPARE: Log archiving from the start SCN specified by the START_SCN field is being prepared.
    • BEGINNING: Log archiving is being started.
    • DOING: Log archiving is in progress.
    • INTERRUPTED: Log archiving is interrupted and requires manual intervention.
    • STOP: Log archiving is stopped.
    • STOPPING: Log archiving is being stopped.
    • SUSPENDING: Log archiving is being suspended.
    • SUSPEND: Log archiving is suspended.
    START_SCN The start SCN for archiving.
    START_SCN_DISPLAY The value of START_SCN after being converted into the unit of time.
    CHECKPOINT_SCN The end SCN for archiving.
    CHECKPOINT_SCN_DISPLAY The value of CHECKPOINT_SCN after being converted into the unit of time.
    COMPATIBLE The version number for compatibility.
    BASE_PIECE_ID The ID of the first piece generated during this round of archiving.
    USED_PIECE_ID The piece ID that has been used in this round of archiving.
    PIECE_SWITCH_INTERVAL The switching interval of pieces.
    UNIT_SIZE The size of the log block into which archive log data is compressed or encrypted. This field has not been used.
    COMPRESSION The compression algorithm. This field has not been used.
    INPUT_BYTES The amount of raw log data.
    INPUT_BYTES_DISPLAY The amount of raw log data with a unit, such as 798.01 MB or 5.25 GB.
    OUTPUT_BYTES The amount of archive log data after compression or encryption.
    OUTPUT_BYTES_DISPLAY The amount of actual log data with a unit, such as 798.01 MB or 5.25 GB.
    COMPRESSION_RATIO The compression ratio of archive logs.
    DELETED_INPUT_BYTES The amount of deleted raw log data.
    DELETED_INPUT_BYTES_DISPLAY The amount of deleted raw log data with a unit.
    DELETED_OUTPUT_BYTES The actual amount of deleted log data.
    DELETED_OUTPUT_BYTES_DISPLAY The actual amount of deleted log data with a unit.
    COMMENT The comment.
    PATH The archive path.

    DBA_OB_ARCHIVELOG_SUMMARY

    DBA_OB_ARCHIVELOG_SUMMARY displays all archiving information of the current tenant.

    Field Description
    DEST_ID The ID of the archive path.
    ROUND_ID The ID of the archiving round.
    INCARNATION The ID of the incarnation.
    DEST_NO The archive path. The value 0 indicates the LOG_ARCHIVE_DEST parameter.
    STATUS The archiving status.
    • PREPARE: Log archiving from the start SCN specified by the START_SCN field is being prepared.
    • BEGINNING: Log archiving is being started.
    • DOING: Log archiving is in progress.
    • INTERRUPTED: Log archiving is interrupted and requires manual intervention.
    • STOP: Log archiving is stopped.
    • STOPPING: Log archiving is being stopped.
    • SUSPENDING: Log archiving is being suspended.
    • SUSPEND: Log archiving is suspended.
    START_SCN The start SCN for archiving.
    START_SCN_DISPLAY The value of START_SCN after being converted into the unit of time.
    CHECKPOINT_SCN The end SCN for archiving.
    CHECKPOINT_SCN_DISPLAY The value of CHECKPOINT_SCN after being converted into the unit of time.
    COMPATIBLE The version number for compatibility.
    BASE_PIECE_ID The ID of the first piece generated during this round of archiving.
    USED_PIECE_ID The piece ID that has been used in this round of archiving.
    PIECE_SWITCH_INTERVAL The switching interval of pieces.
    UNIT_SIZE The size of the log block into which archive log data is compressed or encrypted. This field has not been used.
    COMPRESSION The compression algorithm. This field has not been used.
    INPUT_BYTES The amount of raw log data.
    INPUT_BYTES_DISPLAY The amount of raw log data with a unit, such as 798.01 MB or 5.25 GB.
    OUTPUT_BYTES The amount of archive log data after compression or encryption.
    OUTPUT_BYTES_DISPLAY The amount of actual log data with a unit, such as 798.01 MB or 5.25 GB.
    COMPRESSION_RATIO The compression ratio of archive logs.
    DELETED_INPUT_BYTES The amount of deleted raw log data.
    DELETED_INPUT_BYTES_DISPLAY The amount of deleted raw log data with a unit.
    DELETED_OUTPUT_BYTES The actual amount of deleted log data.
    DELETED_OUTPUT_BYTES_DISPLAY The actual amount of deleted log data with a unit.
    COMMENT The comment.
    PATH The archive path.

    CDB_OB_ARCHIVELOG_PIECE_FILES

    CDB_OB_ARCHIVELOG_PIECE_FILES displays all pieces of all tenants in the cluster.

    Field Description
    TENANT_ID The ID of the tenant.
    DEST_ID The ID of the archive path.
    ROUND_ID The ID of the archiving round.
    PIECE_ID The ID of the archived piece.
    INCARNATION The ID of the incarnation.
    DEST_NO The archive path. The value 0 indicates the LOG_ARCHIVE_DEST parameter.
    STATUS The status of the piece. Valid values:
    • ACTIVE: The piece is active.
    • FREEZING: The piece is being frozen.
    • FROZEN: The piece has been frozen. After a piece is frozen, its status will no longer be modified.
    START_SCN The start SCN of the piece.
    START_SCN_DISPLAY The value of START_SCN after being converted into the unit of time.
    CHECKPOINT_SCN The SCN at which the currently latest archived logs in the piece were generated.
    CHECKPOINT_SCN_DISPLAY The value of CHECKPOINT_SCN after being converted into the unit of time.
    MAX_SCN The maximum SCN of all log streams in the piece.
    END_SCN The end SCN of the piece.
    END_SCN_DISPLAY The value of END_SCN after being converted into the unit of time.
    COMPATIBLE The version number for compatibility.
    UNIT_SIZE The size of the log block into which archive log data is compressed or encrypted. This field has not been used.
    COMPRESSION The compression algorithm. This field has not been used.
    INPUT_BYTES The amount of raw log data in the piece.
    INPUT_BYTES_DISPLAY The amount of raw log data with a unit, such as 798.01 MB or 5.25 GB.
    OUTPUT_BYTES The amount of archive log data after compression or encryption.
    OUTPUT_BYTES_DISPLAY The amount of actual log data with a unit, such as 798.01 MB or 5.25 GB.
    COMPRESSION_RATIO The compression ratio for logs in the piece.
    FILE_STATUS The status of the piece file.
    PATH The archive path.

    DBA_OB_ARCHIVELOG_PIECE_FILES

    DBA_OB_ARCHIVELOG_PIECE_FILES displays all pieces of the current tenant.

    Field Description
    DEST_ID The ID of the archive path.
    ROUND_ID The ID of the archiving round.
    PIECE_ID The ID of the archived piece.
    INCARNATION The ID of the incarnation.
    DEST_NO The archive path. The value 0 indicates the LOG_ARCHIVE_DEST parameter.
    STATUS The status of the piece. Valid values:
    • ACTIVE: The piece is active.
    • FREEZING: The piece is being frozen.
    • FROZEN: The piece has been frozen. After a piece is frozen, its status will no longer be modified.
    START_SCN The start SCN of the piece.
    START_SCN_DISPLAY The value of START_SCN after being converted into the unit of time.
    CHECKPOINT_SCN The end SCN of the piece.
    CHECKPOINT_SCN_DISPLAY The value of CHECKPOINT_SCN after being converted into the unit of time.
    MAX_SCN The maximum SCN of all log streams in the piece.
    END_SCN The end SCN of the piece.
    END_SCN_DISPLAY The value of END_SCN after being converted into the unit of time.
    COMPATIBLE The version number for compatibility.
    UNIT_SIZE The size of the log block into which archive log data is compressed or encrypted. This field has not been used.
    COMPRESSION The compression algorithm. This field has not been used.
    INPUT_BYTES The amount of raw log data in the piece.
    INPUT_BYTES_DISPLAY The amount of raw log data with a unit, such as 798.01 MB or 5.25 GB.
    OUTPUT_BYTES The amount of archive log data after compression or encryption.
    OUTPUT_BYTES_DISPLAY The amount of actual log data with a unit, such as 798.01 MB or 5.25 GB.
    COMPRESSION_RATIO The compression ratio for logs in the piece.
    FILE_STATUS The status of the piece file.
    PATH The archive path.

    Previous topic

    Change the log archive destination
    Last

    Next topic

    Overview
    Next
    What is on this page
    CDB_OB_ARCHIVE_DEST
    DBA_OB_ARCHIVE_DEST
    CDB_OB_ARCHIVELOG
    DBA_OB_ARCHIVELOG
    CDB_OB_ARCHIVELOG_SUMMARY
    DBA_OB_ARCHIVELOG_SUMMARY
    CDB_OB_ARCHIVELOG_PIECE_FILES
    DBA_OB_ARCHIVELOG_PIECE_FILES