No question at this time
DBA Top 10
1 M. Cadot 5400
2 P. Wisse 1300
3 P. Tsongayinwe 1100
4 B. Vroman 500
4 J. Schnackenberg 500
6 M. Pagac 400
7 A. Deledda 200
7 D. Walgude 200
7 B. M 200
10 J. Alcroft 100
10 G. Trivedi 100
10 A. Hudspith 100
10 V. Sharma 100
10 L. Ywema 100
About
DBA-Village
The DBA-Village forum
Forum as RSS
as RSS feed
Site Statistics
Ever registered users48742
Total active users1337
Act. users last 24h1
Act. users last hour0
Registered user hits last week108
Registered user hits last month471
Go up

Dataguard Role Transition Timestamp
Next thread: DR configuration on Windows
Prev thread: SYSAUX tablespace full

Message Score Author Date
Hello, Is there any way to find exact time/date...... Taoqir Hassan May 09, 2023, 19:35
Hello, the exact time can be calculated using t...... Score: 400 PtsScore: 400 PtsScore: 400 PtsScore: 400 PtsScore: 400 Pts Matej Pagac May 11, 2023, 09:40

Follow up by mail Click here


Subject: Dataguard Role Transition Timestamp
Author: Taoqir Hassan, Pakistan
Date: May 09, 2023, 19:35, 24 days ago
Message: Hello,

Is there any way to find exact time/date when role transition took place in DG other than alert log?

Regards,
Taoqir
Goto: Reply - Top of page 
If you think this item violates copyrights, please click here

Subject: Re: Dataguard Role Transition Timestamp
Author: Matej Pagac, Slovakia
Date: May 11, 2023, 09:40, 23 days ago
Score:   Score: 400 PtsScore: 400 PtsScore: 400 PtsScore: 400 PtsScore: 400 Pts
Message: Hello,

the exact time can be calculated using the STANDBY_BECAME_PRIMARY_SCN from the V$DATABASE:

https://docs.oracle.com/en/database/oracle/oracle-database/19/refrn/V-DATABASE.html#GUID-C62A7B96-2DD4-4E70-A0D9-26EE4BFBE256

select scn_to_timestamp(select to_char(standby_became_primary_scn) from v$database) as timestamp from dual;


or "less exact" timestamp can be checked in the dataguard broker log (assuming you are using broker):

https://docs.oracle.com/en/database/oracle/oracle-database/19/dgbkr/troubleshooting-oracle-data-guard-broker.html#GUID-A7D1301B-635F-46C6-9E33-FDA2093B8ABA

The broker log file is created in the same directory as the alert log and is named drc<$ORACLE_SID>.log.


Thanks,
mTj
Your rating?: This reply is Good Excellent
Goto: Reply - Top of page 
If you think this item violates copyrights, please click here