1. 程式人生 > >oracle 宕機後文件損壞resetlogs後處理

oracle 宕機後文件損壞resetlogs後處理

ora-00600 13013

數據庫意外宕機,歸檔開了,但是歸檔文件損壞,redo損壞,在強行拉起來之後UNDO報錯,設置_corrupted_rollback_segments 跳過不一致的UNDO,重建UNOD表空間,接著報錯:SMON encountered 100 out of maximum 100 non-fatal internal errors. 然後數據庫自動宕機,報錯處理如下:
1ORA-00600: internal error code, arguments: [13013], [5001], [458], [4197442], [6], [4197442], [3], [], [], [], [], []

Arg [a] Passcount 錯誤代碼5001

Arg [b] Data Object number 即object_id=458
Arg [c] Tablespace Relative DBA of block containing the row to be updated
Arg [d] Row Slot number
Arg [e] Relative DBA of block being updated (should be same as [c])
Arg [f] Code 3 update~~

select object_name,owner,object_type from dba_objects where object_id=458
analyze table mon_mods$ validate structure cascade;
ALTER INDEX I_MON_MODS$_OBJ REBUILD;
create table mod_mods_bak as select * from mon_mods$;
truncate table mon_mods$;
INSERT INTO MON_MODS$ SELECT * fROM MON_MODS_BAK;
select count(*) from mon_mods$;

2 OBJD=267 smon_scn_time報錯

Corrupt Block Found
TSN = 1, TSNAME = SYSAUX
RFN = 2, BLK = 133475, RDBA = 8522083
OBJN = 269, OBJD = 267, OBJECT = , SUBOBJECT =
SEGMENT OWNER = , SEGMENT TYPE =

select object_name,owner,object_type from dba_objects where object_id=267;
analyze table SMON_SCN_TIME validate structure cascade;

果斷報錯

select dbms_metadata.get_ddl(‘CLUSTER‘,‘SMON_SCN_TO_TIME_AUX‘,‘SYS‘) from dual;
   CREATE CLUSTER "SYS"."SMON_SCN_TO_TIME_AUX"  (
        "THREAD" NUMBER )
  PCTFREE 10 PCTUSED 40 INITRANS 2 MAXTRANS 255
  STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
  BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  TABLESPACE "SYSAUX"
  PARALLEL (DEGREE 1 INSTANCES 1)
 select dbms_metadata.get_ddl(‘TABLE‘,‘SMON_SCN_TIME‘,‘SYS‘) from dual;
CREATE TABLE SYS.SMON_SCN_TIME
(
  THREAD        NUMBER,
  TIME_MP       NUMBER,
  TIME_DP       DATE,
  SCN_WRP       NUMBER,
  SCN_BAS       NUMBER,
  NUM_MAPPINGS  NUMBER,
  TIM_SCN_MAP   RAW(1200),
  SCN           NUMBER                          DEFAULT 0,
  ORIG_THREAD   NUMBER                          DEFAULT 0           /* for downgrade */
)
NOCOMPRESS 
CLUSTER SYS.SMON_SCN_TO_TIME_AUX(THREAD);

3 ORA-00600: internal error code, arguments: [kkpolpd7], [1403], [], [], [], [], [
], [], [], [], [], []

ORA-00600: internal error code, arguments: [kewrose_1], [600]由這個錯誤產生,mmon進程有關,非關鍵進程,可以殺掉重啟,
技術分享圖片

oracle 宕機後文件損壞resetlogs後處理