Oracle Data Guard keeps a physical standby database up to date by sending redo from the primary and applying it at the standby. If both databases are available for planned maintenance, a switchover exchanges their roles without losing data. If the primary cannot be recovered in time, a failover makes a standby the new primary. Whether committed work survives a failover depends on which redo reached the target and which redo can be applied. A connection timeout alone is not a reason to promote a standby. See Oracle’s 19c overview of standby databases and role transitions.
What the standby protects
Consider two self-managed Oracle Database 19c Enterprise Edition systems on Linux x86-64, with a physical standby at a separate site. The primary accepts application writes. Redo transport sends the record of changes; Redo Apply uses that record to maintain a block-for-block copy. Receiving redo and applying it are separate events. This differs from Oracle RAC, where several instances share one database. A failed RAC instance and the loss of the database site are different incidents. To see where a standby fits, compare instance, site, and backup recovery options.
In a 19c multitenant deployment, the role belongs to the container database (CDB), not to an individual pluggable database (PDB). Check that the standby includes the PDBs the application needs; a configuration can exclude some. List the services those applications use rather than assuming that every tenant will be available because the CDB has changed role. Oracle documents these boundaries in its physical standby guidance for multitenant environments.
Read the evidence before choosing a transition
- Ask the DBA for the database identities, observed roles, target standby, protection mode and current synchronization state. Record when each observation was taken. Identify who owns the recovery decision and whether Data Guard broker with fast-start failover is already managing it. Do not initiate a competing manual response.
- Review the standby’s V$DATAGUARD_STATS metrics with the authorized DBA. Transport lag concerns redo delivery; apply lag measures how far the target data trails the source, including transport delay. Do not add the two. Compare
DATUM_TIMEacross samples: if it stops advancing, the standby is not receiving fresh data for the calculation. Yesterday’s zero is not evidence about today’s outage. - Compare the evidence with the business limits: the recovery point objective (RPO) is the tolerable loss of work; the recovery time objective (RTO) is the tolerable service interruption. Received but unapplied redo can take time to apply. Redo that never arrived presents a different problem: if the only remaining copy is inaccessible, the target cannot use it. Record unknown exposure as unknown, not zero.
The 19c protection-mode definitions explain why a configuration label is insufficient. In maximum performance, a commit need not wait for redo to reach the standby. In maximum availability, a primary that loses its synchronized destination can continue accepting commits without the same protection. Maximum protection instead stops the primary if it cannot meet its redo protection requirement. For a zero-loss requirement, verify the destination, acknowledgment behavior and actual synchronization at the time in question.
Switchover for maintenance; failover for an outage
For a planned site move, the expected result is a pair: the target becomes primary and the former primary becomes standby. Before the maintenance window, confirm that both sides communicate, the target can catch up, backups are usable and application owners can move their services. If the target is not ready, postpone the move and resolve the reported transport or apply problem. A failed readiness check is not a reason to substitute a failover.
For an outage, first distinguish loss of the primary from loss of your path to it. A disconnected site may still accept writes from local clients. Before authorizing a manual failover, obtain independent confirmation that the former primary cannot accept writes or restart as a writer. Use the site’s approved isolation procedure. Otherwise two databases could accept conflicting changes (split brain). If isolation or the state of automatic failover cannot be established, escalate rather than redirecting clients.
Oracle’s broker guide to complete and immediate failover distinguishes applying available redo before promotion from an immediate failover that skips further apply. Neither can manufacture missing redo. Ask the incident owner to record the last defensible recovery point, outstanding uncertainty and who accepts possible data loss. This is a decision checklist, not a promotion procedure; none of the checks were executed on a database for this article.
Verify recovery before sending traffic back
After an authorized transition, verify one writable primary, the expected services on that site and application access to the intended PDB. In a rehearsal, have the application owner confirm a representative transaction through the normal service and measure time to restored service, not just time to role change. Check that a standby is again receiving and applying fresh redo. After failover, do not restart the old primary for application use. The broker’s reinstatement and re-creation guidance requires prior Flashback Database enablement, sufficient flashback logs and connectivity for reinstatement. Otherwise a former primary may need to be rebuilt as a standby from the new primary. Returning traffic to the original site is a later planned decision, not an undo button.
A standby follows changes, including an unwanted committed change. Keep independent, retained backups and the redo needed to recover to an earlier point. Confirm that the recovery team can access them even if the primary site is lost. Oracle documents RMAN backup and restore in a Data Guard configuration. Use the 19c RMAN backup validation guide to distinguish readable backup pieces from a successful restore and recovery in an isolated drill.
Check edition and Active Data Guard licensing
For self-managed on-premises 19c, Oracle lists Data Guard Redo Apply for Enterprise Edition, not Standard Edition 2. Keeping a physical standby open for queries while redo is being applied is a different feature: Real-Time Query is part of the extra-cost Active Data Guard option for Enterprise Edition. Oracle requires licensing the primary and each standby using that option’s features. Do not infer that standby infrastructure is free, or that owning Enterprise Edition licenses every optional feature. Review the 19c licensing tables, including the Active Data Guard feature and licensing notes, against the actual deployment and agreement before enabling read traffic.
