Check the error detail in Oracle Dataguard

One of my Dataguard Server is out of sync and even its is resolvable gap but i want to know the error which causing the issue. So that i know the root cause to avoid that problem in future.

Error

select status,gap_Status from v$archive_Dest_Status where dest_id=2;
STATUS GAP_STATUS
--------- ------------------------
ERROR RESOLVABLE GAP

Solution: To get the error detail:

SELECT dest_id, status, error, destination
FROM v$archive_dest
WHERE dest_id = 2;

Check detailed status

SELECT dest_id, status, gap_status, error
FROM v$archive_dest_status
WHERE dest_id = 2;

Check managed recovery

SELECT process, status, sequence#
FROM v$managed_standby;

RESOLVABLE GAP:

ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT;
This entry was posted in Oracle on by .
Unknown's avatar

About SandeepSingh

Hi, I am working in IT industry with having more than 15 year of experience, worked as an Oracle DBA with a Company and handling different databases like Oracle, SQL Server , DB2 etc Worked as a Development and Database Administrator.

Leave a Reply