Flashback_10292022
Flashback_10292022
• Fast-start failover: You must enable Flashback Database and set up a fast
recovery area on the primary database and the target standby database before
enabling fast-start failover.
• Snapshot standby: To convert a physical standby database to a snapshot standby
database, you must configure the Fast Recovery Area and size. If Flashback Database
is not enabled, it will be enabled when the primary database is converted to a
snapshot standby database.
On Primary
commit;
startup mount;
-- check that recovery was successful i.e. salary on primary database is the same
as before update
-- check configuration --
Note that there is error as standby database has diverged from primary
Configuration - orcl_stdy
Protection Mode: MaxPerformance
Databases:
orcl - Primary database
stdy - Physical standby database
Error: ORA-16810: multiple errors or warnings detected for the database
Configuration Status:
ERROR
Database - stdy
Role: PHYSICAL STANDBY
Intended State: APPLY-ON
Transport Lag: (unknown)
Apply Lag: 0 seconds
Real Time Query: OFF
Instance(s):
stdy
Database Error(s):
ORA-16700: the standby database has diverged from the primary database
ORA-16766: Redo Apply is stopped
Database Status:
ERROR
RESETLOGS_CHANGE#
-----------------
970352
-- check current scn# from standby database
-- note that standby database is ahead of reset logs change# and hence needs to be
flashed back
CURRENT_SCN
-----------
973003
SBY>shut immediate;
startup mount;
-- check that standby database is ready to receive and apply logs from primary;
Configuration - orcl_stdy
Protection Mode: MaxPerformance
Databases:
orcl - Primary database
stdy - Physical standby database
Configuration Status:
SUCCESS
DGMGRL>