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

    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.2.5
    iconOceanBase Database
    SQL - V 4.2.5
    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

    V$OB_PL_CACHE_OBJECT

    Last Updated:2026-04-27 03:14:13  Updated
    share
    What is on this page
    Purpose
    Columns
    Sample query

    folded

    share

    Note

    This view was introduced in OceanBase Database V4.2.2.

    Purpose

    The V$OB_PL_CACHE_OBJECT view displays the basic information about cached PL objects of the current tenant.

    Columns

    Column Type Nullable? Description
    TENANT_ID bigint(20) NO The ID of the tenant. Valid values:
    • 1: indicates the ID of the sys tenant.
    • Other values: indicates the ID of a user tenant or meta tenant.
    SVR_IP varchar(46) NO The IP address of the OBServer node where the cached object resides.
    SVR_PORT bigint(20) NO The port number of the OBServer node where the cached object resides.
    CACHE_OBJECT_ID bigint(20) NO The ID of the cached object, which is allocated by libcache.
    PARAMETERIZE_TEXT longtext NO
    • For an anonymous block or a CALL statement in prepared statement mode, this column indicates the parameterized SQL text.
    • For a procedure, function, or package, this column indicates the name of the stored object.
    OBJECT_TEXT longtext NO The text of the query statement. This column is valid only for an anonymous block or a CALL statement in prepared statement mode.
    FIRST_LOAD_TIME timestamp(6) NO The time when the cached object was first loaded, in microseconds.
    LAST_ACTIVE_TIME timestamp(6) NO The time when the cache was last hit, in microseconds.
    AVG_EXE_USEC bigint(20) NO The average execution duration of the cached object, in microseconds.
    SLOWEST_EXE_TIME timestamp(6) NO The end timestamp of the slowest execution, in microseconds.
    SLOWEST_EXE_USEC bigint(20) NO The duration of the slowest execution, in microseconds.
    HIT_COUNT bigint(20) NO The number of cache hits.
    CACHE_OBJ_SIZE bigint(20) NO The size of memory occupied by the cached object.
    EXECUTIONS bigint(20) NO The number of successful executions of the stored object.
    ELAPSED_TIME bigint(20) unsigned NO The time when the stored object was last executed, in microseconds.
    OBJECT_TYPE longtext NO The type of the cached object, such as procedure, function, or trigger.
    OBJECT_ID bigint(20) unsigned NO The ID of the stored object, namely the routine ID or package ID.
    COMPILE_TIME bigint(20) unsigned NO The compilation duration of the stored object, in microseconds.
    SCHEMA_VERSION bigint(20) NO The version of the schema.
    PS_STMT_ID bigint(20) NO The ID of the prepared statement corresponding to the request. Valid values:
    • -1: indicates that the prepared statement protocol is not used in the SQL statement.
    • Value other than -1: indicates that the prepared statement protocol is used in the SQL statement. It also indicates the unique identifier returned by the prepared statement protocol for the statement.
    DB_ID bigint(20) unsigned NO The database ID used in the compilation of the stored object.
    PL_CG_MEM_HOLD bigint(20) NO The memory held during the PL CG phase.

    Note

    This column is available starting with V4.2.5 BP2.

    SYS_VARS varchar(4096) NO The system variables that affect the generation of the plan in the current session.

    Note

    This column is available starting with V4.2.5 BP2.

    PARAM_INFOS longtext NO The parameterized type information of the anonymous block and call proc info. It is used to determine whether the match is successful.

    Note

    This column is available starting with V4.2.5 BP2.

    Sample query

    Query the basic information about cached PL objects of the current tenant.

    obclient > SELECT * FROM oceanbase.V$OB_PL_CACHE_OBJECT\G
    

    The query result is as follows:

    *************************** 1. row ***************************
            TENANT_ID: 1002
               SVR_IP: xx.xx.xx.xx
             SVR_PORT: 2882
      CACHE_OBJECT_ID: 173
    PARAMETERIZE_TEXT: dbms_stats
          OBJECT_TEXT: NULL
      FIRST_LOAD_TIME: 2024-10-21 14:52:16.849673
     LAST_ACTIVE_TIME: 2024-10-22 16:22:16.815587
         AVG_EXE_USEC: 0
     SLOWEST_EXE_TIME: 1970-01-01 08:00:00.000000
     SLOWEST_EXE_USEC: 0
            HIT_COUNT: 104
       CACHE_OBJ_SIZE: 15872
           EXECUTIONS: 0
         ELAPSED_TIME: 0
          OBJECT_TYPE: PACKAGE
            OBJECT_ID: 310871
         COMPILE_TIME: 30955
       SCHEMA_VERSION: 1729493160037360
           PS_STMT_ID: -1
                DB_ID: 201001
    

    Previous topic

    V$OB_PARAMETERS
    Last

    Next topic

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