The DBMS_METADATA package is used to generate DDL statements or to execute DDL statements by submitting an XML document.
Applicability
This topic applies only to OceanBase Database Enterprise Edition. OceanBase Database Community Edition does not support this feature.
Privilege requirements
The DBMS_METADATA package belongs to the SYS user and has execute access privileges granted to PUBLIC. The DBMS_METADATA package runs with the privileges of the caller (i.e., the security profile of the caller).
Overview of DBMS_METADATA subprograms
The following table lists the DBMS_METADATA subprograms supported in the current version of OceanBase Database and their brief descriptions.
| Subprogram | Description |
|---|---|
| GET_DDL | Returns the metadata of a single object as DDL. |
| GET_TABLE_INDEX_DDL | Extracts index DDL statements for a table (TABLE) in batches. |
