IBM Support

IT22646: -901 OR TRAP WHEN OUTER JOIN ON GROUP BY AND UNION

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Description: Db2 query may abend or generate 901 when the
    folloiwng conditions are met:
    
    1) It has Left/Right Outer Join
    2) There is a GROUP BY on the null producing side of Outer Join
    3) There is a UNION ALL on the other side of Outer Join
    4) The size of null producing side is larger than row preserving
    side
    

Local fix

  • Set registry setting DB2COMPOPT with NO_DEEPKEYPU or NO_GBPU as:
    db2set -im DB2COMPOPT=NO_DEEPKEYPU
    or
    db2set -im DB2COMPOPT=NO_GBPU
    or use one of them with optguidelines:
    <query>
    /* <OPTGUIDELINES>
    <REGISTRY>
    <OPTION NAME='DB2COMPOPT' VALUE='NO_DEEPKEYPU'/>
    </REGISTRY>
    </OPTGUIDELINES>
    */
    or
    <query>
    /* <OPTGUIDELINES>
    <REGISTRY>
    <OPTION NAME='DB2COMPOPT' VALUE='NO_GBPU'/>
    </REGISTRY>
    </OPTGUIDELINES>
    */
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * All                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 Version 11.1 Modification 3 FixPack 3 or      *
    * later                                                        *
    ****************************************************************
    

Problem conclusion

  • Fixed in DB2 Version 11.1 Modification 3 FixPack 3
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT22646

  • 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

    2017-10-03

  • Closed date

    2018-03-15

  • Last modified date

    2018-03-15

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

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

    IT22665

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

  • RB10 PSN

       UP

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

Document Information

Modified date:
15 March 2018