dbTalk Databases Forums  

Regarding query

comp.databases.oracle comp.databases.oracle


Discuss Regarding query in the comp.databases.oracle forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
LittleDBA
 
Posts: n/a

Default Regarding query - 09-02-2004 , 02:31 PM






Could anyone tell me what this query means?
Thanks a lot.

---------------------------------------
select username
from dba_users
where not exists (select 1
from dba_role_privs
where username = grantee
and granted_role = 'DR_ACCESS')
/
---------------------------------------

Reply With Quote
  #2  
Old   
Ana C. Dent
 
Posts: n/a

Default Re: Regarding query - 09-02-2004 , 08:25 PM






mlei (AT) txi (DOT) com (LittleDBA) wrote in
news:b6ba5bb.0409021131.6e7e72ba (AT) posting (DOT) google.com:

Quote:
Could anyone tell me what this query means?
Thanks a lot.

---------------------------------------
select username
from dba_users
where not exists (select 1
from dba_role_privs
where username = grantee
and granted_role = 'DR_ACCESS')
/
---------------------------------------

It produces a list of usernames which do not have the DR_ACCESS role


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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.