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

INCORRECT RESULT SET MIGHT BE RETURNED FOR A SQL STATEMENT REQUIRING A
TRUNCATED SORT OPERATION

Produkt:
DB2 FOR LUW / DB2FORLUW / 970 - DB2
Problembeschreibung:
This issue was introduced by the fix for APAR IC93275 and only 
affects version 9.7 Fix Pack 9 and 9a. 
 
The problem can occur for a SQL statement that contains an ORDER 
BY and FETCH FIRST N ROWS clause, where N > 1, and the optimizer 
produces a query execution plan containing a truncated SORT 
operation with an input estimated cardinality of exactly 0. 
This problem is most likely to occur if statistics are collected 
on an empty table and not updated after more than one row is 
inserted into the table. 
 
You can identify the problem by collecting an EXPLAIN of the 
query and identifying there is a SORT operator with an input 
cardinality of 0 such as: 
 
   0 
TBSCAN 
(   2) 
... 
  | 
   0 
SORT 
(   3) 
... 
  | 
   0 
NLJOIN 
(   4) 
... 
 
and the operator details shows it is truncated, with NUMROWS set 
to 1: 
 
    3) SORT  : (Sort) 
 
... 
 
        Arguments: 
        --------- 
... 
        NUMROWS : (Estimated number of rows) 
            1 
... 
        TRUNCSRT: (Truncated sort (for Fetch First n Rows Only)) 
            TRUE
Problem-Zusammenfassung:
**************************************************************** 
* USERS AFFECTED:                                              * 
* only version 9.7 fix pack 9 is impacted                      * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* See Error Description                                        * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* upgrade to version 9.7 fix pack 10                           * 
****************************************************************
Local-Fix:
If your affected statement references a table with a cardinality 
statistic of 0, collect updated statistics on the table.
Lösung
First fixed in version 9.7 fix pack 10
Workaround
keiner bekannt / siehe Local-Fix
Weitere Daten
Datum - Problem gemeldet    :
Datum - Problem geschlossen :
Datum - der letzten Änderung:
08.01.2014
10.11.2014
10.11.2014
Problem behoben ab folgender Versionen (IBM BugInfos)
9.7.FP10
Problem behoben lt. FixList in der Version
9.7.0.10 FixList