oracle 給使用者批量授權unlimite tablespace

renjixinchina發表於2012-12-07

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部落格 ” ,連結:http://blog.itpub.net/15747463/viewspace-750762/,如需轉載,請註明出處,否則將追究法律責任。

相關文章