Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> What can do a user (where can he do what ;-) ??)
Hello,
I've wrote a query to know what privilege (with nature and type) a user
have like that :
SELECT 'DIRECT' AS "Type",'SYSTEME' AS "Nature",privilege as "Privilege"
FROM dba_sys_privs
WHERE grantee=upper('&usr')
UNION
SELECT 'ROLE','SYSTEME',grantee||' : '||privilege
FROM dba_sys_privs
WHERE grantee IN
(SELECT granted_role FROM dba_role_privs WHERE grantee=upper('&usr'))
AND b.grantee=a.granted_role;
I'd like to add one info : the object (ie, tableSpace.tabes) that the user own or on witch he can do anything
I'm a bit lost coz I don't know where to find info on what he can do somewhere else than in his on schema (=TableSpace)
Thank for you help. Received on Thu May 06 2004 - 03:32:34 CDT