dbTalk Databases Forums  

Convert Existing Tablespaces to enable RECLAIMABLE Storage

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


Discuss Convert Existing Tablespaces to enable RECLAIMABLE Storage in the comp.databases.ibm-db2 forum.



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

Default Convert Existing Tablespaces to enable RECLAIMABLE Storage - 08-02-2012 , 04:41 PM






Can someone please advise how I can go about converting existing tablespaces to enable RECLAIMABLE Storage. Would a redirected restore do the trick ? Also what if any are the advantages of also converting to LARGE ?

Tablespaces in question are all DMS configured with MANAGED BY AUTOMATIC STORAGE, 2 containers on 2 discs per tablespace.

Many thanks, Fin.

Reply With Quote
  #2  
Old   
Luiz da Silva
 
Posts: n/a

Default Re: Convert Existing Tablespaces to enable RECLAIMABLE Storage - 08-03-2012 , 12:29 AM






On Thursday, August 2, 2012 11:41:01 PM UTC+2, Fin wrote:
Quote:
Can someone please advise how I can go about converting existing tablespaces to enable RECLAIMABLE Storage. Would a redirected restore do the trick ? Also what if any are the advantages of also converting to LARGE ?



Tablespaces in question are all DMS configured with MANAGED BY AUTOMATIC STORAGE, 2 containers on 2 discs per tablespace.



Many thanks, Fin.
Hi Fin,

What's the version you're currently running?

Luiz

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

Default Re: Convert Existing Tablespaces to enable RECLAIMABLE Storage - 08-03-2012 , 03:59 AM



Express-C 10.1 LUW on WIndows 7 Pro.

Reply With Quote
  #4  
Old   
Luiz da Silva
 
Posts: n/a

Default Re: Convert Existing Tablespaces to enable RECLAIMABLE Storage - 08-03-2012 , 04:23 AM



On Friday, August 3, 2012 10:59:14 AM UTC+2, Fin wrote:
Quote:
Express-C 10.1 LUW on WIndows 7 Pro.
If the tablespaces were created in a 9.7 or above, you should have no problem to use "ALTER TABLESPACE" with "REDUCE" option... Are you facing any issue?

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

Default Re: Convert Existing Tablespaces to enable RECLAIMABLE Storage - 08-03-2012 , 04:40 AM



Yeah, sadly my Tablespaces were not created in 9.7 or above so the alter tablespace command fails. I have literally hundreds of tables that have indexes in my INDEXES tablespace and I was hoping there was a command or procedure somewhere I am missing to convert the tablespace to allow reclaimable storage. Unloading and reloading the tables is out of the question, as is moving tables via the admin move table util. I am not doing that hundreds of times simply to lower the high water mark on the indexes tablespace.

Reply With Quote
  #6  
Old   
Luiz da Silva
 
Posts: n/a

Default Re: Convert Existing Tablespaces to enable RECLAIMABLE Storage - 08-03-2012 , 05:33 AM



On Friday, August 3, 2012 11:40:02 AM UTC+2, Fin wrote:
Quote:
Yeah, sadly my Tablespaces were not created in 9.7 or above so the alter tablespace command fails. I have literally hundreds of tables that have indexes in my INDEXES tablespace and I was hoping there was a command or procedure somewhere I am missing to convert the tablespace to allow reclaimable storage. Unloading and reloading the tables is out of the question, as is moving tables via the admin move table util. I am not doing that hundreds oftimes simply to lower the high water mark on the indexes tablespace.
In our shop, we faced the same situation and we've chosen this approach:
1) Create a new database.
2) Configure Federation/Nicknames
3) Loop through all tables using Load from Cursor in the new db.

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 - 2013, Jelsoft Enterprises Ltd.