spool priv_col.rslt 

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

break on "GRANTEE";

/* ****************************************************** */
/*                                                        */
/*  - will show all the column object privilege granted   */
/*    to the users within a given database                */
/*                                                        */
/*         @c:\oracle\sql\priv_col.sql                    */ 
/*                                                        */
/* ****************************************************** */

select substr(grantee,1,10)		"GRANTEE", 
       substr(table_name,1,15)		"TABLE",
       substr(column_name,1,15)		"COLUMN",
       substr(privilege, 1,10)
       grantable
from dba_col_privs 
order by 1, 2;

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









