Oracle Solution for Error ora-16816

Solution for Oracle Error ORA-16816

ORA-16816: incorrect database role

What triggered the Error:

The Data Guard broker detected that the specified database had a database role that was different from the database role recorded in the Data Guard configuration. This could be the result of a failed switchover or failover operation, or an out-of-band switchover or failover operation done to the database.

What should we do to fix it:

Manually fix the database to convert it to the appropriate database role, then issue an ENABLE DATABASE command to reenable the database.