IBM Support

IC89963: SQL0901 IS RETURNED FOR A QUERY THAT FETCHES ZERO-LENGTH LARGE OBJECTS ON DPF

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as fixed if next.

Error description

  • In DPF, if a query is run that is selecting a large object, and
    if that large object
    has a length of 0, then a logic problem in the handling of the
    object might return
    an sql0901.  The db2diag.log would show something like this:
    
    2012-10-15-03.41.10.076746-240 I1452420E856        LEVEL: Severe
    
    PID     : 01234                TID  : 01234567890123PROC :
    db2sysc 1
    INSTANCE: db2inst1             NODE : 001          DB   : SAMPLE
    
    APPHDL  : 1-23456              APPID: 01.234.56.789
    AUTHID  : TEST
    
    EDUID   : 123                  EDUNAME: db2agent (sample) 1
    
    FUNCTION: DB2 UDB, relation data serv, sqlrr_dump_ffdc,
    probe:300
    DATA #1 : SQLCA, PD_DB2_TYPE_SQLCA, 136 bytes
    
     sqlcaid : SQLCA     sqlcabc: 136   sqlcode: -901   sqlerrml: 19
    
     sqlerrmc: sqlrh_create_handle
    
     sqlerrp : SQLRI09F
    
     sqlerrd : (1) 0x00000000      (2) 0x00000000      (3)
    0x00000000
               (4) 0x00000000      (5) 0xFFFFFFE5      (6)
    0x00000001
     sqlwarn : (1)      (2)      (3)      (4)        (5)       (6)
    
               (7)      (8)      (9)      (10)        (11)
    
     sqlstate:
    
    
    
    For example, a CLOB that contains the empty string '' is the
    style of data that
    can result in this.
    

Local fix

  • It might be possible to bypass the faulty logic by changing the
    query to filter out
    the zero-length large objects earlier in the access plan if
    those results are not
    needed.  For example, adding a where clause like "where
    length(clobfield) > 0.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * DB2FORLUW 9.7                                                *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * In DPF, if a query is run that is selecting a large object,  *
    * and                                                          *
    * if that large object                                         *
    * has a length of 0, then a logic problem in the handling of   *
    * the                                                          *
    * object might return                                          *
    * an sql0901.  The db2diag.log would show something like this: *
    *                                                              *
    * 2012-10-15-03.41.10.076746-240 I1452420E856        LEVEL:    *
    * Severe                                                       *
    *                                                              *
    * PID     : 01234                TID  : 01234567890123PROC :   *
    * db2sysc 1                                                    *
    * INSTANCE: db2inst1             NODE : 001          DB   :    *
    * SAMPLE                                                       *
    *                                                              *
    * APPHDL  : 1-23456              APPID: 01.234.56.789          *
    * AUTHID  : TEST                                               *
    *                                                              *
    * EDUID   : 123                  EDUNAME: db2agent (sample) 1  *
    *                                                              *
    * FUNCTION: DB2 UDB, relation data serv, sqlrr_dump_ffdc,      *
    * probe:300                                                    *
    * DATA #1 : SQLCA, PD_DB2_TYPE_SQLCA, 136 bytes                *
    *                                                              *
    *  sqlcaid : SQLCA     sqlcabc: 136   sqlcode: -901            *
    * sqlerrml: 19                                                 *
    *                                                              *
    *  sqlerrmc: sqlrh_create_handle                               *
    *                                                              *
    *  sqlerrp : SQLRI09F                                          *
    *                                                              *
    *  sqlerrd : (1) 0x00000000      (2) 0x00000000      (3)       *
    * 0x00000000                                                   *
    *            (4) 0x00000000      (5) 0xFFFFFFE5      (6)       *
    * 0x00000001                                                   *
    *  sqlwarn : (1)      (2)      (3)      (4)        (5)         *
    * (6)                                                          *
    *                                                              *
    *            (7)      (8)      (9)      (10)        (11)       *
    *                                                              *
    *  sqlstate:                                                   *
    *                                                              *
    *                                                              *
    *                                                              *
    * For example, a CLOB that contains the empty string '' is the *
    * style of data that                                           *
    * can result in this.                                          *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 9.7 FP9                                       *
    ****************************************************************
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    IC89963

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    970

  • Status

    CLOSED FIN

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-01-31

  • Closed date

    2013-11-25

  • Last modified date

    2013-11-25

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

    IC89610

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

Fix information

Applicable component levels

  • R970 PSY

       UP



Document information

More support for: DB2 for Linux, UNIX and Windows

Software version: 9.7

Reference #: IC89963

Modified date: 25 November 2013