Oracle Solution for Error ora-16785

Solution for Oracle Error ORA-16785

ORA-16785: the database is in NOARCHIVELOG mode

What triggered the Error:

The database was in NOARCHIVELOG mode when it was either a primary database or when it was a standby database that was being switched over to be a primary database.

What should we do to fix it:

Set the database to ARCHIVELOG mode by issuing the ALTER DATABASE ARCHIVELOG command.