步驟
類似下面的
CREATE CONTROLFILE REUSE DATABASE
MAXLOGFILES
MAXLOGMEMBERS
MAXDATAFILES
MAXINSTANCES
MAXLOGHISTORY
LOGFILE
GROUP
GROUP
GROUP
GROUP
GROUP
GROUP
DATAFILE
CHARACTER SET US
;
sqlplus internal或者sqlplus /nolog ; conn / as sysdba
startup nomount
@aaa
shutdown
startup mount
recover using backup controlfile until cancel;
直到所有的archive log file都用完了
注意!如果你的archive 和init中定義的不一致
recover automatic from
(
成功恢復過程
rcp
Oracle_home>bin/svrmgrl
SVRMGR> connect internal
SVRMGR> startup mount
SVRMGR> recover database until cancel using backup controlfile;
出現輸入提示時輸入AUTO
SVRMGR> alter database open RESETLOGS;
SVRMGR> archive log list;
應出現
Oldest online log sequence
Next log sequence to archive
Current log sequence
其恢復過程如下
丟失所有數據文件
成功恢復過程
rcp
Oracle_home>bin/svrmgrl
SVRMGR> connect internal
SVRMGR> startup mount
SVRMGR> recover database until cancel using backup controlfile;
出現輸入提示時輸入AUTO
SVRMGR> alter database open RESETLOGS;
SVRMGR> archive log list;
應出現
Oldest online log sequence
Next log sequence to archive
Current log sequence
From:http://tw.wingwit.com/Article/program/Oracle/201311/18308.html