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

    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.3.3
    iconOceanBase Database
    SQL - V 4.3.3
    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

    V$OB_MERGE_INFO

    Last Updated:2024-12-02 03:48:27  Updated
    Share
    What is on this page
    Purpose
    Columns
    Sample query
    References

    folded

    Share

    Note

    The V$MERGE_INFO view has been renamed as V$OB_MERGE_INFO since OceanBase Database V4.0.0. If you query the V$MERGE_INFO view in OceanBase Database V4.0.0 or later, an error is returned.

    Purpose

    The V$OB_MERGE_INFO view displays the statistics of compactions that are completed in the cluster.

    Columns

    Column
    Type
    Nullable?
    Description
    SVR_IP varchar(46) NO The IP address of the OBServer node.
    SVR_PORT bigint(20) NO The port number of the OBServer node.
    TENANT_ID bigint(20) NO The ID of the tenant.
    LS_ID bigint(20) NO The ID of the log stream.
    TABLET_ID bigint(20) NO The ID of the tablet.
    ACTION varchar(64) NO The specific action of the compaction. Valid values:
    • MDS_TABLE_MERGE: indicates to persist system metadata to the disk in the SSTable format.
    • MAJOR_MERGE: indicates a tenant-level major compaction.
    • MEDIUM_MERGE: indicates a partition-level major compaction.
    • MINI_MERGE: indicates a mini compaction that converts a MemTable to a mini SSTable.
    • MINOR_MERGE: indicates a minor compaction that combines multiple mini SSTables or multple mini SSTables and minor SSTables into one minor SSTable.
    • META_MAJOR_MERGE: indicates a special compaction type that compacts the data generated before a specified point in time into a meta major SSTable, which has the same data format as a major SSTable but does not contain multi-version data or data of uncommitted transactions.
    COMPACTION_SCN bigint(20) unsigned NO The compaction version.
    START_TIME timestamp(6) NO The start time of the compaction.
    END_TIME timestamp(6) NO The end time of the compaction.
    MACRO_BLOCK_COUNT bigint(20) NO The total number of macroblocks in the compaction.
    REUSE_PCT decimal(26,2) NO The reuse rate of macroblocks in the compaction.
    PARALLEL_DEGREE bigint(20) NO The degree of parallelism (DOP) of the compaction.

    Sample query

    Query the first five MINI_MERGE actions that have been completed in a MySQL user tenant from the user tenant.

    obclient [oceanbase]> SELECT * FROM oceanbase.V$OB_MERGE_INFO WHERE ACTION='MINI_MERGE' LIMIT 5;
    

    The query result is as follows:

    +----------------+----------+-----------+-------+-----------+------------+---------------------+----------------------------+----------------------------+-------------------+-----------+-----------------+
    | SVR_IP         | SVR_PORT | TENANT_ID | LS_ID | TABLET_ID | ACTION     | COMPACTION_SCN      | START_TIME                 | END_TIME                   | MACRO_BLOCK_COUNT | REUSE_PCT | PARALLEL_DEGREE |
    +----------------+----------+-----------+-------+-----------+------------+---------------------+----------------------------+----------------------------+-------------------+-----------+-----------------+
    | 172.xx.xxx.xxx |     2882 |      1002 |     1 |     49402 | MINI_MERGE | 1712895545480643155 | 2024-04-12 12:19:06.285433 | 2024-04-12 12:19:06.292896 |                 1 |      0.00 |               1 |
    | 172.xx.xxx.xxx |     2882 |      1002 |     1 |     49401 | MINI_MERGE |    1712895546279349 | 2024-04-12 12:19:06.279509 | 2024-04-12 12:19:06.361253 |                 1 |      0.00 |               1 |
    | 172.xx.xxx.xxx |     2882 |      1002 |     1 |    101001 | MINI_MERGE | 1712895545892669938 | 2024-04-12 12:19:10.331618 | 2024-04-12 12:19:10.335477 |                 1 |      0.00 |               1 |
    | 172.xx.xxx.xxx |     2882 |      1002 |     1 |    100006 | MINI_MERGE | 1712895545892669938 | 2024-04-12 12:19:10.331718 | 2024-04-12 12:19:10.335799 |                 1 |      0.00 |               1 |
    | 172.xx.xxx.xxx |     2882 |      1002 |     1 |         5 | MINI_MERGE | 1712895545892669938 | 2024-04-12 12:19:10.331664 | 2024-04-12 12:19:10.337510 |                 1 |      0.00 |               1 |
    +----------------+----------+-----------+-------+-----------+------------+---------------------+----------------------------+----------------------------+-------------------+-----------+-----------------+
    5 rows in set
    

    References

    • GV$OB_MERGE_INFO

    • V$OB_TABLET_COMPACTION_PROGRESS

    • V$OB_TABLET_COMPACTION_HISTORY

    • DBA_OB_ZONE_MAJOR_COMPACTION

    • DBA_OB_MAJOR_COMPACTION

    • View minor compaction information

    • View the major compaction process

    Previous topic

    V$OB_MEMSTORE_INFO
    Last

    Next topic

    V$OB_NIC_INFO
    Next
    What is on this page
    Purpose
    Columns
    Sample query
    References