My Oracle Support Banner

ORA-31603 When Executing dbms_metadata.get_ddl('MATERIALIZED_VIEW'..) After 11g R2 Upgrade (Doc ID 1552260.1)

Last updated on NOVEMBER 04, 2019

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.3 and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Database Cloud Exadata Service - Version N/A and later
Information in this document applies to any platform.

Symptoms

After upgrading the database, you get the following error:

SQL>
select dbms_metadata.get_ddl( 'MATERIALIZED_VIEW', '<MV_NAME>' ,’ <OWNER>’) from dual;

ERROR:
ORA-31603: object "MV_NAME"of type MATERIALIZED_VIEW not
found in schema "<Schema_Name>"
ORA-06512: at "SYS.DBMS_METADATA", line 5088
ORA-06512: at "SYS.DBMS_METADATA", line 7589
ORA-06512: at line 1

You have followed the solution in:

Document ID 1467126.1,
Solution says:
1. run catproc.sql
SQL >@ $ORACLE_HOME/rdbms/admin/catproc.sql
2. recompile invalid objects, if any
SQL >@ $ORACLE_HOME/rdbms/admin/utlrp.sql


However, the problem remains.

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.