以下是我做的恢复尝试(但愿没有起反效果)
1、>alter database create datafile 35 as '/sett_his/data_my/oradata/MY_SETTLE2.dbf.dbf';
ORA-02236: invalid file name
2、alter database datafile '/sett_his/data_my/oradata/MY_SETTLE2.dbf.dbf' offline drop;
数据库已更改。
--后来发现在v$datafile中一直可以看到MY_SETTLE02.dbf.dbf。状态是
rfile# status enabled
-----------------------------
35 recover read write
--状态一直是recover,怎么都改不了,也不能offline。这是为什么?!
这时做:
3、>alter database open;
ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
SVRMGR> alter database open resetlogs;
alter database open resetlogs
*
ORA-01194: file 1 needs more recovery to be consistent
ORA-01110: data file 1: '/bill/ora817/oradata/ora8i/system01.dbf'
--这里为什么会报data file 1: '/bill/ora817/oradata/ora8i/system01.dbf'我一直想不通。难道是因为做了shutdown abort的原因?!
4、
SVRMGR> alter database open NORESETLOGS;
alter database open NORESETLOGS
*
ORA-01610: recovery using the BACKUP CONTROLFILE option must be done
SVRMGR> recover database;
ORA-00283: recovery session canceled due to errors
ORA-01610: recovery using the BACKUP CONTROLFILE option must be done
--为什么会这么提示,是不是做了shutdown abort就必须做recover database using backup controlfile?!
5、提示需要介质恢复,于是我就找到了添加MY_SETTLE02.dbf.dbf的时间点:
>recover database using backup controlfile until time '2005-3-2 14:07:54';
这里同样提示data file 1: '/bill/ora817/oradata/ora8i/system01.dbf'需要恢复。
另外做>recover database using backup controlfile until time '2005-3-2 14:07:54';
的时候提示恢复已完成但data file 1: '/bill/ora817/oradata/ora8i/system01.dbf'需要恢复。这里control file是备份了的。
从头到尾就是offline drop 和 recover backup controlfile 对数据库产生了影响。其它命令都没有成功。