oracle從備份的控制文件進行完全恢復
SYS@orcl#shutdown abort;
ORACLE 例程已經關閉
SYS@orcl#
oracle@oracle:~/product/
恢復管理器
Copyright (c)
已連接到目標數據庫 (未啟動)
RMAN> startup nomount;
Oracle 實例已啟動
系統全局區域總計
Fixed Size
Variable Size
Database Buffers
Redo Buffers
RMAN> restore controlfile from
啟動 restore 於
使用目標數據庫控制文件替代恢復目錄
分配的通道
通道 ORA_DISK_
通道 ORA_DISK_
輸出文件名=/opt/oracle/oradata/ORCL/controlfile/o
輸出文件名=/opt/oracle/flash_recovery_area/ORCL/controlfile/o
完成 restore 於
RMAN> exit
SYS@orcl#select file#
FILE# CREATION_CHANGE# CHECKPOINT_CHANGE#
FILE# CREATION_CHANGE# CHECKPOINT_CHANGE#
已選擇
SYS@orcl#select file#
FILE# CREATION_CHANGE# CHECKPOINT_CHANGE# LAST_CHANGE#
FILE# CREATION_CHANGE# CHECKPOINT_CHANGE# LAST_CHANGE#
已選擇
SYS@orcl#
YS@orcl#alter database open;
alter database open
*
第
ORA
SYS@orcl#alter database open resetlogs;
alter database open resetlogs
*
第
ORA
ORA
SYS@orcl#
嘗試進行恢復
SYS@orcl#recover database using backup controlfile
ORA
ORA
/opt/oracle/flash_recovery_area/ORCL/archivelog/
arc
ORA
指定日志
auto
ORA
ORA
/opt/oracle/flash_recovery_area/ORCL/archivelog/
arc
ORA
ORA
ORA
ORA
/opt/oracle/flash_recovery_area/ORCL/archivelog/
arc
ORA
ORA
ORA
ORA
/opt/oracle/flash_recovery_area/ORCL/archivelog/
arc
ORA
ORA
ORA
ORA
/opt/oracle/flash_recovery_area/ORCL/archivelog/
arc
ORA
ORA
ORA
ORA
/opt/oracle/flash_recovery_area/ORCL/archivelog/
arc
ORA
ORA
ORA
ORA
/opt/oracle/flash_recovery_area/ORCL/archivelog/
arc
ORA
ORA
ORA
ORA
/opt/oracle/flash_recovery_area/ORCL/archivelog/
arc
ORA
ORA
ORA
ORA
/opt/oracle/flash_recovery_area/ORCL/archivelog/
arc
ORA
ORA
ORA
ORA
/opt/oracle/flash_recovery_area/ORCL/archivelog/
arc
ORA
ORA
ORA
ORA
/opt/oracle/flash_recovery_area/ORCL/archivelog/
arc
ORA
ORA
ORA
ORA
/opt/oracle/flash_recovery_area/ORCL/archivelog/
arc
ORA
ORA
ORA
ORA
/opt/oracle/flash_recovery_area/ORCL/archivelog/
arc
ORA
ORA
ORA
ORA
/opt/oracle/flash_recovery_area/ORCL/archivelog/
arc
ORA
ORA
ORA
ORA
/opt/oracle/flash_recovery_area/ORCL/archivelog/
arc
ORA
ORA
ORA
ORA
/opt/oracle/flash_recovery_area/ORCL/archivelog/
arc
ORA
ORA
ORA
ORA
/opt/oracle/flash_recovery_area/ORCL/archivelog/
arc
ORA
ORA
ORA
ORA
/opt/oracle/flash_recovery_area/ORCL/archivelog/
arc
ORA
ORA
ORA
ORA
/opt/oracle/flash_recovery_area/ORCL/archivelog/
arc
ORA
ORA
ORA
ORA
/opt/oracle/flash_recovery_area/ORCL/archivelog/
ORA
ORA
ORA
ORA
/opt/oracle/flash_recovery_area/ORCL/archivelog/
ORA
ORA
_
ORA
ORA
/opt/oracle/flash_recovery_area/ORCL/archivelog/
ORA
ORA
_
ORA
ORA
/opt/oracle/flash_recovery_area/ORCL/archivelog/
ORA
ORA
_
ORA
ORA
/opt/oracle/flash_recovery_area/ORCL/archivelog/
ORA
ORA
_
ORA
ORA
/opt/oracle/flash_recovery_area/ORCL/archivelog/
ORA
ORA
_
ORA
ORA
Linux
Additional information:
SYS@orcl#
查看文件這是最後一個歸檔日志
YS@orcl#select * from v$log;
GROUP# THREAD# SEQUENCE# BYTES MEMBERS ARCHIV STATUS FIRST_CHANGE# FIRST_TIME
完成一次完全恢復
SYS@orcl#alter database open resetlogs;
數據庫已更改
SYS@orcl#
From:http://tw.wingwit.com/Article/program/Oracle/201311/17351.html