Purpose
gv$plan_cache_stat displays the overall status of each plan cache of the current tenant on all servers.
Related tables/views
oceanbase.__all_virtual_plan_cache_stat
Fields
| Field | Type | Nullable? | Description |
|---|---|---|---|
| tenant_id | bigint(20) | NO | The ID of the tenant. |
| svr_ip | varchar(32) | NO | The IP address of the server. |
| svr_port | bigint(20) | NO | The port number. |
| sql_num | bigint(20) | NO | The number of SQL statements in the plan cache. |
| mem_used | bigint(20) | NO | The size of memory that the plan cache occupies. |
| mem_hold | bigint(20) | NO | The size of memory that the plan cache holds. |
| access_count | bigint(20) | NO | The number of accesses to the plan cache. |
| hit_count | bigint(20) | NO | The number of plan cache hits. |
| hit_rate | bigint(20) | NO | The hit rate of the plan cache. |
| plan_num | bigint(20) | NO | The number of plans. |
| mem_limit | bigint(20) | NO | The maximum size of memory that the plan cache can occupy. |
| hash_bucket | bigint(20) | NO | The number of buckets in the hash map of the plan cache. |
| stmtkey_num | bigint(20) | NO | The number of stmt_keys in the plan cache. |