静态 sql(相对于动态 SQL)会使 Oracle 中的其他包失效吗

发布于 2024-09-25 14:33:52 字数 174 浏览 4 评论 0原文

你好 如果我编写一个自定义包,其中只包含静态 SQL,它会使其他包无效吗? (作为包装代码提供的其他第三方包)。

一位同事建议我用动态 SQL 重新编写自定义包,这样我就不会看到这个问题了。我发现这很难相信,因为第三方软件包不依赖于我的自定义软件包, 无论如何,已编译的包应该保持编译状态。

-谢谢

Hi
If I write a custom package with nothing but static SQL in it, would it invalidate other package. (other third party packages that were shipped as wrapped code).

a co worker suggests that I re write the custom package in Dynamic SQL, and I will not see this problem. I find this hard to believe because the third party packages are not dependent on my custom package,
a compiled package should stay compiled, regardless.

-thank you

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

鱼忆七猫命九 2024-10-02 14:33:53

它只会使包含自定义包作为依赖项的包无效。

您应该能够在测试环境中向您的同事(和您自己)证明这一点。

It would only invalidate packages that included your custom package as a dependency.

You should be able to prove that to your co-worker (and yourself) in a test environment.

掩饰不了的爱 2024-10-02 14:33:53

编译新包不会使任何内容失效。根据定义,现有的已编译包无法引用尚未创建的新包。

当然,重新编译现有包(可能有一些引用)可能会使现有包失效。

Compiling a new package won't invalidate anything. By definition, an existing compiled package can't refer to your new package that you haven't created yet.

Recompiling an existing package (that might have some references to it) could invalidate existing packages, of course.

吾性傲以野 2024-10-02 14:33:53

不会。带有 DML 语句的包根本不会使任何包失效。

No. A package with DML statements would not invalidate any package at all.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文