Call (800) 766-1884 for Oracle support & training
Free Oracle Tips


Oracle Consulting Support
Oracle Upgrades
Use New Oracle Features
Oracle Replication Support
Oracle Training
Remote Oracle DBA
System Documentation
Oracle Tips
Oracle Performance
 

Free Oracle Tips


 

HTML Text

BC Oracle tuning

Oracle training

Oracle support

Remote Oracle

Redneck
 

 

   
 

DBA_TAB_PRIVS view tips

Oracle Tips by Burleson Consulting

DBA_TAB_PRIVS

<< Return to the index

Oracle 11g makes the following comments about the DBA_TAB_PRIVS table: "All grants on objects in the database"

Related notes on DBA_TAB_PRIVS:

Column description of the DBA_TAB_PRIVS view:

GRANTEE
Description of DBA_TAB_PRIVS.GRANTEE: "User to whom access was granted"
OWNER
Description of DBA_TAB_PRIVS.OWNER: "Owner of the object"
TABLE_NAME
Description of DBA_TAB_PRIVS.TABLE_NAME: "Name of the object"
GRANTOR
Description of DBA_TAB_PRIVS.GRANTOR: "Name of the user who performed the grant"
PRIVILEGE
Description of DBA_TAB_PRIVS.PRIVILEGE: "Table Privilege"
GRANTABLE
Description of DBA_TAB_PRIVS.GRANTABLE: "Privilege is grantable"
HIERARCHY
Description of DBA_TAB_PRIVS.HIERARCHY: "Privilege is with hierarchy option"

DBA_TAB_PRIVS View Source

Oracle 11g's data dictionary defines the DBA_TAB_PRIVS view using the following source query:

select ue.name, u.name, o.name, ur.name, tpm.name,
decode(mod(oa.option$,2), 1, 'YES', 'NO'),
decode(bitand(oa.option$,2), 2, 'YES', 'NO')
from sys.objauth$ oa, sys."_CURRENT_EDITION_OBJ" o, sys.user$ u, sys.user$ ur,
sys.user$ ue, table_privilege_map tpm
where oa.obj# = o.obj#
and oa.grantor# = ur.user#
and oa.grantee# = ue.user#
and oa.col# is null
and oa.privilege# = tpm.privilege
and u.user# = o.owner#

 
If you like Oracle tuning, see the book "Oracle Tuning: The Definitive Reference", with 950 pages of tuning tips and scripts. 

You can buy it direct from the publisher for 30%-off and get instant access to the code depot of Oracle tuning scripts.

 

 

Download your Oracle scripts now:

www.oracle-script.com

The definitive Oracle Script collection for every Oracle professional DBA

 

  
 

Oracle performance tuning software 
 
 
 
 

Oracle performance tuning book

 

 
 
 
Oracle performance Tuning 10g reference poster
 
 
 
Oracle training in Linux commands
 
Oracle training Excel
 
Oracle training & performance tuning books
 

 

   

Copyright © 1996 -  2009 by Burleson Enterprises, Inc. All rights reserved.

Oracle® is the registered trademark of Oracle Corporation.