Switch list for member 0 Buffer Pool Activity Information (BUFFERPOOL) = OFF Lock Information (LOCK) = OFF Sorting Information (SORT) = OFF SQL Statement Information (STATEMENT) = ON 07/22/2013 08:56:51.137388 Table Activity Information (TABLE) = OFF Take Timestamp Information (TIMESTAMP) = ON 07/22/2013 08:56:51.137388 Unit of Work Information (UOW) = OFF db2 => select substr(bp_name,1,30) as bp_name,data_hit_ratio_percent,index_hit_ratio_percent,total_hit_ratio_percent from sysibmadm.bp_hitratio
5 record(s) selected. --在当前application级别开启监控开关 db2 => update monitor switches using bufferpool on DB20000I The UPDATE MONITOR SWITCHES command completed successfully.
db2 => get monitor switches
Monitor Recording Switches
Switch list for member 0 Buffer Pool Activity Information (BUFFERPOOL) = ON 07/22/2013 14:44:59.080028 Lock Information (LOCK) = OFF Sorting Information (SORT) = OFF SQL Statement Information (STATEMENT) = ON 07/22/2013 08:56:51.137388 Table Activity Information (TABLE) = OFF Take Timestamp Information (TIMESTAMP) = ON 07/22/2013 08:56:51.137388 Unit of Work Information (UOW) = OFF
db2 => select substr(bp_name,1,30) as bp_name,data_hit_ratio_percent,index_hit_ratio_percent,total_hit_ratio_percent from sysibmadm.bp_hitratio
--发现当前application已经统计到了监控数据!然后在另外一个application再查询同样的监控视图,发现竟然还是 --application 253上 db2 => get monitor switches
Monitor Recording Switches
Switch list for member 0 Buffer Pool Activity Information (BUFFERPOOL) = OFF Lock Information (LOCK) = OFF Sorting Information (SORT) = OFF SQL Statement Information (STATEMENT) = ON 07/22/2013 08:56:51.137388 Table Activity Information (TABLE) = OFF Take Timestamp Information (TIMESTAMP) = ON 07/22/2013 08:56:51.137388 Unit of Work Information (UOW) = OFF
db2 => select substr(bp_name,1,30) as bp_name,data_hit_ratio_percent,index_hit_ratio_percent,total_hit_ratio_percent from sysibmadm.bp_hitratio