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

INSTANCE TERMINATES ABNORMALLY WHEN COMPILING AN SQL PROCEDURE THAT USES
CONTAINS()

Produkt:
DB2 FOR LUW / DB2FORLUW / 970 - DB2
Problembeschreibung:
If you compile an SQL procedure, SQL function, compiled trigger, 
or compiled compound statement that contains an expression that 
uses CONTAINS(), your DB2 instance may terminate with error 
SQL1224N: 
 
For example, given table TEST_TABLE, with columns NAME and ID: 
 
create procedure test() 
begin 
  declare v1 varchar(5); 
 
  -- ... 
 
  set v1 = (select id from test_table where contains(name, '#') 
> 0); 
 
  -- ... 
end 
DB21034E  The command was processed as an SQL statement because 
it was not a 
valid Command Line Processor command.  During SQL processing it 
returned: 
SQL1224N  The database manager is not able to accept new 
requests, has 
terminated all requests in progress, or has terminated the 
specified request 
because of an error or a forced interrupt.  SQLSTATE=55032
Problem-Zusammenfassung:
**************************************************************** 
* USERS AFFECTED:                                              * 
* ALL                                                          * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* If you compile an SQL procedure, SQL function, compiled      * 
* trigger,                                                     * 
* or compiled compound statement that contains an expression   * 
* that                                                         * 
* uses CONTAINS(), your DB2 instance may terminate with error  * 
*                                                              * 
* SQL1224N:                                                    * 
*                                                              * 
*                                                              * 
*                                                              * 
* For example, given table TEST_TABLE, with columns NAME and   * 
* ID:                                                          * 
*                                                              * 
* create procedure test()                                      * 
*                                                              * 
* begin                                                        * 
*                                                              * 
*   declare v1 varchar(5);                                     * 
*                                                              * 
*                                                              * 
*                                                              * 
*   -- ...                                                     * 
*                                                              * 
*                                                              * 
*                                                              * 
*   set v1 = (select id from test_table where contains(name,   * 
* '#')                                                         * 
* > 0);                                                        * 
*                                                              * 
*                                                              * 
*                                                              * 
*   -- ...                                                     * 
*                                                              * 
* end                                                          * 
*                                                              * 
* DB21034E  The command was processed as an SQL statement      * 
* because                                                      * 
* it was not a                                                 * 
*                                                              * 
* valid Command Line Processor command.  During SQL processing * 
* it                                                           * 
* returned:                                                    * 
*                                                              * 
* SQL1224N  The database manager is not able to accept new     * 
*                                                              * 
* requests, has                                                * 
*                                                              * 
* terminated all requests in progress, or has terminated the   * 
*                                                              * 
* specified request                                            * 
*                                                              * 
* because of an error or a forced interrupt.  SQLSTATE=55032   * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Upgrade to DB2 Version 9.7 Fix Pack 4.                       * 
****************************************************************
Local-Fix:
If possible, rewrite query predicates to avoid the use of 
CONTAINS() inside SQL routines; for example: 
 
set v1 = (select id from test_table where name like '%#%');
verfügbare FixPacks:
DB2 Version 9.7 Fix Pack 4 for Linux, UNIX, and Windows
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 fixed in DB2 Version 9.7 Fix Pack 4.
Workaround
See LOCAL FIX.
Weitere Daten
Datum - Problem gemeldet    :
Datum - Problem geschlossen :
Datum - der letzten Änderung:
11.02.2011
28.04.2011
28.04.2011
Problem behoben ab folgender Versionen (IBM BugInfos)
9.7.FP4
Problem behoben lt. FixList in der Version
9.7.0.4 FixList