IBM Support

IT21098: SQL0901N ERROR EXECUTING COMPLEX QUERY IN BLU DPF

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as unreproducible in next release.

Error description

  • You might encounter a SQL0901N error executing a complex query
    in a DPF environment where the query includes multiple query
    blocks involving several non-collocated joins of column
    organized tables.
    
    The following entry will be output to the db2diag.log if you hit
    this issue:
    
    FUNCTION: DB2 UDB, relation data serv, sqlrr_dump_ffdc,
    probe:250
    DATA #1 : SQLCA, PD_DB2_TYPE_SQLCA, 136 bytes
    sqlcaid : SQLCA     sqlcabc: 136   sqlcode: -901   sqlerrml: 34
    sqlerrmc: unexpected error at Table.hpp:1708
    sqlerrp : SQLCT001
    sqlerrd : (1) 0x00000000      (2) 0x00000000      (3) 0x00000000
               (4) 0x00000000      (5) 0xFFFFF954      (6)
    0x00000058
    sqlwarn : (1)      (2)      (3)      (4)        (5)       (6)
               (7)      (8)      (9)      (10)        (11)
    sqlstate:
    
    with the following stack trace:
    
      0x00007FFFF0A86422 sqloDumpEDU + 0x0052
      0x00007FFFEBCBEF37 _Z15sqldDumpContextP9sqeBsuEduiiiiiPKcPvi +
    0x1277
      0x00007FFFF10A0D11 _Z15sqlrr_dump_ffdcP8sqlrr_cbii + 0x0b31
      0x00007FFFF24AA1F7 _Z13sqlzeDumpFFDCP8sqeAgentjP5sqlcai +
    0x00a7
      0x00007FFFF24AA019
    _Z12sqlzeSqlCodeP8sqeAgentjmjP5sqlcaitP13__va_list_tag + 0x0199
      0x00007FFFF11B92BD sqlrrSqlCode + 0x00dd
      0x00007FFFEBFBD7EF
    _ZN7ibm_cde8services24AssertionFailedException4doneEv + 0x08ff
      0x00007FFFEBFC0C2A
    _ZN7ibm_cde8services24AssertionFailedException17constructAndThro
    wENS0_11ComponentIDEPKcmS4_S4_RKNS0_16CdeOStringStreamE + 0x00fa
      0x00007FFFEC42C992
    _ZNK7ibm_cde4data5Table17getExternalColumnEm + 0x00c2
      0x00007FFFEE17A665
    _ZN7ibm_cde5query6Parser19parseNextExpressionERNS1_11QueryString
    EPPNS0_10SyntaxTreeE + 0x23f5
      0x00007FFFEE177BB1
    _ZN7ibm_cde5query6Parser13parseInternalERKSbIcSt11char_traitsIcE
    NS_8services9AllocatorIcEEEb + 0x0261
      0x00007FFFEE15045B
    _ZN7ibm_cde5query6Parser13parserWrapperERKSbIcSt11char_traitsIcE
    NS_8services9AllocatorIcEEERKNS_4data8DataBaseERKNS0_14QueryReso
    urcesERNSA_22TableAccessorAllocatorERNS0_18QueryInfoContainerEP1
    3SQLO_MEM_POOLPS1_ + 0x011b
      0x00007FFFEE126474
    _ZN12cdeInterface14initializeDataEP8sqlrr_cbP17sqlriCdeStatement
    + 0x13b4
      0x00007FFFEE1085A3
    _ZN12cdeInterface15ExecuteNoOutputEP8sqlrr_cbP17sqlriCdeStatemen
    t + 0x0063
      0x00007FFFF161BB18 _Z12sqlriCdeExecP8sqlrr_cb + 0x0258
      0x00007FFFF16A0E28
    _Z15sqlriSectInvokeP8sqlrr_cbP12sqlri_opparm + 0x04f8
      0x00007FFFF10E58A6 _Z16sqlrr_dss_routerP8sqlrr_cb + 0x0806
      0x00007FFFF10E2295
    _Z21sqlrr_subagent_routerP8sqeAgentP12SQLE_DB2RA_T + 0x0fe5
      0x00007FFFEECA0ACD _Z20sqleSubRequestRouterP8sqeAgentPjPm +
    0x0bdd
      0x00007FFFEEC9F3A0 _Z21sqleProcessSubRequestP8sqeAgent +
    0x03e0
      0x00007FFFEECD3847 _ZN8sqeAgent6RunEDUEv + 0x05d7
      0x00007FFFF24AA756 _ZN9sqzEDUObj9EDUDriverEv + 0x0116
      0x00007FFFF0A83D58 sqloEDUEntry + 0x0578
    

Local fix

  • The following optimizer guideline can be used to avoid the
    SQL0901N error:
    
    <OPTGUIDELINES>
      <REGISTRY>
        <OPTION NAME='DB2_EXTENDED_OPTIMIZATION' VALUE='CDETQ
    NOENCODE'/>
      </REGISTRY>
    </OPTGUIDELINES>
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Db2 users                                                    *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to latest fix pack                                   *
    ****************************************************************
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    IT21098

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    B10

  • Status

    CLOSED UR1

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2017-06-20

  • Closed date

    2022-03-10

  • Last modified date

    2022-03-10

  • 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

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

Document Information

Modified date:
04 May 2022