IBM Support

IC89919: A MERGE STATEMENT AGAINST AN ALIAS MAY CAUSE DB2 SERVER TO TERMINATE ABNORMALLY

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • A MERGE statement may cause DB2 server to terminate abnormally.
    
    The trap stack looks like:
    
    Stack #1             Signal #11        Timestamp
    2013-01-10-11.22.25.055054
    0        ossDumpStackTraceEx
    1        OSSTrapFile::dumpEx
    2        sqlo_trce
    3        sqloEDUCodeTrapHandler
    4        __pthread_mutex_cond_lock
    5        sqlnq_pid::sqlnq_pid
    6        sqlnq_expand_merge
    7        sqlns_handle_merge_stmt
    8        sqlns_qgs
    9        sqlnn_cmpl
    10       sqlnn_cmpl
    ...
    

Local fix

  • Modify the target of the MERGE statement to be the base table
    instead of an alias.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ALL                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 version 9.7 Fix Pack 9                        *
    ****************************************************************
    

Problem conclusion

  • First fixed in Version 9.7 Fix Pack 9
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC89919

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    970

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-01-30

  • Closed date

    2014-03-24

  • Last modified date

    2014-03-24

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

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

    IC89937

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

  • R970 PSN

       UP



Document information

More support for: DB2 for Linux, UNIX and Windows

Software version: 9.7

Reference #: IC89919

Modified date: 24 March 2014