The DBMS_METADATA package implements the mdAPI. It is an aggregated definition of retrieved objects. DBMS_METADATA allows you to generate data definition language (DDL) statements and to submit XML files to execute DDL statements.
Privileges
DBMS_METADATA is owned by the SYS user and has privileges granted to PUBLIC. DBMS_METADATA is executed with the privileges of the caller, that is, based on the security profile of the caller.