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

ADMIN_MOVE_TABLE CAN'T BE CANCELED IF SOURCE TABLE HAS RESTRICT ON
DROP

Produkt:
DB2 FOR LUW / DB2FORLUW / 970 - DB2
Problembeschreibung:
When ADMIN_MOVE_TABLE is used to move a table and a target table 
is created by the stored procedure, the target table will have 
the same table flags as those of the source table. One of these 
flags is RESTRICT ON DROP. If the source table has restrict on 
drop enabled then so will the target table. When an 
ADMIN_MOVE_TABLE operation is subsequently canceled, any objects 
that the stored procedure has created including staging table, 
target table, triggers etc. will need to be dropped. But since 
the target table has the DROP ON TABLE flag, it can't be 
dropped, which will cause the CANCEL operation fails with the 
SQL0672N error. 
 
For example: 
//create a table named tab1 with restrict on drop 
db2  "create table  tab1(c1 int) with restrict on drop" 
 
//call admin_move_table with INIT 
db2 "call 
admin_move_table('DB2INST1','TAB1','','','','','','','','','INIT 
')" 
 
//call admin_move_table with CANCEL, it fails with  the SQL0672N 
 error 
db2 "call 
admin_move_table('DB2INST1','TAB1','','','','','','','','','CANC 
EL')" 
 
SQL0672N  Operation DROP not allowed on table 
"DB2INST1.TAB1AABYVRt". 
SQLSTATE=55035
Problem-Zusammenfassung:
**************************************************************** 
* USERS AFFECTED:                                              * 
* ALL                                                          * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* See Problem Description above.                               * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Upgrade to DB2 Version 9.7 Fix Pack 5                        * 
****************************************************************
Local-Fix:
manually alter the target table to remove RESTRICT ON DROP 
before running ADMIN_MOVE_TABLE with CANCEL. 
For example, in the above example, 
 
db2 "alter table DB2INST1.\"TAB1AABYVRt\" drop restrict on drop" 
db2 "call 
admin_move_table('DB2INST1','TAB1','','','','','','','','','CANC 
EL')"
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
First fixed in Version 9.7 Fix Pack 5.
Workaround
keiner bekannt / siehe Local-Fix
Weitere Daten
Datum - Problem gemeldet    :
Datum - Problem geschlossen :
Datum - der letzten Änderung:
04.05.2011
21.12.2011
21.12.2011
Problem behoben ab folgender Versionen (IBM BugInfos)
9.7.FP5
Problem behoben lt. FixList in der Version
9.7.0.5 FixList