Monday, September 26, 2011

Listing all System Privileges


select
privilege,grantee
from   sys.dba_sys_privs
where   grantee not in
 ('SYS', 'SYSTEM', 'OUTLN', 'OLAPSYS','SYSMAN','EXP_FULL_DATABASE','DATAPUMP_IMP_FULL_DATABASE',
  'DBA', 'DATAPUMP_IMP_FULL_DATABASE', 'IMP_FULL_DATABASE',
  'ORACLE_OCM', 'OEM_MONITOR','CTXSYS', 'DBSNMP', 'IFSSYS',
  'IFSSYS$CM', 'WKSYS', 'ORDPLUGINS', 'WMSYS','ORDSYS','MDSYS','OWBSYS','OLAPSYS','EXFSYS',
 'OLAP_DBA','SCHEDULER_ADMIN','SPATIAL_CSW_ADMIN_USR','FLOWS_030000','AQ_ADMINISTRATOR_ROLE',
'SPATIAL_WFS_ADMIN_USR','OWB$CLIENT','RECOVERY_CATALOG_OWNER','XDB','OEM_ADVISOR')

No comments:

Post a Comment