解决方法
简要(从
here起)
select dbms_Metadata.get_ddl('USER','...') FROM DUAL; SELECT DBMS_MetaDATA.GET_GRANTED_DDL('ROLE_GRANT','...') FROM DUAL; SELECT DBMS_MetaDATA.GET_GRANTED_DDL('SYSTEM_GRANT','...') FROM DUAL; SELECT DBMS_MetaDATA.GET_GRANTED_DDL('OBJECT_GRANT','...') FROM DUAL; SELECT DBMS_MetaDATA.GET_granted_DDL('TABLESPACE_QUOTA','...') FROM dual;