Extrair DDL ROLES
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
set heading off; set echo off; set pages 1000 set long 3000 spool extrair_roles_ddl.sql select dbms_metadata.get_ddl('ROLE', ROLE) from dba_roles; spool off CREATE ROLE "CONNECT"; CREATE ROLE "RESOURCE"; CREATE ROLE "DBA"; CREATE ROLE "PDB_DBA"; CREATE ROLE "AUDIT_ADMIN"; CREATE ROLE "AUDIT_VIEWER"; CREATE ROLE "SELECT_CATALOG_ROLE"; |