IBM Support

IC79694: -901 WHILE COMPILING A STATEMENT

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Under rare scenarios, DB2 can trap when compiling a SQL
    statement if the following conditions are true:
    1. The SQL statement has at least 2 joins.
    
    2. The SQL statement has an equality join predicate. Assume one
    of the columns that participate in the join predicate is T1.C1.
    and Table T1 has a generated column that is generated based on
    C1.
    
    3. The generated column is not referenced in the SQL statement
    
    Possible stack is:
    
    0x0900000006BB1068
    sqlnx_exp_get_qual_colname__FP3locP9sqlnq_qncPcPiT4 + 0xC
    0x0900000006B8F670
    sqlnx_exp_SORT_analyze__FP23sqlnx_exp_lolepop_parms + 0x7D4
    0x0900000006BAB520
    sqlnx_exp_analyze_plan__FP23sqlnx_exp_lolepop_parms + 0x648
    0x0900000006BABF6C
    sqlnx_exp_analyze_plan__FP23sqlnx_exp_lolepop_parms + 0x1094
    0x0900000006BABF6C
    sqlnx_exp_analyze_plan__FP23sqlnx_exp_lolepop_parms + 0x1094
    0x0900000006BABF6C
    sqlnx_exp_analyze_plan__FP23sqlnx_exp_lolepop_parms + 0x1094
    0x0900000006BABF6C
    sqlnx_exp_analyze_plan__FP23sqlnx_exp_lolepop_parms + 0x1094
    0x0900000006BABF6C
    sqlnx_exp_analyze_plan__FP23sqlnx_exp_lolepop_parms + 0x1094
    ...
    0x0900000006BABF6C
    sqlnx_exp_analyze_plan__FP23sqlnx_exp_lolepop_parms + 0x1094
    0x0900000006BAF7A4
    sqlnx_exp_descend_predicate__FP23sqlnx_exp_lolepop_parmsP9sqlno_
    prdP19sqlno_plan_operatorP20sqlno_qun2plan_arrayPP19sqlno_plan_o
    perator + 0x310
    0x0900000006BAECEC
    sqlnx_exp_process_predicates__FP23sqlnx_exp_lolepop_parmsiP19sql
    no_plan_operator9sqlno_setPcP20sqlno_qun2plan_arrayPP19sqlno_pla
    n_operatorN22 + 0x80
    0x0900000006B969FC
    sqlnx_exp_FILTER_post__FP23sqlnx_exp_lolepop_parms + 0x1C8
    0x0900000006BAC1C8
    sqlnx_exp_analyze_plan__FP23sqlnx_exp_lolepop_parms + 0x12F0
    0x0900000006BABF6C
    sqlnx_exp_analyze_plan__FP23sqlnx_exp_lolepop_parms + 0x1094
    0x0900000006BABF6C
    sqlnx_exp_analyze_plan__FP23sqlnx_exp_lolepop_parms + 0x1094
    0x0900000006BABF6C
    sqlnx_exp_analyze_plan__FP23sqlnx_exp_lolepop_parms + 0x1094
    0x09000000083775DC sqlnx_explain_plan__FP9sqlnq_qur + 0x864
    0x0900000008376CBC sqlnx_explain_plan__FP9sqlnq_qur@glue764 +
    0x74
    0x090000000518D964
    sqlnn_cmpl__FP8sqeAgentP11sqlrrstrings17sqlnn_compileModeT3P14sq
    lrr_cmpl_enviT7PP9sqlnq_qur + 0x1B1C
    0x0900000008E237FC
    sqlnn_cmpl__FP8sqeAgentP11sqlrrstrings17sqlnn_compileModeT3P14sq
    lrr_cmpl_env + 0x40
    ...
    
    The query fails with -901 and/leads to a trap.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * All                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 Version 9.7 Fix Pack 6.                       *
    ****************************************************************
    

Problem conclusion

  • First fixed in DB2 Version 9.7 Fix Pack 6.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC79694

  • 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

    2011-11-09

  • Closed date

    2012-06-06

  • Last modified date

    2012-06-06

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

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

    IC84177

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 #: IC79694

Modified date: 06 June 2012