IC87196: CREATE INDEX COLLECT STATISTICS CAN GENERATE INCORRECT EXTERNAL INDEX STATISTICS

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • The COLLECT STATISTICS option of the CREATE INDEX statement can
    generate incorrect external index statistics for:
        - AVGLEAFKEYSIZE and AVGNLEAFKEYSIZE,
        - AVGPARTITION_CLUSTERRATIO, for non-partitioned indexes in
    partitioned table
        - DATAPARTITION_CLUSTERFACTOR, when the table is not a
    partitioned table
    which are visible in the SYSCAT.INDEXES catalog view.
    
    AVGLEAFKEYSIZE and AVGNLEAFKEYSIZE are used by the REORGCHK
    utility, and its recommendations might be affected by incorrect
    statistics.
    
    AVGPARTITION_CLUSTERRATIO and DATAPARTITION_CLUSTERFACTOR are
    statistics collected for the query optimizer.  While unexpected
    statistics values might be visible in the external catalogs, the
    optimizer is not affected as it uses statistics stored in
    internal descriptors.
    

Local fix

  • Execute RUNSTATS after the CREATE INDEX.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * All Users on DB2 V97 FP7 and lower                           *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 V97 FP8                                       *
    ****************************************************************
    

Problem conclusion

  • First Fixed in DB2 V97 FP8
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC87196

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    970

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-10-12

  • Closed date

    2013-04-08

  • Last modified date

    2013-04-08

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

    IC89701

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

  • R970 PSY

       UP



Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

DB2 for Linux, UNIX and Windows

Software version:

9.7

Reference #:

IC87196

Modified date:

2013-04-08

Translate my page

Machine Translation

Content navigation