By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,027 Members | 1,088 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,027 IT Pros & Developers. It's quick & easy.

Shrinking "automatic storage" tablespaces

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
> 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.