Note
This view is available starting with V4.0.0.
Overview
Monitors the overall status of the PS cache for the current tenant on the current OBServer node, including hit rate, memory usage, and the number of cached items.
Columns
Field |
Type |
Nullable |
Description |
|---|---|---|---|
| SVR_IP | VARCHAR2(46) | NO | Server IP Address |
| SVR_PORT | NUMBER(38) | NO | Server Port Number |
| STMT_COUNT | NUMBER(38) | NO | How many statements are cached in the PS cache? |
| HIT_COUNT | NUMBER(38) | NO | Total PS Cache Hits |
| ACCESS_COUNT | NUMBER(38) | NO | Total Number of PS Cache Accesses |
| MEM_HOLD | NUMBER(38) | NO | PS Cache Memory Usage, in bytes |
Sample query
In the user tenant, view the overall status of the PS cache for the current node in that tenant.
obclient [SYS]> SELECT * FROM SYS.V$OB_PS_STAT;
The query result is as follows:
+-----------+----------------+----------+------------+-----------+--------------+----------+
| TENANT_ID | SVR_IP | SVR_PORT | STMT_COUNT | HIT_COUNT | ACCESS_COUNT | MEM_HOLD |
+-----------+----------------+----------+------------+-----------+--------------+----------+
| 1004 | 11.xxx.xxx.xxx | 28825 | 1 | 0 | 1 | 16384 |
+-----------+----------------+----------+------------+-----------+--------------+----------+
1 row in set
