小结Oracle8i 的UNDO表空间损坏(ORA-01092及ORA-00600【4193】)情况下的数据库不完全恢复的阅历

服务器断电重启发引导致备份生产条件的还原目录库不只怕进展运维,提示Ora-01092例程终止。强行断开连接

查看跟踪日志:

Wed Jan 10 08:41:37 2018

Errors in file d:\Oracle\admin\l3bckdb\bdump\l3bckdbSMON.TRC:

ORA-00600: internal error code, arguments: [4193], [1836], [1844],
[], [], [], [], []

 

Wed Jan 10 08:41:39 2018

Errors in file d:\Oracle\admin\l3bckdb\bdump\l3bckdbSNP1.TRC:

ORA-00600: internal error code, arguments: [4193], [1926], [1934],
[], [], [], [], []

 

Recovery of Online Redo Log: Thread 1 Group 3 Seq 15 Reading mem 0

  Mem# 0 errs 0: D:\ORACLE\ORADATA\L3BCKDB\REDO01.LOG

Wed Jan 10 08:41:42 2018

Recovery of Online Redo Log: Thread 1 Group 3 Seq 15 Reading mem 0

  Mem# 0 errs 0: D:\ORACLE\ORADATA\L3BCKDB\REDO01.LOG

Wed Jan 10 08:41:42 2018

SMON: terminating instance due to error 600

Instance terminated by SMON, pid = 2744

 C++ 1

 

检索有关材质,发现RA-600[4913]错误的2个argument的含义,
该ORA-600[4913]属于内核undo事务模块

[1836] Undo record seq number

[1844] Redo record seq number

是因为UNDO种类和REDO连串分化引发错误。

消除办法:重建UNDO表空间,步骤如下:

C:/>set nls_lang=american_america.zhs16gbk

C:/>sqlplus “/ as sysdba”

SQL*Plus: Release 8.1.7.0.0 – Production on 星期三 1月 10 11:28:47 2018

(c) Copyright 2000 Oracle Corporation. All rights reserved.

 

连接到:

 Oracle8i Enterprise Edition Release 8.1.7.0.0  – Production

With the Partitioning option

JServer Release 8.1.7.0.0 – Production

 C++ 2

SQL> select file#,name from v$datafile where file#=2;

FILE# NAME


2 D:/ORACLE/ORADATA/BCCHECK/RBS01.DBF

SQL> shutdown immediate

ORA-01109: 数据库未打开。

 

业已卸载数据库。

ORACLE例程已关闭。

 

将init.ora文件中的ROLLBACK_SEGMENTS开首化参数设置注释后以Restricted方式MOUNT数据库。

#rollback_segments = ( RBS0, RBS1, RBS2, RBS3, RBS4, RBS5, RBS6 )

SQL> startup restrict mount

ORACLE例程已开行。

Total System Global Area 219895052 bytes

Fixed Size 70924 bytes

Variable Size 75116544 bytes

Database Buffers 144629760 bytes

Redo Buffers 77824 bytes

数据库装载完毕。

 

在线drop损坏的rbs数据文件,然后重试打开数据库

 C++ 3

 

 

 

SQL> drop tablespace rbs including contents;

drop tablespace rbs including contents

*

ERROR 在行 1:

ORA-01548: active rollback segment ‘RBS0’ found, terminate dropping
tablespace

— 报错ORA-01548,声明有移动回滚段

 

SQL> select segment_name,tablespace_name,status from
dba_rollback_segs;

SEGMENT_NAME TABLESPACE_NAME STATUS



SYSTEM SYSTEM ONLINE

RBS0 RBS NEEDS RECOVERY

RBS1 RBS NEEDS RECOVERY

RBS2 RBS NEEDS RECOVERY

RBS3 RBS NEEDS RECOVERY

RBS4 RBS NEEDS RECOVERY

RBS5 RBS NEEDS RECOVERY

RBS6 RBS NEEDS RECOVERY

已选择8 行

SQL> shutdown immediate


不奇怪关闭数据库出席富含函数_corrupted_rollback_segments,修改参数文件到场富含参数

_corrupted_C++,rollback_segments=(RBS0,RBS1,RBS2,RBS3,RBS4,RBS5,RBS6)后以restricted格局打开数据库

SQL> startup restrict

SQL> select segment_name,tablespace_name,status from
dba_rollback_segs;

SEGMENT_NAME TABLESPACE_NAME STATUS



SYSTEM SYSTEM ONLINE

RBS0 RBS NEEDS RECOVERY

RBS1 RBS NEEDS RECOVERY

RBS2 RBS NEEDS RECOVERY

RBS3 RBS NEEDS RECOVERY

RBS4 RBS NEEDS RECOVERY

RBS5 RBS NEEDS RECOVERY

RBS6 RBS NEEDS RECOVERY

已选择 8 行

SQL> drop tablespace rbs including contents;

drop tablespace rbs including contents

*

ERROR 在行 1:

ORA-01548: active rollback segment ‘RBS0’ found, terminate dropping
tablespace

强制删除所急需的回滚段

 C++ 4

 

 

删除包蕴损坏回滚段表空间后,并初步树立回滚段表空间

 C++ 5

 

 

询问回滚段状态

 C++ 6

 

常规关闭数据库,并将参数文件中的隐含参数_corrupted_rollback_segments注释,并将ROLLBACK_SE放线菌壮观素ENTS参预全数的回滚段。

 C++ 7

 

正规运营数据库

 C++ 8