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

Last updated on DECEMBER 06, 2016

Applies to:

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

Symptoms

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


SQL> select dbms_metadata.get_ddl('TABLE','A_NESTED',null) from dual;
ERROR:
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)
A2 NUMBER(38)
A3 NUMBER(38)


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