RMAN Commands fail with ORA-00904: “BS”.”GUID”: invalid identifier

RMAN Commands fail with ORA-00904: “BS”.”GUID”: invalid identifier

Oracle Database Enterprise Edition 12.1.0.2:


rman target /

Recovery Manager: Release 12.1.0.2.0 - Production on Thu Sep 2 08:33:58 2021

Copyright (c) 1982, 2014, Oracle and/or its affiliates. All rights reserved.

connected to target database: PDBCDB01 (DBID=2972180763)

RMAN>

 

RMAN command fails with error:

 



RMAN> list backup summary;

using target database control file instead of recovery catalog
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of list command at 09/02/2021 07:31:12
ORA-00904: "BS"."GUID": invalid identifier

RMAN> crosscheck backup;

using channel ORA_DISK_1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of crosscheck command at 09/02/2021 07:37:18
ORA-00904: "DC"."GUID": invalid identifier


 

Solution:

Recreate the DBMS_RCVMAN package/package body:

Scripts: dbmsrman.sql and prvtrmns.plb:

 


SQL> @?/rdbms/admin/dbmsrman.sql

Session altered.

Package created.

Session altered.

PL/SQL procedure successfully completed.

PL/SQL procedure successfully completed.

Grant succeeded.

Grant succeeded.

Grant succeeded.

Grant succeeded.

Grant succeeded.

Grant succeeded.

Grant succeeded.

Grant succeeded.

Session altered.

Synonym dropped.

View dropped.

Function dropped.

Type dropped.

Type dropped.

Type dropped.

Type created.

Type created.

Type created.

Type body created.

Function created.

View created.

Synonym created.

Synonym created.

Grant succeeded.

Grant succeeded.

Synonym dropped.

View dropped.

Synonym dropped.

View dropped.

Synonym dropped.

View dropped.

Function dropped.

Type dropped.

Type dropped.

Type dropped.

Type created.

Type created.

Type created.

Type body created.

Function created.

View created.

View created.

Synonym created.

Synonym created.

View created.

View created.

Synonym created.

Synonym created.

View created.

View created.

Synonym created.

Synonym created.

Grant succeeded.

Grant succeeded.

Grant succeeded.

Grant succeeded.

View created.

Synonym created.

Grant succeeded.

View created.

Synonym created.

Grant succeeded.

View created.

Synonym created.

Grant succeeded.

View created.

Synonym created.

Grant succeeded.

View created.

Synonym created.

Grant succeeded.

View created.

Synonym created.

Grant succeeded.

View created.

Synonym created.

Grant succeeded.

View created.

Synonym created.

Grant succeeded.

View created.

Synonym created.

Grant succeeded.

View created.

Synonym created.

Grant succeeded.

View created.

Synonym created.

Grant succeeded.

View created.

Synonym created.

Grant succeeded.

View created.

Synonym created.

Grant succeeded.

View created.

Synonym created.

Grant succeeded.

View created.

Synonym created.

Grant succeeded.

View created.

Synonym created.

Grant succeeded.

View created.

Synonym created.

Grant succeeded.

View created.

Synonym created.

Grant succeeded.

View created.

Synonym created.

Grant succeeded.

View created.

Synonym created.

Grant succeeded.

View created.

Synonym created.

Grant succeeded.

View created.

Synonym created.

Grant succeeded.

Session altered.

SQL> @?/rdbms/admin/prvtrmns.plb

Session altered.

Package body created.

Session altered.