How to reclaim storage for deleted LOBs

Posted by Jim Hudson on Stack Overflow See other posts from Stack Overflow or by Jim Hudson
Published on 2010-06-14T16:08:54Z Indexed on 2010/06/14 16:12 UTC
Read the original article Hit count: 1147

Filed under:

I have a LOB tablespace. Currently holding 9GB out of 12GB available. And, as far as I can tell, deleting records doesn't reclaim any storage in the tablespace. I'm getting worried about handling further processing.

This is Oracle 11.1 and the data are in a CLOB and a BLOB column in the same table. The LOB Index segments (SYS_IL...) are small, all the storage is in the data segments (SYS_LOB...)

We'e tried purge and coalesce and didn't get anywhere -- same number of bytes in user_extents.

"Alter table xxx move" will work, but we'd need to have someplace to move it to that has enough space for the revised data. We'd also need to do that off hours and rebuild the indexes, of course, but that's easy enough.

Copying out the good data and doing a truncate, then copying it back, will also work. But that's pretty much just what the "alter table" command does.

Am I missing some easy ways to shrink things down and get the storage back? Or is "alter table xxx move" the best approach? Or is this a non-issue and Oracle will grab back the space from the deleted lob rows when it needs it?

© Stack Overflow or respective owner

Related posts about Oracle