ORA-16785: the database is not in ARCHIVELOG mode
Cause: The database is in NOARCHIVELOG mode, when it is either a primary database or a standby database that is being switched over to be a primary database.
Action: Reset the database to ARCHIVELOG mode by issuing ALTER DATABASE ARCHIVELOG command.