Validate DR Readiness
Review best practices for disaster recovery readiness and verify your disaster recovery setup for planned and unplanned events.
About DR Readiness
Review best practices for disaster recovery (DR) readiness.
Use Active Data Guard to offload read-only workload to the standby database to provide continuous, application-level validation that the standby is ready for production. This provides a level of assurance in addition to continuous Oracle block-level validation performed by Oracle Data Guard apply processes.
Use a snapshot standby database to create an exact replica of a production
database for development and testing purposes. Periodically place the standby in
read/write mode (using Data Guard Snapshot Standby) to validate its readiness to support
read-write production workloads. A snapshot standby may also be used for a final level
of functional and performance testing of patches and upgrades since the DR system size
is similar to the production system. A Snapshot Standby continues to receive
redo
from the primary database where it is archived for later use,
which provides data protection at all times. However, Recovery time (RTO) will be
extended by the amount of time required to convert the Snapshot Standby back to the
standby database if a failover is required while testing is in progress. Additional
storage is required for the fast recovery area when a standby is in snapshot mode (to
hold archived redo received from the primary production database for later use and
current redo and flashback logs generated by the snapshot standby).
The following are some of the benefits of using a snapshot standby database:
- It provides an exact replica of a production database for development and testing while maintaining data protection at all times. You can use the Oracle Real Application Testing option to capture the primary database workload and then replay it for test purposes on the snapshot standby.
- It is easily refreshed to contain current production data by converting to a physical standby and resynchronizing.
Convert the Standby Database to a Snapshot Standby
When you want an exact replica of a production database, you can use Oracle Data Guard Broker to convert the physical standby database to a snapshot standby database and validate the failover.
A snapshot standby is a fully updatable standby database that is created from a
physical standby database. On snapshot standby databases, the redo
data is received, but not applied until the snapshot standby database is converted
back to a physical standby database.
The Oracle Data Guard command-line interface (DGMGRL) enables you to manage a Oracle Data Guard broker configuration and its various members directly from the command-line interface.
Set the Oracle Data Guard Parameters
Before executing a switchover, set the Oracle Data Guard parameters on the primary and standby database instances.
Switch the Primary Database From On-Premises to OCI
When you have a planned activity, such as maintenance, you can make the database in Oracle Cloud Infrastructure (OCI) the primary database with zero data loss. A switchover is a planned event that's initiated on the on-premises database and completed on the database instance in the cloud.
Switch the Primary Database Back From OCI to On-Premises
After making the database instance in Oracle Cloud Infrastructure (OCI) the primary database, use the Oracle Data Guard command-line interface (DGMGRL) on the OCI database instance to switch back and make your on-premises database your primary database again.
You can switch the primary database back and forth between the on-premises database and the OCI database instance.