冷备份恢复

 

干净关闭数据库

拷贝所有datafile,controlfile,redo

当数据库出问题时,恢复需要把所有的备份拷贝到指定位置

文件名字不能带一串数字,可以是.dbf  .ctl .log

startup nomount

alter system set control_files=     scope=spfile;

shutdown immediate

startup mount

alter database rename file '' to '';

recover database using backup controlfile until cancel;

alter database open resetlogs;

--------------------------------------------------------------------------

                t1               t2

t1时刻冷备,t2时刻出问题,冷备只能恢复到t1时刻,t1到t2之间所做的操作全部丢失

原文地址:https://www.cnblogs.com/wwxbi/p/4216780.html