DBMS_METADATA.GET_DDL Creates Odd Output For Object Types
(Doc ID 2053015.1)
Last updated on APRIL 14, 2021
Applies to:
Oracle Database - Enterprise Edition - Version 11.2.0.4 and laterOracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Gen 1 Exadata Cloud at Customer (Oracle Exadata Database Cloud Machine) - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A 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
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
Symptoms |
Changes |
Cause |
Solution |
References |