ITPub博客

首页 > 数据库 > Oracle > 查看用户对象权限到excel

查看用户对象权限到excel

原创 Oracle 作者:wzgchen 时间:2016-01-21 11:32:52 0 删除 编辑

Oracle用户对象权导入到excel
set line 1000        
set pagesize 0       
set feedback off      
set heading off       
set trimspool on     
set trims on         
set echo off;      
set colsep ','        
set termout off       
spool /tmp/tpriv.csv;  
select GRANTEE,TABLE_NAME,WMSYS.WM_CONCAT(PRIVILEGE) from user_tab_privs where grantee in ('xxx1','xxx2','xxx3','xxx4') group by GRANTEE,TABLE_NAME order by grantee;
spool off;

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/91975/viewspace-1980087/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: redis安装
请登录后发表评论 登录
全部评论

注册时间:2015-05-01

  • 博文量
    383
  • 访问量
    213577