今日客戶進行shrink lob 碰見報錯:ide
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);spa
ORA-10635: Invalid segment or tablespace type
表空間爲auto
無基於函數index
無表壓縮code
字段類型:APPDATA CLOBit
解決方式:
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)io