IBM Support

IC94337: QUERY ON VARCHAR2 ENABLED DATABASE NO LONGER USES INDEX SCAN AFTER UPGRADE TO FIX PACKS 5 TO 8

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • A query that may have been perfoming well prior to DB2 version
    9.7 fix pack 5 may stop choosing an index after upgrading to DB2
    version 9.7 fix packs 5 to 8.  This can happen on a VARCHAR2
    enabled database when the query includes basic predicates
    involving VARCHAR columns.
    

Local fix

  • Use optimization guidelines to use the appropriate index, for
    example:
    
    SELECT... /* <OPTGUIDELINES>
               <IXSCAN TABLE="A" INDEX="MYINDEX"/>
         </OPTGUIDELINES> */
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Users on version 9.7 fix packs 5 to 8                        *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 version 9.7 fix pack 9                        *
    ****************************************************************
    

Problem conclusion

  • First fixed in DB2 version 9.7 fix pack 9
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC94337

  • 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

    2013-07-23

  • Closed date

    2014-01-02

  • Last modified date

    2014-01-02

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

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

    IC96232 IC96236

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 #: IC94337

Modified date: 02 January 2014