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

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.

主站蜘蛛池模板: 晋州市| 嵊泗县| 井冈山市| 遵义县| 璧山县| 桑植县| 南康市| 方城县| 延吉市| 丰镇市| 瑞丽市| 合山市| 祁门县| 和田县| 都江堰市| 南安市| 永嘉县| 临夏县| 林西县| 弥勒县| 江口县| 应用必备| 阿坝县| 运城市| 枣阳市| 深州市| 尉氏县| 台山市| 乌什县| 古交市| 安泽县| 丰城市| 东莞市| 泸水县| 洪湖市| 桦甸市| 桐乡市| 东光县| 油尖旺区| 沙田区| 渝中区|