1 2 3 4 5 6 7 8 9 10 11 12
| set linesize 500 set pagesize 500 col role for a20 col username for a23 col privilege for a30 col default_tablespace for a23 col temporary_tablespace for a23 col profile for a14 select a.grantee username, a.granted_role role,b.privilege,c.default_tablespace,c.temporary_tablespace,c.profile from dba_role_privs a,role_sys_privs b,dba_users c where a.granted_role=b.role and a.grantee='API' and a.grantee=c.username union select grantee username,(select 'N/A' from dual) role,privilege,d.default_tablespace,d.temporary_tablespace,profile from dba_sys_privs,dba_users d where grantee='API' and grantee=d.username order by username;
|