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

    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.1
    iconOceanBase Database
    SQL - V 4.3.1
    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_PLAN_CACHE_PLAN_STAT

    Last Updated:2026-04-15 08:25:15  Updated
    Share
    What is on this page
    Purpose
    Columns

    folded

    Share

    Note

    The view name is changed from V$PLAN_CACHE_PLAN_STAT to V$OB_PLAN_CACHE_PLAN_STAT since OceanBase Database V4.0.0.

    Purpose

    The V$OB_PLAN_CACHE_PLAN_STAT view displays the status of each object cached in the plan cache on the current OBServer node of the current tenant.

    Notice

    This view caches both SQL plan objects and PL objects (such as anonymous blocks, PL packages, and PL functions). Some columns take effect only for specific objects.

    Columns

    Column
    Type
    Nullable?
    Description
    TENANT_ID NUMBER(38) NO The ID of the tenant.
    SVR_IP VARCHAR2(46) NO The IP address of the OBServer node.
    SVR_PORT NUMBER(38) NO The port number of the OBServer node.
    PLAN_ID NUMBER(38) NO The ID of the cached object.
    SQL_ID VARCHAR2(32) NO The SQL ID corresponding to the cached object. If it is a PL object, this column is NULL.
    TYPE NUMBER(38) NO For SQL plan caching, this column indicates the type of the plan. Valid values:
    • 1: indicates a local plan.
    • 2: indicates a remote plan.
    • 3: indicates a distributed plan.
    For PL object caching, this column indicates the type of the PL object. Valid values:
    • 1: indicates a procedure.
    • 2: indicates a function.
    • 3: indicates a package.
    • 4: indicates an anonymous block.
    IS_BIND_SENSITIVE NUMBER(38) NO Indicates whether Adaptive Cursor Sharing (ACS) needs to be enabled for the plan.
    IS_BIND_AWARE NUMBER(38) NO Indicates that ACS is enabled for the plan.
    DB_ID NUMBER(38) NO The ID of the database.
    STATEMENT CLOB NO If the cached object is an SQL plan, the column is a parameterized SQL statement. If the cached object is an anonymous block, the column is a parameterized anonymous block statement. This column is invalid for other types of objects.
    QUERY_SQL CLOB NO If the cached object is an SQL plan, the column is the original SQL statement queried when the plan was loaded for the first time. If the cached object is an anonymous block, the column is a parameterized anonymous block statement.
    SPECIAL_PARAMS VARCHAR2(4096) NO The values of parameters that cannot be parameterized.
    PARAM_INFOS CLOB NO The parameter information.
    SYS_VARS VARCHAR2(4096) NO The values of system variables that affect the cached object.
    PLAN_HASH NUMBER(38) NO The hash value of the SQL plan.
    FIRST_LOAD_TIME TIMESTAMP(6) WITH LOCAL TIME ZONE NO The time when the plan was loaded for the first time.
    SCHEMA_VERSION NUMBER(38) NO The version of the schema.
    MERGED_VERSION NUMBER(38) NO The compaction version corresponding to the current cached plan.
    LAST_ACTIVE_TIME TIMESTAMP(6) WITH LOCAL TIME ZONE NO The time of the last execution.
    AVG_EXE_USEC NUMBER(38) NO The average execution duration.
    SLOWEST_EXE_TIME TIMESTAMP(6) WITH LOCAL TIME ZONE NO The timestamp of the slowest execution.
    SLOWEST_EXE_USEC NUMBER(38) NO The time consumed by the slowest execution.
    SLOW_COUNT NUMBER(38) NO The number of times that the current SQL plan was identified as a slow query.
    HIT_COUNT NUMBER(38) NO The number of hits.
    PLAN_SIZE NUMBER(38) NO The size of memory occupied by the cached object.
    EXECUTIONS NUMBER(38) NO The number of executions.
    DISK_READS NUMBER(38) NO The total number of physical reads of all executions.
    DIRECT_WRITES NUMBER(38) NO The total number of disk writes of all executions.
    BUFFERS_GETS NUMBER(38) NO The total number of logical reads of all executions.
    APPLICATION_WAIT_TIME NUMBER(38) NO The total amount of time spent on all wait events of the application class during all executions.
    CONCURRENCY_WAIT_TIME NUMBER(38) NO The total amount of time spent on all wait events of the concurrency class during all executions.
    USER_IO_WAIT_TIME NUMBER(38) NO The total amount of time spent on all wait events of the user I/O class during all executions.
    ROWS_PROCESSED NUMBER(38) NO The total number of rows in the results selected for all executions or the number of rows modified by executing the ALTER TABLE statement.
    ELAPSED_TIME NUMBER(38) NO The total time consumed by all executions, where the time consumed by each execution is defined as the time elapsed from when the execution request was received to when the execution was completed.
    CPU_TIME NUMBER(38) NO The total amount of CPU time used by all executions.
    LARGE_QUERYS NUMBER(38) NO The number of times the cached object was considered a large query.
    DELAYED_LARGE_QUERYS NUMBER(38) NO The number of times the cached object was considered a large query and dropped to the large query queue.
    DELAYED_PX_QUERYS NUMBER(38) NO The number of times a subquery in a parallel query was dropped back into the queue for retry.
    OUTLINE_VERSION NUMBER(38) NO The version of the outline.
    OUTLINE_ID NUMBER(38) NO The ID of the outline. The value -1 indicates that the plan is not generated based on a bound outline.
    OUTLINE_DATA CLOB NO The information about the outline corresponding to the plan.
    HINTS_INFO CLOB NO The hints of the SQL plan.
    HINTS_ALL_WORKED NUMBER(38) NO Indicates whether all the hints in the SQL plan have taken effect.
    ACS_SEL_INFO CLOB NO The range of selectivity for the current ACS plan.
    TABLE_SCAN NUMBER(38) NO Indicates whether the query is a primary key scan.
    EVOLUTION NUMBER(38) NO Indicates whether the execution plan is evolving.
    EVO_EXECUTIONS NUMBER(38) NO The number of evolutions.
    EVO_CPU_TIME NUMBER(38) NO The total amount of CPU time for executions during the evolution.
    TIMEOUT_COUNT NUMBER(38) NO The number of timeouts.
    PS_STMT_ID NUMBER(38) NO The ID of the prepared statement corresponding to the request. Valid values:
  • -1: indicates that the PS protocol is not used in the SQL statement.
  • Value other than -1: indicates that the PS protocol is used in the SQL statement. It also indicates the unique identifier returned by the PS protocol for the statement.
  • SESSID NUMBER(38) NO The ID of the session containing the cached object.
    TEMP_TABLES CLOB NO The name of the temporary table in the SQL plan. This column is left empty if no temporary table exists.
    IS_USE_JIT NUMBER(38) NO Indicates whether just-in-time (JIT) compilation is enabled for the SQL plan.
    OBJECT_TYPE CLOB NO The type of the cached object. Valid values:
  • SQL_PLAN
  • PROCEDURE
  • FUNCTION
  • PACKAGE
  • ANONYMOUS
  • PL_SCHEMA_ID NUMBER(38) NO This column is the schema ID of the cached object for PL objects other than anonymous blocks. It is identical to PS_STMT_ID for anonymous blocks and meaningless for SQL plans.
    IS_BATCHED_MULTI_STMT NUMBER(38) NO Indicates whether the plan has been optimized for batch execution of multiple statements.

    Previous topic

    V$OB_PLAN_CACHE_PLAN_EXPLAIN
    Last

    Next topic

    V$OB_PLAN_CACHE_STAT
    Next
    What is on this page
    Purpose
    Columns