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 IC96999 Status: Geschlossen

DB2 NOT GENERATING TBSCAN ON INNER OF NLJN WHEN OUTER CAN HAVE ONLY 1 ROW

Produkt:
DB2 FOR LUW / DB2FORLUW / A10 - DB2
Problembeschreibung:
After upgrading to DB2 v9.7, a query may have poorer performance 
when an Index Scan (IXSCAN), Fetch with an Index Scan 
(FETCH/IXSCAN), or Table Queue / Table Scan (TQ/TBSCAN) is used 
instead of a direct TBSCAN on the inner of a Nested Loop Join 
(NLJOIN), when the outer of the Nested Loop Join can generate 
only a single row. 
 
In order to determine if you are encoutering this issue, the 
Query Execution Plan needs to be examined. The QEP can be 
generating using the DB2 Explain facility (db2exfmt), or DB2 
Optim Query Tuner / Graphical Explain. Ideally, the QEP from the 
previous version of DB2 would also be available. Examin the 
explain using the following steps: 
1) Locate any Nested Loop Joins (NLJOIN) 
2) Examine the outer / left leg of the NLJOIN, to determine if 
the cardinality of that portion of the plan can generate only a 
single row. 
  - Plans that use a Group By, GENROW, or a fully qualified 
primary key access are most likely to generate only a single row 
3) Examine the inner of the NLJOIN. If the inner portion of the 
plan uses an IXSCAN, FETCH/IXSCAN, or a TQ, then you may be 
experiencing this problem: 
  - if the IXSCAN, FETCH/IXSCAN or TQ with any of an IXSCAN, 
FETCH/IXSCAN or TBSCAN, result in scanning the entire inner 
table, or almost the entire inner table 
  - A FETCH/IXSCAN  or TQ/FETCH/IXSCAN is used, and the index is 
very poorly clustered (cr, or cf are less then approx 20% - 50%) 
  - If you have access to a plan from the previous version of 
DB2, and you find a TBSCAN on the inner of this NLJOIN, and the 
outer used a TQ to send the single row to the TBSCAN. 
 
If the above conditions are met, then it is likely you are 
experiencing the issue addressed by this APAR fix. This APAR fix 
will allow the Table Scan (TBSCAN) to be generated on the inner 
of the Nested Loop Join (NLJOIN) when the outer only produces a 
single row.
Problem-Zusammenfassung:
**************************************************************** 
* USERS AFFECTED:                                              * 
* DB2 LUW DPF users with 1-row tables (See APAR description)   * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* See Error Description                                        * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Upgrade to DB2 Linux, Unix, Windows V10.1 fp4 or higher.     * 
****************************************************************
Local-Fix:
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
Upgrade to DB2 Linux, Unix, Windows V10.1 fp4 or higher, for a 
return to the pre-v9.7 behavior of having the NLJoin, outer 
1-row table Broadcast TQed to a TBSCAN of the large inner table.
Workaround
keiner bekannt / siehe Local-Fix
Weitere Daten
Datum - Problem gemeldet    :
Datum - Problem geschlossen :
Datum - der letzten Änderung:
18.10.2013
09.06.2014
09.06.2014
Problem behoben ab folgender Versionen (IBM BugInfos)
Problem behoben lt. FixList in der Version
10.1.0.4 FixList