zoukankan      html  css  js  c++  java
  • db2开启监控monitor 查看快照snapshot

    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:快照信息kzxxdysqlstatus.log"
    db2 get snapshot for db on db_name > "E:快照信息kzxxdatabasestatus.log"
    db2 get snapshot for tablespaces on db_name > "E:快照信息kzxx ablespacestatus.log"
    db2 get snapshot for bufferpools on db_name> "E:快照信息kzxxufferpools.log"
    db2 get snapshot for tables on db_name > "E:快照信息kzxx ables.log"
    db2 get snapshot for applications on db_name > "E:快照信息kzxxapplications.log"
    db2 get snapshot for dbm > "E:快照信息kzxxdbm.log"
    db2 get snapshot for locks on test > "E:快照信息kzxxlocks.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
    版权声明:本文为博主原创文章,转载请附上博文链接!

  • 相关阅读:
    调用Config.ini类
    winform用AForge拍照功能
    winform导出csv
    winform导出excel
    net里面using的使用
    DBNULL与null的区别
    mui app在线更新
    redux-thunk初步使用
    初步使用Web Notification 实现浏览器消息通知
    ios唤起键盘后,页面不收回导致元素错位的问题.(譬如固定在底部的自定义键盘等)
  • 原文地址:https://www.cnblogs.com/guanghuiqq/p/9907361.html
Copyright © 2011-2022 走看看