Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3642475
  • 博文数量: 715
  • 博客积分: 1860
  • 博客等级: 上尉
  • 技术积分: 7745
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-07 08:51
个人简介

偶尔有空上来看看

文章分类

全部博文(715)

文章存档

2023年(75)

2022年(134)

2021年(238)

2020年(115)

2019年(11)

2018年(9)

2017年(9)

2016年(17)

2015年(7)

2014年(4)

2013年(1)

2012年(11)

2011年(27)

2010年(35)

2009年(11)

2008年(11)

最近访客

分类: 数据库开发技术

2023-08-30 19:45:46

某用户需要访问数据字典,通常认为给vti soi角色即可,但是对dba开头的一些视图仍无法访问
需要单独授权
grant select on sys.dba_data_files to a;

查询soi角色哪些权限,可以用以下脚本

  1. col owner for a15
  2. col table_name for a30
  3. col privilege for a30
  4. col granted_role for a30
  5. set lin 100 pages 1000 ver off
  6. select granted_role from dba_role_privs where grantee=upper('&1') order by 1;
  7. select privilege from dba_sys_privs where grantee=upper('&1') order by 1;
  8. select owner,table_name,privilege from dba_tab_privs where grantee=upper('&1') order by 1,2;
  9. #oracle也有效


想看soi的,将上述脚本保存为s.sql


看来只是看sys开头的一些表。
阅读(445) | 评论(0) | 转发(0) |
0

上一篇:修改MTU为9000

下一篇:自摆乌龙的 ORA-16468

给主人留下些什么吧!~~