Oracle Error ORA-16267: Cannot instantiate a Logical Standby during a switchover

Oracle Error Message

ORA-16267: Cannot instantiate a Logical Standby during a switchover

Reason for the Error

An instantiation of a Logical Standby has been attempted for a primary database that is in the middle of a switchover.

Solution

Execute ALTER DATABASE PREPARE TO SWITCHOVER CANCEL to cancel the switchover, and attempt the instantiation again.