oracle10g data guard(dg)__flashback_physical database
1,在主庫配置備庫log_archive_dest_state_2=defer;再還原enable時,備庫出現不應用日誌;
測試主庫添刪資料檔案及表空間提示報錯,在alert中
2,處理以上方法
在主庫生成備份控制檔案,根據alert進行修改,把在備庫上少的幾個主庫資料檔案,全部scp到備庫
備庫如下
Thu Jan 28 05:58:33 2010
Errors in file /oracle/admin/centos/bdump/rhel_mrp0_2544.trc:
ORA-01111: name for data file 5 is unknown - rename to correct file
ORA-01110: data file 5: '/oracle/product/10.2.0/db_1/dbs/UNNAMED00005'
ORA-01157: cannot identify/lock data file 5 - see DBWR trace file
ORA-01111: name for data file 5 is unknown - rename to correct file
ORA-01110: data file 5: '/oracle/product/10.2.0/db_1/dbs/UNNAMED00005'
Thu Jan 28 05:58:33 2010
Errors in file /oracle/admin/centos/bdump/rhel_mrp0_2544.trc:
ORA-01111: name for data file 5 is unknown - rename to correct file
ORA-01110: data file 5: '/oracle/product/10.2.0/db_1/dbs/UNNAMED00005'
ORA-01157: cannot identify/lock data file 5 - see DBWR trace file
ORA-01111: name for data file 5 is unknown - rename to correct file
ORA-01110: data file 5: '/oracle/product/10.2.0/db_1/dbs/UNNAMED00005'
Thu Jan 28 05:58:33 2010
MRP0: Background Media Recovery process shutdown (rhel)
Thu Jan 28 05:58:34 2010
Completed: ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION
mount開啟備庫,備庫物理恢復就可以了
---以上問題解決了,但備庫不能open,一open就提示恢復,這如何處理喲
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE cancel immediate;
Database altered.
SQL> alter database open;
alter database open
*
ERROR at line 1:
ORA-16004: backup database requires recovery
ORA-01194: file 6 needs more recovery to be consistent
ORA-01110: data file 6: '/oracle/oradata/centos/centos/hard01.dbf'
SQL> host oerr ora 16004
16004, 00000, "backup database requires recovery"
// *Cause: The control file is for a backup database which requires recovery,
// and cannot be opened for read-only access by this instance.
// *Action: Perform. the necessary recovery and re-open for read-only access.
//
SQL>
3,想在備庫上利用flashback功能,必須先在建立備庫前開啟主庫的flashback on功能
主庫 --請注意,新增db_recovery_file_dest相關
startup mount
alter database flashback on;
建立備庫
開啟備庫flashback功能,同主庫操作
具體flashback操作如下
在備庫上記錄一個當前的scn
select current_scn from v$database
在主庫進行相關變更,同時同步到備庫
在備庫關閉重作應用
在備庫利用flashback
flashback database to scn 上面查到的scn號
可以在備庫alert看到相關操作變化了
此之後,你可以開啟備庫重作應用,主備庫又可以進行同步了
測試主庫添刪資料檔案及表空間提示報錯,在alert中
2,處理以上方法
在主庫生成備份控制檔案,根據alert進行修改,把在備庫上少的幾個主庫資料檔案,全部scp到備庫
備庫如下
Thu Jan 28 05:58:33 2010
Errors in file /oracle/admin/centos/bdump/rhel_mrp0_2544.trc:
ORA-01111: name for data file 5 is unknown - rename to correct file
ORA-01110: data file 5: '/oracle/product/10.2.0/db_1/dbs/UNNAMED00005'
ORA-01157: cannot identify/lock data file 5 - see DBWR trace file
ORA-01111: name for data file 5 is unknown - rename to correct file
ORA-01110: data file 5: '/oracle/product/10.2.0/db_1/dbs/UNNAMED00005'
Thu Jan 28 05:58:33 2010
Errors in file /oracle/admin/centos/bdump/rhel_mrp0_2544.trc:
ORA-01111: name for data file 5 is unknown - rename to correct file
ORA-01110: data file 5: '/oracle/product/10.2.0/db_1/dbs/UNNAMED00005'
ORA-01157: cannot identify/lock data file 5 - see DBWR trace file
ORA-01111: name for data file 5 is unknown - rename to correct file
ORA-01110: data file 5: '/oracle/product/10.2.0/db_1/dbs/UNNAMED00005'
Thu Jan 28 05:58:33 2010
MRP0: Background Media Recovery process shutdown (rhel)
Thu Jan 28 05:58:34 2010
Completed: ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION
mount開啟備庫,備庫物理恢復就可以了
---以上問題解決了,但備庫不能open,一open就提示恢復,這如何處理喲
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE cancel immediate;
Database altered.
SQL> alter database open;
alter database open
*
ERROR at line 1:
ORA-16004: backup database requires recovery
ORA-01194: file 6 needs more recovery to be consistent
ORA-01110: data file 6: '/oracle/oradata/centos/centos/hard01.dbf'
SQL> host oerr ora 16004
16004, 00000, "backup database requires recovery"
// *Cause: The control file is for a backup database which requires recovery,
// and cannot be opened for read-only access by this instance.
// *Action: Perform. the necessary recovery and re-open for read-only access.
//
SQL>
3,想在備庫上利用flashback功能,必須先在建立備庫前開啟主庫的flashback on功能
主庫 --請注意,新增db_recovery_file_dest相關
startup mount
alter database flashback on;
建立備庫
開啟備庫flashback功能,同主庫操作
具體flashback操作如下
在備庫上記錄一個當前的scn
select current_scn from v$database
在主庫進行相關變更,同時同步到備庫
在備庫關閉重作應用
在備庫利用flashback
flashback database to scn 上面查到的scn號
可以在備庫alert看到相關操作變化了
此之後,你可以開啟備庫重作應用,主備庫又可以進行同步了
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9240380/viewspace-626438/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【DG】Data Guard搭建(physical standby)
- 【DG】Oracle Data Guard官方直譯Oracle
- oracle9i(9204)dg(data guard)_ place the standby database in manual recovery modeOracleDatabase
- [Data Guard]Oracle10g Data Guard學習筆記(一)Oracle筆記
- [Data Guard]Oracle10g Data Guard學習筆記(二)Oracle筆記
- [Data Guard]Oracle10g Data Guard學習筆記(三)Oracle筆記
- flashback database 結合 data guardDatabase
- DATA GUARD 中alter database 命令Database
- 與oracle10g data guard(dg)緊密關聯的相關檢視Oracle
- Data Guard - Snapshot Standby Database配置Database
- oracle10g data guard(dg)__Adding or Dropping Online Redo Log FilesOracle
- 【DG】Data Guard主備庫Switchover切換
- 物理DG!Oracle 10G Data Guard DemoOracle 10g
- oracle10g data guard redo transport serviceOracle
- 【DG】Data Guard主備庫Failove切換AI
- 【ASK_ORACLE】Oracle Data Guard(一)DG架構Oracle架構
- 對oracle10g data guard(dg)實行不一致性恢復Oracle
- 建立Data guard logical standby database須知Database
- Oracle DG(Data Guard)支援異構平臺說明Oracle
- ORA-01555 on Active Data Guard Standby DatabaseDatabase
- Oracle 11g Data Guard 使用 duplicate from active database 建立 standby databaseOracleDatabase
- Oracle 11g Data Guard 使用duplicate from active database 建立 standby databaseOracleDatabase
- oracle10g data guard(dg)_主庫控制檔案受損或loss_自動關庫測試Oracle
- oracle10g data guard(dg)__歸檔日誌備份刪除相關策略_rman_configureOracle
- ORACLE10G DG配置下Physical Standby Database的管理OracleDatabase
- Oracle10g Data Guard (Standby) 理論與實踐Oracle
- Oracle 11g Data Guard 使用duplicate from active databaseOracleDatabase
- 搭建11g data guard(duplicate from active database方式)Database
- Oracle10g Data Guard (Standby) 理論與實踐 2Oracle
- DATA GUARD部署模式——DATA GUARD概念和管理模式
- oracle10g data guard建立物理standby資料庫的例子Oracle資料庫
- Oracle10g Data Guard (Standby) 理論與實踐 [final]Oracle
- creating oracle10g data guard using rman(physical db)Oracle
- using rman to creat oracle10g data guard standby db_with recoveryOracle
- 介紹ORACLE DATA GUARD——DATA GUARD概念和管理Oracle
- Oracle 11gR2 Database和Active Data Guard遷移案例OracleDatabase
- 12c DG新特性 - Active Data Guard Far Sync (Doc ID 2179719.1)
- G008-ORACLE-DG ORACLE 19C Active Data Guard DML RedirectionOracle