How to mirror the privileges of an user to another in Oracle Database? I need to grant all the privileges of a user (say 'AAA') to another user (say 'BBB').

Is there such an Oracle command (11.2.0.3.0)?
Get all privileges from AAA

 SELECT DBMS_METADATA.GET_GRANTED_DDL('ROLE_GRANT','AAA') FROM DUAL;

 SELECT DBMS_METADATA.GET_GRANTED_DDL('SYSTEM_GRANT','AAA') FROM DUAL;

 SELECT DBMS_METADATA.GET_GRANTED_DDL('OBJECT_GRANT','AAA') FROM DUAL;


Change the DDL commands with the user 'BBB' and execute.