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

Last updated on JUNE 09, 2016

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.3 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','INSTR_SEARCH_CRITERIA_MV','INSTR_REFERENCE') from dual;
ERROR:
ORA-31603: object "INSTR_SEARCH_CRITERIA_MV" of type MATERIALIZED_VIEW not
found in schema "INSTR_REFERENCE"
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.

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms