Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Query involving roles and privs.

577917Dec 17 2010 — edited Dec 17 2010
I am trying to create the following query:
Given a table (or view) and a user, I would like the query to list all paths of roles through which the user has been granted given privilege (say "SELECT") to the selected table. The paths will look someting like
TABLE => ROLE1 => ROLE2 => ROLE3 => USER
If the user doesn't have SELECT privilege on the table than the query will return no rows ofcourse. If there is more than one path through which the user gets the privilege, then the query will return multiple rows.

Can anybody assist please
George
This post has been answered by Frank Kulash on Dec 17 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 14 2011
Added on Dec 17 2010
9 comments
800 views