Job Seekers   Employers
dbapool: Authors | Submissions | Contact Us
   Forgot password? | Sign up
  Home   Discussion Forum   Articles   Interview Questions   FAQs   Scripts   Rewards   Analyzer   White Papers   Blog   Certification   Downloads   Tools
 

Topic: Database Administration >> query to get user complete privileges

Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property. You may review the entire Oracle Certification Program Candidate Agreement online Here.



  


 Title: query to get user complete privileges
 Soumya  Posted: Jun 20, 2007 05:04:27 AM

 Total Post: 56
 Joined: Mar, 2006






 
Hi ,

Does any one has query which can show complete privileges & roles
granted to a particular user.

thanx

 KS
Posted: Jun 20, 2007 10:07:50 AM  

 Total Post: 60
 Joined: Nov, 2006






 
Hi ,
checkout these Data Dictionary Views,

USER_ROLE_PRIVS
DBA_ROLE_PRIVS

Also, from the below views you can get the additional information about the privileges a user have on a table.

ROLE_TAB_PRIVS


-Sri


 Mohammed Taj
Posted: Jul 29, 2007 12:26:48 PM  

 Total Post: 709
 Joined: Jul, 2007






 
Hi,

you can also use below query

for Priviliges

select * from session_privs;

for roles

select * from session_roles

http://dbataj.blogspot.com/2007/02/privilege.html



regards
Taj
http://dbataj.blogspot.com


 Time Zone: EDT

  




Forum Rules & Description


Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user




 








Get FREE Magazines

Top 10 Forum User

  Murtuja Khokhar816
  Mohammed Taj709
  Jayanta Sur479
  positive fanatic418
  Vigyan Kaushik386
  Gitesh Trivedi322
  Gopu Gopi242
  neeraj sharma240
  Ramesh Jois226
  Bishal Khetan205






oracle Mag



  About Us Advertise Terms of Use Privacy Newsletters Contact Us    

Home   Discussion Forum   FAQs  Articles  Jobs   Newsletters  Directory  Downloads 

Our Premium Sponsor
Confio Software