使用alter index xxxx rebuild online 命令重新建立了索引,遇到这个错误
ora-08106 can not create journal table SCOTT.SYS_JOURNAL_30447
解决方法,RENMAE这个SYS_JOURNAL_30447表重新执行创建语句就成功了。
疑问:
一、这个错误是如何产生的。
二、journal table 是什么
三、为什么把这个SYS_JOURNAL_30447rename以后就可以建立索引了。
Description:
08106, 00000, "can not create journal table %s.%s"
// *Cause: online index builder can not create its journal table
// *Action: rename your table in conflict
在线 rebuild 索引 : 语法:Alter index index_name rebuild online ; 当发出该命令的时候,原来的老索引保留不动,并且允许用户访问原来的索引。针对该索引的所有DML 操作,都将记录在 Journal table 中(Any alterations to the old index are recorded in a Index Organized Table known as a "journal table".) 一旦rebuild 工作完成,这个journal table 将与新的所有merge;一旦这个merge的动作结束,数据字典信息将被更新,同时,原来的索引将被删除。在整个rebuild 的过程中,只有在更新数据字典信息的时候,才会对DML 操作有所控制,但是这个时间是很短的
重建索引ora-08106错误 的另一种解决方式
就是直接等待,5分钟后,smon/pmon 会帮你清除journal table
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/10173379/viewspace-617755/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/10173379/viewspace-617755/