Select Role || ' contains role:' "role privilege type", Granted_Role "privilege" From Role_Role_Privs Where Role='ONLINE_USERS' Union Select Role || ' contains system priv:', Privilege From Role_Sys_Privs Where Role='ONLINE_USERS' Union Select Role || ' contains object priv:', Privilege || ' ON ' || owner || '.' || table_name From Role_Tab_Privs Where Role='ONLINE_USERS' order by 1;
Output:
role privilege type | privilege |
---|---|
ONLINE_USERS contains object priv: | UPDATE ON SCOTT.EMP |
ONLINE_USERS contains role: | RESOURCE |
ONLINE_USERS contains system priv: | UPDATE ANY TABLE |
No comments:
Post a Comment