*** 今天在把xgxt用户的 v_xgxt_bzb_xjyd '视图' 授权给 用户swyx时,报错 ora- 01720 grant option does not exist for dbcenter.xx_bj
*** 授权命令:在xgxt用户下 grant select on v_xgxt_bzb_xjyd to swyx;
*** 报错信息: ORA-01720 : 不存在 'dbcenter.xx_bj' 的授权选项。
疑惑:
1、我的视图 v_xgxt_bzb_xjyd 中没有用到dbcenter库中的表,为何会提示不存在 'dbcenter.xx_bj' ?
【思考】 认真看视图中的表,想起了之前 数据库用户 xgxt 和 dbcenter 建立了dblink,并且xx_bj这个设置了同义词,xgxt中都统一用了dbcenter库中的xx_bj表信息;
【解决】
grant select on dbcenter.xx_bj to xgxt with grant option;