IBM Support

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

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

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

[{"Line of Business":{"code":"LOB10","label":"Data and AI"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSEPGG","label":"Db2 for Linux, UNIX and Windows"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"11.1"}]

Document Information

Modified date:
02 April 2021