IBM Support

IT33071: DB2 MIGHT RETURN -901 WHEN RUNNING WITH OUTER JOINS AND INNER JOINS.

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • DB2 might abend when running a query with the following
    characteristics:
    
    1. the query has at least one outer join(OJ)
    2. on the row preserving(RP) side of this OJ, there are multiple
    table inner join(IJ)
    3. a local predicates applied on at least 2 inner joined tables
    on the RP side of the OJ reference the same constants; one of
    these local predicates references a column output to the OJ and
    this column is also used in an OJ predicate
    
    With the criteria above met, an invalid correlation could be
    formed during Outer Join to Semi Join transformation. Depending
    on when and how this bad correlation is detected, a message of
    -901 and a stack can differ.
    
    The workaround is to turn off OJSJ transformation.
    

Local fix

  • db2set -im DB2COMPOPT=NOOJSJ
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ALL                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to db2_v111m4fp6 or later                            *
    ****************************************************************
    

Problem conclusion

  • Upgrade to db2_v111m4fp6 or later
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT33071

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    A10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2020-06-03

  • Closed date

    2021-01-14

  • Last modified date

    2021-01-14

  • 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

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

Document Information

Modified date:
15 January 2021