IBM Support

IT36903: -901 ERROR WITH REASON "NO PLAN FOUND"

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • -No plan found -901 error may happen while processing a query
    with risky plan. The relevant db2diag.log info can be found
    below.
    
    
    119663 DATA #7 : SQLCA, PD_DB2_TYPE_SQLCA, 136 bytes
    119664 sqlcaid : SQLCA    sqlcabc: 136  sqlcode: -901  sqlerrml:
    14
    119665 sqlerrmc: No plan found.
    119666 sqlerrp : SQLNO096
    119667 sqlerrd : (1) 0x801A006D     (2) 0x00000000     (3)
    0x00000000
    119668           (4) 0x00000000     (5) 0xFFFFFF60     (6)
    0x00000000
    119669 sqlwarn : (1)     (2)     (3)     (4)       (5)      (6)
    119670           (7)     (8)     (9)     (10)       (11)
    119671 sqlstate:
    119672 DATA #8 : Hex integer, 4 bytes
    119673 0x00000040
    119674 DATA #9 : String with size, 1000 bytes
    119675 SELECT SUM(1) NUMREGS,
    TO_CHAR(BOC_FACT_PPTOES.FECDATA,'DD/MM/YYYY'),
    MAX(BOC_AREA_NEG.DSC_ANN1), MAX(BOC_AREA_NEG.D      SC_ANN2),
    MAX(BOC_AREA_NEG.DSC_ANN3), MAX(BOC_AREA_NEG.DSC_ANN31),
    MAX(BOC_AREA_NEG.DSC_ANN4), BOC_AREA_NEG.COD_ANN3       ,
    BOC_AREA_NEG.COD_ANN31, BOC_AREA_NEG.COD_ANN4,
    BOC_ENTIDAD.DSC_45 , BOC_CENTRO.COD_CENT, BOC_CENTRO.DESC_80,
    BOC_      CONC_COSTES.DSC_CCN2,
    DECODE(BOC_CONC_COSTES.COD_CCN3,'U003GP',SUBSTR(BOC_CONC_COSTES.
    COD_CCN3,1,4), 'D005GP',SUBSTR
    (BOC_CONC_COSTES.COD_CCN3,1,4),BOC_CONC_COSTES.COD_CCN5),
    DECODE(BOC_CONC_COSTES.COD_CCN3,'U003GP',BOC_CONC_COSTES.D
    SC_CCN3,'D005GP',BOC_CONC_COSTES.DSC_CCN3,BOC_CONC_COSTES.DSC_CC
    N5), BOC_FUNCION.DSC_FN1, BOC_FUNCION.DSC_FN2, BOC_F
    UNCION.COD_FN3, BOC_FUNCION.DSC_FN3, BOC_AREA_GEO_SS.COD_AGN41,
    BOC_AREA_GEO_SS.DSC_AGN41, BOC_TIP_DATA.COD_DATA, MA
    X(BOC_TIP_DATA.DSC_60), BOC_AREA_GEO_SS.COD_AGN5,
    BOC_AREA_GEO_SS.DSC_AGN5, SUM(BOC_FACT_PPTOES.IAE),
    SUM(BOC_FACT_P      PTOES.IAU) , SUM(BOC_FACT_PPTOES.IAL) FROM
    BOC_FACT_PPTOES, BOC_JERARQU
    119676 DATA #10: String, 435 bytes
    119677 Compiler error stack for rc = -2144272209:
    119678 sqlnn_cmpl[380]
    119679 sqlno_exe[900]
    119680 sqlno_planning_phase[200]
    119681 sqlno_planning_scan[400]
    119682 sqlno_scan_utils_qgm[200]
    119683 sqlno_each_qur[400]
    119684 sqlno_top_qtb[100]
    119685 sqlno_each_opr[200]
    119686 sqlno_walk_qun[100]
    119687 sqlno_each_opr[200]
    119688 sqlno_walk_qun[100]
    119689 sqlno_each_opr[200]
    119690 sqlno_walk_qun[100]
    119691 sqlno_each_opr[1200]
    119692 sqlno_plan_end_opr[100]
    119693 sqlno_gen_partitions_for_Q[400]
    119694 sqlno_crule_join[100]
    119695 sqlno_itr_plan::next[160]
    

Local fix

  • db2set DB2_REDUCED_OPTIMIZATION=YES
     or
    db2set DB2_EXTENDED_OPTIMIZATION=ALLOW_RISKY_PLAN
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * all                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to 11.5.7 or higher                                  *
    ****************************************************************
    

Problem conclusion

  • Upgrade to 11.5.7 or higher
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT36903

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    B50

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2021-05-13

  • Closed date

    2021-12-01

  • Last modified date

    2021-12-01

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

    IT36902

  • 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

  • RB50 PSN

       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":"11.5","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
17 December 2021