If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > How to vacuum a tablespace? How to move a container?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-11-07, 15:43
akaraivanov akaraivanov is offline
Registered User
 
Join Date: Nov 2003
Posts: 42
How to vacuum a tablespace? How to move a container?

Hello,

I have 2 questions:

1) Imagine I have a db with automatic storage where a lot of the data were delete. I would very much like vacuum (defragment) the tablespaces so that the containers can be shrinked. Is that possible?
2) Is it possible to move a container from one filesystem to another (if possible while the db is online) ?

We are running on db2 v8.1 FP12 for linux.

Any hints would be highly appreciated!

Thanks
Alexander.
Reply With Quote
  #2 (permalink)  
Old 11-12-07, 08:01
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
1) use reorg
2) use db2relocatedb

Andy
Reply With Quote
  #3 (permalink)  
Old 11-22-07, 04:07
akaraivanov akaraivanov is offline
Registered User
 
Join Date: Nov 2003
Posts: 42
Thank you Andy.

1) reorg can do deframentation but how can I shrink the containers. db2 will not let me do it for db with automatic storage. Do you have an idea how that could be done?

2) one can use db2relocatedb and move one or more containers for db with *no* auto storage (that worked for me with CONT_PATH). I count not use CONT_PATH for db with auto storage. I tried to use STORAGE_PATH and move all containers but that did not work for me. Moving a single container seems not possible with db with auto storage
Reply With Quote
  #4 (permalink)  
Old 11-22-07, 06:27
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
AFAIK, you cannot do either of them with the current AUTOSTORAGE capabilities.

Redirected Restore seems to be the only option.


Quote:
Originally Posted by akaraivanov
Thank you Andy.

1) reorg can do deframentation but how can I shrink the containers. db2 will not let me do it for db with automatic storage. Do you have an idea how that could be done?

2) one can use db2relocatedb and move one or more containers for db with *no* auto storage (that worked for me with CONT_PATH). I count not use CONT_PATH for db with auto storage. I tried to use STORAGE_PATH and move all containers but that did not work for me. Moving a single container seems not possible with db with auto storage
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On