IBM Support

IT22453: 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                                                *
    ****************************************************************
    

Problem conclusion

  • Problem was first fixed in DB2 LUW Version 10.5 Fix Pack 10.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT22453

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    A50

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2017-09-19

  • Closed date

    2018-07-12

  • Last modified date

    2018-07-12

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

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

    IT22505

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

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

Document Information

Modified date:
05 November 2021