Documente Academic
Documente Profesional
Documente Cultură
The first step is to configure the physical standby database to use flashback
logging for Flashback Database operations. Although not a requirement for
this exercise, it is best practice to also enable Flashback Database on the the
primary.
2. Flashback Database requires that the flashback logs reside in the Flash Recovery
Area (FRA). Although the FRA may already be configured for your environment, the
flashback logs can significantly increase FRA usage. It is not unheard of to double
the size of the FRA to utilize Flashback Database.
If a FRA does not exist, it will need to be created. For example, run the following
statements on the physical standby database to configure a 32GB flash recovery
area in the /u03/flash_recovery_area directory with a retention time of 24 hours:
The size and location of the FRA and the Flashback Database retention policy time
listed above should be modified for your environment.
3. Stop Redo Apply on the physical standby database and verify it is in MOUNT mode.
OPEN_MODE
----------
MOUNTED
SQL> alter database recover managed standby database using current logfile
disconnect;
Database altered.
System altered.
System altered.
Database altered.
o Skip the next statement if the physical standby has not been
opened read-only since the instance was last started.
Database altered.
System altered.
While the database is activated, it is not receiving redo data from the
primary database and cannot provide disaster protection. It is recommended
that there be at least two physical standby databases participating in the
configuration so that the primary database remains protected against data
loss.
Also, any results stored in the activated database will be lost when you later
flash back the database to before the activation time. Results that should be
saved must be copied or exported out of the activated database before
flashing it back.
Revert Physical Standby Database
Back To Its Original State
After testing is completed, you need to resynchronize the activated database
with the primary database. Issue the following statements on the activated
database to quickly flash it back to the guaranteed restore point created
earlier (before_open_standby) and resynchronize it with the primary database.
Flashback complete.
Database altered.
The method you use in this step will depend on how far the activated
standby database lags behind the primary database in its application
of redo data.
o Let archive gap resolution fetch all missing archived redo
log files and allow Redo Apply to apply the gap.
If the activated database has not fallen too far behind the
original primary database, issue the following statement on the
standby database to resynchronize it with the primary database
and restart Redo Apply. For example:
System altered.
Database altered.
Then, go to step 3.
If the activated database has fallen too far behind the original
primary database (for example, if there are not sufficient log files
available), you can take an incremental backup from the
primary database and apply it to the standby database.
System altered.
Database altered.
SCN STORAGE_SIZE
---------- ------------
TIME
---------------------------------------------------------------------------
NAME
--------------------------------------------------------------------------------
1.0340E+13 1073741824
14-OCT-16 03.08.34.000000000 PM
BEFORE_OPEN_STANDBY
NAME
------------------------------
BEFORE_OPEN_STANDBY