Data Guard 26ai – #15: Prevent standby databases from becoming primary

This post is part of a blog series.

Often, Data Guard setups use many standby databases, but only some should ever become primary. Others might serve as clone masters, reporting, testing, or staging only.
Previously, you couldn’t prevent an unwanted switchover or failover to these restricted standby databases. This was risky: customers must keep production workloads off test systems.
Oracle Database 26ai introduces a new broker property: PrimaryDatabaseCandidates. Set this to specify which databases can become primary. If you try to switch or fail over to a database not on the list, the broker blocks it.

Once PrimaryDatabaseCandidates property is set with a list of DBs, switchover and failover to other DBs fails.

You can update the candidate list at any time, so it’s flexible in emergencies.

Note: this only blocks broker-initiated switchovers and failovers. Manual SQL conversions bypass this check.

This enhancement has also been back-ported to 19.26.
My colleague Alex Blyth’s blogged about this property in the context of Exascale: https://alexblyth.net/2026/01/12/using-data-guard-broker-to-prevent-a-standby-database-becoming-the-primary/

The following two tabs change content below.

Ludovico

Principal Product Manager at Oracle
Ludovico is a member of the Oracle Database High Availability (HA), Scalability & Maximum Availability Architecture (MAA) Product Management team in Oracle. He focuses on Oracle Data Guard, Flashback technologies, and Cloud MAA.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.