Oracle Solution for Error ora-16609

Solution for Oracle Error ORA-16609

ORA-16609: database is being disabled

What triggered the Error:

A command was attempted on a database that was being disabled. For example, attempting to reinstate the old primary database, the database that was the primary database prior to the most recent failover, before it was ready to be reinstated.

What should we do to fix it:

Wait for the Data Guard broker to disable the database and then retry the command.