IBM Support

IC91098: The SQL routine using compiled compound statement might trigger reply only window on HADR standby enabled for ROS

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The SQL routines using dynamic SQL to construct a compiled
    compound statement (a.k.a an anonymous block):
    
    SET V_SQL = 'BEGIN ' || SQL STATEMENTS || ' END';
    
    causes the SQL compiler to create a package in SYSPLAN for the
    compiled compound statement. As a result, DDL log records is
    written what triggers reply only window on HADR standby enabled
    for ROS.
    
    This APAR is to fix limitation mentioned above. Because
    anonymous block would never drop an existing package and have no
    impact to existing executions, for anonymous block there is no
    need to kick off the readers on standby.
    

Local fix

  • To workaround the issue, you need to use an inline compound
    statement instead of a compiled one i.e.:
    
    SET V_SQL = 'BEGIN ATOMIC ' || SQL STATEMENTS || ' END';
    
    instead of:
    
    SET V_SQL = 'BEGIN ' || SQL STATEMENTS || ' END';
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ROS on HADR environment                                      *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 version 9.7 fixpack 9                         *
    ****************************************************************
    

Problem conclusion

  • Problem was first fixed in DB2 version 9.7 fixpack 9
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC91098

  • 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-03-25

  • Closed date

    2013-10-02

  • Last modified date

    2013-10-02

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

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

    IC96450 IC96475

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

  • R970 PSN

       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:
02 October 2013