468,277 Members | 1,553 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,277 developers. It's quick & easy.

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

Jun 6 '06 #1
4 4807
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


Jun 7 '06 #2
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
Jun 7 '06 #3
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/
Jun 7 '06 #4
> 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

Jun 7 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Ameen Dausha | last post: by
3 posts views Thread by Mark | last post: by
reply views Thread by zattat | last post: by
1 post views Thread by MrBee | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.