DBMS_METADATA « System Packages « Oracle PL / SQL






1.Save value returned from DBMS_METADATA.GET_XML to xmltype
2.dbms_metadata.get_ddl( 'TABLE', 'TABLENAME' )