home clear 64x64
en blue 200x116 de orange 200x116 info letter User
suche 36x36
Neueste VersionenFixList
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
Haben Sie Probleme? - Kontaktieren Sie uns.
Kostenlos registrieren anmeldung-x26
Kontaktformular kontakt-x26

DB2 - Problembeschreibung

Problem IC95933 Status: Geschlossen

ERRORS SUCH AS SQL0313N AFTER A CLI APPLICATION EXECUTES DELETE or UPDATE
with WHERE CURRENT OF <cursor-name> clause

Produkt:
DB2 FOR LUW / DB2FORLUW / 970 - DB2
Problembeschreibung:
After an application that uses the CLI (Call Level Interface) 
API has executed a DELETE or UPDATE statement with WHERE CURRENT 
OF <cursor-name> clause, applications might get errors such as 
SQL0313N when they later execute another SQL statement. 
 
That is because when a CLI application executes a DELETE or 
UPDATE statement with WHERE CURRENT OF <cursor-name> clause the 
CLI package section for a CLI statement handle that is still 
open might incorrectly be released and then the 
same CLI package section is reused for a different SQL 
statement.
Problem-Zusammenfassung:
**************************************************************** 
* USERS AFFECTED:                                              * 
* Users of applications that use the CLI (Call Level           * 
* Interface) API to connect to DB2 for Linux, UNIX and Windows * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* See Error Description                                        * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* .                                                            * 
****************************************************************
Local-Fix:
As a workaround you can set the isolation level for the CLI 
statement handle of the DELETE or UPDATE statement with  WHERE 
CURRENT of clause to be the same as of that of the SELECT ... 
FOR UPDATE ... statement that created cursor <cursor-name>. 
You can set the isolation level by setting the CLI statement 
handle attribute SQL_ATTR_TXN_ISOLATION.
verfügbare FixPacks:
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

Lösung
Problem was first fixed in Version 9.7 Fix Pack 9 
At a minimum, this fix should be applied on the client.
Workaround
As a workaround you can set the isolation level for the CLI 
statement handle of the DELETE or UPDATE statement with 
WHERE CURRENT of clause to be the same as of that of the SELECT 
...
Weitere Daten
Datum - Problem gemeldet    :
Datum - Problem geschlossen :
Datum - der letzten Änderung:
13.09.2013
17.12.2013
17.12.2013
Problem behoben ab folgender Versionen (IBM BugInfos)
9.7.FP9
Problem behoben lt. FixList in der Version
9.7.0.9 FixList
9.7.0.9 FixList