Direct Role Grants to Users : dba_role_privs « System Tables Data Dictionary « Oracle PL/SQL Tutorial

Oracle PL/SQL Tutorial
1. Introduction
2. Query Select
3. Set
4. Insert Update Delete
5. Sequences
6. Table
7. Table Joins
8. View
9. Index
10. SQL Data Types
11. Character String Functions
12. Aggregate Functions
13. Date Timestamp Functions
14. Numerical Math Functions
15. Conversion Functions
16. Analytical Functions
17. Miscellaneous Functions
18. Regular Expressions Functions
19. Statistical Functions
20. Linear Regression Functions
21. PL SQL Data Types
22. PL SQL Statements
23. PL SQL Operators
24. PL SQL Programming
25. Cursor
26. Collections
27. Function Procedure Packages
28. Trigger
29. SQL PLUS Session Environment
30. System Tables Data Dictionary
31. System Packages
32. Object Oriented
33. XML
34. Large Objects
35. Transaction
36. User Privilege
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Oracle PL/SQL Tutorial » System Tables Data Dictionary » dba_role_privs 
30. 39. 1. Direct Role Grants to Users
SQL>
SQL> SELECT b.granted_role ||
  2         DECODE(admin_option, 'YES',
  3         ' (With Admin Option)',
  4         NULLwhat_granted, a.username
  5  FROM   sys.dba_users a, sys.dba_role_privs b
  6  WHERE  a.username = b.grantee
  7  and    rownum < 50
  8  ORDER BY 1;

WHAT_GRANTED
--------------------------------------------------
USERNAME
------------------------------
AQ_ADMINISTRATOR_ROLE (With Admin Option)
SYSTEM

AQ_ADMINISTRATOR_ROLE (With Admin Option)
SYS

AQ_USER_ROLE (With Admin Option)
SYS


WHAT_GRANTED
--------------------------------------------------
USERNAME
------------------------------
AUTHENTICATEDUSER (With Admin Option)
SYS

CONNECT
MDSYS

CONNECT
PLSQL


WHAT_GRANTED
--------------------------------------------------
USERNAME
------------------------------
CONNECT
HR

CONNECT
FLOWS_FILES

CONNECT (With Admin Option)
SYS


WHAT_GRANTED
--------------------------------------------------
USERNAME
------------------------------
CONNECT (With Admin Option)
FLOWS_020100

CTXAPP
PLSQL

CTXAPP
XDB


WHAT_GRANTED
--------------------------------------------------
USERNAME
------------------------------
CTXAPP (With Admin Option)
CTXSYS

CTXAPP (With Admin Option)
SYS

DBA
JAVA2S


WHAT_GRANTED
--------------------------------------------------
USERNAME
------------------------------
DBA (With Admin Option)
FLOWS_020100

DBA (With Admin Option)
SYS

DBA (With Admin Option)
SYSTEM


WHAT_GRANTED
--------------------------------------------------
USERNAME
------------------------------
DELETE_CATALOG_ROLE (With Admin Option)
SYS

EXECUTE_CATALOG_ROLE (With Admin Option)
SYS

EXP_FULL_DATABASE (With Admin Option)
SYS


WHAT_GRANTED
--------------------------------------------------
USERNAME
------------------------------
GATHER_SYSTEM_STATISTICS (With Admin Option)
SYS

HS_ADMIN_ROLE (With Admin Option)
SYS

IMP_FULL_DATABASE (With Admin Option)
SYS


WHAT_GRANTED
--------------------------------------------------
USERNAME
------------------------------
LOGSTDBY_ADMINISTRATOR (With Admin Option)
SYS

OEM_ADVISOR (With Admin Option)
SYS

OEM_MONITOR
DBSNMP


WHAT_GRANTED
--------------------------------------------------
USERNAME
------------------------------
OEM_MONITOR (With Admin Option)
SYS

PLUSTRACE (With Admin Option)
SYS

RECOVERY_CATALOG_OWNER (With Admin Option)
SYS


WHAT_GRANTED
--------------------------------------------------
USERNAME
------------------------------
RESOURCE
HR

RESOURCE
FLOWS_FILES

RESOURCE
PLSQL


WHAT_GRANTED
--------------------------------------------------
USERNAME
------------------------------
RESOURCE
CTXSYS

RESOURCE
XDB

RESOURCE
MDSYS


WHAT_GRANTED
--------------------------------------------------
USERNAME
------------------------------
RESOURCE
OUTLN

RESOURCE
TSMSYS

RESOURCE (With Admin Option)
FLOWS_020100


WHAT_GRANTED
--------------------------------------------------
USERNAME
------------------------------
RESOURCE (With Admin Option)
SYS

SCHEDULER_ADMIN (With Admin Option)
SYS

SELECT_CATALOG_ROLE
FLOWS_020100


WHAT_GRANTED
--------------------------------------------------
USERNAME
------------------------------
SELECT_CATALOG_ROLE (With Admin Option)
SYS

XDBADMIN (With Admin Option)
SYS

XDBWEBSERVICES (With Admin Option)
SYS


45 rows selected.

SQL>
SQL>
30. 39. dba_role_privs
30. 39. 1. Direct Role Grants to Users
30. 39. 2. Query DBA_ROLE_PRIVS, ROLE_TAB_PRIVS for Name of the object, Privilege granted,Was admin option granted
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.