【翻譯自mos文章】在dg環境中flashback primary database的方法,

來源:互聯網
上載者:User

【翻譯自mos文章】在dg環境中flashback primary database的方法,

在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 IMMEDIATE2. Start primary database in mount stageSQL> STARTUP MOUNT3. Flashback primary database to specified scnSQL> 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 databaseSQL> FLASHBACK STANDBY DATABASE TO SCN <scn_number -2>; (on standby database)8. Start managed recovery on the standby databaseSQL> 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


相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.