DBMS_METADATA.GET_DDL Creates Odd Output For Object Types
Last updated on MARCH 02, 2017
Applies to:Oracle Database - Enterprise Edition - Version 22.214.171.124 and later
Information in this document applies to any platform.
DBMS_METADATA.GET_DDL creates odd output for object types in conjunction with ALTER TYPE definitions since 126.96.36.199. The SQL*Plus tool can not handle the scripts created by DBMS_METADATA.GET_DDL.
1. Create the type:
Expected output since 188.8.131.52:
CREATE OR REPLACE TYPE "REMOS"."T_TEST" AS OBJECT (id NUMBER(6) );
ALTER TYPE "REMOS"."T_TEST" ADD ATTRIBUTE testname VARCHAR2(30) CASCADE
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
Million Knowledge Articles and hundreds of Community platforms