Use Case: Unattended Failover
Disasters are unavoidable. They can occur at any time and can severely impact the production database system, referred to as the Primary Database. Hence, most enterprises build their own Disaster Recovery (DR) site, referred to as the Standby Database, in a separate location and keep it synchronized with the Primary Database. It sounds simple, but in reality, it requires precise design, build, and implementation.
What options do we have to implement a Standby Database in a Disaster Recovery site?
For database applications, it is crucial to maintain data consistency, so we need a solution that is aware of transaction states. Oracle provides two options to meet this requirement:
To achieve an out-of-the-box solution, we opted for Oracle Active Data Guard.
What do we mean by Unattended Failover?
Technically, it is called Fast-Start Failover (FSFO). This is an internal feature of Oracle Data Guard where we start by setting policies and conditions to trigger a failover to a preferred database. A Data Guard background observer process monitors the system; once all policies and conditions are met, the failover is initiated via the failover client.
What happens following a failover?
As shown in the reference architecture, the primary database is configured to ship redo to both a local destination and a remote destination via SQL*Net. The redo shipping is coordinated by connecting the LNSn process (local) with the RFS process (remote). The instantiated standby database (normally cloned via RMAN) is kept rolled forward — applying the redo logs — using the MRP process.
As shown in the reference architecture, the standby is likely running in Active Data Guard mode, meaning it is open in read-only mode. This enables two additional opportunities:
Download this implementation guide — it covers the reference architecture in depth, command-by-command.
Use Case: Active-Active with Zero Workload on Production
<When implementing a data warehouse, one option is to configure Oracle GoldenGate to capture from a physical Active Standby Database. The Active Standby Database is kept in sync with the primary database, where the MRP process continuously applies redo logs to roll the database forward.
The objective is to spin off a read-write database from a read-only database. Because Oracle GoldenGate can capture from an Active Standby Database, as redo logs are applied, the Oracle GoldenGate Capture process creates trail files and transmits them to the destination.
At the destination, the Oracle GoldenGate Apply process applies the transactions to the database. This database is opened in read-write mode and is therefore available for all types of applications. The most relevant applications are business analytics (queries) and auditing applications that require real-time data.