Data Guard 26ai – #22: History of role transitions

This post is part of a blog series.

Data Guard 26ai introduces a new fixed view, V$DG_BROKER_ROLE_CHANGE, which tracks the last ten role transitions for a configuration. This view gathers information dynamically from the broker configuration file, logging both automatic and manual failovers (with reasons), switchovers, and each operation’s start and end times. We plan to add recovery point SCN details in a future Release Update, but this isn’t available yet.

a select statement showing the content of the view v$dg_broker_role_change with recent switchover and failover operations

This view makes it easy to see recent role changes without searching through alert logs. It also helps identify what was the primary database at any given moment. The view stores only the ten most recent role changes; to keep a longer history, you can copy its records into a regular table; for example, using a STARTUP trigger on the primary database.

 

 

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.