gv$plan_cache_stat

2023-08-18 09:26:34  Updated

Overview

gv$plan_cache_stat displays the overall status of each plan cache of the current tenant on all servers.

oceanbase.__all_virtual_plan_cache_stat

Field description

Field name Type Nullable Description
tenant_id BIGINT(20) No The ID of the tenant.
svr_ip varchar(32) No The IP address of the OBServer.
svr_port BIGINT(20) No The port number of the OBServer.
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.

Contact Us