达梦关于dba_data_files访问权限

590阅读 0评论2023-08-30 brjl
分类:数据库开发技术

某用户需要访问数据字典,通常认为给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开头的一些表。
上一篇:修改MTU为9000
下一篇:自摆乌龙的 ORA-16468