spool priv_tab.rslt 

set linesize 80;
set pagesize 1000;
set long 50;
set echo on;

break on "GRANTEE" on "OWNER" on "TABLE";

/* ****************************************************** */
/*                                                        */
/*  - will show all the object privilege (not including   */
/*    column specific privleges) grante to the users      */
/*    within a given database                             */
/*                                                        */
/*         @c:\oracle\sql\priv_tab.sql                    */ 
/*                                                        */
/* ****************************************************** */

select substr(grantee,1,10)		"GRANTEE",
       substr(owner,1,10)                "OWNER",
       substr(table_name,1,15)		"TABLE",
       substr(grantor,1,10)             "GRANTOR",
       substr(privilege, 1,10),
       grantable
from dba_tab_privs 
order by 1, 2,3,4,5;

set echo off;
spool off;
set long 80;
commit;









