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 | |
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 |