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

    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.4.2
    iconOceanBase Database
    SQL - V 4.4.2
    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

    GV$SQL_PLAN_MONITOR

    Last Updated:2026-04-23 09:19:02  Updated
    share
    What is on this page
    Purpose
    Columns
    Sample query
    References

    folded

    share

    Note

    This view is available starting with V1.4.

    Purpose

    The GV$SQL_PLAN_MONITOR view displays the operation-level statistics of slow queries across all tenants and OBServer nodes. Each operation of a slow query is associated with statistics.

    Columns

    Column
    Type
    Nullable
    Description
    CON_ID bigint(20) NO The tenant ID.
    REQUEST_ID bigint(20) NO The request ID.
    KEY bigint(0) unsigned NO A foreign key used to join with the SQL_MONITOR virtual table.
    STATUS varchar(19) NO The execution status of the operator. Valid values:
    • EXECUTING: The operator is being executed.
    • DONE(ERROR): The operator execution failed.
    • DONE(FIRST N ROWS): The operator execution succeeded and returned the first N rows.
    • DONE(ALL ROWS): The operator execution succeeded and returned all rows.
    • DONE: The operator execution was interrupted.
    SVR_IP varchar(46) NO The IP address of the server where the operator is located.
    SVR_PORT bigint(20) NO The port number of the server where the operator is located.
    TRACE_ID varchar(64) NO The trace ID of the operator.
    DB_TIME bigint(20) NO The CPU time consumed by the operator.
    USER_IO_WAIT_TIME bigint(20) NO For V4.4.2:
    • For versions earlier than V4.4.2 BP1: the total time of all user I/O events.
    • For V4.4.2 BP1 and later: the I/O wait time for accessing the index and data microblocks in the middle layer.
    OTHER_WAIT_TIME bigint(0) unsigned NO The wait time for other events.
    FIRST_REFRESH_TIME timestamp(6) YES The start time of monitoring the operator.
    LAST_REFRESH_TIME timestamp(6) YES The end time of monitoring the operator.
    FIRST_CHANGE_TIME timestamp(6) YES The time when the operator returned the first row of data.
    LAST_CHANGE_TIME timestamp(6) YES The time when the operator returned the last row of data.
    REFRESH_COUNT bigint(0) unsigned NO The number of times the statistics were refreshed.
    SID bigint(0) unsigned NO The session ID.
    PROCESS_NAME bigint(20) NO The thread ID.
    SQL_ID varchar(32) NO The SQL ID.
    SQL_EXEC_START bigint(0) unsigned NO The start time of the SQL execution.
    SQL_EXEC_ID bigint(0) unsigned NO The SQL execution ID.
    SQL_PLAN_HASH_VALUE bigint(0) unsigned NO The hash value of the SQL plan.
    SQL_CHILD_ADDRESS varbinary(8) NO NULL by default.
    PLAN_PARENT_ID bigint(0) unsigned NO The ID of the parent operator.
    PLAN_LINE_ID bigint(20) NO NULL by default.
    PLAN_OPERATION varchar(128) NO The name of the operator.
    PLAN_OPTIONS varchar(30) unsigned NO NULL by default.
    PLAN_OBJECT_OWNER varchar(128) NO NULL by default.
    PLAN_OBJECT_NAME varchar(128) NO NULL by default.
    PLAN_OBJECT_TYPE varchar(80) NO NULL by default.
    PLAN_DEPTH bigint(20) NO The depth of the operator in the plan tree.
    PLAN_POSITION bigint(0) unsigned NO The position of the operator among the children of the parent node.
    PLAN_COST bigint(0) unsigned NO The cost of the operator calculated by the optimizer.
    PLAN_CARDINALITY bigint(0) unsigned NO The number of rows output by the operator, calculated by the optimizer.
    PLAN_BYTES bigint(0) unsigned NO The size of data output by the operator, calculated by the optimizer.
    PLAN_TIME bigint(0) unsigned NO The execution time of the operator, calculated by the optimizer.
    PLAN_PARTITION_START bigint(0) unsigned NO NULL by default.
    PLAN_PARTITION_STOP bigint(0) unsigned NO NULL by default.
    PLAN_CPU_COST bigint(0) unsigned NO The CPU cost of the operator, calculated by the optimizer.
    PLAN_IO_COST bigint(0) unsigned NO The I/O cost of the operator, calculated by the optimizer.
    PLAN_TEMP_SPACE bigint(0) unsigned NO The space occupied by the operator, calculated by the optimizer.
    STARTS bigint(20) NO The number of times the operator was rescanned.
    OUTPUT_ROWS bigint(20) NO The total number of rows output by the operator (the sum of the number of rows output by each execution instance of the operator).
    IO_INTERCONNECT_BYTES bigint(0) unsigned NO The size of data exchanged between the operator and the storage layer.
    PHYSICAL_READ_REQUESTS bigint(0) unsigned NO The number of I/O read requests issued by the operator.
    PHYSICAL_READ_BYTES bigint(0) unsigned NO The size of data read by the operator.
    PHYSICAL_WRITE_REQUESTS bigint(0) unsigned NO The number of I/O write requests issued by the operator.
    PHYSICAL_WRITE_BYTES bigint(0) unsigned NO The number of bytes of I/O write requests issued by the operator.
    WORKAREA_MEM bigint(20) unsigned NO The size of the work area occupied by the operator.
    WORKAREA_MAX_MEM bigint(20) unsigned NO The maximum size of the work area that the operator can occupy.
    WORKAREA_TEMPSEG bigint(20) unsigned NO The size of the disk dump space occupied by the operator.
    WORKAREA_MAX_TEMPSEG bigint(20) unsigned NO The maximum size of the disk dump space that the operator can occupy.
    OTHERSTAT_GROUP_ID bigint(0) unsigned NO NULL by default.
    OTHERSTAT_1_ID bigint(20) NO The ID of the field.
    OTHERSTAT_1_TYPE bigint(0) unsigned NO Reserved.
    OTHERSTAT_1_VALUE bigint(20) NO For the TABLE SCAN operator, it indicates the number of bytes read from the storage IO_READ_BYTES.

    Note

    • Starting from V4.3.3 BP1 of V4.3.x, the TABLE SCAN operator supports real-time statistics, which are no longer collected only at the end of the operator's execution.
    • Starting from V4.2.4 of V4.2.x, the TABLE SCAN operator supports real-time statistics, which are no longer collected only at the end of the operator's execution.
    OTHERSTAT_2_ID bigint(20) NO The ID of the field.
    OTHERSTAT_2_TYPE bigint(0) unsigned NO Reserved.
    OTHERSTAT_2_VALUE bigint(20) NO For the TABLE SCAN operator, it indicates the number of bytes read from the storage SSSTORE_READ_BYTES.

    Note

    • Starting from V4.3.3 BP1 of V4.3.x, the TABLE SCAN operator supports real-time statistics, which are no longer collected only at the end of the operator's execution.
    • Starting from V4.2.4 of V4.2.x, the TABLE SCAN operator supports real-time statistics, which are no longer collected only at the end of the operator's execution.
    OTHERSTAT_3_ID bigint(20) NO The ID of the field.
    OTHERSTAT_3_TYPE bigint(0) unsigned NO Reserved.
    OTHERSTAT_3_VALUE bigint(20) NO For V4.4.2:
    • For versions earlier than V4.4.2 BP1: For the TABLE SCAN operator, it indicates the number of rows read from the storage SSSTORE_READ_ROW_COUNT, which supports real-time statistics.
    • For V4.4.2 BP1 and later: The total number of rows in major SSTables read in the push-down or non-push-down path within the range.

    Note

    • Starting from V4.3.3 BP1 of V4.3.x, the TABLE SCAN operator supports real-time statistics, which are no longer collected only at the end of the operator's execution.
    • Starting from V4.2.4 of V4.2.x, the TABLE SCAN operator supports real-time statistics, which are no longer collected only at the end of the operator's execution.
    OTHERSTAT_4_ID bigint(20) NO The ID of the field.
    OTHERSTAT_4_TYPE bigint(0) unsigned NO Reserved.
    OTHERSTAT_4_VALUE bigint(20) NO For V4.4.2:
    • For versions earlier than V4.4.2 BP1: For the TABLE SCAN operator, it indicates the number of rows read from the storage MEMSTORE_READ_ROW_COUNT, which supports real-time statistics.
    • For V4.4.2 BP1 and later: The number of rows in minor SSTables, mini SSTables, and MemTables read in the push-down or non-push-down path.
    OTHERSTAT_5_ID bigint(20) NO Reserved.
    OTHERSTAT_5_TYPE bigint(0) unsigned NO Reserved.
    OTHERSTAT_5_VALUE bigint(20) NO The number of microblocks opened in the push-down path.

    Note

    For V4.4.2, this field is available starting from V4.4.2 BP1.

    OTHERSTAT_6_ID bigint(20) NO Reserved.
    OTHERSTAT_6_TYPE bigint(0) unsigned NO Reserved.
    OTHERSTAT_6_VALUE bigint(20) NO The total number of rows in microblocks opened in the push-down path within the range.

    Note

    For V4.4.2, this field is available starting from V4.4.2 BP1.

    OTHERSTAT_7_ID bigint(20) NO Reserved.
    OTHERSTAT_7_TYPE bigint(0) unsigned NO Reserved.
    OTHERSTAT_7_VALUE bigint(20) NO The total number of rows filtered by the push-down or non-push-down filter.

    Note

    For V4.4.2, this field is available starting from V4.4.2 BP1.

    OTHERSTAT_8_ID bigint(20) NO Reserved.
    OTHERSTAT_8_TYPE bigint(0) unsigned NO Reserved.
    OTHERSTAT_8_VALUE bigint(20) NO The number of microblocks that do not require pre-fetching based on Skip Index information.

    Note

    For V4.4.2, this field is available starting from V4.4.2 BP1.

    OTHERSTAT_9_ID bigint(20) NO Reserved.
    OTHERSTAT_9_TYPE bigint(0) unsigned NO Reserved.
    OTHERSTAT_9_VALUE bigint(20) NO Reserved.
    OTHERSTAT_10_ID bigint(20) NO Reserved.
    OTHERSTAT_10_TYPE bigint(0) unsigned NO Reserved.
    OTHERSTAT_10_VALUE bigint(20) NO Reserved.
    OTHER_XML varchar(255) NO Structured data that cannot be written to reserved fields but needs to be provided for external use. This data is parsed by external tools.
    PLAN_OPERATION_INACTIVE bigint(0) unsigned NO NULL by default.
    OUTPUT_BATCHES bigint(20) NO The number of times the operator calls the get_next_batch interface in vectorized mode.
    SKIPPED_ROWS_COUNT bigint(20) NO The total number of rows that do not need to be computed (filtered out) during the computation process in vectorized mode.
    PROFILE varchar(65535) NO Displays the PROFILE extended monitoring metrics of the SQL plan monitor.

    Note

    This column is available starting with V4.4.1.

    For the value of the OTHERSTAT_X_ID field, you can query the V$SQL_MONITOR_STATNAME view for detailed information.

    Sample query

    Query the operation-level statistics of slow queries on all OBServer nodes across all tenants.

    obclient [oceanbase]> SELECT * FROM oceanbase.GV$SQL_PLAN_MONITOR limit  1\G
    

    The query result is as follows:

    *************************** 1. row ***************************
                     CON_ID: 1
                 REQUEST_ID: 0
                        KEY: NULL
                     STATUS: NULL
                     SVR_IP: xx.xx.xx.xx
                   SVR_PORT: 2882
                   TRACE_ID: YB42AC1E87C6-000XXXXXXXXXXX-0-0
                    DB_TIME: 5538
          USER_IO_WAIT_TIME: 0
            OTHER_WAIT_TIME: NULL
         FIRST_REFRESH_TIME: 2024-10-23 15:28:58.252685
          LAST_REFRESH_TIME: 2024-10-23 15:28:58.263195
          FIRST_CHANGE_TIME: NULL
           LAST_CHANGE_TIME: 2024-10-23 15:28:58.262182
              REFRESH_COUNT: NULL
                        SID: NULL
               PROCESS_NAME: 10272
                     SQL_ID: NULL
             SQL_EXEC_START: NULL
                SQL_EXEC_ID: NULL
        SQL_PLAN_HASH_VALUE: NULL
          SQL_CHILD_ADDRESS: NULL
             PLAN_PARENT_ID: NULL
               PLAN_LINE_ID: 8
             PLAN_OPERATION: PHY_BLOCK_SAMPLE_SCAN
               PLAN_OPTIONS: NULL
          PLAN_OBJECT_OWNER: NULL
           PLAN_OBJECT_NAME: NULL
           PLAN_OBJECT_TYPE: NULL
                 PLAN_DEPTH: 8
              PLAN_POSITION: NULL
                  PLAN_COST: NULL
           PLAN_CARDINALITY: NULL
                 PLAN_BYTES: NULL
                  PLAN_TIME: NULL
       PLAN_PARTITION_START: NULL
        PLAN_PARTITION_STOP: NULL
              PLAN_CPU_COST: NULL
               PLAN_IO_COST: NULL
            PLAN_TEMP_SPACE: NULL
                     STARTS: 1
                OUTPUT_ROWS: 0
      IO_INTERCONNECT_BYTES: NULL
     PHYSICAL_READ_REQUESTS: NULL
        PHYSICAL_READ_BYTES: NULL
    PHYSICAL_WRITE_REQUESTS: NULL
       PHYSICAL_WRITE_BYTES: NULL
               WORKAREA_MEM: NULL
           WORKAREA_MAX_MEM: 0
           WORKAREA_TEMPSEG: NULL
       WORKAREA_MAX_TEMPSEG: 0
         OTHERSTAT_GROUP_ID: NULL
             OTHERSTAT_1_ID: 36
           OTHERSTAT_1_TYPE: NULL
          OTHERSTAT_1_VALUE: 0
             OTHERSTAT_2_ID: 37
           OTHERSTAT_2_TYPE: NULL
          OTHERSTAT_2_VALUE: 0
             OTHERSTAT_3_ID: 38
           OTHERSTAT_3_TYPE: NULL
          OTHERSTAT_3_VALUE: 0
             OTHERSTAT_4_ID: 39
           OTHERSTAT_4_TYPE: NULL
          OTHERSTAT_4_VALUE: 0
             OTHERSTAT_5_ID: 0
           OTHERSTAT_5_TYPE: NULL
          OTHERSTAT_5_VALUE: 0
             OTHERSTAT_6_ID: 0
           OTHERSTAT_6_TYPE: NULL
          OTHERSTAT_6_VALUE: 0
             OTHERSTAT_7_ID: 0
           OTHERSTAT_7_TYPE: NULL
          OTHERSTAT_7_VALUE: 0
             OTHERSTAT_8_ID: 0
           OTHERSTAT_8_TYPE: NULL
          OTHERSTAT_8_VALUE: 0
             OTHERSTAT_9_ID: 0
           OTHERSTAT_9_TYPE: NULL
          OTHERSTAT_9_VALUE: 0
            OTHERSTAT_10_ID: 0
          OTHERSTAT_10_TYPE: NULL
         OTHERSTAT_10_VALUE: 0
                  OTHER_XML: NULL
    PLAN_OPERATION_INACTIVE: NULL
             OUTPUT_BATCHES: 1
         SKIPPED_ROWS_COUNT: 0
    1 row in set (0.073 sec)
    

    References

    • V$SQL_PLAN_MONITOR

    • Display real-time execution plans

    Previous topic

    GV$OB_SQL_PLAN
    Last

    Next topic

    GV$OB_SQL_WORKAREA_MEMORY_INFO
    Next
    What is on this page
    Purpose
    Columns
    Sample query
    References