oracle 不同用户之间 调用存储过程 高手指教

云飞_ 2011-06-22 09:50:57
A 用户 定义 package stat_all_a 里边有 接口 procedure search_a
B 用户 定义 package stat_all_b 里边有 接口 procedure search_b
高手指教
A用户要调用B用户 的 search_b
怎样调用??

A.stat_all_b.search_b 这样试过 报错
Compilation errors for PACKAGE STATISTICS.STAT_ALL

Error: PLS-00103: Encountered the symbol "." when expecting one of the following:

( ; is with authid as cluster order using external
deterministic parallel_enable pipelined result_cache
Line: 12
Text: procedure b.stat_all_b.search_b(orgCode in varchar2,statYearMonth in varchar2);

Error: PLS-00103: Encountered the symbol "VARCHAR2" when expecting one of the following:

(
The symbol "(" was substituted for "VARCHAR2" to continue.
...全文
790 8 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
huangdh12 2011-06-22
  • 打赏
  • 举报
回复
调用别的用户的存储过程 跟调用本用户的语法一致啊 ,只是在存储过程前面加上用户名进行限定就行了。
iqlife 2011-06-22
  • 打赏
  • 举报
回复
Compilation errors for PACKAGE STATISTICS.STAT_ALL

像是存储过程有错误,编译没有成功吧
云飞_ 2011-06-22
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 weitongyixun 的回复:]
引用 2 楼 tangren 的回复:
最好显式授予权限。不要依赖其它角色来获得权限。

英雄 怎么显示授权???
[/Quote]
请指教
云飞_ 2011-06-22
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 tangren 的回复:]
最好显式授予权限。不要依赖其它角色来获得权限。
[/Quote]
英雄 怎么显示授权???
tangren 2011-06-22
  • 打赏
  • 举报
回复
最好显式授予权限。不要依赖其它角色来获得权限。
304的的哥 2011-06-22
  • 打赏
  • 举报
回复
A用户必须得有B用户的package stat_all_b执行权限,
若没有,将package stat_all_b的执行权限授予A用户:
grant execute stat_all_b to b;
yejihui9527 2011-06-22
  • 打赏
  • 举报
回复
[Quote=引用 5 楼 java3344520 的回复:]
Compilation errors for PACKAGE STATISTICS.STAT_ALL

像是存储过程有错误,编译没有成功吧
[/Quote]

我也是这样认为的
Kobayashi 2011-06-22
  • 打赏
  • 举报
回复
请问你说所说的不同用户,如果表空间不是同一个的话。那你就使用DBLINK。如果是同一个,那你把权限放到最高就可以了

17,140

社区成员

发帖
与我相关
我的任务
社区描述
Oracle开发相关技术讨论
社区管理员
  • 开发
  • Lucifer三思而后行
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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