Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: [Objects and System Grants]The definitive query
jbmorla_at_gmail.com wrote:
> Hi,
>
> I'm looking for a query or unions of queries that would list all grants
>
> The header of the query would look like this
>
> User_or_Role has_this_grant on_this_object granted_by....
>
> It's just because a consultant DBA has granted select on all tables and
> that's a System grant, it's quite tricky to remove it from 200+ users
> who might have lesser select grants.
>
>
> Many thanks
>
> JayBee
Try this...
SELECT grantee,
granted_role, 'ROLE' ROLE_OR_USER
privilege, 'USER' ROLE_OR_USER
privilege || ' ' || owner ||'.' || table_name granted_privilege, 'USER' ROLE_OR_USER
Steve Received on Tue Jun 20 2006 - 08:01:07 CDT