今日客户进行shrink lob 遇见报错:
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
表空间为auto
无基于函数index
无表压缩
字段类型:APPDATA CLOB
解决方式:
SELECT ENCRYPT, COMPRESSION, SECUREFILE from dab_lobs where TABLE_NAME=‘emp’ and owner='LEO';
查看表是否为压缩、sourcefile。
如果是,则不可以使用shrink 。
My Oracle Support:How to Shrink a Securefile LOB Using Online Redefinition (DBMS_REDEFINITION)? (Doc ID 1394613.1)