IBM Support

IC82961: DB2 may abend on a left outer join when the right table is UNION ALL view

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • DB2 may abend when running or compiling a SQL statement contains
    
    a left outer join and the right table of the outer join is a
    UNION ALL view.
    
    Additional conditions are the left table is a table with a
    unique index (or a primary key)
    and the join predicate is on on the unique column of the left
    table.
    
    The call stack in the db2diag.log when this problem occurs may
    look like:
    
    sqlnq_oprhxpparent::op
    sqlnr_addids
    sqlnr_joinppd_magic_detail
    sqlnr_joinppd_action
    sqlnr_comp
    sqlnr_seq
    sqlnr_rcc
    sqlnr_magic_detail_action
    sqlnr_comp
    sqlnr_seq
    sqlnr_rcc
    sqlnr_endqtb_action
    sqlnr_comp
    sqlnr_start_action
    sqlnn_cmpl
    sqlra_compile_var
    sqlra_find_var
    sqlra_get_var
    sqlricall
    sqlriSectInvoke
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * All Platforms                                                *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * DB2 may abend when running or compiling a SQL statement      *
    * contains                                                     *
    *                                                              *
    * a left outer join and the right table of the outer join is a *
    * UNION ALL view.                                              *
    *                                                              *
    * Additional conditions are the left table is a table with a   *
    * unique index (or a primary key)                              *
    * and the join predicate is on on the unique column of the     *
    * left                                                         *
    * table.                                                       *
    *                                                              *
    * The call stack in the db2diag.log when this problem occurs   *
    * may                                                          *
    * look like:                                                   *
    *                                                              *
    * sqlnq_oprhxpparent::op                                       *
    * sqlnr_addids                                                 *
    * sqlnr_joinppd_magic_detail                                   *
    * sqlnr_joinppd_action                                         *
    * sqlnr_comp                                                   *
    * sqlnr_seq                                                    *
    * sqlnr_rcc                                                    *
    * sqlnr_magic_detail_action                                    *
    * sqlnr_comp                                                   *
    * sqlnr_seq                                                    *
    * sqlnr_rcc                                                    *
    * sqlnr_endqtb_action                                          *
    * sqlnr_comp                                                   *
    * sqlnr_start_action                                           *
    * sqlnn_cmpl                                                   *
    * sqlra_compile_var                                            *
    * sqlra_find_var                                               *
    * sqlra_get_var                                                *
    * sqlricall                                                    *
    * sqlriSectInvoke                                              *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to db2_v91fp12                                       *
    ****************************************************************
    

Problem conclusion

  • The fix will be included in db2_v91fp12
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC82961

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    910

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-04-26

  • Closed date

    2012-11-08

  • Last modified date

    2012-11-08

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

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

    IC84117 IC84120 IC87845

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

  • R910 PSN

       UP

  • R910 PSY

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

Document Information

Modified date:
08 November 2012