Oracle Message ORA-16816 - incorrect database role

ERRORincorrect database role
CAUSEThe 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.
ACTIONManually fix the database to convert it to the appropriate database role, then issue an ENABLE DATABASE command to reenable the database.