Unix Technical Forum

query that will simply return all Oracle role/permissions for all object in a database

This is a discussion on query that will simply return all Oracle role/permissions for all object in a database within the Oracle Database forums, part of the Database Server Software category; --> Hi all, I need a query that will simply return all Oracle role/permissions for all object in a database. ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-24-2008, 07:14 AM
Derek Smigelski
 
Posts: n/a
Default query that will simply return all Oracle role/permissions for all object in a database

Hi all,

I need a query that will simply return all Oracle role/permissions for
all object in a database. (IE do they have SELECT, UPDATE, DELETE etc
etc permissions.

Thanks,
Derek Smigelski
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-24-2008, 07:14 AM
Mark C. Stock
 
Posts: n/a
Default Re: query that will simply return all Oracle role/permissions for all object in a database


"Derek Smigelski" <derek.smigelski@bestsoftware.com> wrote in message
news:820e9de3.0409030640.69a058d5@posting.google.c om...
| Hi all,
|
| I need a query that will simply return all Oracle role/permissions for
| all object in a database. (IE do they have SELECT, UPDATE, DELETE etc
| etc permissions.
|
| Thanks,
| Derek Smigelski


look at dba_tab_privs

++ mcs


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-24-2008, 07:15 AM
Daniel Morgan
 
Posts: n/a
Default Re: query that will simply return all Oracle role/permissions forall object in a database

Mark C. Stock wrote:

> "Derek Smigelski" <derek.smigelski@bestsoftware.com> wrote in message
> news:820e9de3.0409030640.69a058d5@posting.google.c om...
> | Hi all,
> |
> | I need a query that will simply return all Oracle role/permissions for
> | all object in a database. (IE do they have SELECT, UPDATE, DELETE etc
> | etc permissions.
> |
> | Thanks,
> | Derek Smigelski
>
>
> look at dba_tab_privs
>
> ++ mcs


Understanding that if someone also has, for example,
SELECT ANY TABLE
there will be no related records in DBA_TAB_PRIVS.
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace 'x' with 'u' to respond)

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-24-2008, 07:15 AM
Mark C. Stock
 
Posts: n/a
Default Re: query that will simply return all Oracle role/permissions for all object in a database


"Daniel Morgan" <damorgan@x.washington.edu> wrote in message
news:1094255690.866056@yasure...
| Mark C. Stock wrote:
|
| > "Derek Smigelski" <derek.smigelski@bestsoftware.com> wrote in message
| > news:820e9de3.0409030640.69a058d5@posting.google.c om...
| > | Hi all,
| > |
| > | I need a query that will simply return all Oracle role/permissions for
| > | all object in a database. (IE do they have SELECT, UPDATE, DELETE etc
| > | etc permissions.
| > |
| > | Thanks,
| > | Derek Smigelski
| >
| >
| > look at dba_tab_privs
| >
| > ++ mcs
|
| Understanding that if someone also has, for example,
| SELECT ANY TABLE
| there will be no related records in DBA_TAB_PRIVS.
| --
| Daniel A. Morgan
| University of Washington
| damorgan@x.washington.edu
| (replace 'x' with 'u' to respond)
|

in which case you will also need to look at DBA_SYS_PRIVS for users with
various '%ANY TABLE' privs (and perhaps also the 'EXECUTE ANY%' privs)

(good catch daniel)

plus, if you're trying to determine what object privs particular users have,
you'll also want to take a look at what roles they have, and they determine
what privs whose roles confer to them -- so likely you'll also be looking at
DBA_ROLE_PRIVS

++ mcs


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-24-2008, 07:16 AM
Rene Nyffenegger
 
Posts: n/a
Default Re: query that will simply return all Oracle role/permissions for all object in a database

derek.smigelski@bestsoftware.com (Derek Smigelski) wrote in message news:<820e9de3.0409030640.69a058d5@posting.google. com>...
> Hi all,
>
> I need a query that will simply return all Oracle role/permissions for
> all object in a database. (IE do they have SELECT, UPDATE, DELETE etc
> etc permissions.
>
> Thanks,
> Derek Smigelski


Derek,

I have once written a script that recursively (that is also via roles)
lists the object privileges. You find it on my homepage at:

http://www.adp-gmbh.ch/ora/misc/recu...privilege.html

(Named Object Privileges)


hth

Rene

--
Rene Nyffenegger
www.adp-gmbh.ch
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-24-2008, 07:16 AM
Pete Finnigan
 
Posts: n/a
Default Re: query that will simply return all Oracle role/permissions for all object in a database

Hi Derek,

Try my script find_all_privs.sql that is available on my tools page
http://www.petefinnigan.com/tools.htm that recursively lists all
privileges for a user for roles, system privileges and object
privileges.

hth

kind regards

Pete
--
Pete Finnigan
emailete@petefinnigan.com
Web site: http://www.petefinnigan.com - Oracle security audit specialists
Book:Oracle security step-by-step Guide - see http://store.sans.org for details.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:35 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com