IBM Support

IT25229: DB2 MAY ABEND WHILE COMPILING A QUERY CONTAINING REDUNDANT PREDICATE

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Db2 may abend while compiling a query containing redundant
    predicates.
    
    An example stack trace is seen below.
    
    ...
    sqlo_trce
    sqloEDUCodeTrapHandler
    _restore_rt
    sqlnr_qun_local_ppd
    sqlnr_local_magic_detail
    sqlnr_localmagic_action
    sqlnr_comp
    sqlnr_seq
    sqlnr_rcc
    sqlnr_magic_detail_action
    sqlnr_comp
    sqlnr_seq
    sqlnr_rcc
    sqlnr_endqtb_action
    sqlnr_comp
    sqlnr_seq
    sqlnr_rcc
    sqlnr_start_action
    sqlnr_comp
    sqlnr_seq
    sqlnr_rcc
    sqlnr_exe
    sqlnn_cmpl
    ...
    
    Here is an example stack trace from Windows:
    
    ...
    sqlnr_cse_trans_pid
    sqlnr_magic_detail_action
    sqlnr_max_card_action
    sqlnrGlobInfo::initialize
    sqlnr_seq
    sqlnr_max_card_action
    sqlnrGlobInfo::initialize
    sqlnr_seq
    sqlnr_startqtb_cond
    sqlnrGlobInfo::initialize
    sqlnr_seq
    sqlnr_select_unique
    sqlnrGlobInfo::initialize
    sqlnr_seq
    sqlnr_exe
    sqlnn_cmpl
    ...
    

Local fix

  • Remove any redundant predicates from the query.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * DB2 for LUW users                                            *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to at least Db2 11.1 FP4                             *
    ****************************************************************
    

Problem conclusion

  • Problem was first fixed in Db2 11.1 FP4
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT25229

  • 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

    2018-06-01

  • Closed date

    2018-12-26

  • Last modified date

    2018-12-26

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

    IT25185

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

       UP

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSEPGG","label":"DB2 for Linux- UNIX and Windows"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"10.1","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
04 May 2022