请问有关于oracle包设计中的全局变量问题?

littleM 2003-12-08 12:37:23
我现在在做一个sql server存储过程向oracle中移植的工作。
因为存储过程中大量的使用到了记录集返回结果,因此参考msdn中的做法,在oracle使用包定义临时表的方式予以实现。
因为我刚接触oracle,所以有个疑问希望高手们确认一下:oracle中的包是全局的吗?
[情景]客户端N个,使用同样的数据库身份登陆oracle,执行不同参数的查询,调用上文提到的包内存储过程,返回记录集。会不会张三看到李四的查询结果?
[问题]
上面的情景会产生互相干涉吗?如果干涉,怎么处理呢?如果没有,有没有oracle官方的依据或者您的亲身经验呢?非常感谢!
...全文
73 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
black_snail 2003-12-08
  • 打赏
  • 举报
回复
in the same session ,
the variable declared in the package header will not be reset ( global in the session level )

in different session ( database wise ) , they are not global .

So usually we need to write some reset variable function in the beginning of
the package so that we will not get confused ( in same session)

17,086

社区成员

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

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