ORA-29860: cannot truncate a table with domain indexes marked LOADING ORACLE 报错 故障修复 远程处理
文档解释
ORA-29860: cannot truncate a table with domain indexes marked LOADING
Cause: The table has domain indexes defined on it that are marked LOADING.
Action: Wait to see if the ongoing index DDL ends and the index state changes from LOADING state. Else ,drop the domain indexes marked as LOADING with the FORCE option.
ORA-29860: cannot truncate a table with domain indexes marked LOADING 这是一个错误码,表明在尝试TRUNCATE一个表时,含有一个域索引,而这个索引处于“正在加载”状态。
官方解释
一般处理方法及步骤
1.查找包括域索引的表:
SELECT * FROM DBA_INDEXES WHERE TABLE_NAME = ;
2.查看域索引的状态:
SELECT * FROM DBA_IND_STATISTICS WHERE TABLE_NAME = ;
3.如果状态为LOADING,则重建域索引,重复步骤2,查看状态:
ALTER INDEX REBUILD ONLINE;
4.在域索引已被重新构建为ENABLED状态之后,移除所有数据:
TRUNCATE TABLE ;