官术网_书友最值得收藏!

Repairing NOLOGGING changes on physical and logical standby databases

After a NOLOGGING operation on the primary is detected, it is recommended to create a backup immediately if you want to recover from this operation in the future. However, there are additional steps required if you have an existing physical or logical standby database. Executing these steps is crucial if you want to preserve the data integrity of your standby databases.

For a physical standby database, Data Guard's Redo Apply process will process the invalidation redo and mark the corresponding data blocks as corrupted. Follow these steps to reinstate the relevant datafiles:

  1. Stop Redo Apply (RECOVER MANAGED STANDBY DATABASE CANCEL).
  2. Take the corresponding datafile(s) offline (ALTER DATABASE DATAFILE <datafile_name> OFFLINE DROP;).
  3. Start Redo Apply (RECOVER MANAGED STANDBY DATABASE DISCONNECT).
  4. Copy the appropriate backup of affected datafiles over from the primary database (for example, use RMAN to backup datafiles and copy them).
  5. Stop Redo Apply (RECOVER MANAGED STANDBY DATABASE CANCEL).
  6. Make the corresponding datafiles online (ALTER DATABASE DATAFILE <datafile_name> ONLINE;).
  7. Start Redo Apply (RECOVER MANAGED STANDBY DATABASE DISCONNECT).

For a logical standby database, Data Guard's SQL Apply process skips over the invalidation redo completely, thus the subsequent corresponding table or index will not be updated. However, future reference to missing data will result in ORA-1403 (no data found). In order to resynchronize the table with the primary table, you need to re-create it from the primary database. Follow the steps described in Oracle Data Guard Concepts and Administration 12c Release 1 Section 11.5.5. Basically, you will be using the DBMS_LOGSTDBY.INSTANTIATE_TABLE procedure.

主站蜘蛛池模板: 垦利县| 天等县| 烟台市| 江安县| 祥云县| 广安市| 老河口市| 阿克陶县| 房产| 大洼县| 连江县| 成安县| 九龙县| 南乐县| 乐平市| 潮安县| 平塘县| 宁远县| 玉环县| 疏勒县| 夏河县| 随州市| 陈巴尔虎旗| 江源县| 巴青县| 泰兴市| 延长县| 集贤县| 仁化县| 和政县| 伊金霍洛旗| 榆树市| 淅川县| 丁青县| 靖宇县| 青浦区| 邵东县| 马龙县| 临猗县| 常山县| 德惠市|