oracle 9.2.0.4 資料庫truncate表-ORA-00600:[ktsircinfo_num1之看似bug???

rongshiyuan發表於2012-09-28
oracle 9.2.0.4 資料庫truncate表報錯:
ORA-00600: internal error code, arguments: [ktsircinfo_num1], [13], [0], [0], [], [], [], []
其實,在truncate之前,曾在該表上執行了建立索引操作create index 。。。online時,會話被意外kill了;
再來刪除該表的上的索引:
SQL> drop index wap_user.idx_AM_MONITOR_DATA_MONITORID;
drop index wap_user.idx_AM_MONITOR_DATA_MONITORID
                    *
ERROR at line 1:
ORA-08104: this index object 1024126 is being online built or rebuilt
 
報ORA-08104錯誤,通過處理內部資料字表來處理(需謹慎)
1.獲取使用者下表SYS_JOURNAL_#index_object_id並刪除
SQL> select object_name
  2    from dba_objects
  3   where object_name like
  4         (select '%' || object_id || '%'
  5            from dba_objects
  6           where object_name = '&INDEX_NAME')
  7  /
Enter value for index_name: IDX_AM_MONITOR_DATA_MONITORID
old   6:          where object_name = '&INDEX_NAME')
new   6:          where object_name = 'IDX_AM_MONITOR_DATA_MONITORID')
OBJECT_NAME
--------------------------------------------------------------------------------------------------------------------------------
SYS_JOURNAL_1024126
 
SQL> drop table wap_user.SYS_JOURNAL_1024126;
Table dropped.
2.刪除IND$表中對應記錄(需謹慎)
SQL> delete from IND$ where obj#=&INDEX_OBJECT_ID
  2  ;
Enter value for index_object_id: 1024126
old   1: delete from IND$ where obj#=&INDEX_OBJECT_ID
new   1: delete from IND$ where obj#=1024126
1 row deleted.
Elapsed: 00:00:00.00
 
3.truncate 成功
SQL> truncate table wap_user.AM_MONITOR_DATA_ALL_O;
Table truncated.
Elapsed: 00:00:50.87
 
 

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/17252115/viewspace-745403/,如需轉載,請註明出處,否則將追究法律責任。

相關文章