| Lesson 7 | Standby databases |
| Objective | Discuss Oracle 23ai standby databases |
A standby database is a continuously maintained copy of a primary database that you can activate when the primary becomes unavailable. In Oracle 23ai, standby databases are most commonly implemented with Oracle Data Guard, which ships and applies redo so you can meet disaster recovery and high-availability goals with predictable data loss and recovery time targets.
The key idea is simple: as the primary generates redo, the standby receives it (redo transport), stores it (archived redo and/or standby redo logs), and applies it (redo apply). Because redo must be transmitted and applied, a standby can be slightly behind the primary, but modern configurations using real-time transport and real-time apply can drive lag extremely low.
Data Guard protection modes formalize your “speed vs. safety” tradeoff. The names vary by documentation and configuration detail, but the practical model is:
In practice, most teams manage these transitions with Data Guard Broker (rather than hand-editing parameters), because Broker centralizes configuration state, validation, and orchestration.
Quick checks from SQL*Plus:
-- Current logging mode (ARCHIVELOG is required for classic redo shipping)
SELECT log_mode FROM v$database;
-- Destination health and errors (examples; columns vary by view)
SELECT dest_id, status, error FROM v$archive_dest_status;
-- High-level lag metrics (when Data Guard is configured)
SELECT name, value, unit FROM v$dataguard_stats
WHERE name IN ('transport lag','apply lag','apply finish time');
Broker-oriented management (DGMGRL):
-- Typical Broker session
DGMGRL> connect /
DGMGRL> show configuration;
DGMGRL> show database verbose <standby_db_unique_name>;
-- Planned role transition
DGMGRL> switchover to <standby_db_unique_name>;
-- Unplanned (manual) activation
DGMGRL> failover to <standby_db_unique_name>;
In hardened environments, Data Guard administration is commonly performed using dedicated administrative privileges (for example, connecting as
SYSDG for Data Guard operations), and secure authentication (password files / wallet-based approaches, depending on deployment).
In Oracle Cloud Infrastructure, standby databases are frequently deployed as part of a broader business continuity design (separate AD/region, explicit network controls, automated backups, and monitored Broker configurations). The mechanics remain the same: redo transport + redo apply, with the “cloud” primarily changing how you provision infrastructure, automate operations, and observe telemetry.
Oracle 23ai standby databases are best thought of as a redo-driven continuity pipeline: generate redo on the primary, ship it safely, apply it quickly, and practice role transitions so you can switch over with confidence. In the next step of this module, you typically connect standby strategy back to your backup plan (RMAN), retention requirements for archived redo, and operational monitoring so the standby stays “ready.”