获取数据库缓存(global buffer)使用的大小
使用(^GLOBUFF )可以获取到使用的数据库缓存global buff的大小,
可以直接执行这个命令或者通过代码的方式获取结果
下面是执行命令的方式:
USER>zn"%SYS"%SYS>do^GLOBUFF
Find which globals are using the most buffers.
Display the top <25>: → Press Enter // Default is to display top 25 globals
Total buffers: 102400 Buffers in use: 6926 PPG buffers: 77 (1.112%) // Global name, database name, percentage occupied by the buffer
Item Global Database Percentage (Count)
1 oddDEF IRISLIB 34.551 (2393)
2 rOBJ IRISLIB 15.261 (1057)
3 rOBJ IRISSYS 13.630 (944)
:下面是通过代码的方式:
set log="C:\temp\g.log"open log:"WNS"use log
do display^GLOBUFF(200)
close log下面是执行的结果返回:
Total buffers: 102400 Buffers in use: 6926 PPG buffers: 77 (1.112%)
Item Global Database Percentage (Count)
1 oddDEF IRISLIB 34.551 (2393)
2 rOBJ IRISLIB 15.261 (1057)
3 rOBJ IRISSYS 13.630 (944)
: