Oracle Solution for Error ora-16160

Solution for Oracle Error ORA-16160

ORA-16160: Cannot change protected standby database configuration

What triggered the Error:

An attempt was made to change the standby database configuration when the primary database is in standby protected mode.

What should we do to fix it:

The standby database must be added to the configuration before the primary database is opened.