IBM Support

IT36441: DB2 QUERY PERFORMS BAD WHEN USING SUBQUERY PREDICATE WITH OR

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Db2 query may perform bad when the following conditions are met:
    
        The query has OR predicate
        There is one or more local predicates as OR subterm
        There is one or more subquery (e.g. IN/EXISTS) predicates as
    OR subterm
        There are multiple tables and/or joins involved on the from
    clause on which the OR predicate applies
        Subquery predicates do not access all tables and/or joins
    involved
    

Local fix

  • <query>
    
    /*<OPTGUIDELINES> <REGISTRY> <OPTION NAME='DB2COMPOPT'
    VALUE='NO_EORE_LP'/></REGISTRY> </OPTGUIDELINES> */
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Db2 Version 11.5                                             *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Description.                                             *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to 11.5.6 or later                                   *
    ****************************************************************
    

Problem conclusion

  • Upgrade to 11.5.6 or later
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT36441

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    B50

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2021-04-01

  • Closed date

    2021-06-08

  • Last modified date

    2021-06-21

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

    IT33038

  • 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

  • RB50 PSN

       UP

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSEPGG","label":"DB2 for Linux- UNIX and Windows"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"11.5","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
17 December 2021