At a client site I got the following errors:
RMAN> restore database;
Starting restore at 17-AUG-11
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 08/17/2011 17:42:48
ORA-06550: line 1, column 2273:
PLS-00302: component 'GETRANGEALBACKUP' must be declared
ORA-06550: line 1, column 2238:
PL/SQL: Statement ignored
ORA-06550: line 1, column 2453:
PLS-00302: component 'RESTORECMD_T' must be declared
ORA-06550: line 1, column 2424:
PL/SQL: Statement ignored
RMAN> exit
To resolve the issue I did the following:
Opened RMAN explicitly from E:\oracle\product\10.2.0\db_1\BIN rather than using the default one (in the path) which was opening the AGENT version (different version).