Check Dataguard found Log Switch gap status in Oracle

 

Found Log Switch Gap status in archive dest status

We are planning to switch-over the database from primary to secondary in Data guard environment. When we are checking the status of following view which tell us that we are good to go and database is in sync state.

In one status we are getting LOG SWITCH GAP instead of NO GAP.


-- On primary site
Select status,gap_status from v$archive_dest_status where dest_id=2;

STATUS GAP_STATUS
------ --------------------
VALID LOG SWITCH GAP

Solution
To make this status to NO GAP, we have to fire the switch logfile command.

Alter system switch logfile;

Verify the status after switch logfile:

Select status,gap_status from v$archive_dest_status where dest_id=2;

STATUS  GAP_STATUS
------  --------------------
VALID   NO GAP


Related posts

How to deal with ORA-00020: maximum number of processes (%s) exceeded

How to resolve ORA-01111 ORA-01110 ORA-01157 in a physical standby database 

Công cụ tự động khai báo datafile – Oracle