home clear 64x64
en blue 200x116 de orange 200x116 info letter User
suche 36x36
Neueste VersionenFixList
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
Haben Sie Probleme? - Kontaktieren Sie uns.
Kostenlos registrieren anmeldung-x26
Kontaktformular kontakt-x26

DB2 - Problembeschreibung

Problem IC97984 Status: Geschlossen

OPTIMIZER MIGHT FAVOUR HSJOIN OVER AN ORDERED NLJOIN

Produkt:
DB2 FOR LUW / DB2FORLUW / A10 - DB2
Problembeschreibung:
The optimizer might favour a hash join (HSJOIN) over a nested 
loop join (NLJOIN) alternative under the following conditions: 
- the join is on two or more columns 
- both tables in the join have an index with leading, non-bound 
key columns that participate in the join 
- one or more leading columns match in order of the join 
columns, but not all 
 
For example, consider the following query 
 
SELECT * 
FROM T1,T2 
WHERE T1.A=T2.A and T1.B=T2.B and T1.C=T2.C and T1.X=1; 
 
where index IX1 is defined on T1(X,A,C,B) and index IX2 is 
defined on T2(A,B,C).  The column T1.X is bound to the constant 
1 as a result of the predicate "T1.X=1" so for the NLJOIN with 
IX1 access on the outer and IX2 access on the inner, the leading 
non-bound columns for both indexes are referenced in the join 
predicate T1.A=T2.A, but the subsequent columns are not ordered 
in join column order.  Under these conditions, the optimizer 
might over estimate the cost of the NLJOIN alternative, 
favouring a possibly worse-performing HSJOIN alternative
Problem-Zusammenfassung:
**************************************************************** 
* USERS AFFECTED:                                              * 
* DB2 V10.1 FP3 and below                                      * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* See Error Description                                        * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Upgrade to V10.1 FP4                                         * 
****************************************************************
Local-Fix:
Create an index on either table, ensuring that the key columns 
are in join order.  Referring to the example in the Error 
Description, this could be achieved by creating an index on 
T2(A,C,B).
verfügbare FixPacks:
DB2 Version 10.1 Fix Pack 4 for Linux, UNIX, and Windows
DB2 Version 10.1 Fix Pack 6 for Linux, UNIX, and Windows

Lösung
First fixed in V10.1 FP4
Workaround
keiner bekannt / siehe Local-Fix
Weitere Daten
Datum - Problem gemeldet    :
Datum - Problem geschlossen :
Datum - der letzten Änderung:
27.11.2013
08.05.2014
08.05.2014
Problem behoben ab folgender Versionen (IBM BugInfos)
Problem behoben lt. FixList in der Version
10.1.0.4 FixList