Object Grants to Roles : dba_tab_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_tab_privs 
30. 42. 2. Object Grants to Roles
SQL>
SQL>
SQL> SELECT owner || '.' || table_name obj,
  2         privilege what_granted, grantable, grantee
  3  FROM   sys.dba_tab_privs
  4  WHERE  NOT EXISTS
  5  (SELECT  'x'
  6  FROM     sys.dba_users
  7  WHERE    username = grantee)
  8  and    rownum < 50
  9  ORDER BY 1,2,3;

OBJ
-------------------------------------------------------------
WHAT_GRANTED                             GRA GRANTEE
---------------------------------------- --- ------------------------------
OUTLN.OL$
SELECT                                   NO  SELECT_CATALOG_ROLE

OUTLN.OL$HINTS
SELECT                                   NO  SELECT_CATALOG_ROLE

OUTLN.OL$NODES
SELECT                                   NO  SELECT_CATALOG_ROLE


OBJ
-------------------------------------------------------------
WHAT_GRANTED                             GRA GRANTEE
---------------------------------------- --- ------------------------------
SYS.AUD$
DELETE                                   NO  DELETE_CATALOG_ROLE

SYS.AUX_STATS$
DELETE                                   NO  GATHER_SYSTEM_STATISTICS

SYS.AUX_STATS$
INSERT                                   NO  GATHER_SYSTEM_STATISTICS


OBJ
-------------------------------------------------------------
WHAT_GRANTED                             GRA GRANTEE
---------------------------------------- --- ------------------------------
SYS.AUX_STATS$
SELECT                                   NO  GATHER_SYSTEM_STATISTICS

SYS.AUX_STATS$
UPDATE                                   NO  GATHER_SYSTEM_STATISTICS

SYS.AW$
DEBUG                                    NO  DBA


OBJ
-------------------------------------------------------------
WHAT_GRANTED                             GRA GRANTEE
---------------------------------------- --- ------------------------------
SYS.AW$
SELECT                                   NO  DBA

SYS.AWSEQ$
ALTER                                    NO  DBA

SYS.AWSEQ$
SELECT                                   NO  DBA


OBJ
-------------------------------------------------------------
WHAT_GRANTED                             GRA GRANTEE
---------------------------------------- --- ------------------------------
SYS.AW_OBJ$
DEBUG                                    NO  DBA

SYS.AW_OBJ$
SELECT                                   NO  DBA

SYS.AW_PROP$
DEBUG                                    NO  DBA


OBJ
-------------------------------------------------------------
WHAT_GRANTED                             GRA GRANTEE
---------------------------------------- --- ------------------------------
SYS.AW_PROP$
SELECT                                   NO  DBA

SYS.DBMS_STANDARD
EXECUTE                                  NO  PUBLIC

SYS.DUAL
SELECT                                   YES PUBLIC


OBJ
-------------------------------------------------------------
WHAT_GRANTED                             GRA GRANTEE
---------------------------------------- --- ------------------------------
SYS.EXPIMP_TTS_CT$
DELETE                                   NO  IMP_FULL_DATABASE

SYS.EXPIMP_TTS_CT$
INSERT                                   NO  IMP_FULL_DATABASE

SYS.EXPIMP_TTS_CT$
SELECT                                   NO  IMP_FULL_DATABASE


OBJ
-------------------------------------------------------------
WHAT_GRANTED                             GRA GRANTEE
---------------------------------------- --- ------------------------------
SYS.EXPIMP_TTS_CT$
UPDATE                                   NO  IMP_FULL_DATABASE

SYS.FGA_LOG$
DELETE                                   NO  DELETE_CATALOG_ROLE

SYS.INCEXP
DELETE                                   NO  EXP_FULL_DATABASE


OBJ
-------------------------------------------------------------
WHAT_GRANTED                             GRA GRANTEE
---------------------------------------- --- ------------------------------
SYS.INCEXP
INSERT                                   NO  EXP_FULL_DATABASE

SYS.INCEXP
UPDATE                                   NO  EXP_FULL_DATABASE

SYS.INCFIL
DELETE                                   NO  EXP_FULL_DATABASE


OBJ
-------------------------------------------------------------
WHAT_GRANTED                             GRA GRANTEE
---------------------------------------- --- ------------------------------
SYS.INCFIL
INSERT                                   NO  EXP_FULL_DATABASE

SYS.INCFIL
UPDATE                                   NO  EXP_FULL_DATABASE

SYS.INCVID
DELETE                                   NO  EXP_FULL_DATABASE


OBJ
-------------------------------------------------------------
WHAT_GRANTED                             GRA GRANTEE
---------------------------------------- --- ------------------------------
SYS.INCVID
INSERT                                   NO  EXP_FULL_DATABASE

SYS.INCVID
UPDATE                                   NO  EXP_FULL_DATABASE

SYS.MAP_OBJECT
ALTER                                    NO  DBA


OBJ
-------------------------------------------------------------
WHAT_GRANTED                             GRA GRANTEE
---------------------------------------- --- ------------------------------
SYS.MAP_OBJECT
DEBUG                                    NO  DBA

SYS.MAP_OBJECT
DELETE                                   NO  DBA

SYS.MAP_OBJECT
FLASHBACK                                NO  DBA


OBJ
-------------------------------------------------------------
WHAT_GRANTED                             GRA GRANTEE
---------------------------------------- --- ------------------------------
SYS.MAP_OBJECT
INSERT                                   NO  DBA

SYS.MAP_OBJECT
ON COMMIT REFRESH                        NO  DBA

SYS.MAP_OBJECT
QUERY REWRITE                            NO  DBA


OBJ
-------------------------------------------------------------
WHAT_GRANTED                             GRA GRANTEE
---------------------------------------- --- ------------------------------
SYS.MAP_OBJECT
SELECT                                   NO  DBA

SYS.MAP_OBJECT
SELECT                                   NO  SELECT_CATALOG_ROLE

SYS.MAP_OBJECT
UPDATE                                   NO  DBA


OBJ
-------------------------------------------------------------
WHAT_GRANTED                             GRA GRANTEE
---------------------------------------- --- ------------------------------
SYS.PS$
DEBUG                                    NO  DBA

SYS.PS$
SELECT                                   NO  DBA

SYS.RE$NV_LIST
EXECUTE                                  NO  PUBLIC


OBJ
-------------------------------------------------------------
WHAT_GRANTED                             GRA GRANTEE
---------------------------------------- --- ------------------------------
SYS.STANDARD
EXECUTE                                  NO  PUBLIC

SYS.STMT_AUDIT_OPTION_MAP
SELECT                                   NO  PUBLIC

SYS.SYSTEM_PRIVILEGE_MAP
SELECT                                   YES PUBLIC


OBJ
-------------------------------------------------------------
WHAT_GRANTED                             GRA GRANTEE
---------------------------------------- --- ------------------------------
SYS.TABLE_PRIVILEGE_MAP
SELECT                                   YES PUBLIC


49 rows selected.

SQL>
30. 42. dba_tab_privs
30. 42. 1. Object Grants to Users
30. 42. 2. Object Grants to Roles
30. 42. 3. Find out all dba table privileges
30. 42. 4. User Table Privileges report
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.