- Oracle Database 12c Backup and Recovery Survival Guide
- Francisco Munoz Alvarez Aman Sharma
- 257字
- 2021-04-02 10:19:59
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:
- Stop Redo Apply (
RECOVER MANAGED STANDBY DATABASE CANCEL
). - Take the corresponding datafile(s) offline (
ALTER DATABASE DATAFILE <datafile_name> OFFLINE DROP;
). - Start Redo Apply (
RECOVER MANAGED STANDBY DATABASE DISCONNECT
). - Copy the appropriate backup of affected datafiles over from the primary database (for example, use
RMAN
to backup datafiles and copy them). - Stop Redo Apply (
RECOVER MANAGED STANDBY DATABASE CANCEL
). - Make the corresponding datafiles online (
ALTER DATABASE DATAFILE <datafile_name> ONLINE;
). - 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.
- Getting Started with Citrix XenApp? 7.6
- Maven Build Customization
- Python 深度學習
- Spring Boot Cookbook
- Swift 4 Protocol-Oriented Programming(Third Edition)
- Java SE實踐教程
- 基于SpringBoot實現:Java分布式中間件開發入門與實戰
- 持續集成與持續交付實戰:用Jenkins、Travis CI和CircleCI構建和發布大規模高質量軟件
- Getting Started with Python and Raspberry Pi
- Hands-On GUI Programming with C++ and Qt5
- Python網絡爬蟲技術與應用
- 青少年學Python(第2冊)
- UI設計基礎培訓教程(全彩版)
- MongoDB Cookbook(Second Edition)
- Spark技術內幕:深入解析Spark內核架構設計與實現原理