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;