IBM Support

IC92722: DB2 TRAPS WHEN USING DB2EXPLN WITH "-CACHE" OPTION TO DESCRIBE AN ACCESS PLAN FOR A NON-EXISTENT SQL STATEMENT

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • When using db2expln with "-cache" option to describe an access
    plan, db2expln can cause the instance to trap if it's given a
    non-existent SQL statement as an input.
    
    1. db2expln sample output
    
    Licensed Material - Program Property of IBM
    IBM DB2 Universal Database SQL and XQUERY Explain Tool
    
    Error during explain call.
    
    Message Text =
    SQL1224N  The database manager is not able to accept new
    requests, has terminated all requests in progress, or has
    terminated the specified request because of an error or a forced
    interrupt.
    SQLSTATE=55032
    
    
    sqlcaid   = SQLCA
    sqlcabc   = 136
    sqlcode   = -1224
    sqlstate  = 55032
    sqlerrml  = 36
    sqlerrmc  = "-2097151964", "*", "*", "*", "*"", "SEMAPHORE WAIT"
    sqlerrp   = SQLJCMN
    sqlerrd0 = 0x8136001C = -2127167460
    sqlerrd1 = 0x0000001C = 28
    sqlerrd2 = 0x00000000 = 0
    sqlerrd3 = 0x00000000 = 0
    sqlerrd4 = 0x00000000 = 0
    sqlerrd5 = 0x00000000 = 0
    sqlwarn   = ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', '
    '
    
    2. db2diag.log
    
    2013-06-02-20.43.06.070987-240 I14962A573         LEVEL: Error
    PID     : 635130               TID  : 1544        PROC : db2sysc
    INSTANCE: db2inst1             NODE : 000         DB   : SAMPLE
    APPHDL  : 0-7                  APPID:
    *LOCAL.db2inst1.130603004305
    AUTHID  : db2inst1
    EDUID   : 1544                 EDUNAME: db2agent (SAMPLE)
    FUNCTION: DB2 UDB, base sys utilities, sqleagnt_sigsegvh,
    probe:9
    MESSAGE : Error in agent servicing application with PRODUCT
    SIGNATURE:
    DATA #1 : Hexdump, 8 bytes
    0x0780000000AF6984 : 5351 4C30 3930 3736
    SQL09076
    
    2013-06-02-20.43.06.071151-240 I15536A573         LEVEL: Error
    PID     : 635130               TID  : 1544        PROC : db2sysc
    INSTANCE: db2inst1             NODE : 000         DB   : SAMPLE
    APPHDL  : 0-7                  APPID:
    *LOCAL.db2inst1.130603004305
    AUTHID  : db2inst1
    EDUID   : 1544                 EDUNAME: db2agent (SAMPLE)
    FUNCTION: DB2 UDB, base sys utilities, sqleagnt_sigsegvh,
    probe:10
    MESSAGE : Error in agent servicing application with APPLICATION
    NAME:
    DATA #1 : Hexdump, 8 bytes
    0x0780000000AF685A : 6462 3265 7870 6C6E
    db2expln
    
    2013-06-02-20.43.06.071321-240 I16110A490         LEVEL: Severe
    PID     : 635130               TID  : 1544        PROC : db2sysc
    INSTANCE: db2inst1             NODE : 000         DB   : SAMPLE
    APPHDL  : 0-7                  APPID:
    *LOCAL.db2inst1.130603004305
    AUTHID  : db2inst1
    EDUID   : 1544                 EDUNAME: db2agent (SAMPLE)
    FUNCTION: DB2 UDB, DRDA Application Server, sqljsSignalHandler,
    probe:10
    MESSAGE : DIA0505I Execution of a component signal handling
    function has begun.
    
    2013-06-02-20.43.06.071720-240 I16601A513         LEVEL: Severe
    PID     : 635130               TID  : 1544        PROC : db2sysc
    INSTANCE: db2inst1             NODE : 000         DB   : SAMPLE
    APPHDL  : 0-7                  APPID:
    *LOCAL.db2inst1.130603004305
    AUTHID  : db2inst1
    EDUID   : 1544                 EDUNAME: db2agent (SAMPLE)
    FUNCTION: DB2 UDB, DRDA Application Server, sqljsSignalHandler,
    probe:911
    DATA #1 : String, 38 bytes
    Source Type not DRDA AS. SourceType =
    DATA #2 : signed integer, 4 bytes
    4
    

Local fix

  • Ensure you are providing the correct anchID, stmtID, envID and
    varID of an existing SQL statement to db2expln.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * All Users                                                    *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 V97FP9 or higher version.                     *
    ****************************************************************
    

Problem conclusion

  • Fixed on DB2 V97FP9 and higher version.
    

Temporary fix

  • Ensure you are providing the correct anchID, stmtID, envID and
    varID of an existing SQL statement to db2expln.
    

Comments

APAR Information

  • APAR number

    IC92722

  • 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-06-02

  • Closed date

    2013-12-30

  • Last modified date

    2013-12-30

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

Modified date: 30 December 2013