光辉飞翔

导航

 

ths   https://blog.csdn.net/huaishu/article/details/9671771

 

#查看监控器

db2 get monitor switches 

#打开监控器
db2 update monitor switches using statement on>>1.log
db2 update monitor switches using BUFFERPOOL on>>1.log
db2 update monitor switches using LOCK on>>1.log
db2 update monitor switches using SORT on>>1.log
db2 update monitor switches using TABLE on>>1.log
db2 update monitor switches using UOW on>>1.log
#执行脚本
db2 get snapshot for dynamic sql on db_name > "E:\快照信息\kzxx\dysqlstatus.log"
db2 get snapshot for db on db_name > "E:\快照信息\kzxx\databasestatus.log"
db2 get snapshot for tablespaces on db_name > "E:\快照信息\kzxx\tablespacestatus.log"
db2 get snapshot for bufferpools on db_name> "E:\快照信息\kzxx\bufferpools.log"
db2 get snapshot for tables on db_name > "E:\快照信息\kzxx\tables.log"
db2 get snapshot for applications on db_name > "E:\快照信息\kzxx\applications.log"
db2 get snapshot for dbm > "E:\快照信息\kzxx\dbm.log"
db2 get snapshot for locks on test > "E:\快照信息\kzxx\locks.log"
#关闭监控器
db2 update monitor switches using statement off>>1.log
db2 update monitor switches using BUFFERPOOL off>>1.log
db2 update monitor switches using LOCK off>>1.log
db2 update monitor switches using SORT off>>1.log
db2 update monitor switches using TABLE off>>1.log
db2 update monitor switches using UOW off>>1.log
---------------------
作者:怀素1980
来源:CSDN
原文:https://blog.csdn.net/huaishu/article/details/9671771
版权声明:本文为博主原创文章,转载请附上博文链接!

 

posted on 2018-11-05 09:21  光辉飞翔  阅读(963)  评论(0编辑  收藏  举报