Skip to Main Content

Breadcrumb

Question and Answer

Connor McDonald

Thanks for the question, Victor.

Asked: August 06, 2009 - 12:29 pm UTC

Last updated: June 20, 2018 - 12:29 am UTC

Version: 10.2.0.4

Viewed 10K+ times! This question is

You Asked

What data dictionary view can be used to determine the number of times that a switchover/failover/open has occurred for a standby database?

and Tom said...

http://docs.oracle.com/cd/B19306_01/server.102/b14239/views.htm#i79129


DBA_LOGSTDBY_HISTORY

Logical only

Displays the history of switchovers and failovers for logical standby databases in a Data Guard configuration. It does this by showing the complete sequence of redo log streams processed or created on the local system, across all role transitions. (After a role transition, a new log stream is started and the log stream sequence number is incremented by the new primary database.)



it is not tracked for physical standby, but you didn't say which you were using.

Rating

  (3 ratings)

Is this answer out of date? If it is, please let us know via a Comment

Comments

Thanks

Victor, August 06, 2009 - 1:22 pm UTC

Thanks Tom!!!

It's nice to have an easy question now and again :-)

Thanks + Physical

Victor, August 06, 2009 - 1:26 pm UTC

DBA_LOGSTDBY_HISTORY is useful. However, if I wanted to see similar information for physical standby is that possible??
Tom Kyte
August 06, 2009 - 1:27 pm UTC

as far as I know....

<quote> it is not tracked for physical standby </quote>

Helped in case of Logical Standby

Mohammad Ikram, March 14, 2018 - 9:38 am UTC

Hi Tom

This post is bit older lets brush it up with according to newest oracle release. Now Oracle 18c is up in the market very recently, Shall we expect it keeps track of Switchover/Failover history in the case of Physical Standby Database in a DataGuard Configuration.
Connor McDonald
June 20, 2018 - 12:29 am UTC

I asked around internally - it is not tracked in a dictionary view. You would need to glean it from the alert logs.