dbTalk Databases Forums  

ADMIN_MOVE_TABLE Procedure ?

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


Discuss ADMIN_MOVE_TABLE Procedure ? in the comp.databases.ibm-db2 forum.



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

Default ADMIN_MOVE_TABLE Procedure ? - 06-19-2011 , 03:28 PM






I am looking to reconfigure my bufferpools in an very memory limited
environment. To that end I have numerous tables that I need to move to
different tablespaces. Same schema//table_name, just a different
location for the table and indexes, ideally a seperate tablespace
location for the indexes. At the time of performing such, there would
be no users connected to the db. DB2 Express-C 9.7.4

I have looked at all the online documentation which I find very
confusing as if doesn't explain each of the parameters other than the
existing schema, table_name. Online documentation gives the following
example. I have added the coments

CALL SYSPROC.ADMIN_MOVE_TABLE(
'SVALENTI', --schema
'T1', --table_name
'ACCOUNTING',--new data tablespace ????
'ACCOUNTING',--new index tablespace ????
'ACCOUNTING',--new long tablespace ????
'', --???
'', --???
'', --???
'', --???
'', --???
'MOVE') --action

My other major concern other than the actual moving, is what about the
existing relationships to views, functions, proceduresm foreign keys
etc, Are all these unaffected, redirected, rebound I mean some of the
tables I want to move have many MANY related objects. The
documentation is very poor in mentioning the effect using this
procedure may have on such.

Can some kind soul please explain and point me to some working
examples with comments and confirm re:related objects ?

Many thanks.

Reply With Quote
  #2  
Old   
Serge Rielau
 
Posts: n/a

Default Re: ADMIN_MOVE_TABLE Procedure ? - 06-19-2011 , 07:48 PM






I this the entry you looked at?
http://publib.boulder.ibm.com/infoce.../r0055069.html

Cheers
Serge

--
Serge Rielau
SQL Architect DB2 for LUW, IBM Toronto Lab
Blog: tinyurl.com/SQLTips4DB2
Wiki: tinyurl.com/Oracle2DB2Wiki
Twitter: srielau

Reply With Quote
  #3  
Old   
Fin
 
Posts: n/a

Default Re: ADMIN_MOVE_TABLE Procedure ? - 06-19-2011 , 09:21 PM



LOL .. Nope, that was definately NOT the page I found when searching
for details. That is exactly what I needed.

No mention of referenced UDF's or Procedures however. I know when I go
to drop a table for example that has UDFs referenced to it, it will
NOT allow me to drop and gives the SPECIFICNAME as reference. The
article does mention views and Foreign Keys (Not supported) but no
mention of UDFs or procedures.

When searching for admin_move_table I ended up with these 2 at the top
among others :

http://publib.boulder.ibm.com/infoce.../r0055069.html
http://publib.boulder.ibm.com/infoce.../r0055069.html

Upon looking further, that page you referenced appears about 10th in
the list.

Thanks Serge

Reply With Quote
  #4  
Old   
Fin
 
Posts: n/a

Default Re: ADMIN_MOVE_TABLE Procedure ? - 06-25-2011 , 08:58 PM



I figured my own way out of this one, by using the new AUTO_REVAL
registry param it appears that it will solve the dilemma.

Just so anyone who has the same issue knows.

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.