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