IBM Support

IC96251: BATCH EXECUTION INTRODUCES INTERNAL COMMIT (EVEN WITH AUTOCOMMIT OFF)

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • When using CLP commands even with AUTOCOMMIT OFF combined with
    batch execution, the batch run will introduce an internal commit
    which might result in unexpected behaviour as anything that was
    executed previous to the batch will commit implicitly regardless
    of the setting of autocommit.
    
    Simple test case:
    
    db2 connect to sample
    
    cat  t_maria
    create table AAAAABBBBB(c1 int);
    
    
    1. db2 +c "create table AAAAAA(c1 int)"
    2. db2 +c -stf t_maria
    3. db2 rollback
    
    NONE of the tables should exist on the system after the
    rollback, but the execution with the batch file is doing a
    commit implicitly, so the first table creation gets committed.
    
    db2 list tables for all | grep -i AA
    AAAAAA                          MARIAJ          T
    2013-08-15-12.11.07.819349
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ALL                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description. This problem was introduced in DB2    *
    * version 9.5 and Fix Pack 8, DB2 version 9.7 and Fix Pack 5   *
    * and DB2 version 10.1                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to  DB2 Version 9.7 and Fix Pack 9.                  *
    ****************************************************************
    

Problem conclusion

  • Problem was first fixed in DB2 Version 9.7 and Fix Pack 9.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC96251

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

  • Closed date

    2013-12-16

  • Last modified date

    2013-12-16

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

    IC95548

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

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

Modified date: 16 December 2013