分类: Oracle
2012-06-11 10:48:57
如果中断,不能重新运行改命令,需要手工清除:
select owner, object_id from dba_objects where object_name='&index_name';
select obj#,flags from ind$ where obj#=&obj_id;
DECLARE
RetVal BOOLEAN;
BEGIN
RetVal := SYS.DBMS_REPAIR.ONLINE_INDEX_CLEAN( &&obj_id );
END;
/
select obj#,flags from ind$ where obj#=&obj_id;
如果flags仍然是514,标示没有成功
同理,要清除工作成功,需要该表的事务先提交
详细案例分析,请参考帖子