onstat -g dic 命令:打印表信息

使用 onstat -g dic 命令显示共享内存字典中高速缓存的每张表的一行信息。如果指定了表名,那么打印表的内部 SQL 信息。

语法:

示例输出

图: onstat -g dic 命令输出

Dictionary Cache:  Number of lists: 31, Maximum list size: 10                  
            list#  size  refcnt  dirty?  heapptr        table name                         
            --------------------------------------------------------                       
            1     3      1      no     14b5d890   wbe@oninit_shm:gbasedbt.t0010url      
            1      no     14cbb820   wbe@oninit_shm:gbasedbt.t9051themeval 
            0      no     14b63c20   wbe@oninit_shm:gbasedbt.t0060hits     
            
            2     2      0      no     14b97420   wbe@oninit_shm:gbasedbt.t0120import   
            1      no     14b6c820   wbe@oninit_shm:gbasedbt.t9110domain   
            
            3     3      0      no     14bce020   wbe@oninit_shm:gbasedbt.t0150url      
            0      no     14d3d820   contact@oninit_shm:gbasedbt.wbtags    
            0      no     14c87420   wbe@oninit_shm:gbasedbt.wbtags        
            
            4     1      0      no     14b7a420   drug@oninit_shm:abcdef.product      ..
            Total number of dictionary entries: 36

输出描述

list#
数据字典哈希链 ID
size
在此哈希列中的条目的数量
refcnt
当前引用高速缓存条目之一的 SQL 语句的数量
dirty?
自上次写入磁盘以来条目是否已修改
heapptr
用于存储此表的堆的地址
table name
在高速缓存中的表的名称

有关 onstat -g dic 命令的更多信息,请参阅 GBase 8s 性能指南