IBM Support

IT29688: POSSIBLE FAILURE IN FUNCTION SQLNR_BLD_UPD_COMPENSATION() FOR CORRELATED UPDATE STATEMENTS

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

  • If a Update statement references correlated and non-correlated
    scalar sub-queries in the SET clause, it might trap with the
    following function stack trace.
    
    Example statement:
    
    create table t1(c1 int, c2 int);
    create table t2(c1 int, c2 int);
    update t1 set c1 = (select t2.c1 from t2 where t2.c2 = t1.c2),
    c2 = (select c1 from t2);
    
    Stack trace:
    
    sqlnr_bld_upd_compensation
    sqlnr_qrwprep_phase2
    sqlnr_prep2_action
    sqlnr_seq
    sqlnr_rcc
    sqlnr_exe
    sqlnn_cmpl
    

Local fix

  • Apply the following registry setting using the optimization
    guideline:
    
    /* <OPTGUIDELINES>
       <REGISTRY>
            <OPTION NAME='DB2COMPOPT' VALUE='NO_UPDATE_COMP'/>
       </REGISTRY>
    </OPTGUIDELINES> */
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * All Db2 user                                                 *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to Db2 11.1.4.5 or later.                            *
    ****************************************************************
    

Problem conclusion

  • First fixed in Db2 11.1.4.5
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT29688

  • 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

    2019-07-11

  • Closed date

    2021-03-31

  • Last modified date

    2021-03-31

  • 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":"11.1"}]

Document Information

Modified date:
01 April 2021