DB2 - Problem description
Problem IC81616 | Status: Closed |
IN VERSION 9.5 FIX PACK 7 AND 8, THE OPTIMIZER FAVOURS MERGE JOIN PLAN WHEN INEQUALITY PREDICATE APPLIED TO JOIN COLUMN | |
product: | |
DB2 FOR LUW / DB2FORLUW / 950 - DB2 | |
Problem description: | |
In DB2 for Linux, Unix and Windows, Fixpack 7 or Fixpack 8, the optimizer might choose a Merge Join (MSJOIN) in cases where the column(s) in a join predicate also have inequality predicates applied, those predicates limit the range of the column's values, and one or both of the columns are the lead column in an index. For example: - table t1, with an integer column, c1, with a range of 1 - 100. - table t2, with an integer column, c2, with a range of 1 - 100. - inequality predicates: t1.c1 >= 10 and t1.c1 <= 90 - join predicate between t1 and t2: t1.c1 = t2.c1 If the above conditions exist, and the optimizer picked a Hash Join or Nest Loop Join plan in a fixpack level prior to DB2 for Linux, Unix and Windows, Version 9.5 Fixpack 7, then you are likely encountering this APAR. | |
Problem Summary: | |
**************************************************************** * USERS AFFECTED: * * All DB2 LUW users * **************************************************************** * PROBLEM DESCRIPTION: * * In DB2 for Linux, Unix and Windows, Fixpack 7 or Fixpack 8, * * the optimizer may choose a Merge Join (MSJOIN) in cases * * where the column(s) in a join predicate also have inequality * * predicates applied, those predicates limit the range of the * * column's values, and one or both of the columns are the lead * * column in an index. For example: * * - table t1, with an integer column, c1, with a range of 1 - * * 100. * * - table t2, with an integer column, c2, with a range of 1 - * * 100. * * - local range predicate: t1.c1 between 10 and 90 * * - join predicate between t1 and t2: t1.c1 = t2.c1 * * * * If the above conditions exist, and the optimizer picked a * * Hash Join or Nest Loop Join plan in a fixpack level prior to * * DB2 for Linux, Unix and Windows, Version 9.5 Fixpack 7, then * * you are likely encountering this APAR. * * Note: problem does not occur in DB2 for Linux, Unix and * * Windows Version 9.7 or later versions or fixpacks. * **************************************************************** * RECOMMENDATION: * * Upgrade the DB2 for Linux, Unix and Windows server to * * Version 9.5 fixpack 10 or later * **************************************************************** | |
Local Fix: | |
Solution | |
Upgrade the DB2 for Linux, Unix and Windows server to Version 9.5 fixpack 10 or later | |
Workaround | |
not known / see Local fix | |
Timestamps | |
Date - problem reported : Date - problem closed : Date - last modified : | 23.02.2012 21.08.2012 21.08.2012 |
Problem solved at the following versions (IBM BugInfos) | |
9.5.FP10 | |
Problem solved according to the fixlist(s) of the following version(s) | |
9.5.0.10 |