Get DDL of all privileges granted to user
set feedback off pages 0 long 900000 lines 20000 pagesize 20000 serveroutput on accept USERNAME prompt "Enter username :" --This line add a semicolon at the end of each statement execute dbms_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.SESSION_TRANSFORM,'SQLTERMINATOR',true); -- This will generate the DDL for the user and add his objects,system and role grants SELECT DBMS_METADATA.GET_DDL('USER',us
oracle configurationintermediate
by OracleDba
13 views