Roles for Active users in a database [message #127798] |
Wed, 13 July 2005 07:37 |
Mahesh P
Messages: 69 Registered: September 2004
|
Member |
|
|
Hi all,
can anyone can give me a query to find all the users/schema with roles assigned to that schema.
simply this shud be like as follows:
User | Role
-----------
A | DBA
B | user
etc..
Thanks & regards,
Mahesh P
|
|
|
|
|
Re: Roles for Active users in a database [message #127844 is a reply to message #127798] |
Wed, 13 July 2005 11:28 |
smartin
Messages: 1803 Registered: March 2005 Location: Jacksonville, Florida
|
Senior Member |
|
|
In general, one thing I have found that is helpful if you want to know the view name to look for something, is to do a query against dba_views. In this case, you are looking for 'ROLE' information, so the query would be like:
select view_name from dba_views where view_name like '%ROLE%';
Of course the reference guide is useful here also, but sometimes it is easier to enter the query than pull up the guide.
|
|
|