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

    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.3.0
    iconOceanBase Database
    SQL - V 4.3.0
    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

    CDB_MVREF_RUN_STATS

    Last Updated:2026-04-15 08:30:02  Updated
    Share
    What is on this page
    Purpose
    Columns
    Sample query

    folded

    Share

    Note

    This view is introduced since OceanBase Database V4.3.0.

    Purpose

    The CDB_MVREF_RUN_STATS view displays information about each refresh of materialized views. Each refresh is identified by a refresh ID. The information includes the timing statistics and refresh parameters of each refresh.

    Columns

    Column
    Type
    Nullable?
    Description
    TENANT_ID bigint(20) NO The ID of the tenant.
    RUN_OWNER varchar(128) NO The user that initiated the refresh.
    REFRESH_ID bigint(20) NO The ID of the refresh.
    NUM_MVS bigint(20) NO The number of materialized views refreshed.
    MVIEWS text NO The names of the materialized views specified in the API.
    BASE_TABLES text YES For internal use only.
    METHOD text YES The METHOD parameter specified in the API.
    ROLLBACK_SEG text YES The ROLLBACK_SEG parameter specified in the API.
    PUSH_DEFERRED_RPC varchar(1) NO The PUSH_DEFERRED_RPC parameter specified in the API.
    REFRESH_AFTER_ERRORS varchar(1) NO The REFRESH_AFTER_ERRORS parameter specified in the API.
    PURGE_OPTION bigint(20) NO The PURGE_OPTION parameter specified in the API.
    PARALLELISM bigint(20) NO The PARALLELISM parameter specified in the API.
    HEAP_SIZE bigint(20) NO The HEAP_SIZE parameter specified in the API.
    ATOMIC_REFRESH varchar(1) NO The ATOMIC_REFRESH parameter specified in the API.
    NESTED varchar(1) NO The NESTED parameter specified in the API.
    OUT_OF_PLACE varchar(1) NO The OUT_OF_PLACE parameter specified in the API.
    NUMBER_OF_FAILURES bigint(20) NO The number of failures occurred in processing the API.
    START_TIME datetime NO The start time of the refresh.
    END_TIME datetime NO The end time of the refresh.
    ELAPSED_TIME bigint(20) NO The duration of the refresh, in seconds.
    LOG_SETUP_TIME bigint(1) NO The log setup time for the materialized views, in seconds.

    Note

    This column is used only for compatibility and is 0 by default.

    LOG_PURGE_TIME bigint(20) NO The log purge time for the materialized views, in seconds.
    COMPLETE_STATS_AVAILABLE varchar(1) NO Indicates whether all the complete refresh statistics can be used for this refresh. Valid values:
    • Y
    • N

    Note

    This column is used only for compatibility and is Y by default.

    Sample query

    obclient [test_db]> SELECT * FROM oceanbase.CDB_MVREF_RUN_STATS;
    

    The query result is as follows:

    +-----------+-----------+------------+---------+-----------------------+-------------+--------+--------------+-------------------+----------------------+--------------+-------------+-----------+----------------+--------+--------------+--------------------+---------------------+---------------------+--------------+----------------+----------------+--------------------------+
    | TENANT_ID | RUN_OWNER | REFRESH_ID | NUM_MVS | MVIEWS                | BASE_TABLES | METHOD | ROLLBACK_SEG | PUSH_DEFERRED_RPC | REFRESH_AFTER_ERRORS | PURGE_OPTION | PARALLELISM | HEAP_SIZE | ATOMIC_REFRESH | NESTED | OUT_OF_PLACE | NUMBER_OF_FAILURES | START_TIME          | END_TIME            | ELAPSED_TIME | LOG_SETUP_TIME | LOG_PURGE_TIME | COMPLETE_STATS_AVAILABLE |
    +-----------+-----------+------------+---------+-----------------------+-------------+--------+--------------+-------------------+----------------------+--------------+-------------+-----------+----------------+--------+--------------+--------------------+---------------------+---------------------+--------------+----------------+----------------+--------------------------+
    |      1002 | root      |      64670 |       1 | test_db.mv1_tbl1_tbl2 | NULL        | NULL   | NULL         | N                 | N                    |            0 |           0 |         0 | N              | N      | N            |                  0 | 2024-01-17 16:26:28 | 2024-01-17 16:26:28 |            0 |              0 |              0 | Y                        |
    |      1002 | root      |      64672 |       1 | test_db.mv2_tbl1_tbl2 | NULL        | NULL   | NULL         | N                 | N                    |            0 |           0 |         0 | N              | N      | N            |                  0 | 2024-01-17 16:26:28 | 2024-01-17 16:26:28 |            0 |              0 |              0 | Y                        |
    +-----------+-----------+------------+---------+-----------------------+-------------+--------+--------------+-------------------+----------------------+--------------+-------------+-----------+----------------+--------+--------------+--------------------+---------------------+---------------------+--------------+----------------+----------------+--------------------------+
    2 rows in set (0.091 sec)
    

    Previous topic

    CDB_MVREF_STATS_PARAMS
    Last

    Next topic

    CDB_MVREF_STATS
    Next
    What is on this page
    Purpose
    Columns
    Sample query