Note
- This view is available starting with V4.3.1 in V4.3.x.
- This view is available starting with V4.2.2 in V4.2.x.
Purpose
The V$OB_PL_CACHE_OBJECT view displays the basic information of PL-related cache objects in the current server for the current tenant.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| TENANT_ID | NUMBER(38) | NO | Tenant ID:
|
| SVR_IP | VARCHAR2(46) | NO | IP address of the node where the cache object is located |
| SVR_PORT | NUMBER(38) | NO | Port number of the node where the cache object is located |
| CACHE_OBJECT_ID | NUMBER(38) | NO | ID of the cache object allocated by the lib cache |
| PARAMETERIZE_TEXT | CLOB | NO |
|
| OBJECT_TEXT | CLOB | NO | Text of the query statement. This column is valid only in anonymous blocks and CALL statements in PS mode. |
| FIRST_LOAD_TIME | TIMESTAMP(6) WITH LOCAL TIME ZONE | NO | Time when the cache object was first loaded, in microseconds |
| LAST_ACTIVE_TIME | TIMESTAMP(6) WITH LOCAL TIME ZONE | NO | Time of the last cache hit, in microseconds |
| AVG_EXE_USEC | NUMBER(38) | NO | Average execution time, in microseconds |
| SLOWEST_EXE_TIME | TIMESTAMP(6) WITH LOCAL TIME ZONE | NO | Timestamp of the slowest execution, in microseconds |
| SLOWEST_EXE_USEC | NUMBER(38) | NO | Time consumed by the slowest execution, in microseconds |
| HIT_COUNT | NUMBER(38) | NO | Number of cache hits |
| CACHE_OBJ_SIZE | NUMBER(38) | NO | Memory size occupied by the cache object |
| EXECUTIONS | NUMBER(38) | NO | Number of successful executions of the stored procedure |
| ELAPSED_TIME | NUMBER(38) | NO | Time consumed by the last execution of the stored procedure, in microseconds |
| OBJECT_TYPE | CLOB | NO | Type of the cache object (such as Procedure, Function, and Trigger) |
| OBJECT_ID | NUMBER(38) | NO | ID of the stored procedure object (routine_id/package_id) |
| COMPILE_TIME | NUMBER(38) | NO | Time consumed by the compilation of the stored procedure, in microseconds |
| SCHEMA_VERSION | NUMBER(38) | NO | Schema version number |
| PS_STMT_ID | NUMBER(38) | NO | ID of the Prepare statement corresponding to the request:
|
| DB_ID | NUMBER(38) | NO | ID of the database used for the compilation of the stored procedure
Note |
| PL_CG_MEM_HOLD | NUMBER(38) | NO | Memory held during the PL CG phase
Note |
| SYS_VARS | varchar(4096) | NO | System variables that affect the generation of the plan in the current session
Note |
| PARAM_INFOS | CLOB | NO | Information about the parameterized types in anonymous blocks and call proc info
Note |
| SQL_ID | varchar(32) | NO | Unique ID generated by using the MD5 value of db_name+routine_name
Note |
| OUTLINE_VERSION | NUMBER(38) | NO | Version of the throttling outline. The default value is 0
Note |
| OUTLINE_ID | NUMBER(38) | NO | ID of the throttling outline. The default value is -1
Note |
| CONCURRENT_DATA | CLOB | NO | The throttling content, which defaults to /*+max_concurrent(-1)*/. -1 indicates no throttling.
Note |
Sample query
Query the basic information of PL-related cache objects in the current server of the current tenant.
obclient > SELECT * FROM SYS.V$OB_PL_CACHE_OBJECT WHERE ROWNUM < = 1 \G
The query result is as follows:
*************************** 1. row ***************************
TENANT_ID: 1004
SVR_IP: 172.xx.xx.xx
SVR_PORT: 2882
CACHE_OBJECT_ID: 567
PARAMETERIZE_TEXT: BEGIN DBMS_STATS.ASYNC_GATHER_STATS_JOB_PROC(?); END
OBJECT_TEXT: BEGIN DBMS_STATS.ASYNC_GATHER_STATS_JOB_PROC(?); END
FIRST_LOAD_TIME: 30-JUL-25 04.46.58.530625 PM
LAST_ACTIVE_TIME: 04-AUG-25 04.31.58.447356 PM
AVG_EXE_USEC: 18762
SLOWEST_EXE_TIME: 30-JUL-25 04.46.59.016867 PM
SLOWEST_EXE_USEC: 486909
HIT_COUNT: 479
CACHE_OBJ_SIZE: 15872
EXECUTIONS: 480
ELAPSED_TIME: 9006025
OBJECT_TYPE: ANONYMOUS
OBJECT_ID: 18446744073709551615
COMPILE_TIME: 76418
SCHEMA_VERSION: -1
PL_EVICT_VERSION: 1753864526437224
PS_STMT_ID: -1
DB_ID: 201006
PL_CG_MEM_HOLD: 345660
SYS_VARS: 4,BYTE,17180131328,
PARAM_INFOS: {1,0,0,-85,15,7,18446744073709551615}
SQL_ID: E6454891418256E7AEE67AC9BBB536B4
OUTLINE_VERSION: 0
OUTLINE_ID: -1
CONCURRENT_DATA: /*+max_concurrent(-1)*/
1 row in set (0.012 sec)
