0

I require a PL/SQL script that copies all of a user's rights, roles and mandates from one user to another.

I am using Oracle 12c.

  • I answered this on stackoverflow.com and you are asking it again. – sandman Jun 10 at 5:50
1

may be helpful.

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

set long 9999999
SELECT DBMS_METADATA.GET_GRANTED_DDL('OBJECT_GRANT','username') FROM DUAL;
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.