對oracle10g data guard(dg)實行不一致性恢復
1,記錄誤刪除備庫資料檔案的current_scn及resetlogs_change#
SQL> select current_scn from v$database;
CURRENT_SCN
-----------
576545
2,模擬刪除備庫的資料檔案
mv line1.dbf line1.dbf.bak
3,關備庫,起備庫
4,恢復備庫
RMAN> restore database;
Starting restore at 29-JAN-10
using channel ORA_DISK_1
skipping datafile 1; already restored to file /oracle/oradata/centos/centos/system01.dbf
skipping datafile 2; already restored to file /oracle/oradata/centos/centos/undotbs01.dbf
skipping datafile 3; already restored to file /oracle/oradata/centos/centos/sysaux01.dbf
skipping datafile 4; already restored to file /oracle/oradata/centos/centos/users01.dbf
skipping datafile 5; already restored to file /oracle/oradata/centos/centos/egg01.dbf
skipping datafile 6; already restored to file /oracle/oradata/centos/centos/what1.dbf
skipping datafile 7; already restored to file /oracle/oradata/centos/centos/five1.dbf
skipping datafile 8; already restored to file /oracle/oradata/centos/centos/unix1.dbf
skipping datafile 9; already restored to file /oracle/oradata/centos/centos/another1.dbf
skipping datafile 11; already restored to file /oracle/oradata/centos/centos/big01.dbf
skipping datafile 12; already restored to file /oracle/oradata/centos/centos/big02.dbf
channel ORA_DISK_1: starting datafile backupset restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
restoring datafile 00010 to /oracle/oradata/centos/centos/line1.dbf
channel ORA_DISK_1: reading from backup piece /oracle/product/10.2.0/db_1/dbs/07l4m2a8_1_1
channel ORA_DISK_1: restored backup piece 1
piece handle=/oracle/product/10.2.0/db_1/dbs/07l4m2a8_1_1 tag=TAG20100129T121047
channel ORA_DISK_1: restore complete, elapsed time: 00:00:02
Finished restore at 29-JAN-10
RMAN> recover database until scn 576546;
Starting recover at 29-JAN-10
using channel ORA_DISK_1
starting media recovery
unable to find archive log
archive log thread=1 sequence=2
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 01/29/2010 12:23:56
RMAN-06054: media recovery requesting unknown log: thread 1 seq 2 lowscn 576546;--此錯誤不用理會
5,開啟備庫
alter database open;--resetlogs
SQL> select current_scn from v$database;
CURRENT_SCN
-----------
576545
2,模擬刪除備庫的資料檔案
mv line1.dbf line1.dbf.bak
3,關備庫,起備庫
4,恢復備庫
RMAN> restore database;
Starting restore at 29-JAN-10
using channel ORA_DISK_1
skipping datafile 1; already restored to file /oracle/oradata/centos/centos/system01.dbf
skipping datafile 2; already restored to file /oracle/oradata/centos/centos/undotbs01.dbf
skipping datafile 3; already restored to file /oracle/oradata/centos/centos/sysaux01.dbf
skipping datafile 4; already restored to file /oracle/oradata/centos/centos/users01.dbf
skipping datafile 5; already restored to file /oracle/oradata/centos/centos/egg01.dbf
skipping datafile 6; already restored to file /oracle/oradata/centos/centos/what1.dbf
skipping datafile 7; already restored to file /oracle/oradata/centos/centos/five1.dbf
skipping datafile 8; already restored to file /oracle/oradata/centos/centos/unix1.dbf
skipping datafile 9; already restored to file /oracle/oradata/centos/centos/another1.dbf
skipping datafile 11; already restored to file /oracle/oradata/centos/centos/big01.dbf
skipping datafile 12; already restored to file /oracle/oradata/centos/centos/big02.dbf
channel ORA_DISK_1: starting datafile backupset restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
restoring datafile 00010 to /oracle/oradata/centos/centos/line1.dbf
channel ORA_DISK_1: reading from backup piece /oracle/product/10.2.0/db_1/dbs/07l4m2a8_1_1
channel ORA_DISK_1: restored backup piece 1
piece handle=/oracle/product/10.2.0/db_1/dbs/07l4m2a8_1_1 tag=TAG20100129T121047
channel ORA_DISK_1: restore complete, elapsed time: 00:00:02
Finished restore at 29-JAN-10
RMAN> recover database until scn 576546;
Starting recover at 29-JAN-10
using channel ORA_DISK_1
starting media recovery
unable to find archive log
archive log thread=1 sequence=2
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 01/29/2010 12:23:56
RMAN-06054: media recovery requesting unknown log: thread 1 seq 2 lowscn 576546;--此錯誤不用理會
5,開啟備庫
alter database open;--resetlogs
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9240380/viewspace-626466/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- oracle10g data guard(dg)__flashback_physical databaseOracleDatabase
- 【DG】Data Guard搭建(physical standby)
- Data Guard跳歸檔恢復的案例
- 【DG】Oracle Data Guard官方直譯Oracle
- [Data Guard]Oracle10g Data Guard學習筆記(一)Oracle筆記
- [Data Guard]Oracle10g Data Guard學習筆記(二)Oracle筆記
- [Data Guard]Oracle10g Data Guard學習筆記(三)Oracle筆記
- 與oracle10g data guard(dg)緊密關聯的相關檢視Oracle
- Oracle 19C Data Guard基礎運維-07 failover後閃回恢復dg架構Oracle運維AI架構
- 【DG】三張經典圖片展示Data Guard主備之間日誌傳輸及恢復
- oracle10g data guard(dg)__Adding or Dropping Online Redo Log FilesOracle
- Oracle10g Data Guard (Standby) 理論與實踐Oracle
- 【DG】Data Guard主備庫Switchover切換
- 物理DG!Oracle 10G Data Guard DemoOracle 10g
- oracle10g data guard redo transport serviceOracle
- Oracle10g Data Guard (Standby) 理論與實踐 2Oracle
- 【DG】Data Guard主備庫Failove切換AI
- 【ASK_ORACLE】Oracle Data Guard(一)DG架構Oracle架構
- Oracle10g Data Guard (Standby) 理論與實踐 [final]Oracle
- DATA GUARD主庫丟失資料檔案的恢復(2)
- DATA GUARD主庫丟失資料檔案的恢復(3)
- DATA GUARD主庫丟失資料檔案的恢復(1)
- Data Guard高階玩法:通過閃回恢復switchover主庫
- Oracle DG(Data Guard)支援異構平臺說明Oracle
- Data Guard高階玩法:通過閃回恢復failover備庫AI
- Oracle 11g Data guard 物理備庫故障恢復重建例項Oracle
- Data Guard Broker系列之二:Data Guard Broker配置實戰
- oracle10g data guard(dg)_主庫控制檔案受損或loss_自動關庫測試Oracle
- oracle10g data guard(dg)__歸檔日誌備份刪除相關策略_rman_configureOracle
- 【DG】同一臺主機實現物理Data Guard配置安裝(精簡版)
- DG同步異常恢復文件
- DATA GUARD部署模式——DATA GUARD概念和管理模式
- DG歸檔日誌缺失恢復
- 使用Data Guard Broker進行Data Guard物理備用庫配置(Oracle 19c)Oracle
- 監控Data Guard實時同步
- oracle10g data guard建立物理standby資料庫的例子Oracle資料庫
- creating oracle10g data guard using rman(physical db)Oracle
- using rman to creat oracle10g data guard standby db_with recoveryOracle