成都网站建设设计

将想法与焦点和您一起共享

DB2事件监控的命令

DB2事件监控都有哪些命令呢?这是很多人都提到过的问题,下面就为您详细介绍DB2事件监控的命令,希望对您能有所帮助。

目前成都创新互联已为上千家的企业提供了网站建设、域名、虚拟主机网站托管运营、企业网站设计、呼和浩特网站维护等服务,公司将坚持客户导向、应用为本的策略,正道将秉承"和谐、参与、激情"的文化,与客户和合作伙伴齐心协力一起成长,共同发展。

DB2事件监控创建后可以象快照监控一样打开和关闭

DB2事件监控类型:
Database - Records an event record when the last application disconnects from the database.
Tables - Records an event record for each active table when the last application disconnects from the database. An active table is a table that has changed since the first connection to the database.
Deadlocks - Records an event record for each deadlock event.
Tablespaces - Records an event record for each active table space when the last application disconnects from the database.
Bufferpools - Records an event record for buffer pools when the last application disconnects from the database.
Connections - Records an event record for each database connection event when an application disconnects from a database.
Statements - Records an event record for every SQL statement issued by an application (dynamic and static).
Transactions - Records an event record for every transaction when it completes (COMMIT or ROLLBACK statement).

启动事件监控
SET EVENT MONITOR evmon1 STATE = 1

关闭事件监控
SET EVENT MONITOR evmon1 STATE = 0

删除事件监控
DROP EVENT MONITOR evmon1

刷新事件监控
FLUSH EVENT MONITOR evmon1 BUFFER

【编辑推荐】

DB2 Merge语句的用法

DB2流程控制子句一览

深入探讨DB2表连接原理

db2日志保存的两种方式

四种常用的DB2循环语句


当前题目:DB2事件监控的命令
文章位置:http://chengdu.cdxwcx.cn/article/dpiepjj.html