9.oracle空间不足宕机,启库报错

现象:

有个oracle空间不足崩掉了,扩容后现在open不起来,报:

ERROR at line 1:

ORA-01113:file 1 needs media recovery

ORA-01110:data file 1:'/oracle/GCM/data/1_SYSTEM.datafile1.dbf‘

检查:查到文件头不一致,需要强拉

set numw 30
select file#,checkpoint_change# from v$datafile_header;

解决:

1.修改参数文件,加上下面几个参数

*event="21307096 trace name context forever,level 1"

*._allow_error_simulation=TRUE

*._allow_resetlogs_corruption=TRUE

2.启动库到nomount状态

3.创建控制文件

create  controlfile reuse set database "xxx" resetlogs force logging noarchivelog

xxxx

xxxx

4.恢复recover database using backup controlfile until cancel;

5.打开alter database open resetlogs;

 

posted on 2022-05-25 16:58  太白金星有点烦  阅读(162)  评论(0)    收藏  举报

导航