IBM Support

IC83894: TOTAL ELAPSED TIME IN THE DB2BATCH OUTPUT FOR THE SAME STATEMENT EXECUTED MORE THAN ONCE WITHIN DB2BATCH MAY NOT BE ACCURATE.

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • For a query executed multiple times via db2batch , the elapsed
    time for 2nd run and so on, does not reflect proper total
    elapsed time
    for the query.
    
    For example:
    
    Input file for db2batch contains the following queries:
    
    Query1: select * from t1 where r1=1
    Query2: select * from t1 where r1=1
    Query3: select * from t1 where r1=1
    ...............
    

Local fix

  • You could use dynamic sql snapshot to get the execution
    execution time and divide that by the # of executions to get an
    average execution time per execution.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * All                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 9.7 FP7                                       *
    * or as a workaround you could use dynamic sql snapshot to get *
    * the execution execution time and divide that by the # of     *
    * executions to get an average execution time per execution.   *
    ****************************************************************
    

Problem conclusion

  • Problem Fixed in DB2 Version 9.7 Fix Pack 7 and subsequent fix
    packs.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC83894

  • 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

    2012-06-01

  • Closed date

    2012-11-05

  • Last modified date

    2012-11-05

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

    IC83691

  • 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 #: IC83894

Modified date: 05 November 2012