ITPub博客

首页 > Linux操作系统 > Linux操作系统 > oracle 给用户批量授权unlimite tablespace

oracle 给用户批量授权unlimite tablespace

原创 Linux操作系统 作者:renjixinchina 时间:2012-12-07 16:16:35 0 删除 编辑

select 'grant unlimited tablespace to '|| r.GRANTEE ||';'  from dba_sys_privs r,dba_users u where grantee not in(
select distinct grantee from dba_sys_privs where privilege='UNLIMITED TABLESPACE'
) and u.username = r.GRANTEE AND user_id > 54
group by r.GRANTEE;

--仅支持oracle 10g

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

上一篇: oracle 长sql监控
下一篇: DDL触发器
请登录后发表评论 登录
全部评论

注册时间:2011-01-30

  • 博文量
    373
  • 访问量
    2161062