DBMS_METADATA.GET_DDL Creates Odd Output For Object Types (Doc ID 2053015.1)

Last updated on MARCH 02, 2017

Applies to:

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

Symptoms

DBMS_METADATA.GET_DDL creates odd output for object types in conjunction with ALTER TYPE definitions since 11.2.0.4. The SQL*Plus tool can not handle the scripts created by DBMS_METADATA.GET_DDL.

1. Create the type: 

 

Changes

 Expected output since 11.2.0.4:

CREATE OR REPLACE TYPE "REMOS"."T_TEST" AS OBJECT (id NUMBER(6) );
/
ALTER TYPE "REMOS"."T_TEST" ADD ATTRIBUTE testname VARCHAR2(30) CASCADE

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