Files
oceanbase/docs/docs-cn/13.reference-guide/1.system-view/3.performance-view/1.gv-plan_cache_stat.md
2022-02-10 14:51:49 +08:00

1.6 KiB

gv$plan_cache_stat

功能

该视图记录当前租户在所有 Server 上的每个计划缓存整体的状态。

相关表/视图

oceanbase.__all_virtual_plan_cache_stat

字段说明

字段名称 类型 是否可以为 NULL 描述
tenant_id bigint(20) NO 租户 ID
svr_ip varchar(32) NO 服务器的 IP 地址
svr_port bigint(20) NO 端口号
sql_num bigint(20) NO plan_cache 涉及 SQL 条数
mem_used bigint(20) NO plan_cache 已经使用的内存
mem_hold bigint(20) NO plan_cache 持有的内存
access_count bigint(20) NO 进行 plan_cache 的次数
hit_count bigint(20) NO 命中 plan_cache 的次数
hit_rate bigint(20) NO plan_cache 的命中率
plan_num bigint(20) NO plan 的个数
mem_limit bigint(20) NO plan_cache 的内存上限
hash_bucket bigint(20) NO plan_cache hash map 中的 Bucket 的个数
stmtkey_num bigint(20) NO plan_cache 中 stmt_key 的个数