Query dba_tab_privs table to get table privilege : dba_tab_privs « System Tables Views « Oracle PL / SQL

Oracle PL / SQL
1. Aggregate Functions
2. Analytical Functions
3. Char Functions
4. Constraints
5. Conversion Functions
6. Cursor
7. Data Type
8. Date Timezone
9. Hierarchical Query
10. Index
11. Insert Delete Update
12. Large Objects
13. Numeric Math Functions
14. Object Oriented Database
15. PL SQL
16. Regular Expressions
17. Report Column Page
18. Result Set
19. Select Query
20. Sequence
21. SQL Plus
22. Stored Procedure Function
23. Subquery
24. System Packages
25. System Tables Views
26. Table
27. Table Joins
28. Trigger
29. User Previliege
30. View
31. XML
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 Tutorial
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 » System Tables Views » dba_tab_privs 
Query dba_tab_privs table to get table privilege
   
SQL>
SQL>
SQL> set verify off
SQL> set linesize 78
SQL> set pagesize 9999
SQL> set feedback on
SQL>
SQL>
SQL> column tab       format a24 heading "Schema.Object"
SQL> column privilege format a24 heading "Privilege"
SQL> column grantor   format a20 heading "Granted By"
SQL> column grantable format a6  heading "Admin?"
SQL>
SQL> select owner || '.' || table_name tab,
  2         privilege,
  3         grantor,
  4         grantable
  5    from dba_tab_privs
  6   where rownum < 50
  7   order by owner, table_name, privilege
  8  /
Schema.Object            Privilege                Granted By           Admin?
------------------------ ------------------------ -------------------- ------
SYS.ARGUMENT$            SELECT                   SYS                  YES
SYS.CCOL$                SELECT                   SYS                  YES
SYS.CDEF$                SELECT                   SYS                  YES
SYS.COL$                 SELECT                   SYS                  YES
SYS.CON$                 SELECT                   SYS                  YES
SYS.ICOL$                SELECT                   SYS                  YES
SYS.INCEXP               ALTER                    SYS                  NO
SYS.INCEXP               DEBUG                    SYS                  NO
SYS.INCEXP               DELETE                   SYS                  NO
SYS.INCEXP               DELETE                   SYS                  NO
SYS.INCEXP               FLASHBACK                SYS                  NO
SYS.INCEXP               INDEX                    SYS                  NO
SYS.INCEXP               INSERT                   SYS                  NO
SYS.INCEXP               INSERT                   SYS                  NO
SYS.INCEXP               ON COMMIT REFRESH        SYS                  NO
SYS.INCEXP               QUERY REWRITE            SYS                  NO
SYS.INCEXP               REFERENCES               SYS                  NO
SYS.INCEXP               SELECT                   SYS                  NO
SYS.INCEXP               UPDATE                   SYS                  NO
SYS.INCEXP               UPDATE                   SYS                  NO
SYS.INCFIL               DELETE                   SYS                  NO
SYS.INCFIL               FLASHBACK                SYS                  NO
SYS.INCFIL               INSERT                   SYS                  NO
SYS.INCFIL               UPDATE                   SYS                  NO
SYS.INCVID               ALTER                    SYS                  NO
SYS.INCVID               DEBUG                    SYS                  NO
SYS.INCVID               DELETE                   SYS                  NO
SYS.INCVID               DELETE                   SYS                  NO
SYS.INCVID               FLASHBACK                SYS                  NO
SYS.INCVID               INDEX                    SYS                  NO
SYS.INCVID               INSERT                   SYS                  NO
SYS.INCVID               INSERT                   SYS                  NO
SYS.INCVID               ON COMMIT REFRESH        SYS                  NO
SYS.INCVID               QUERY REWRITE            SYS                  NO
SYS.INCVID               REFERENCES               SYS                  NO
SYS.INCVID               SELECT                   SYS                  NO
SYS.INCVID               UPDATE                   SYS                  NO
SYS.INCVID               UPDATE                   SYS                  NO
SYS.IND$                 SELECT                   SYS                  YES
SYS.OBJ$                 SELECT                   SYS                  NO
SYS.OBJ$                 SELECT                   SYS                  YES
SYS.SYN$                 SELECT                   SYS                  YES
SYS.SYSAUTH$             SELECT                   SYS                  YES
SYS.TAB$                 SELECT                   SYS                  YES
SYS.TS$                  SELECT                   SYS                  YES
SYS.USER$                SELECT                   SYS                  YES
SYS.USER$                SELECT                   SYS                  NO
SYS.USER$                SELECT                   SYS                  YES
SYS.VIEW$                SELECT                   SYS                  YES

49 rows selected.

SQL>
SQL>
SQL> --

   
    
  
Related examples in the same category
1. Searches for grants made by users other than the table owners
2. 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.