onstat -g dsc 命令:打印分布式高速缓存信息

使用 onstat -g dsc 命令显示有关分布式高速缓存的信息。

语法

示例输出

图: onstat -g dsc 命令输出

Data Distribution Cache:
            Number of lists         : 31
            DS_POOLSIZE             : 127
            
            Distribution Cache Entries:
            
            list id   ref  drop hits       heap_ptr       distribution name 
            --------------------------------------------------------------
            
            0    0    0    0    300        d1567a438      testdb:gbasedbt.holding.h_t_id
            0    0    0    0    6298       d0db27c38      testdb:gbasedbt.trade.th_t_id
            0    0    0    0    4499       d089d6838      testdb:gbasedbt.security.s_co_id
            0    0    0    0    4050       d086d9438      testdb:gbasedbt.customer.ca_c_id
            
            1    0    0    0    900        d0c01e038      testdb:gbasedbt.compet.cp_comp_id
            1    0    0    0    4049       cf99894d0      testdb:gbasedbt.customer.ca_id
            
            3    0    0    0    900        d15674038      testdb:gbasedbt.industry.in_name
            3    0    0    0    1794       d0db0f038      testdb:gbasedbt.news_xref.nx_id
            
            4    0    0    0    1800       d12663838      testdb:gbasedbt.history.hh_h_id
            
            5    0    0    0    900        d08cb1838      testdb:gbasedbt.watch_item.wi_id
            5    0    0    0    1800       d08b95c38      testdb:gbasedbt.address.ad_zc_code
            
            6    0    0    0    1050       d0b68d038      testdb:gbasedbt.ctaxrate.cx_c_id
            6    0    0    0    1050       d0b683038      testdb:gbasedbt.taxrate.tx_id
            
            ...
            
            Total number of distribution entries: 58
            Number of entries in use        : 0

输出描述

Number of lists
在分布式高速缓存中列表的数量
DS_POOLSIZE
每次可以高速缓存的条目的数量
list
分布式高速缓存哈希链 ID
id
哈希条目编号
ref
引用高速缓存条目的语句的数量
drop
此条目添加到高速缓存以来是否被删除
hits
高速缓存条目的访问次数
heap_ptr
用于存储此条目的堆地址
distribution name
在高速缓存中分布式的名称
Total number of distribution entries
分布式高速缓存中的条目的数量
Number of entries in use
正在被使用的条目的数量