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

ALTER COLUMN SET DATA TYPE NOT BLOCKED FOR ROW CHANGE TIMESTAMP COLUMN

Produkt:
DB2 FOR LUW / DB2FORLUW / A10 - DB2
Problembeschreibung:
A row change timestamp column must have data type 
TIMESTAMP(6).  This is correctly enforced by CREATE TABLE 
and ALTER TABLE ADD COLUMN.  However, the data type can be 
changed via: 
 
  ALTER TABLE <table> ALTER COLUMN <row change column> 
    SET DATA TYPE <data type> 
 
This should be blocked with SQLCODE SQL0190 if <data type> 
is not TIMESTAMP(6) but the alteration succeeds.  The result 
is possible abnormal termination of the DB2 server and 
general unpredictable behaviour with respect to the row 
change timestamp column. 
 
Use the following query to identify any tables that have a 
row change timestamp column with an invalid type: 
 
  SELECT TABSCHEMA, TABNAME, COLNAME FROM SYSCAT.COLUMNS 
  WHERE ROWCHANGETIMESTAMP = 'Y' 
    AND ( TYPENAME != 'TIMESTAMP' OR SCALE != 6 )
Problem-Zusammenfassung:
**************************************************************** 
* USERS AFFECTED:                                              * 
* ALL                                                          * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* See Error Description                                        * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Upgrade to DB2 version 10.1 fix pack 1                       * 
****************************************************************
Local-Fix:
To fix such a table, alter the column back to TIMESTAMP(6) 
 
  ALTER TABLE <table> ALTER COLUMN <row change timestamp column> 
    SET DATA TYPE TIMESTAMP(6)
verfügbare FixPacks:
DB2 Version 10.1 Fix Pack 1 for Linux, UNIX, and Windows
DB2 Version 10.1 Fix Pack 2 for Linux, UNIX, and Windows
DB2 Version 10.1 Fix Pack 3 for Linux, UNIX, and Windows
DB2 Version 10.1 Fix Pack 4 for Linux, UNIX, and Windows
DB2 Version 10.1 Fix Pack 3a for Linux, UNIX, and Windows
DB2 Version 10.1 Fix Pack 6 for Linux, UNIX, and Windows

Lösung
First fixed in DB2 version 10.1 fix pack 1
Workaround
keiner bekannt / siehe Local-Fix
Weitere Daten
Datum - Problem gemeldet    :
Datum - Problem geschlossen :
Datum - der letzten Änderung:
14.06.2012
19.11.2012
19.11.2012
Problem behoben ab folgender Versionen (IBM BugInfos)
Problem behoben lt. FixList in der Version
10.1.0.1 FixList
10.5.0.1 FixList