DBMS_METADATA.GET_DDL In 11g Produces Invalid SQL For Version 10g And Raises ORA-14160

(Doc ID 1495151.1)

Last updated on DECEMBER 06, 2016

Applies to:

Oracle Server - Enterprise Edition - Version and later
Information in this document applies to any platform.


DDL produced by 11g DBMS_METADATA.GET_DDL with VERSION specified for a subpartitioned table produces SQL that is invalid for 10g.

For example.
If version is specified for DBMS_METADATA.GET_DDL, the resulting SQL when run on a 10.2 database produces the following error:

Then run the output on 10.2 and it produces the error.


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