Oracle Solution for Error ora-12352

Solution for Oracle Error ORA-12352

ORA-12352: object string.string@string is invalid

What triggered the Error:

An attempt was made to reference (compile against) an object of a secondary database but the object is invalid and the system cannot validate or recompile it because it is in a secondary database.

What should we do to fix it:

Manually recompile the invalid object in the secondary database.