ITPub博客

首页 > 数据库 > Oracle > Oracle ORA - 01720 grant option does not exist for..报错解决

Oracle ORA - 01720 grant option does not exist for..报错解决

原创 Oracle 作者:maohaiqing0304 时间:2015-02-04 17:39:26 0 删除 编辑


标题:Oracle ora- 01720 grant option does not exist for..报错解决 

作者:lōττéry©版权所有[文章允许转载,但必须以链接方式注明源地址,否则追究法律责任.]




 
***     今天在把b用户的 view1 '视图' 授权给 用户C时,报错 ora- 01720
***     授权命令: grant select on b.view1 to c;
***     报错信息: ORA-01720 : 不存在 'a.tab_1' 的授权选项




       [oracle@sinosoft ~]$ oerr  ora 01720
       01720 , 00000 , "grant option does not exist for '%s.%s'"
       // *Cause:  A grant was being performed on a view and the grant option was
       //              not present for an underlying object.
       // *Action: Obtain the grant option on all underlying objects of the view.
       [oracle@sinosoft ~]$ 


 

产生错误的现象分析:
    当A用户授权B用户访问tab_1 表,
    且B用户创建视图view1时使用到的表包括A.tab_1表,
    再在B用户执行grant select on b.view1 to c 时就会引起权限问题的报错.

解决:
grant select on a.tab_1 to b  with grant option;


    【源于本人笔记】 若有书写错误,表达错误,请指正...


此条目发表在 SQL、SQL优化篇 分类目录。将固定连接加入收藏夹。


 

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/28602568/viewspace-1426536/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
.

注册时间:2013-03-13

  • 博文量
    117
  • 访问量
    2626256