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

QUERY WITH A UNION AND TWO CORRELATED BRANCHES MIGHT RETURN INCORRECT
RESULTS IN PARTITIONED DATABASE ENVIRONMENTS

Produkt:
DB2 FOR LUW / DB2FORLUW / A10 - DB2
Problembeschreibung:
If you are using the partitioned database environment and 
your query satisfies the following conditions, then the results 
returned might be incorrect 
1. there is a table, T1, that is hash distributed across two or 
more database partitions; 
2. T1 is correlated to multiple branches below a UNION; 
3. each branch of the UNION is correlated to at least one 
different column in T1; 
4. one of the branches is correlated to the hash distribution 
key of T1; 
5. the columns in the select list of each UNION branch includes 
the correlation column. 
 
The following is an example of a query that satisfies the above 
conditions, where T1 is hash distributed on column X: 
 
SELECT * 
  FROM T1, 
       TABLE(SELECT X FROM T2 WHERE X = T1.X 
             UNION ALL 
             SELECT Y FROM T3 WHERE Y = T1.Y);
Problem-Zusammenfassung:
**************************************************************** 
* USERS AFFECTED:                                              * 
* All users of database partitioning feature.                  * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* See Error Description                                        * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Upgrade to DB2 version 10.1.0.2.                             * 
****************************************************************
Local-Fix:
You can avoid the problem by rewriting the query to remove the 
correlation below the UNION.
verfügbare FixPacks:
DB2 Version 10.1 Fix Pack 2 for Linux, UNIX, and Windows
DB2 Version 10.1 Fix Pack 3 for Linux, UNIX, and Windows
DB2 Version 10.1 Fix Pack 4 for Linux, UNIX, and Windows
DB2 Version 10.1 Fix Pack 3a for Linux, UNIX, and Windows
DB2 Version 10.1 Fix Pack 6 for Linux, UNIX, and Windows

Lösung
The problem is first fixed in DB2 version 10.1.0.2.
Workaround
keiner bekannt / siehe Local-Fix
Weitere Daten
Datum - Problem gemeldet    :
Datum - Problem geschlossen :
Datum - der letzten Änderung:
19.07.2012
07.12.2012
07.12.2012
Problem behoben ab folgender Versionen (IBM BugInfos)
Problem behoben lt. FixList in der Version
10.1.0.2 FixList
10.5.0.2 FixList