1.恢复online redo log方法
startup mount
recover database until cancel using backup controlfile
选择cancel
alter database open resetlogs
2.恢复数据文件
假如app01.dbf数据丢失
cp /u01/backup/hot/app01.dbf /u01/oradata/orcl/app01.dbf
alter databse datafile 5 offline
SQL> select * from v$recover_file;
FILE# ONLINE ONLINE_ ERROR CHANGE# TIME
---------- ------- ------- ------------------ ---------- ---------
5 OFFLINE OFFLINE FILE NOT FOUND 0
recover datafile 5;
alter database datafile 5 online;
假如app02.dbf数据丢失,而且没有备份,但是必须保证归档和联机重做日志完整才能完全恢复
rm -f app02.dbf
alter database datafile 6 offline
alter database create datafile '/u01/oradata/orcl/app02.dbf';
recover datafile 6
alter database datafile 6 online;
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/25604225/viewspace-715418/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/25604225/viewspace-715418/