IBM Support

IC96350: MQT OR STATISTICAL VIEW MAY BE NOT MATCHED OR IMPROPERLY MATCHED

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • When an MQT or statistical view is present, query compiler
    decides whether the incoming query can be routed to MQT and
    whether uses MQT or statistical view stats to adjust estimated
    cardinality of query plan. If query has an equality predicate
    colX = colY, where colX and colY are integer type but with
    different length, e.g. colX is smallint and columY is bigint,
    and if MQT or statview has predicate colY = colX where the
    operand order is swapped, compiler would either not match MQT or
    statview or not apply cardinality adjustment properly.
    

Local fix

  • Change MQT or statistical view definition to have its predicate
    used the same operand order as the query.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ALL                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Problem Description above.                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 V10.5 FP3.                                    *
    ****************************************************************
    

Problem conclusion

  • First fixed in DB2 version V10.5 FP3.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC96350

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    A50

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-09-26

  • Closed date

    2014-09-16

  • Last modified date

    2014-09-16

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

    IC91497

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

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

  • RA50 PSN

       UP



Document information

More support for: DB2 for Linux, UNIX and Windows

Software version: 10.5

Reference #: IC96350

Modified date: 16 September 2014