当前位置: 代码迷 >> Oracle管理 >> 关于存储过程赋权限,该怎么解决
  详细解决方案

关于存储过程赋权限,该怎么解决

热度:16   发布时间:2016-04-24 05:34:01.0
关于存储过程赋权限
假设有两个用户use_a,use_b, 在user_a下面有一个存储过程是prc_a,要让user_b可以执行prc_a,要怎样写赋权限的语句?

------解决方案--------------------
grant execute on prc_ato user_b
------解决方案--------------------
grant execute on prc_a to user_b;
------解决方案--------------------
grant execute on user_a.prc_a to user_b;
------解决方案--------------------
1.sys用户赋权限:

grant execute on use_a.prc_a to use_b;

2.use_a用户赋权限:

grant execute on prc_a to use_b;
------解决方案--------------------
1.sys用户赋权限:

grant execute on use_a.prc_a to use_b;

2.use_a用户赋权限:

grant execute on prc_a to use_b;
  相关解决方案