DB2快照监控可能对于很多刚接触DB2数据库的新人来说还比较陌生,下面就为你介绍DB2快照监控的项等知识,供您参考学习之用。
DB2快照监控的项:
Sorts: Number of heaps used, overflows, sorts performance, 【SORT】【 DFT_MON_SORT】
Locks: Number of locks held, number of deadlocks,【 LOCK】【 DFT_MON_LOCK】
Tables: Measure activity (rows read, rows written),【 TABLE】【 DFT_MON_TABLE】
Bufferpools: Number of reads and writes, time taken,【 BUFFERPOOL】【 DFT_MON_BUFPOOL】
Unit of work: Start times, end times, completion status,【 UOW】【 DFT_MON_UOW】
SQL statements: Start time, stop time, statement identification,【 STATEMENT】【DFT_MON_STMT】
Timestamps: Monitors timestamp,【 TIMESTAMP】【 DFT_MON_TIMESTAMP】
通过下面两个命令都可以打开监控项:
UPDATE DBM CONFIGURATION USING DFT_MON_STMT ON
修改该参数不需要重启实例将起作用,它将作用于该实例中的每个数据库(除过这几个监控参数外,其它对实例参数的修改需要重启实例方生效)。
UPDATE MONITOR SWITCHES USING STATEMENT ON
该命令使该选项只在该会话中起作用,断开后将失效。
获取监控项快照的可用级别:
Database manager - Captures information for an active instance
Database - Captures database(s) information
Application - Captures application(s) information
Bufferpools - Captures buffer pool activity information
Table space - Captures information for table spaces within a database
Table - Captures information for tables within a database
Lock - Captures information for locks held by applications against a database
Dynamic SQL cache - Captures point-in-time statement information from the SQL statement cache for the database
查看监控开关:
GET MONITOR SWITCHES--查看当前会话的监控设置
【编辑推荐】