首页 > 代码库 > oracle中用户角色的查询和授权
oracle中用户角色的查询和授权
用户拥有的系统权限 select privilege from dba_sys_privs where grantee=‘&USERNAME‘ union select privilege from dba_sys_privs where grantee in (select granted_role from dba_role_privs where grantee=‘&USERNAME‘); 创建用户 CREATE USER songgx IDENTIFIED BY songgx DEFAULT TABLESPACE users TEMPORARY TABLESPACE temp QUOTA 10M ON users PROFILE default PASSWORD EXPIRE ACCOUNT UNLOCK; 查询用户拥有的系统权限 SELECT * FROM DBA_SYS_PRIVS WHERE GRANTEE = ‘LIUCH‘ UNION ALL SELECT * FROM DBA_SYS_PRIVS WHERE GRANTEE IN (SELECT GRANTED_ROLE FROM DBA_ROLE_PRIVS WHERE GRANTEE = ‘LIUCH‘);
本文出自 “elanjie” 博客,请务必保留此出处http://elanjie.blog.51cto.com/11847332/1912362
oracle中用户角色的查询和授权
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。