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

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

    DBA_MVIEW_LOGS

    Last Updated:2024-04-19 08:42:49  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 DBA_MVIEW_LOGS view displays information about materialized view logs.

    Columns

    Column Type Nullable? Description
    LOG_OWNER VARCHAR2(128) YES The owner of the materialized view log.
    MASTER VARCHAR2(128) YES The name of the master table to which the materialized view log belongs.
    LOG_TABLE VARCHAR2(128) YES The name of the materialized view log table.
    LOG_TRIGGER VARCHAR2(128) YES The AFTER row trigger on the master table for inserting rows into the materialized view log.

    Note

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

    ROWIDS VARCHAR2(3) NO Indicates whether ROWIDs are recorded. Valid values:
    • YES
    • NO
    PRIMARY_KEY VARCHAR2(3) NO Indicates whether the primary key is recorded. Valid values:
    • YES
    • NO
    OBJECT_ID VARCHAR2(3) NO Indicates whether object IDs are recorded in the object table. Valid values:
    • YES
    • NO

    Note

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

    FILTER_COLUMNS VARCHAR2(3) NO Indicates whether filter columns are recorded. Valid values:
    • YES
    • NO
    SEQUENCE VARCHAR2(3) NO Indicates whether sequence values that provide additional sorting information are recorded. Valid values:
    • YES
    • NO

    Note

    At present, the value of this column is fixed to YES.

    INCLUDE_NEW_VALUES VARCHAR2(3) NO Indicates whether both old values and new values are recorded. Valid values:
    • YES: Both old values and new values are recorded.
    • NO: Only old values are recorded.

    Note

    At present, the value of this column is fixed to YES.

    PURGE_ASYNCHRONOUS VARCHAR2(3) NO Indicates whether the materialized view log is asynchronously purged. Valid values:
    • YES
    • NO
    PURGE_DEFERRED VARCHAR2(3) NO Indicates whether the materialized view log is purged after a delay. Valid values:
    • YES
    • NO
    PURGE_START DATE YES The date when the purge starts.
    PURGE_INTERVAL VARCHAR2(200) YES The interval for purging.
    LAST_PURGE_DATE DATE YES The date when the materialized view log was last purged.
    LAST_PURGE_STATUS NUMBER NO The status of the last purge of the materialized view log. Valid values:
    • Error codes
    • 0: The materialized view log was successfully purged.

    Note

    At present, the value of this column is fixed to 0.

    NUM_ROWS_PURGED NUMBER YES The number of rows purged in the last purge of the materialized view log.
    COMMIT_SCN_BASED VARCHAR2(3) NO Indicates whether the materialized view log was committed based on the SCN. Valid values:
    • YES
    • NO

    Note

    At present, the value of this column is fixed to YES.

    STAGING_LOG VARCHAR2(3) NO Indicates whether the materialized view log is a temporary log that is synchronously refreshed. Valid values:
    • YES
    • NO

    Note

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

    Sample query

    obclient [test_db]> SELECT * FROM SYS.DBA_MVIEW_LOGS WHERE ROWNUM < = 1;
    

    The query result is as follows:

    +-----------+--------+------------+-------------+--------+-------------+-----------+----------------+----------+--------------------+--------------------+----------------+-------------+----------------+-----------------+-------------------+-----------------+------------------+-------------+
    | LOG_OWNER | MASTER | LOG_TABLE  | LOG_TRIGGER | ROWIDS | PRIMARY_KEY | OBJECT_ID | FILTER_COLUMNS | SEQUENCE | INCLUDE_NEW_VALUES | PURGE_ASYNCHRONOUS | PURGE_DEFERRED | PURGE_START | PURGE_INTERVAL | LAST_PURGE_DATE | LAST_PURGE_STATUS | NUM_ROWS_PURGED | COMMIT_SCN_BASED | STAGING_LOG |
    +-----------+--------+------------+-------------+--------+-------------+-----------+----------------+----------+--------------------+--------------------+----------------+-------------+----------------+-----------------+-------------------+-----------------+------------------+-------------+
    | SYS       | TBL3   | MLOG$_TBL3 | NULL        | NO     | YES         | NO        | YES            | YES      | YES                | NO                 | NO             | NULL        | NULL           | 20-JAN-24       |                 0 |               0 | YES              | NO          |
    +-----------+--------+------------+-------------+--------+-------------+-----------+----------------+----------+--------------------+--------------------+----------------+-------------+----------------+-----------------+-------------------+-----------------+------------------+-------------+
    1 row in set (0.021 sec)
    

    Previous topic

    ALL_MVIEW_LOGS
    Last

    Next topic

    USER_MVIEW_LOGS
    Next
    What is on this page
    Purpose
    Columns
    Sample query