My Oracle Support Banner

DBMS_METADATA.GET_DDL Raises ORA-31603 Extracting Table Definition for Nested Table (Doc ID 1183173.1)

Last updated on AUGUST 04, 2018

Applies to:

Oracle Database - Enterprise Edition - Version to [Release 9.2 to 11.2]
Information in this document applies to any platform.


Extracting a table definition with DBMS_METADATA.GET_DDL is failing with:

SQL> select dbms_metadata.get_ddl('TABLE','A_NESTED',null) from dual;
ORA-31603: object "A_NESTED" of type TABLE not found in schema "SCOTT"
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 105
ORA-06512: at "SYS.DBMS_METADATA", line 3912
ORA-06512: at "SYS.DBMS_METADATA", line 5678
ORA-06512: at line 1

Even if the describe on it is working:

SQL> desc a_nested
Name Null? Type
----------------------------------------- -------- ----------------------------
A1 FLOAT(126)


To view full details, 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 a vibrant support community of peers and Oracle experts.