Activating The Standby Database
Activating The Standby Database
You now have an operational, automatically updated standby database that you may activate in the event of a catastrophic production failure. Once activated, the standby database becomes a production-like instance that cannot be converted back to its previous form. If the standby database is already in ASD mode when a failure occurs, follow these steps to activate the standby database: 1. If possible, archive your current production database logs by issuing ALTER SYSTEM ARCHIVE LOG CURRENT on the production database. Copy the current online redo logalong with any other remaining archived logs that have not yet been transportedto the standby database server. 2. If your standby database has not timed out from your recovery, simply open a new SQL session into the standby database, by using a DBA account, and issue
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;
3. Locate the end of the standby database's alert.log, and identify the last archived log that was applied. 4. Manually apply any remaining logs to the standby database:
SQL> ALTER DATABASE RECOVER [FROM 'pathname'] STANDBY DATABASE;
5. When you have applied the remaining logs to the standby database, stop the recovery by issuing
SQL> ALTER DATABASE RECOVER CANCEL;
7. Shut down the standby database. The standby is now a full-fledged production database. Assuming that the standby database is the only working database at this point, it is highly advisable that you immediately perform a backup before starting the database for production use in the event of another emergency. 8. Start the new production database as you would start any other database. 9. Initiate any and all necessary processes that will redirect users smoothly to the new production database. Now that your database users have safely migrated to the standby database, you can begin the process of recovering your production database.