你好,游客 登录 注册 搜索
背景:
阅读新闻

online rebuild index异常终止遇到ORA-08104

[日期:2012-10-22] 来源:Linux社区  作者:xiexingzhi [字体:大 中 小]

解决一:
 
在10g中用dbms_repair.online_index_clean来清除创建索引的失败的遗留


DECLARE
  RetVal BOOLEAN;
  OBJECT_ID BINARY_INTEGER;
  WAIT_FOR_LOCK BINARY_INTEGER;
BEGIN
  OBJECT_ID := 67420;
--  我的数据库中非法索引的id为67420.
  WAIT_FOR_LOCK := NULL;
  RetVal := SYS.DBMS_REPAIR.ONLINE_INDEX_CLEAN ();
  COMMIT;
END;
/
 
 
注意:dbms_repair.online_index_clean这个函数一定要有返回值,否则会失败的
 
解决二:(这种方法没测试成功)
 
唤醒SMON:
WAKEUP command  :To wake up a process use
    ORADEBUG WAKEUP pid
For example to wake up SMON, first obtain the PID using
    SELECT pid FROM v$process
    WHERE addr =
    (
        SELECT paddr FROM v$bgprocess
        WHERE name = 'SMON'
    );


If the PID is 6 then send a wakeup call using
  sql > ORADEBUG WAKEUP 6
 
记录一下SMON的功能及其触发频率(9i):
 
Merging free extents or coalescing: every five minutes.
Cleaning up temporary segments: every two hours.
Updating SMON_SCN_TIME for used in time based flashback: every five minutes.
Cleaning up non existent objects in OBJ$: every 12 hours.
Cleaning up IND$ if online builder crashes: every hour.
Shrink undo segments:every 12 hours.
Transaction recovery only on startup.
Transaction rollback of dead transaction when posted by PMON, allowing the use of fast start parallel rollback if necessary.

linux
相关资讯       Oracle错误代码  ORA-08104  online rebuild index 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款