Results 1 to 4 of 4

Thread: get snapshot

  1. #1
    Join Date
    Feb 2007
    Posts
    47

    Unanswered: get snapshot

    I have DB2 v8 FP 17.

    When I run get snapshot, the Total execution time I want to say is the total time that statement has been run. So does number of executions divided by total exec equal average exec time? And furthermore, what about rows read?


    Number of executions = 14926
    ...
    Rows read = 14926
    ....

    Total execution time (sec.ms) = 135.854989
    Total user cpu time (sec.ms) = 0.500000
    Total system cpu time (sec.ms) = 0.031250
    Statement text = SELECT name from address where lastname = ?

  2. #2
    Join Date
    May 2003
    Location
    USA
    Posts
    5,737
    Yes, divide all numbers by Number of Executions to find averages.

    Note that on rows read, it does not include index rows, which in some cases can satisfy the entire query in the access path.
    M. A. Feldman
    IBM Certified DBA on DB2 for Linux, UNIX, and Windows
    IBM Certified DBA on DB2 for z/OS and OS/390

  3. #3
    Join Date
    Feb 2007
    Posts
    47
    Thanks.

    Also, for the number of executions, is that the number since the last snapshot or?

  4. #4
    Join Date
    May 2003
    Location
    USA
    Posts
    5,737
    No, not since last snapshot. If you want to reset the monitors (for the session that issues the reset command and only for that session), then do this:

    db2 reset monitor all
    M. A. Feldman
    IBM Certified DBA on DB2 for Linux, UNIX, and Windows
    IBM Certified DBA on DB2 for z/OS and OS/390

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •