IBM Support

IC66385: WHEN EXPLAIN MODE IS SET AND SERVEROUTPUT ON,ALL COMMANDS INCLUD ING SET CURRENT EXPLAIN MODE USING CLP RESULTS IN ENDLESS LOOP

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Setting the environment variable SERVEROUTPUT to ON, and then
    setting the explain mode to expalin will cause an endless loop
    of newlines.
    
    Reproduction:
    
    db2 set serveroutput on
    db2 set current explain mode explain
    The moment  the above is executed, the screen will go into an
    endless loop.
    Transaction log becomes full
    Nothing will run for the session
    CTRL C will stop the loop
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Setting the environment variable SERVEROUTPUT to ON, and     *
    * then setting the explain mode to expalin will cause an       *
    * endless loop of newlines. It could happen with all db2       *
    * users.                                                       *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * Setting the environment variable SERVEROUTPUT to ON, and     *
    * then                                                         *
    * setting the explain mode to expalin will cause an endless    *
    * loop                                                         *
    * of newlines.                                                 *
    *                                                              *
    *                                                              *
    *                                                              *
    * Reproduction:                                                *
    *                                                              *
    *                                                              *
    *                                                              *
    * db2 set serveroutput on                                      *
    *                                                              *
    * db2 set current explain mode explain                         *
    *                                                              *
    * The moment  the above is executed, the screen will go into   *
    * an                                                           *
    * endless loop.                                                *
    *                                                              *
    * Transaction log becomes full                                 *
    *                                                              *
    * Nothing will run for the session                             *
    *                                                              *
    * CTRL C will stop the loop                                    *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to db2_v97fp2.                                       *
    ****************************************************************
    

Problem conclusion

  • db2_v97fp2 and db2_v98fp3 contains fix of this issue.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC66385

  • 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

    2010-02-16

  • Closed date

    2010-05-14

  • Last modified date

    2010-05-14

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

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

    IC66589

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

  • R970 PSY

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSEPGG","label":"DB2 for Linux, UNIX and Windows"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"9.7","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
14 May 2010