user_sys_privs user_role_privs role_role_privs dba_tab_privs dba_sys_privs
来源:互联网 发布:2017年二季度经济数据 编辑:程序博客网 时间:2024/05/20 14:24
1.查询对象权限视图
select * from dba_tab_privs
where GRANTEE='user_name' and owner='owner_name' and table_name='';
返回结果为空
2.查询系统权限视图
select * from dba_sys_privs
3.这样看来用户不是直接用的grant sys privillege
4.然后用同事登录的用户名和密码登录查询当前用户拥有的角色权限
grant select on table_name to
grant role1 to user_name;--把角色赋予了同事登录的账号
5. 查询
select * from dba_tab_privs
where GRANTEE='role1' and owner='owner_name' and table_name='同事不能更新的表名';
---返回得到该表的查询权限
6.如果需要更新权限,需要将表的UPDATE权限授予role1,然后我们就可以使用user_name登录更新这个表了
转自:http://blog.sina.com.cn/s/blog_6e02a2380100vv6q.html
- user_sys_privs user_role_privs role_role_privs dba_tab_privs dba_sys_privs
- Oracle查询用户权限角色(dba_sys_privs)
- Windows下整合Apache2.2和Tomcat6.0 集群与负载均衡
- GSVIEW 显示不完全
- Memory Analysis内存分析工具复习
- android Setting中隐藏项
- pthread_kill pthread_cancel
- user_sys_privs user_role_privs role_role_privs dba_tab_privs dba_sys_privs
- Anagrams 变位词
- 要读的课外书
- Application对象的特性、属性和方法
- 在CentOS 5下安装中文五笔
- mysql count distinct null 使用注意事项
- POJ1006 中国剩余定理
- 个税计算器
- sequencefile 由hdfs 上读取文件