Unix Technical Forum

Shrinking "automatic storage" tablespaces

This is a discussion on Shrinking "automatic storage" tablespaces within the DB2 forums, part of the Database Server Software category; --> Folks, I've got a database and tablespaces "managed by automatic storage". I've deleted a lot of data from some ...


Go Back   Unix Technical Forum > Database Server Software > DB2

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 07:16 AM
Philip Nelson
 
Posts: n/a
Default Shrinking "automatic storage" tablespaces

Folks,

I've got a database and tablespaces "managed by automatic storage".

I've deleted a lot of data from some tables. I've then reorged them. But
the tablespaces don't appear to shrink in size (they just have lots of free
space).

How can I get DB2 to give the space back ?

Being automatic storage I can't use an ALTER TABLESPACE ... RESIZE.

Thanks

Phil Nelson

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 07:16 AM
Shashi Mannepalli
 
Posts: n/a
Default Re: Shrinking "automatic storage" tablespaces

Did u check the HIGH WATER MARK for these tablespace?
Did u try to do a OFFLINE REORG on all these tables?

If that didn't help try db2dart ..check in the manuals for /DHWM and
/LHWM

cheers..
Shashi Mannepalli


Philip Nelson wrote:
> Folks,
>
> I've got a database and tablespaces "managed by automatic storage".
>
> I've deleted a lot of data from some tables. I've then reorged them. But
> the tablespaces don't appear to shrink in size (they just have lots of free
> space).
>
> How can I get DB2 to give the space back ?
>
> Being automatic storage I can't use an ALTER TABLESPACE ... RESIZE.
>
> Thanks
>
> Phil Nelson


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-27-2008, 07:17 AM
Philip Nelson
 
Posts: n/a
Default Re: Shrinking "automatic storage" tablespaces

Shashi Mannepalli wrote:
> Did u check the HIGH WATER MARK for these tablespace?
> Did u try to do a OFFLINE REORG on all these tables?
>
> If that didn't help try db2dart ..check in the manuals for /DHWM and
> /LHWM
>
> cheers..
> Shashi Mannepalli
>
>
> Philip Nelson wrote:
>
>>Folks,
>>
>>I've got a database and tablespaces "managed by automatic storage".
>>
>>I've deleted a lot of data from some tables. I've then reorged them. But
>>the tablespaces don't appear to shrink in size (they just have lots of free
>>space).
>>
>>How can I get DB2 to give the space back ?
>>
>>Being automatic storage I can't use an ALTER TABLESPACE ... RESIZE.
>>
>>Thanks
>>
>>Phil Nelson

>
>


HWM was the first thing I thought of, but that isn't the problem.

It looks like automatic storage doesn't like shrinking tables, only
growing them.

Maybe I need to raise an "enhancement request" ?

Phil
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-27-2008, 07:17 AM
Serge Rielau
 
Posts: n/a
Default Re: Shrinking "automatic storage" tablespaces

Philip Nelson wrote:
> Maybe I need to raise an "enhancement request" ?

Please do.


--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab

IOD Conference
http://www.ibm.com/software/data/ond...ness/conf2006/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-27-2008, 07:17 AM
Josh Tiefenbach
 
Posts: n/a
Default Re: Shrinking "automatic storage" tablespaces

> I've deleted a lot of data from some tables. I've then reorged them. But
> the tablespaces don't appear to shrink in size (they just have lots of free
> space).
>
> How can I get DB2 to give the space back ?


Right now, the only way you can do this is to export the data,
drop/recreate the tablespace, and re-import the data.

jsoh

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:00 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com