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 IC74468 Status: Geschlossen

CLP WITH -V OPTION MAY CAUSE ACCESS VIOLATION IF STATEMENT > 128KB AND
CONTAINS LINE FEED.

Produkt:
DB2 FOR LUW / DB2FORLUW / 970 - DB2
Problembeschreibung:
CLP may cause access violation if all the following conditions 
are met: 
 
- The statement is greater than 128KB. 
- The statement contains line feed. 
- db2.exe is running on Windows platforms. 
- DB2 V9.7 FP3 or later. 
 
Stack trace generated by db2.exe is like as follows: 
 
db2clpfp!clp_replace_LFtoCRLF 
db2clpfp!clp_print_output 
db2clpfp!clp_execmd 
db2clpfp!clp_execinp 
db2clpfp!clp_fp_con 
db2clpfp!clp_api 
db2!main 
 
The following steps illustrate how the problem occurs. 
 
1. Create a CLP script like as below: 
 
p1.sql 
------------------------------------------ 
create procedure proc1 (in input1 integer) 
result sets 1 
language sql 
begin 
  declare c1 int default 1; 
  declare c2 int default 0; 
  set c2 = c2 + c1; 
       : -- repeat 6300 lines 
  set c2 = c2 + c1; 
end 
@ 
------------------------------------------ 
 
2. Run the script with -v option 
C:\>db2 -td@ -vf p1.sql
Problem-Zusammenfassung:
**************************************************************** 
* USERS AFFECTED:                                              * 
* Users who use statement text greater than 128KB via CLP on   * 
* Windows.                                                     * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* CLP may cause access violation if all the following          * 
* conditions are met:                                          * 
*                                                              * 
* - The statement is greater than 128KB.                       * 
* - The statement contains line feed.                          * 
* - db2.exe is running on Windows platforms.                   * 
* - DB2 V9.7 FP3 or later.                                     * 
*                                                              * 
* Stack trace generated by db2.exe is like as follows:         * 
*                                                              * 
* db2clpfp!clp_replace_LFtoCRLF                                * 
* db2clpfp!clp_print_output                                    * 
* db2clpfp!clp_execmd                                          * 
* db2clpfp!clp_execinp                                         * 
* db2clpfp!clp_fp_con                                          * 
* db2clpfp!clp_api                                             * 
* db2!main                                                     * 
*                                                              * 
* The following steps illustrate how the problem occurs.       * 
*                                                              * 
* 1. Create a CLP script like as below:                        * 
*                                                              * 
* p1.sql                                                       * 
* ------------------------------------------                   * 
* create procedure proc1 (in input1 integer)                   * 
* result sets 1                                                * 
* language sql                                                 * 
* begin                                                        * 
*   declare c1 int default 1;                                  * 
*   declare c2 int default 0;                                  * 
*   set c2 = c2 + c1;                                          * 
*       : -- repeat 6300 lines                                 * 
*   set c2 = c2 + c1;                                          * 
* end                                                          * 
* @                                                            * 
* ------------------------------------------                   * 
*                                                              * 
* 2. Run the script with -v option                             * 
* C:\>db2 -td@ -vf p1.sql                                      * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Please upgrade to V9.7 FixPack 5 or later.                   * 
****************************************************************
Local-Fix:
Please remove -v option.
verfügbare FixPacks:
DB2 Version 9.7 Fix Pack 5 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 6 for Linux, UNIX, and Windows
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

Lösung
This problem is first fixed in DB2 V9.7 FixPack 5.
Workaround
keiner bekannt / siehe Local-Fix
Bug-Verfolgung
Vorgänger  : APAR is sysrouted TO one or more of the following: IC74978 
Nachfolger : 
Weitere Daten
Datum - Problem gemeldet    :
Datum - Problem geschlossen :
Datum - der letzten Änderung:
15.02.2011
19.01.2012
19.01.2012
Problem behoben ab folgender Versionen (IBM BugInfos)
9.7.FP5
Problem behoben lt. FixList in der Version
9.7.0.5 FixList