ORA-31600 While Running DBMS_METADATA.GET_DDL (Doc ID 1567572.1)

Last updated on DECEMBER 06, 2016

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.3 and later
Information in this document applies to any platform.
***Checked for relevance on 11-Jan-2016***

Symptoms

While trying to get any table or any object DDL using DBMS_METADATA, the following errors occurs

SQL> select dbms_metadata.GET_DDL('TABLE', 'Table_Name', 'SCHEMA') from dual;


ERROR:
ORA-31600: invalid input value COMPATIBLE for parameter VERSION in function GET_DDL
ORA-06512: at "SYS.DBMS_METADATA", line 3110
ORA-06512: at "SYS.DBMS_METADATA", line 3165
ORA-06512: at "SYS.DBMS_METADATA", line 4812
ORA-06512: at line 1

 

The Compatible parameter in database parameters file is set to proper value.

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