IBM Support

IT22880: DB2 ENGINE MIGHT CRASH WHEN QUERIES HAVE OUTER JOINS, NOT EXISTSOR NOT IN PREDICATES

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • DB2 engine might crash when queries have outer joins, NOT EXISTS
    or NOT IN predicates
    
    Users might encounter DB2 engine crash when running queries:
    1. contain outer joins, NOT EXISTS or NOT IN predicates
    2. the left side of a left outer join, the right side of the a
    right outer join, the left side of NOT IN predicates or the
    predicates in the NOT EXISTS sub-select contain sub-queries
    3. the predicates in these sub-queries reference tables that is
    not local to the sub-queries
    
    An example of such a query is as following:
    SELECT *
    FROM   (SELECT b1
            FROM   a,
                   b
            WHERE  b1 = (SELECT Sum(c1) AS sum_c1  // 2. the left OJ
    side has predicate containing sub-query
                         FROM   c
                         WHERE  a.a1 = c.c1        // 3. the
    sub-query reference Table a is not local to the sub-query
                         GROUP  BY c.c1)) u
           LEFT JOIN (SELECT d1                    // 1. query has
    outer join
                      FROM   d
                      WHERE  d.d1 <> 1
                      ORDER  BY d1) v
                  ON u.b1 = v.d1
    
    Example of the crash stack:
    
    <StackTrace>
    <sqlno_analyze_relop>
    <sqlno_analyze_pred_expr>
     <sqlno_assign_optprd>
    <sqlno_assign_prd>
    <sqlno_call_sf>
     <sqlno_each_opr>
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ALL                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to v111m3fp3                                         *
    ****************************************************************
    

Problem conclusion

  • Upgrade to v111m3fp3
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT22880

  • 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-23

  • 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:

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