IBM Support

IT33038: 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:                                              *
    * ALL                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Apply 11.1 Fixpack XXX to the server                         *
    ****************************************************************
    

Problem conclusion

  • First fix in 11.1 Fixpack XXX
    

Temporary fix

  • LOCAL FIX
    

Comments

APAR Information

  • APAR number

    IT33038

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    B10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2020-06-01

  • Closed date

    2021-02-03

  • Last modified date

    2021-02-03

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

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

    IT36441

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

  • RB10 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.1","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
04 May 2022