IBM Support

IC72701: EXCESSIVE DB2DIAG.LOG ERROR REPORTING FOLLOWING "WARNING: DB2 MAY BE LOOPING IN LOOKUP STATMENT." MESSAGE

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • V9.5 Fixpak 6 contains a fix for apar IC67239
    As part of the fix, debug code was added but that may get
    triggered in normal circumstances
    ( e.g. when a connection has more than 100 open cursors ) which
    may lead to excessive unnecessary error reporting in the
    db2diag.log.
    
    The messages will start with "WARNING: DB2 MAY BE LOOPING IN
    LOOKUP STATMENT."
    
    
    for example the following shell script may trigger the problem
    from CLP :
    
    i=200
    while [ $i -gt 100 ]
    do
       db2 +c "declare c$i cursor for  values ( $i )"
       db2 +c "open c$i"
       i=`expr $i - 1`
    done
    while [ $i -gt 0 ]
    do
        db2 +c "declare c$i cursor with hold for  values ( $i )"
        db2 +c "open c$i"
        i=`expr $i - 1`
    done
    
    db2 commit
    

Local fix

  • Turn off the statement monitor switch
    Identify the application/connection with a high number of open
    cursors and alter the application.( e.g. more frequent commits )
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * all                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * The db2diag.log may contain excessive diagnostic messages    *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * upgrade DB2 to V9.5 Fixpack 8                                *
    ****************************************************************
    

Problem conclusion

  • This problem was first fixed in V9.5 FixPack 8
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC72701

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    950

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-11-19

  • Closed date

    2011-07-19

  • Last modified date

    2011-07-19

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

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

    IC73941

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

  • R950 PSN

       UP



Document information

More support for: DB2 for Linux, UNIX and Windows

Software version: 9.5

Reference #: IC72701

Modified date: 19 July 2011