【故障處理】ORA-600:[13013],[5001]故障處理

恩強Boy發表於2020-12-03

報錯資訊如下

ORA-00600: internal error code, arguments: [13013], [5001], [ 403 ], [8407725], [5], [8407725], [17], [], [], [], [], []

Use ADRCI or Support Workbench to package the incident.
   See Note 411.1 at My Oracle Support for error and packaging details.
   Non-fatal internal error happenned while SMON was doing logging scn->time mapping.
   SMON encountered 9 out of maximum 100 non-fatal internal errors.

原因分析

MOS 中關於 ORA-600 [13013] 描述  
Format: ORA-600 [13013] [a] [b] {c} [d] [e] [f]

 
Arg [a] Passcount 
Arg [b] Data Object number 
Arg  [c]  Tablespace Decimal Relative DBA (RDBA) of block containing the row to be updated 
Arg [d] Row Slot number 
Arg [e] Decimal RDBA of block being updated (Typically same as [c]
Arg [f] Code

由於編號為403 的物件索引損壞,導致 600 錯誤

根據找到的檔案號,可以使用dbv 對指定的檔案進行檢查。
如果確實發現邏輯損害,且錯誤發生在索引上,那麼最簡單的辦法莫過於利用DBMS_METADATA 獲取索引的源資料,然後將索引刪除後重建。
如果錯誤發生在表上,且存在備份,可以直接利用BLOCKRECOVER 命令進行恢復。
如果備份不存在,可以利用DBMS_REPAIR 包,或者使用 EVENTS 10231 LEVEL 10 ,跳過壞塊。當然也完全可以透過 ROWID 方式來手工跳過這個錯誤。

SQL> SELECT dbms_utility.data_block_address_file( 8407725 ) rfile,

  2 dbms_utility.data_block_address_block( 8407725 ) blocks

  3 FROM dual;

RFILE      BLOCKS

----------     ----------

149         416939

查詢物件編碼為403 的物件名

SQL> select object_name,object_type,owner from dba_objects where data_object_id= 403 ;

OBJECT_NAME            OBJECT_TYPE         OWNER  

---------------------   -----------------   ------------

SMON_SCN_TIME          TABLE               SYS

SMON_SCN_TO_TIME_AUX   CLUSTER             SYS

查詢 SMON_SCN_TIME  物件的索引

SQL> SELECT index_name FROM dba_indexes WHERE table_name='SMON_SCN_TIME';

INDEX_NAME 
------------------------------ 
SMON_SCN_TIME_SCN_IDX 
SMON_SCN_TIME_TIM_IDX

 

對上面查詢的兩個物件重建索引。

SQL> alter index SMON_SCN_TIME_SCN_IDX rebuild;

SQL> alter index SMON_SCN_TIME_TIM_IDX rebuild;

 

對該表進行統計資訊分析

SQL> ANALYZE TABLE smon_scn_time VALIDATE STRUCTURE CASCADE ONLINE;

 

再看 alert 日誌,再無報錯

 

 

---- end ----

 

 

 


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

相關文章