Duplicate Sequence# in both primary and standby database in v$archived_log
Please guys i need help here i have two databases one is primary the other is standby database, i stopped the standby database and i executed the following command
alter database commit to switchover to primary
the after a seconds i descovered that i did a mistake and i executed the command
alter database commit to switchover to physical standby;
now i have a problem in both databases , I have duplicate sequence number in both databases,
Look at sequence number 10468
-----------------------------------------------------------------------
1- primary
SQL> select sequence#, dest_id, archived, applied, completion_time from v$archived_log where dest_id = 2 and sequence# > 10399 order by sequence#
i restarted the standby database many times and tried with
Alter database recover managed standby database;
it doesn't work;
look at these too
---------------------------------------------------
1- primary
SQL> select max(sequence#) from v$archived_log where applied='YES' group by thread#;
MAX(SEQUENCE#)
--------------
10466
SQL>archive log list;
Database log mode Archive Mode
Automatic archival Enabled
Archive destination /pcard15/oradata/pcard/arch
Oldest online log sequence 10478
Next log sequence to archive 10487
Current log sequence 10487
----------------------------------
2- Standby
SQL>select max(sequence#) from v$archived_log where applied='YES' group by thread#;
MAX(SEQUENCE#)
--------------
10468
SQL>archive log list;
Database log mode Archive Mode
Automatic archival Enabled
Archive destination /pcard15/oradata/pcard/arch
Oldest online log sequence 10472
Next log sequence to archive 0
Current log sequence 10487
-----------------------------------------
can anyone help me please i'm afraid to shutdown the primary database caus it may not start again.
please consult your DBA who built the existing primary and standby sites. If you want to try your self there are bunches of documents available on the net. Google it and update the forum if you didn't find any thing.
Thanks,
Vijay Tummala
Try hard to get what you like OR you will be forced to like what you get.
Bookmarks