Oracle用户及权限脚本生成语句 本来用plsql developer可以用"查看SQL"功能直接获取,但是自己有兴趣,所以就查了查,整理的结果如下1.用户脚本
select 'GRANT ' || lower(granted_role) || ' TO ' || lower(grantee) || ' WITH ADMIN OPTION;'from sys.dba_role_privswhere grantee='scott'