home clear 64x64
en blue 200x116 de orange 200x116 info letter User
suche 36x36
Latest versionsfixlist
11.1.0.7 FixList
10.5.0.9 FixList
10.1.0.6 FixList
9.8.0.5 FixList
9.7.0.11 FixList
9.5.0.10 FixList
9.1.0.12 FixList
Have problems? - contact us.
Register for free anmeldung-x26
Contact form kontakt-x26

DB2 - Problem description

Problem IC77284 Status: Closed

CLI ASYNCHRONOUS EXECUTION MAY CAUSE POOR PERFORMANCE DUE TO 1 SEC DELAY.

product:
DB2 FOR LUW / DB2FORLUW / 950 - DB2
Problem description:
A CLI based application might intermittently run slow if the 
application enables asynchronous execution. CLI applications can 
enable asynchronous execution by the code like as below: 
 
RC = SQLSetStmtAttr( hstmt, 
                     SQL_ATTR_ASYNC_ENABLE, 
                    (SQLPOINTER) SQL_ASYNC_ENABLE_ON, 
                     0); 
 
The db2trc shows the following 1 sec delay on the application 
thread when the application runs into this performance problem. 
 
40095   1.735732055   SQLExecute entry 
40130   1.735823966   | CLI_asyncRequest entry 
40133   1.735830950   | | sqloAppWaitOnSync entry 
40136   2.730424676   | | sqloAppWaitOnSync data [probe 20: 
WAIT_TIMEOUT] 
40137   2.730431102   | | sqloAppWaitOnSync exit
Problem Summary:
**************************************************************** 
* USERS AFFECTED:                                              * 
* Users who uses asynchronous execution on CLI based           * 
* applications.                                                * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* A CLI based application might intermittently run slow if the * 
* application enables asynchronous execution. CLI applications * 
* can enable asynchronous execution by the code like as below: * 
*                                                              * 
* RC = SQLSetStmtAttr( hstmt,                                  * 
*                     SQL_ATTR_ASYNC_ENABLE,                   * 
*                     (SQLPOINTER) SQL_ASYNC_ENABLE_ON,        * 
*                     0);                                      * 
*                                                              * 
* The db2trc shows the following 1 sec delay on the            * 
* application thread when the application runs into this       * 
* performance problem.                                         * 
*                                                              * 
* 40095  1.735732055  SQLExecute entry                         * 
* 40130  1.735823966  | CLI_asyncRequest entry                 * 
* 40133  1.735830950  | | sqloAppWaitOnSync entry              * 
* 40136  2.730424676  | | sqloAppWaitOnSync data [probe        * 
* 20:WAIT_TIMEOUT]                                             * 
* 40137  2.730431102  | | sqloAppWaitOnSync exit               * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Please upgrade to DB2 V9.5 FixPack 9 or later, then set      * 
* patch2=112 in db2cli.ini.                                    * 
****************************************************************
Local Fix:
Users can bypass this issue by disabling asynchronous execution. 
Please implement one of the followings: 
a) Turn SQL_ATTR_ASYNC_ENABLE off in the application code. 
b) Set ASYNCENABLE=0 in db2cli.ini 
c) Set DisableAsyncQueryExecution as 1 in db2dsdriver.cfg.
available fix packs:
DB2 Version 9.5 Fix Pack 9 for Linux, UNIX, and Windows
DB2 Version 9.5 Fix Pack 10 for Linux, UNIX, and Windows

Solution
This problem was first fixed in DB2 V9.5 FixPack 9.
Workaround
not known / see Local fix
BUG-Tracking
forerunner  : APAR is sysrouted TO one or more of the following: IC77950 
follow-up : 
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
30.06.2011
12.03.2012
12.03.2012
Problem solved at the following versions (IBM BugInfos)
9.5.FP9
Problem solved according to the fixlist(s) of the following version(s)
9.5.0.9 FixList