将对象权限赋予角色时可以使用 with grant option 吗?

mengzhixing2000 2012-06-26 11:29:11
将对象权限赋予角色时可以使用 with grant option 吗?
grant select,insert,update on class.stud_grade to tech_role with grant option
*
第 1 行出现错误:
ORA-01926: 无法将 WITH GRANT OPTION GRANT 角色
其中tech_role是角色。

另外:
SQL> grant tech_role to tech with grant option;
grant tech_role to tech with grant option
*
第 1 行出现错误:
ORA-01939: 只能指定 ADMIN OPTION
tech_role 是角色
tech是用户。

如果我想将对象权限赋予角色,并且可以传递,如何解决呢?

...全文
409 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
小德 2012-06-28
  • 打赏
  • 举报
回复
无法给角色传递对象权限呢..
mengzhixing2000 2012-06-28
  • 打赏
  • 举报
回复
对象权限怎么用角色传递呢?
小德 2012-06-27
  • 打赏
  • 举报
回复
正常也
grant select,insert,update on u1cp.carlist to u1gp with grant OPTION;
Line Pos Text
28 Grant, executed in 0.032 sec.
Total execution time 0.032 sec.
mengzhixing2000 2012-06-27
  • 打赏
  • 举报
回复
1楼
u1gp是用户还是角色?
小德 2012-06-27
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 的回复:]
1楼
u1gp是用户还是角色?
[/Quote]
无法使用WITH GRANT OPTION为角色授予对象权限,但可以使用WITH ADMIN OPTION 为角色授予系统权限。

17,378

社区成员

发帖
与我相关
我的任务
社区描述
Oracle 基础和管理
社区管理员
  • 基础和管理社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧