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

    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.5
    iconOceanBase Database
    SQL - V 4.3.5
    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_SQL_PLAN

    Last Updated:2026-04-09 02:53:56  Updated
    Share
    What is on this page
    Purpose
    Columns
    Sample query

    folded

    Share

    Note

    This view is introduced in V4.2.0.

    Purpose

    This view displays the plan information collected by the execution plan through the EXPLAIN PLAN tool.

    Columns

    Column
    Type
    Nullable?
    Description
    TENANT_ID bigint(20) NO The ID of the tenant to which the plan information belongs

    Note

    This field is introduced in V4.3.5 BP1.

    SQL_ID varchar(32) NO The query ID
    DB_ID bigint(20) NO The Schema ID to which the query belongs
    PLAN_HASH bigint(20) unsigned NO The hash value of the plan
    PLAN_ID bigint(20) The plan ID
    GMT_CREATE timestamp(6) NO The record generation time
    OPERATOR varchar(255) NO The operator name (for example, TABLE SCAN, SORT)
    OBJECT_NODE varchar(40) NO If the current operator is related to a DBLINK, this field indicates the name of the DBLINK
    OBJECT_ID bigint(20) NO The ID of the scanned object (for example, the physical table ID scanned by the TABLE SCAN operator)
    OBJECT_OWNER varchar(128) NO The user to which the scanned object belongs
    OBJECT_NAME varchar(128) NO The name of the scanned object (for example, the physical table name scanned by the TABLE SCAN operator)
    OBJECT_ALIAS varchar(261) NO The alias of the scanned object (for example, the alias of the physical table scanned by the TABLE SCAN operator)
    OBJECT_TYPE varchar(20) NO The type of the scanned object (for example, SYNONYM, DBLINK, or BASIC TABLE)
    OPTIMIZER varchar(4000) NO Information about indexes (for example, physical rows, logical rows, number of table accesses, and types of statistics used)
    ID bigint(20) NO The ID of the logical operator
    PARENT_ID bigint(20) NO The ID of the parent operator of the logical operator
    DEPTH bigint(20) NO The depth of the logical operator in the current plan, that is, the layer of the binary plan tree
    POSITION bigint(20) NO The number of the current logical operator as a child node of the parent operator
    COST bigint(20) NO The estimated cost of the optimizer
    REAL_COST bigint(20) NO The real cost of the plan during the first execution (execution feedback information)
    CARDINALITY bigint(20) NO The estimated number of output rows of the current operator by the optimizer
    REAL_CARDINALITY bigint(20) NO The real number of output rows of the current operator during the first execution (execution feedback information)
    IO_COST bigint(20) NO The actual I/O overhead of the current operator during the first execution (execution feedback information)
    CPU_COST bigint(20) NO The actual CPU overhead of the current operator during the first execution (execution feedback information)
    BYTES bigint(20) NO The estimated width of the data of the current operator by the optimizer
    ROWSET bigint(20) NO The vectorized size of the current operator
    OTHER_TAG varchar(4000) NO The hints used in the current query. This field is stored only in the first row of the plan.
    PARTITION_START varchar(4000) NO The partition information scanned by the TABLE SCAN operator
    OTHER varchar(4000) NO Optimization information, such as the plan type, parameterized information of the Fast Parser, Plan Note, and constraints hit by the plan
    ACCESS_PREDICATES varchar(4000) NO The expression information that the current operator needs to access
    FILTER_PREDICATES varchar(4000) NO The filter conditions of the current operator
    STARTUP_PREDICATES varchar(4000) NO The startup conditions of the current operator
    PROJECTION varchar(4000) NO The output expression information of the current operator
    SPECIAL_PREDICATES varchar(4000) NO The unique expression information of the current operator, such as the join condition, GROUP EXPRS, and SORT EXPRS
    QBLOCK_NAME varchar(128) NO The name of the query block in which the current operator is located
    REMARKS varchar(4000) NO The modification tracking information of qb_name
    OTHER_XML varchar(4000) NO OUTLINE DATA

    Sample query

    In a user tenant, view the plan information collected by executing EXPLAIN PLAN in the current tenant on the current node, and display one record.

    obclient [oceanbase]> SELECT * FROM oceanbase.V$OB_SQL_PLAN LIMIT 1\G
    

    The query result is as follows:

    *************************** 1. row ***************************
             TENANT_ID: 1002
                SQL_ID: 07E5B378A3CD3778A58E18DB9AD2A430
                 DB_ID: 201009
             PLAN_HASH: 7420493073239164301
               PLAN_ID: 3813
            GMT_CREATE: 2025-03-25 17:35:21.524475
              OPERATOR: LIMIT
           OBJECT_NODE:
             OBJECT_ID: 0
          OBJECT_OWNER:
           OBJECT_NAME:
          OBJECT_ALIAS:
           OBJECT_TYPE:
             OPTIMIZER:
                    ID: 0
             PARENT_ID: -1
                 DEPTH: 0
              POSITION: 1
                  COST: 1
             REAL_COST: 0
           CARDINALITY: 1
      REAL_CARDINALITY: 1
               IO_COST: 0
              CPU_COST: 71
                 BYTES: 0
                ROWSET: 16
             OTHER_TAG:   /*+
    
      */
       PARTITION_START:
                 OTHER:   Plan Type:
          LOCAL
    
      Parameters:
          :0 => 1
    
      Note:
          Degree of Parallelisim is 1 because of table property
    
     ACCESS_PREDICATES:
     FILTER_PREDICATES:
    STARTUP_PREDICATES:
            PROJECTION: output([get_sys_var('version_comment', 0)], [get_sys_var('version', 0)])
    SPECIAL_PREDICATES: limit(1), offset(nil)
           QBLOCK_NAME: SEL$1
               REMARKS:   stmt_id:0, SEL$1
    
             OTHER_XML:   /*+
          BEGIN_OUTLINE_DATA
          OPTIMIZER_FEATURES_ENABLE('4.3.5.1')
          END_OUTLINE_DATA
      */
    1 row in set
    

    Previous topic

    V$SQL_JOIN_FILTER
    Last

    Next topic

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