Index XXX or partition of such index is in unusable state

問題: 刪除oracl數據庫中某張表的某條記錄時報錯: index "SYS.IX_target" or partition of such index is in unusable state 解決方案: --查詢UNUSABLE狀態的index select index_name, status, owner from dba_indexes where STATUS = 'UNUSABLE'; --組裝從新編譯index的sql語句 select 'alter index '||owner||'.'||index_name||' rebuild;' from dba_indexes where STATUS = 'UNUSABLE'; --執行組裝好的語句 alter index SYS.IX_target rebuild;
相關文章
相關標籤/搜索