home clear 64x64
en blue 200x116 de orange 200x116 info letter User
suche 36x36
Latest versionsfixlist
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
Have problems? - contact us.
Register for free anmeldung-x26
Contact form kontakt-x26

DB2 - Problem description

Problem IC76154 Status: Closed

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

product:
DB2 FOR LUW / DB2FORLUW / 970 - DB2
Problem description:
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 Summary:
**************************************************************** 
* 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')"
available fix packs:
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

Solution
First fixed in Version 9.7 Fix Pack 5.
Workaround
not known / see Local fix
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
04.05.2011
21.12.2011
21.12.2011
Problem solved at the following versions (IBM BugInfos)
9.7.FP5
Problem solved according to the fixlist(s) of the following version(s)
9.7.0.5 FixList