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 IC82676 Status: Closed

DRDA HAS EXTRA SQLCARD WITH DB2_DEFERRED_PREPARE_SEMANTICS=YES

product:
DB2 FOR LUW / DB2FORLUW / 970 - DB2
Problem description:
A delete statement in java returned 3 sqlca messages. 
 
Here is a snippet of java program. 
                System.out.println("executeUpdate() = " + 
stmt.executeUpdate()); 
                sqlwarn = stmt.getWarnings(); 
                while (sqlwarn != null) { 
                        System.out.println("Warning description: 
" + sqlwarn.getMessage()); 
                        sqlwarn = sqlwarn.getNextWarning(); 
                } 
 
$ db2set 
DB2_DEFERRED_PREPARE_SEMANTICS=YES 
DB2COMM=TCPIP 
$ ~/sqllib/java/jdk64/bin/java delete 
jdbc:db2://192.168.1.161:60000/sample db2inst1 db2inst1 
executeUpdate() = 0 
Warning description: DB2 SQL Warning: SQLCODE=0, SQLSTATE=01504, 
SQLERRMC=null, DRIVER=4.12.55 
Warning description: DB2 SQL Warning: SQLCODE=0, SQLSTATE=01504, 
SQLERRMC=null, DRIVER=4.12.55 
Warning description: DB2 SQL Warning: SQLCODE=100, 
SQLSTATE=02000, SQLERRMC=null, DRIVER=4.12.55 
 
If unset DB2_DEFERRED_PREPARE_SEMANTICS, sqlca messages return 2 
entries. 
2 entries are expected behavior. 
 
$ db2set 
DB2COMM=TCPIP 
$ ~/sqllib/java/jdk64/bin/java delete 
jdbc:db2://192.168.1.161:60000/sample db2inst1 db2inst1 
executeUpdate() = 0 
Warning description: DB2 SQL Warning: SQLCODE=0, SQLSTATE=01504, 
SQLERRMC=null, DRIVER=4.12.55 
Warning description: DB2 SQL Warning: SQLCODE=100, 
SQLSTATE=02000, SQLERRMC=null, DRIVER=4.12.55 
 
DRDA has extra SQLCARD with DB2_DEFERRED_PREPARE_SEMANTICS=YES 
Therefore getNextWarning() get extra SQLCARD. 
 
This is not JCC issue, DB2 engine issue.
Problem Summary:
**************************************************************** 
* USERS AFFECTED:                                              * 
* ALL                                                          * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* See Error Description                                        * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Upgrade to DB2 UDB version 9.7 fix pack 7.                   * 
****************************************************************
Local Fix:
available fix packs:
DB2 Version 9.7 Fix Pack 7 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 8 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 9 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 9a for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 10 for Linux, UNIX, and Windows

Solution
Problem was first fixed in DB2 UDB Version 9.7 Fix Pack 7.
Workaround
not known / see Local fix
BUG-Tracking
forerunner  : APAR is sysrouted TO one or more of the following: IC87843 
follow-up : 
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
16.04.2012
05.11.2012
05.11.2012
Problem solved at the following versions (IBM BugInfos)
9.7.FP7
Problem solved according to the fixlist(s) of the following version(s)
9.7.0.7 FixList