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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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 |
| |||
| 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 |
| |||
| 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 |
| |||
| 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/ |
| ||||
| > 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 |