首页 新闻 会员 周边

Oracle 更新包体

0
悬赏园豆:40 [已关闭问题] 关闭于 2014-05-07 10:12

在一个已经创建的Package中,如何修改或新增一个存储过程。。。

要求是,增量修改,不影响之前定义的存储过程函数什么的。

具体的需求是:

包内有10+个存储过程,我改了其中一个,我想将其保存成sql文件,直接通过sql更新到服务器上。原来的更新方式是,在服务器打开plsql,找到该包,打开包体,复制修改的部分,这样效率不高,能否通过sql直接对包体做修改。。。

冲动的主页 冲动 | 菜鸟二级 | 园豆:394
提问于:2014-05-07 10:06
< >
分享
所有回答(1)
0

The ALTER PACKAGE statement explicitly recompiles a package specification, body, or both. Explicit recompilation eliminates the need for implicit run-time recompilation and prevents associated run-time compilation errors and performance overhead.

Because all objects in a package are stored as a unit, the ALTER PACKAGE statement recompiles all package objects together. You cannot use the ALTER PROCEDURE statement or ALTER FUNCTION statement to recompile individually a procedure or function that is part of a package.

找到了Oracle官方文档,不可以。。。。

冲动 | 园豆:394 (菜鸟二级) | 2014-05-07 10:11
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册