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

Query compilation fails with -901 "sqlnp_initlex [300]"

Produkt:
DB2 FOR LUW / DB2FORLUW / 970 - DB2
Problembeschreibung:
Compiling a query that uses optimization guidelines may fail 
with SQLCODE -901 reason 
"sqlnp_initlex [300]". This happens when the guideline 
contains a malformed table reference.  In the following example, 
a double quote is missing from the table reference: 
 
SELECT C1 FROM "schema" . "table" 
     /*<OPTGUIDELINES><TBSCAN TABLE=' "schema . "table" 
 '/></OPTGUIDELINES>*/; 
 SQL0901N  The SQL statement failed because of a non-severe 
system error. 
Subsequent SQL statements can be processed. (Reason 
"sqlnp_initlex 
[300]:rc(     0)   ".) SQLSTATE=58004 
 
db2diag.log shows : 
2009-09-07-17.21.27.814163-300 I2097A741   LEVEL: Severe 
 
PID : 11111 TID  : 1 PROC : 
db2agent (TEST) 
0 
 
INSTANCE: db2inst1   NODE : 000   DB   : TEST 
APPHDL : 0-1500        APPID: AC118719.DBA7.0335C7110624 
 
DATA #1 : SQLCA, PD_DB2_TYPE_SQLCA, 136 bytes 
 
sqlcaid : SQLCA     sqlcabc: 136   sqlcode: -901   sqlerrml: 58 
 
sqlerrmc: sqlnp_initlex      [300]:rc( 0) 
 
sqlerrp : SQLNN066 
 
sqlerrd : (1) 0x80310021      (2) 0x00000021   (3) 
0x00000000 
 (4) 0x00000000      (5) 0xFFFFFDA8   (6) 
0x00000000 
sqlwarn : (1)  (2)  (3)   (4) (5)   (6) 
 
(7)  (8)   (9)  (10)     (11) 
 
sqlstate: 
 
Fix for this defect will return SQL0437W for the query with 
syntax error. 
SQL0437W  Performance of this complex query may be sub-optimal. 
Reason code: 
"13". SQLSTATE=01602
Problem-Zusammenfassung:
**************************************************************** 
* USERS AFFECTED:                                              * 
* All                                                          * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* Compiling a query that uses optimization guidelines may fail * 
*                                                              * 
* with SQLCODE -901 reason                                     * 
*                                                              * 
* "sqlnp_initlex [300]". This happens when the guideline       * 
*                                                              * 
* contains a malformed table reference.  In the following      * 
* example,                                                     * 
* a double quote is missing from the table reference:          * 
*                                                              * 
*                                                              * 
*                                                              * 
* SELECT C1 FROM "schema" . "table"                            * 
*                                                              * 
*     /*<OPTGUIDELINES><TBSCAN TABLE=' "schema . "table"       * 
*                                                              * 
* '/></OPTGUIDELINES>*/;                                       * 
*                                                              * 
* SQL0901N  The SQL statement failed because of a non-severe   * 
*                                                              * 
* system error.                                                * 
*                                                              * 
* Subsequent SQL statements can be processed. (Reason          * 
*                                                              * 
* "sqlnp_initlex                                               * 
*                                                              * 
* [300]:rc(    0)  ".) SQLSTATE=58004                          * 
*                                                              * 
*                                                              * 
* db2diag.log shows :                                          * 
*                                                              * 
* 2009-09-07-17.21.27.814163-300 I2097A741  LEVEL: Severe      * 
*                                                              * 
*                                                              * 
*                                                              * 
* PID : 11111 TID  : 1 PROC :                                  * 
*                                                              * 
* db2agent (TEST)                                              * 
*                                                              * 
* 0                                                            * 
*                                                              * 
*                                                              * 
*                                                              * 
* INSTANCE: db2inst1  NODE : 000  DB  : TEST                   * 
* APPHDL : 0-1500        APPID: AC118719.DBA7.0335C7110624     * 
*                                                              * 
*                                                              * 
*                                                              * 
* DATA #1 : SQLCA, PD_DB2_TYPE_SQLCA, 136 bytes                * 
*                                                              * 
*                                                              * 
*                                                              * 
* sqlcaid : SQLCA    sqlcabc: 136  sqlcode: -901  sqlerrml: 58 * 
*                                                              * 
*                                                              * 
* sqlerrmc: sqlnp_initlex      [300]:rc( 0)                    * 
*                                                              * 
*                                                              * 
*                                                              * 
* sqlerrp : SQLNN066                                           * 
*                                                              * 
*                                                              * 
*                                                              * 
* sqlerrd : (1) 0x80310021      (2) 0x00000021  (3)            * 
*                                                              * 
* 0x00000000                                                   * 
*                                                              * 
* (4) 0x00000000      (5) 0xFFFFFDA8  (6)                      * 
* 0x00000000                                                   * 
*                                                              * 
* sqlwarn : (1)  (2)  (3)  (4) (5)  (6)                        * 
*                                                              * 
*                                                              * 
* (7)  (8)  (9)  (10)    (11)                                  * 
*                                                              * 
*                                                              * 
* sqlstate:                                                    * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Upgrade to DB2 v9.7 FP1                                      * 
****************************************************************
Local-Fix:
Correct the table reference
verfügbare FixPacks:
DB2 Version 9.7 Fix Pack 2 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 3 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 3a for Linux, UNIX, and Windows
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 9a 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 10 for Linux, UNIX, and Windows

Lösung
Fix for this APAR will return SQL0437W for the query with syntax 
error. 
SQL0437W  Performance of this complex query may be sub-optimal. 
Reason code: "13". SQLSTATE=01602
Workaround
keiner bekannt / siehe Local-Fix
Weitere Daten
Datum - Problem gemeldet    :
Datum - Problem geschlossen :
Datum - der letzten Änderung:
14.10.2009
31.05.2010
03.06.2010
Problem behoben ab folgender Versionen (IBM BugInfos)
9.7.FP1
Problem behoben lt. FixList in der Version
9.7.0.2 FixList