shrink lob

Today, customers shrink lob met error:

ALTER TABLE leo.emp MODIFY LOB (APPDATA) (SHRINK SPACE);
ORA-10635: Invalid segment or tablespace type

过程如下:
alter table leo.emp enable row movement;
ALTER TABLE leo.emp MODIFY LOB (APPDATA) (SHRINK SPACE);

ORA-10635: Invalid segment or tablespace type

Table space is auto
-free function-based index
compression without table

Field Type: APPDATA CLOB

Solution:
the SELECT ENCRYPT, the COMPRESSION, SECUREFILE from dab_lobs the WHERE TABLE_NAME = 'emp' and owner = 'LEO';
see if the table is compressed, sourcefile.
If so, you can not use shrink.
My Oracle Support:? How to Shrink a Securefile LOB Using Online Redefinition (DBMS_REDEFINITION) (Doc ID 1394613.1)

Guess you like

Origin blog.51cto.com/11298469/2448345