DB2 - Problembeschreibung
Problem IC66721 | Status: Geschlossen |
DML STATEMENT IN THE FUNCTION RETURNS SQLCODE -204 IF THE SCHEMA NAME IS LONGER THAN THE 8 CHARACTERS. | |
Produkt: | |
DB2 FOR LUW / DB2FORLUW / 950 - DB2 | |
Problembeschreibung: | |
DML statement in the function returns SQLCODE -204 and the function is marked bad, if the schema name is longer than the 8 characters. Run following to recreate the error: ---------------------------------------------------------------- set current schema = longschemaname @ set current path = longschemaname @ create table t1 ( a varchar(10) not null ) @ create function f1 ( ) returns integer language sql begin atomic return ( select 1 from t1 fetch first row only ); end @ alter table t1 alter column a set data type varchar(15) @ -- If schema name is longer than 8 characters: -- SQL0727N An error occurred during implicit system action type "8". -- Information returned for the error includes SQLCODE "-204", SQLSTATE "42704" -- and message tokens "LONGSCHE.T1". LINE NUMBER=0. SQLSTATE=56098 values f1( ) @ ---------------------------------------------------------------- | |
Problem-Zusammenfassung: | |
**************************************************************** * USERS AFFECTED: * * ALL * **************************************************************** * PROBLEM DESCRIPTION: * * After altering a table with a dependent function, the * * nextfunction call will return a 727 / -204 if the schema * * name ofthe dependent table is longer than 8 characters. If * * theschema name is 8 characters or fewer there are no errors. * **************************************************************** * RECOMMENDATION: * * Upgrade to DB2 Version 9.1 Fix Pack 9 or DB2 Version 9.5 * * FixPack 6 * **************************************************************** | |
Local-Fix: | |
Use schema name upto 8 charactes long. | |
verfügbare FixPacks: | |
DB2 Version 9.5 Fix Pack 6a for Linux, UNIX, and Windows | |
Lösung | |
Problem was first fixed in Version 9.1 Fix Pack 9. The fix is also available in Version 9.5 Fix Pack 6. | |
Workaround | |
Use schema name upto 8 charactes long. | |
Weitere Daten | |
Datum - Problem gemeldet : Datum - Problem geschlossen : Datum - der letzten Änderung: | 01.03.2010 12.07.2010 12.07.2010 |
Problem behoben ab folgender Versionen (IBM BugInfos) | |
9.1.FP9, 9.5., 9.5.FP6 | |
Problem behoben lt. FixList in der Version |