oracle - 授予 Oracle 中其他用户的表传递
问题描述
有什么办法可以将其他用户创建并授予我的表授予其他人?我尝试“将 table_name 上的所有内容授予用户”,但我的同事无法将此表授予其他人。
解决方案
在 oracle 中,您可以使用 WITH GRANT OPTION。
对象的所有者可以通过在 GRANT 语句中指定WITH GRANT OPTION子句将其授予另一个用户。在这种情况下,新的被授权者可以将相同级别的访问权限授予其他用户或角色。
-- Owner of table1 is schema1
GRANT SELECT ON table1 TO Schema_2 WITH GRANT OPTION;
-- Schema2 can grant the same privileges to another schema
-- execute from Schema2
GRANT SELECT ON Schema_1.table1 TO Schema_3;
希望,这对你有用。
干杯!!
推荐阅读
- r - 如何在 levelplot(R lattice 包)中绘制单个特定的等高线?
- python - SQLAlchemy Core GROUP BY 计算字段
- ios - 创建一个模态弹出视图,点击注释的标注,Swift 中的 MKMapView
- terraform - terraform 有条件地创建日志配置和后续容器定义
- python - 如何在 python 中将 ZipFile 对象转换为二进制文件?
- javascript - 测试 React 搜索组件时出错
- javascript - 对反应表中的数据进行排序 - 不是按字母顺序排列,而是按特定顺序
- z3 - 如何在 SMTLIB / Z3 / CVC4 中声明 forall 量词?
- javascript - 在同一运行时安全隔离两个 Javascript 代码库?
- reactjs - 如何将 React Context 与 Hooks 一起使用?