Disaster Recovery Using Standby ORACLE Database
Disaster Recovery Using Standby ORACLE Database
Nikos Plevris
Principal Service Delivery Manager
Agenda
Managed
Recovery
mode
Read-only
mode
Manual
Recovery
mode
Setting up the Standby Database –
Managed Recovery1
• Backup primary database
• Connect to the primary database and create the
standby control file
Transactions
Remote archiving
Via Oracle Net
PRIMARY_HOST
SDR Standby Db
Transactions
Remote archiving
Via Oracle Net
PRIMARY_HOST
SDR Standby Db
PRIMARY_HOST
Charybdis
Transactions Online redo Archived redo
Standby database
activated, becomes
primary database
Troubleshooting the Standby Database
Configuration1
• The Standby Site Does Not Receive Logs Archived by
the Primary Database
• Immediate Action: Query V$ARCHIVE_DEST
SQL> ALTER DATABASE CREATE STANDBY Transfer the standby control file and archived log files
CONTROLFILE AS ’filename’;
Primary db
Standby db
PRIMARY_HOST
SDR
Primary db Standby db
SDR
PRIMARY_HOST
Graceful Switchover and
Switchback Prerequisites
SDR
1 4 7
Online redo
shutdown Logs shipped Mount NEW
To Standby STANDBY
PRIMARY_HOS
Charybdis
2 3 5 6
Standby Standby •Create standby
•Create controlfile
apply shutdown •Startup
controlfile
•Ship to NEW
archives NEW Primary
STANDBY
Timeline
Graceful Switchover2 steps
Primary site
AL
TE Archived redo logs
R
DA
TA
B AS
E
CR
EA
Primary Db TE StandBy Db
ST
AN
DB
Y
CO
NT
Init.ora RO Init.ora
LF
IL
E
AS
…