用户A创建视图如下
create or replace view v_vessel_shipper as
select bb.*,aa.username,aa.useralias from 用户B.tran_vessel bb,(
select substr(a.dest,3,(length(a.dest)-2)) codevessel,a.*,b.* from edi_dispatch a,edi_user b where
a.newdest=b.username and a.msgtype='INHOUSE_PRLOAD') aa
where bb.codevessel_xdf=aa.codevessel(+)
当在用户A下执行
grant select on v_vessel_shipper to 用户C;
报错ORA-01720: grant option does not exist for '用户B.TRAN_VESSEL'
解决办法
用户B下
grant select/all on tran_vessel to xib with grant option;
create or replace view v_vessel_shipper as
select bb.*,aa.username,aa.useralias from 用户B.tran_vessel bb,(
select substr(a.dest,3,(length(a.dest)-2)) codevessel,a.*,b.* from edi_dispatch a,edi_user b where
a.newdest=b.username and a.msgtype='INHOUSE_PRLOAD') aa
where bb.codevessel_xdf=aa.codevessel(+)
当在用户A下执行
grant select on v_vessel_shipper to 用户C;
报错ORA-01720: grant option does not exist for '用户B.TRAN_VESSEL'
解决办法
用户B下
grant select/all on tran_vessel to xib with grant option;
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/185279/viewspace-349381/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/185279/viewspace-349381/
本文介绍了一个Oracle数据库中关于视图创建及权限授予的问题。具体问题为用户A在创建视图后尝试向用户C授予该视图的SELECT权限时遇到ORA-01720错误。文章详细解释了错误原因,并给出了正确的解决方案。
3691

被折叠的 条评论
为什么被折叠?



