IBM Support

IT22505: DB2 MAY INCORRECTLY RETURN SQL0420N WHILE COMPILING A QUERY CONTAINING UNION ALL OPERATORS

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • DB2 may incorrectly return SQL0420N while compiling a query
    containing one or more UNION ALL operators.
    
    The UNION ALL operator(s) can either be as part of the main
    query or within subqueries.
    

Local fix

  • 1. Rewrite the query to avoid using UNION ALL operators.
    
    Or:
    
    2. Set the current registry variable via db2set:
    
    db2set -im DB2COMPOPT=NO_DEEPKEYPU
    
    Or for specific queries by using the following REGISTRY
    optimizer guideline:
    
    <OPTGUIDELINES>
      <REGISTRY><OPTION NAME='DB2COMPOPT' VALUE='NO_DEEPKEYPU'/>
    </REGISTRY>
    </OPTGUIDELINES>
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ALL                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * See Local Fix or upgrade to DB2 11.1 Mod 3 Fix Pack 3        *
    ****************************************************************
    

Problem conclusion

  • Fixed in DB2 11.1 Mod 3 Fix Pack 3
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT22505

  • 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-09-22

  • Closed date

    2018-03-15

  • Last modified date

    2018-03-15

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

    IT22453

  • 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

  • RB10 PSN

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"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