Svenson's  Bulletin Board Forum Index Svenson's Bulletin Board
Bulletin Board for boat building and model airplane building enthusiasts.
 
AlbumAlbum   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

reduce tablespace - reclaim space - reset high water mark.

 
Post new topic   Reply to topic    Svenson's Bulletin Board Forum Index -> DB2
View previous topic :: View next topic  
Author Message
craig
Site Admin


Joined: 19 Feb 2006
Posts: 40

PostPosted: Wed Jul 09, 2008 4:12 pm    Post subject: reduce tablespace - reclaim space - reset high water mark. Reply with quote

Reorg all tables in the tablespace you wish to reduce.

A) List tablespaces show detail to get tablespaceid to reset.

B) db2dart <dbname> /LHWM /TSI <tbspaceid> /np 0
run the dart command with '/np 0' to find out how low it can be set.

C) get the min pages from the end ot the dart report.

D) run the command again to set the highwater mark.
db2dart <dbname> /LHWM /TSI <tbspaceid> /np <minpages+10%>

The high watermark should be lowered now.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Svenson's Bulletin Board Forum Index -> DB2 All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group