Latest versionsfixlist
11.1.0.7 FixList
10.5.0.9 FixList
10.1.0.6 FixList
9.8.0.5 FixList
9.7.0.11 FixList
9.5.0.10 FixList
9.1.0.12 FixList
Have problems? - contact us.
Register for free anmeldung-x26
Contact form kontakt-x26

DB2 - Problem description

Problem IC76910 Status: Closed

QUERY_PREP_COST.AVERAGE_EXECUTION_TIME_MS IS NOT ACCURATE

product:
DB2 FOR LUW / DB2FORLUW / 970 - DB2
Problem description:
The expression for QUERY_PREP_COST.AVERAGE_EXECUTION_TIME_MS is 
wrong.  It is derived from these columns: 
 
  BIGINT SYSIBMADM.SNAPDYN_SQL.TOTAL_EXEC_TIME  (seconds) 
  BIGINT SYSIBMADM.SNAPDYN_SQL.TOTAL_EXEC_TIME_MS (microseconds) 
  BIGINT SYSIBMADM.SNAPDYN_SQL.NUM_EXECUTIONS 
 
 
AVERAGE_EXECUTION_TIME_MS should be the fractional part of the 
average execution time and should be in 
microseconds.
Problem Summary:
**************************************************************** 
* USERS AFFECTED:                                              * 
* Any user of QUERY_PREP_COST admin view                       * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* See above.                                                   * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Upgrade to DB2 9.7 FP5 or later                              * 
****************************************************************
Local Fix:
Calculate the fractional part of average execution time from the 
TOTAL_EXEC_TIME, TOTAL_EXEC_TIME_MS and NUM_EXECUTIONS columns 
of the SNAPDYN_SQL admin view.
available fix packs:
DB2 Version 9.7 Fix Pack 5 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 6 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 7 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 8 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 9 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 9a for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 10 for Linux, UNIX, and Windows

Solution
The fix is to calculate the fractional part of the average 
execution time and express it in microseconds. 
The fix is included in DB2 v9.7 FP5.
Workaround
not known / see Local fix
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
10.06.2011
16.12.2011
16.12.2011
Problem solved at the following versions (IBM BugInfos)
9.7.FP5
Problem solved according to the fixlist(s) of the following version(s)
9.7.0.5 FixList
This site uses cookies to make it easier for us to provide you with our services. By using our site you agree to the use of cookies.