select grantee||': '||granted_role from dba_role_privs
where grantee not in('DBA','SYS','SYSTEM','WKSYS','LBACSYS','WMSYS')
and admin_option='YES'
and grantee not in (select distinct owner from dba_objects)
and grantee not in (select grantee from dba_role_privs where granted_role='DBA');
Want to post your scripts here in this blog ? Email it to snojha@gmail.com. You will be rewarded for your scripts if selected by our experts.
Wednesday, January 13, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment