Oracle 8.1.7.4 數據庫故障恢復一例

客戶數據庫版本爲8.1.7.4,數據文件所在磁盤發生故障,故障解決後,數據文件需要recover,並置爲online;
ORA-00376:file 7 cannot be read at this time
ORA-01110:data file 7 。。。

查詢v$recover_file查看需要恢復的數據文件
數據庫通過nbu備份到磁帶,需要從磁帶中恢復數據文件7,8,9.
rman target "sys/manager" nocatalog
run
{allocate channel ch01 type "SBT_TAPE";
restore datafile 7;
recover datafile 7;
}
run
{allocate channel ch01 type "SBT_TAPE";
restore datafile 8;
recover datafile 8;
}
run
{allocate channel ch01 type "SBT_TAPE";
restore datafile 9;
recover datafile 9;
}

alter database open;

確認是否還有需要恢復的數據文件:
select * from v$recover_file;

查看v$datafile中offline的數據文件,分別online各個數據文件:
alter database datafile '......' online;
alter database datafile '......' online;
alter database datafile '......' online;

OK,所有數據文件已恢復完成。數據完成不一致性恢復。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章