Detailed steps to monitor the performance of IBM DB2 databases

Source: Internet
Author: User
Tags db2 ibm db2 log

DB2 the specific steps of database performance monitoring:

1: The monitor that creates the SQL statement

DB2 Create Event Monitor Statmon for statements

Write to file ' C:\IBM\butone\statmon ' \ '

2: Create a Table of contents

MD C:\IBM\butone\statmon

3: Start monitor

DB2 Set Event Monitor Statmon State 1

4: Perform the task

Do some job to ....

5: Complete the output

DB2 Flush Event Monitor Statmon buffer

6: Turn off the monitor

DB2 Set Event Monitor Statmon State 0

7: Format output

Db2evmon-path C:\IBM\butone\statmon > Statmon.log

Note: View the execution time of SQL statements in Statmon.log

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.