标签:
在dg环境中flashback primary database的方法
本文的本意是:在flashback了primary database之后,flashback standby database的方法。
参考自:
How To Flashback Primary Database In Standby Configuration (文档 ID 728374.1)
适用于:
Oracle Database - Enterprise Edition - Version 10.1.0.2 to 11.2.0.3 [Release 10.1 to 11.2]
Information in this document applies to any platform.
解决方案:
1. Shutdown primary database . SQL> SHUTDOWN IMMEDIATE 2. Start primary database in mount stage SQL> STARTUP MOUNT 3. Flashback primary database to specified scn SQL> FLASHBACK DATABASE TO SCN <scn_number>; 4. Open primary database with reset logs. SQL> ALTER DATABASE OPEN RESETLOGS; 5. Cancel media recovery on the standby database (if not already done). SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL; 6. Check current_scn on the standby database, If flashback scn is greater then current_scn then skip next step (step 7). SQL> SELECT CURRENT_SCN FROM V$DATABASE; 7. Flashback Standby database SQL> FLASHBACK STANDBY DATABASE TO SCN <scn_number -2>; (on standby database) 8. Start managed recovery on the standby database SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION; Due to Bug 7516849 and Bug 6967591 Media recovery on physical standby may not work properly after the flashback. In order to avoid these bugs, please recreate the Standby Controlfile using these Notes: Note 459411.1 : Steps to recreate a Physical Standby Controlfile OR Note 734862.1 : Step by step guide on how to recreate standby control file when datafiles are on ASM and using Oracle Managed Files
【翻译自mos文章】在dg环境中flashback primary database的方法
标签:
原文地址:http://blog.csdn.net/msdnchina/article/details/44874579