DB2 event monitoring command

Source: Internet
Author: User

What commands does DB2 event monitoring have? This is a problem that many people have mentioned. The following describes the commands for DB2 event monitoring in detail, hoping to help you.

After DB2 event monitoring is created, it can be turned on and off like snapshot monitoring.

DB2 event monitoring type:
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 ).

Start event monitoring
Set event monitor evmon1 STATE = 1

Disable event monitoring
Set event monitor evmon1 STATE = 0

Delete event monitoring
Drop event monitor evmon1

Refresh event monitoring
Flush event monitor evmon1 BUFFER

Usage of DB2 Merge statements

Overview of DB2 Flow Control clauses

In-depth discussion of DB2 table connection principles

Two ways to store db2 logs

Four Common DB2 cycle statements

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.