I'm trying to shrink a LOB whose owner is TEST and the tablespace it resides is on USERS.
EDIT: Currently, the default tablespace for TEST schema is tablespace called TESTTBL.
I have enabled row movement on the table.
If I try to shrink the particular LOB using:
ALTER TABLE test MODIFY LOB (image) (SHRINK SPACE);
…will it shrink and release space, becuase the schema TEST has default tablespace TESTTBL and data resides in USERS.
Best Answer
I assume you have a Basicfile LOB, because shrink is not supported with Securefile LOBs. The segment is not being moved, so the default tablespace and the tablespace of the segment is not relevant now. So a simple test is:
And the LOB segment became half the size after the shrink operation: