dbTalk Databases Forums  

canceling admin_move_table fails if source table have restrict ondrop

comp.databases.ibm-db2 comp.databases.ibm-db2


Discuss canceling admin_move_table fails if source table have restrict ondrop in the comp.databases.ibm-db2 forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
hsn_
 
Posts: n/a

Default canceling admin_move_table fails if source table have restrict ondrop - 06-08-2010 , 01:31 AM






db2 => create table z2 (a integer) in alexaidx
DB20000I Příkaz SQL byl úspěšně dokončen.
db2 => alter table z2 add restrict on drop
DB20000I Příkaz SQL byl úspěšně dokončen.
db2 => call sysproc.admin_move_table(current
schema,'Z2','USERSPACE1','USERSPACE
1','USERSPACE1',NULL,NULL,NULL,NULL,NULL,'INIT')


Výsledná sada 1
--------------

KEY VALUE


--------------------------------
---------------------------------------------
--------------------------------------------------------------------------------
---
AUTHID MAJITEL


INDEXNAME


INDEXSCHEMA


INIT_END 2010-06-08-08.24.13.953000


INIT_START 2010-06-08-08.24.13.718000


STAGING Z2AAAAXSs


STATUS COPY


TARGET Z2AAAAXSt


VERSION 09.07.0002



Bylo vybráno 9 záznamů.

Stav při návratu = 0
db2 => call sysproc.admin_move_table(current
schema,'Z2','USERSPACE1','USERSPACE
1','USERSPACE1',NULL,NULL,NULL,NULL,NULL,'CANCEL')
SQL0672N Operace DROP není pro tabulku "MAJITEL.Z2AAAAXSt" povolena.
SQLSTATE=55035

Reply With Quote
  #2  
Old   
Helmut Tessarek
 
Posts: n/a

Default Re: canceling admin_move_table fails if source table have restricton drop - 06-08-2010 , 01:48 PM






This is a bug and I asked the owner of the code to open an APAR. It will be
fixed in the next fixpack.

The only workaround for now is to drop the restrict on drop constraint and to
recreate it afterwards.

On 8.6.2010 02:31, hsn_ wrote:
Quote:
db2 => call sysproc.admin_move_table(current
schema,'Z2','USERSPACE1','USERSPACE
1','USERSPACE1',NULL,NULL,NULL,NULL,NULL,'CANCEL')
SQL0672N Operace DROP není pro tabulku "MAJITEL.Z2AAAAXSt" povolena.
SQLSTATE=55035

--
Helmut K. C. Tessarek
DB2 Performance and Development

/*
Thou shalt not follow the NULL pointer for chaos and madness
await thee at its end.
*/

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.