Oracle Solution for Error ora-16432

Solution for Oracle Error ORA-16432

ORA-16432: inconsistent set of terminal logs detected

What triggered the Error:

Media Recovery stopped because it detected an inconsistency between the first log in the new incarnation and the state of the previous incarnation. If this database is a bystander standby database, this is most likely because there was a failover operation, and this database applied terminal logs generated from that failover operation for some redo threads but applied corresponding logs from the old primary database of that failover operation for some other redo threads.

What should we do to fix it:

Flashback or restore this database to before the standby_became_primary_scn of that failover operation and restart media recovery. The standby_became_primary_scn of the failover operation can be obtained from V$DATABASE on the new primary.