My Oracle Support Banner

ORA-31603 Executing DBMS_METADATA.GET_DDL Or ORA-39166 On DataPump Import (Doc ID 863845.1)

Last updated on AUGUST 04, 2018

Applies to:

Oracle Server - Enterprise Edition - Version: to - Release: 10.2 to 10.2
Information in this document applies to any platform.
***Checked for relevance on 23-FEB-2012***


Trying to extract DDL on table using DBMS_METADATA.GET_DDL gives errors:


ORA-31603: object "DATA_TABLES" of type TABLE not found in schema "SCOTT"
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 105
ORA-06512: at "SYS.DBMS_METADATA", line 2805
ORA-06512: at "SYS.DBMS_METADATA", line 4333
ORA-06512: at line 1

Or, DataPump import may give errors as follows:

ORA-39166: Object DATA_TABLES was not found

and after the import there are tables missing on target database. The tables involved have CDC tables placed on them.


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

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