How to drop a broken standby log file
I had tested upgrading a DataGuard configuration with primary and standby on the same host. After the tests succeeded, I upgraded the production database. Now I didn't need the test standby any more.
Now, I have use for an independent duplicate database. So I activated the former standby, took it out of DataGuard, and gave it a new id.
That works seemingly fine, but this database shares a standby log file with its former primary. And I kept seeing errors in the alert log:
Errors in file /home/oracle/base/diag/rdbms/dup_uniq/dupsid/trace/dupsid_tt03_12415.trc:ORA-00338: log 1 of thread 1 is more recent than control fileORA-00312: online log 1 thread 1: '/home/oracle/flash_recovery_area/PRIMARY_UNIQ/onlinelog/o1_mf_1_dwnzn52g_.log'