sql - Oracle SQL : Grant View only access to a user A for accessing procedure and function definition of other user B
问题描述
My requirement is to create a user in oracle 11g database and give the following permissions to this user.
- Select any table (this is fixed and i can do this with Select any table privilege)
- View definition of all database procedures, functions, packages (unable to do this).
- I do not want to give execute permission on any procedure or edit permission or delete/drop permission.
Unable to find any relevant help as everywhere it mentions to grant execute or create any procedure which is risky.
解决方案
该SELECT ANY DICTIONARY
权限(在早期版本中为SELECT_CATALOG_ROLE
角色)赋予用户从任何数据字典表中进行选择的权限。
该SELECT ANY DICTIONARY
权限将赋予用户编写查询DBA_SOURCE
以查看任何对象(或使用DBMS_METADATA
包)的源、DBA_VIEWS
查看视图定义等的权限。
干杯!!
推荐阅读
- django - 在 django 中发送电子邮件
- python - 如何根据行对数据框进行排序
- mongodb - 计算 mongodb 文档中值的频率
- data-science - Vowpal Wabbit:数据与多通道打乱的数据 - 为什么在学习之前打乱文件有助于提高指标
- swift - 在 main 中使用包中的类
- youtube - 如何让两个人收到 YouTube 评论的通知?
- css - 图像无法显示,因为它包含错误
- android - 如何在 kotlin 中使 Material Button ToggleGroup 的所有子项不可点击
- typescript - 如何深度过滤(搜索)对象?
- ios - 如何将 UIImages 数组从 Firebase 存储目录下载到 Swift?