Home > Database > Mysql Tutorial > Oracle 9.2.0.4 数据库truncate表-ORA-00600:[ktsircinfo_num1之看似bug

Oracle 9.2.0.4 数据库truncate表-ORA-00600:[ktsircinfo_num1之看似bug

WBOY
Release: 2016-06-07 17:21:23
Original
1591 people have browsed it

oracle 9.2.0.4 数据库truncate表报错:ORA-00600: internal error code, arguments: [ktsircinfo_num1], [13], [0], [0], [], [

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

linux

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template