RMAN恢復資料檔案

2021-04-02 19:25:22 字數 941 閱讀 6442

這個恢復測試主要演示了在歸檔模式下使用

rman

對資料庫的完整恢復

首先備份資料庫

刪除test01.dbf

資料檔案模擬介質故障

再次啟動資料庫

執行在歸檔模式下

sql> startup

oracle

例程已經啟動。

total system global area135338868 bytes

fixed size453492 bytes

variable size109051904 bytes

database buffers25165824 bytes

redo buffers667648 bytes

資料庫裝載完畢。

ora-01157:

無法標識

/鎖定資料檔案

12 -

請參閱dbwr

跟蹤檔案

ora-01110:

資料檔案

12: 'f:/backup/test01.dbf'

使資料檔案離線

sql> archive log start;

已處理的語句

sql> alter database datafile 12 offline;

資料庫已更改。

sql> alter database open;

資料庫已更改。 在

dos下啟動

rman

工具還原資料檔案

恢復資料檔案

sql> alter database datafile 12 online;

資料庫已更改。

訪問表資料

sql> select count(*) from test2;

count(*)

----------3

返回資料,測試結束。

RMAN 恢復丟失的資料檔案

一 系統資料檔案丟失 system undo 前提是一定要有備份,必須要關閉資料庫,啟動到mount階段才能開始恢復 試驗 1.用rman備份資料庫 bakcup database 2.刪除system或undo資料檔案 rm system01.dbf 3.rman還原資料庫 rman restor...

備份恢復 資料檔案

如果不能離線,只能到mount階段恢復 能離線的資料檔案 使用者表空間,sysaux表空間,臨時 表空間 中的資料檔案 不能離線的資料檔案 system表空間,nudo表空間中的資料檔案 可離線的資料檔案損壞 1 如果現在資料庫已經open了,讓資料檔案離線 可以用資料檔案編號,也可以指定資料檔案路...

rman恢復案例 丟失所有的資料檔案

1.1.丟失所有的 資料檔案 大前提,控制檔案和日誌檔案沒有損壞。1.1.1.模擬 丟失所有的 資料檔案 rman shutdownabort 例程已關閉 rman host microsoft 版本5.1.2600 c deld oracle92 test1 dbf c exit 主機命令完成 r...

RMAN恢復案例 丟失所有的資料檔案

大前提,控制檔案和日誌檔案沒有損壞。rman shutdown abort oracle 例程已關閉 rman host microsoft windows xp 版本5.1.2600 c c del d oracle92 test1 dbf c exit 主機命令完成 rman rman star...

rman恢復資料庫二

一.把資料庫恢復到某個時間點 恢復到資料庫的某個時間點屬於資料庫的不完全恢復。確認存在rman的備份,並且備份可以使用。模擬操作 sql alter session set nls date format yyymmdd hh24 mi ss select sysdate from dual 執行刪...