IBM Support

IC74076: INCORRECT FILTER FACTOR CALCULATION FOR SYSIBM.DAYNAME AND SYSIBM.MONTHNAME FUNCTIONS

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • The optimizer incorrectly estimates the filter factor of
    predicates that reference the SYSIBM.DAYNAME or SYSIBM.MONTHNAME
    function.  This might lead to the optimizer choosing a
    non-optimal query execution plan.
    

Local fix

  • Use SYSFUN.DAYNAME and SYSFUN.MONTHNAME in place of
    SYSIBM.DAYNAME and SYSIBM.MONTHNAME respectively.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ALL                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * The optimizer incorrectly estimates the filter factor of     *
    *                                                              *
    * predicates that reference the SYSIBM.DAYNAME or              *
    * SYSIBM.MONTHNAME                                             *
    * function.  This might lead to the optimizer choosing a       *
    *                                                              *
    * non-optimal query execution plan.                            *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 Version 9.7 Fix Pack 4.                       *
    ****************************************************************
    

Problem conclusion

  • This is first fixed in DB2 Version 9.7 Fix Pack 4.
    

Temporary fix

  • See Local Fix.
    

Comments

APAR Information

  • APAR number

    IC74076

  • 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

    2011-01-24

  • Closed date

    2011-04-28

  • Last modified date

    2011-04-28

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

  • 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

  • R970 PSN

       UP



Document information

More support for: DB2 for Linux, UNIX and Windows

Software version: 9.7

Reference #: IC74076

Modified date: 28 April 2011