ITPub博客

首页 > 数据库 > Oracle > ORA-08104: this index object 556463 is being online built or rebuilt

ORA-08104: this index object 556463 is being online built or rebuilt

原创 Oracle 作者:zjjxyh 时间:2022-10-21 11:18:34 0 删除 编辑

drop index idx_sfz_hm;
        ORA-08104: this index object 556463 is being online built or rebuilt
        尝试使用rebuild的时候同样报错
        以上的原因主要由于在创建索引时中间被异常中断。此时smon进程会去尝试着清理。正常情况下我们是不需要干涉的,smon会自动
        清理创建索引是产生的锁和资源,然而SMON清理时可能不能以NOWAIT形式得到一个对象上的锁它只会稍后再试,在一个高并发环境下
        大量的事务会导致smon不能及时的获取到锁资源,其他情况比如对表未提交的事务也将导致SMON不能重建索引或删除索引。
        在以上情况下就需要我们手动的干涉及时清理:
        Solution
        # su –  oracle
        $ sqlplus / as sysdba
        SQL*Plus: Release 11.2.0.3.0 Production on Tue Jan 6 11:57:15 2015
        Copyright (c) 1982, 2011,  Oracle .  All rights reserved.
        Connected to:
        Oracle Database  11g  Enterprise Edition Release 11.2.0.3.0 – 64 bi t Production
        With the Partitioning, OLAP, Data Mining and Real Application Testing options
        SQL> DECLARE
          2  isClean BOOLEAN;
          3  BEGIN
          4  isClean := DBMS_REPAIR.ONLINE_INDEX_CLEAN();
          5  END;
          6  /
        PL/SQL procedure successfully completed.

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/27192222/viewspace-2919560/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2013-01-20

  • 博文量
    52
  • 访问量
    31172