DBMS_METADATA.GET_DDL Fails With ORA-31603 For Constraint_type = 'R'
(Doc ID 207674.1)
Last updated on AUGUST 04, 2018
Applies to:PL/SQL - Version 126.96.36.199 and later
Oracle Database - Enterprise Edition - Version 188.8.131.52 and later
Information in this document applies to any platform.
***Checked for relevance on 24-Aug-2017***
Calling DBMS_METADATA.GET_DDL fails for referential constraints on execution of the following SQL select statement:
ORA-31603: object "TESTTAB_FK" of type CONSTRAINT not found in schema "SCOTT"
ORA-06512: at "SYS.DBMS_METADATA", line 5088
ORA-06512: at "SYS.DBMS_METADATA", line 7589
ORA-06512: at line 1
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!