How to resolve ORA-06540: PL/SQL: compilation error ORA-06553: PLS-252: reference to the wrong copy of package STANDARD

There was an issue regarding expired archives did not clear at standby as scheduled and following error was raise.


RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of delete command at 07/09/2023 16:00:03
ORA-06540: PL/SQL: compilation error
ORA-06553: PLS-252: reference to the wrong copy of package STANDARD

Recovery Manager complete.


SOLUTION:

1. Restart the standby database

2. Flush shared pool

to clear the whole shared pool you would issue the following command from a privileged user.

ALTER SYSTEM FLUSH SHARED_POOL;

Comments

Popular posts from this blog

Enabling Transparent Data Encryption (TDE) in Oracle RAC on ODA with Data Guard – The Correct and Secure Approach

[FATAL] [DBT-10503] Template file is not specified

Resolving ORA-10635 and ORA-39171 Errors During BLOB Tablespace Maintenance