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

PREDICATES MIGHT NOT BE PUSHED DOWN FOR QUERY containing UNION ALL and
MULTIPLE nested SUBQUERIES

Produkt:
DB2 FOR LUW / DB2FORLUW / 970 - DB2
Problembeschreibung:
Under rare scenarios, join predicates might not be pushed 
through a Union All if the following conditions are satisfied. 
 
1. The query contains 1 or more Union All. 
2. The Union All has a join to another table 
3. There are multiple subqueries present where 1 or more 
subqueries are complex. Subqueries are considered complex if 
they contain another subquery or have constructs like group by, 
outer join, Union All, etc. 
4. All the subqueries are either non-correlated or correlated to 
the same Union All. 
 
Ex. V1 is a view containing a basic UNION ALL : 
 
create view v1 as ( select * from tab1 where col1 = 0 union all 
select * from tab1 ) 
 
-- Query: 
select distinct v1.col3 
from v1, tab2 t2 
where v1.col1 = t2.col1 and 
   ( 
   exists ( select 1 from tab2 tt2 where tt2.col2 = v1.col2) 
   ) 
   or 
   ( 
   -- condition 3. Complex subquery 
   exists ( select 1 from tab2 tt2 where tt2.col2 = v1.col1 
              and not exists ( select 1 from tab2 tt3  where 
              tt3.col3 = v1.col2)) 
   )
Problem-Zusammenfassung:
**************************************************************** 
* USERS AFFECTED:                                              * 
* all                                                          * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* See Error Description                                        * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* upgrade to version 9.7 fixpack 8                             * 
****************************************************************
Local-Fix:
verfügbare FixPacks:
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

Lösung
first fixed in version 9.7 fixpack 8
Workaround
keiner bekannt / siehe Local-Fix
Weitere Daten
Datum - Problem gemeldet    :
Datum - Problem geschlossen :
Datum - der letzten Änderung:
21.09.2012
01.04.2013
01.04.2013
Problem behoben ab folgender Versionen (IBM BugInfos)
9.7.FP8
Problem behoben lt. FixList in der Version
9.7.0.8 FixList