金融其它 数据库监控dynamic

sql监控

SQL Statement Information          (STATEMENT) = OFF开关没有打开,我执行了java-web应用程序中的一个操作,想查看后台对应的sql是啥??监控如下:我get  snapshot for  dynamic  sql  on   ... 显示全部
SQL Statement Information          (STATEMENT) = OFF

开关没有打开,

我执行了java-web应用程序中的一个操作,想查看后台对应的sql是啥??

监控如下:
我get  snapshot for  dynamic  sql  on   testdb 后结果竟然找到了那条语句,我发现开关没打开呀,怎么也 能监控到呢??? 收起
参与10

查看其它 8 个回答tongjixianing 的回答

tongjixianing tongjixianing 软件开发工程师 IBM
This the default setting.  To make sure the monitor switch off run the following to check:

db2 get dbm monitor switches

$ db2 get dbm monitor switches

      DBM System Monitor Information Collected

Switch list for db partition number 0
Buffer Pool Activity Information  (BUFFERPOOL) = OFF
Lock Information                        (LOCK) = ON  02/07/2012 21:37:58.374279
Sorting Information                     (SORT) = OFF
SQL Statement Information          (STATEMENT) = OFF
Table Activity Information             (TABLE) = OFF
Take Timestamp Information         (TIMESTAMP) = ON  02/07/2012 04:37:33.194722
Unit of Work Information                 (UOW) = OFF
互联网服务 · 2012-02-08
浏览884

回答者

tongjixianing
软件开发工程师 IBM
评论537

tongjixianing 最近回答过的问题

回答状态

  • 发布时间:2012-02-08
  • 关注会员:1 人
  • 回答浏览:884
  • X社区推广