plsql - Is recompiling Oracle Packages safe -


hi have third party oracle based application, ships precompiled binary(wrapped) packages. when compile them in oracle sql developer (right click -> compile all), invalidated.

is recompiling safe operation no side effects?

the major side effect if compile package package dependant upon risk invalidating dependant package existing sessions - if compile has no errors. fine applications sessions short-lived applications sessions long-lived problem. if you're using connection pools in jdbc cached sessions long lived , invalidated. have flush cached sessions avoid error.

the error you're looking "ora-04068: existing state of packages has been discarded".

see here more info.

specifically regards sql developer - not handle recompilation of wrapped packages well. if going recompile them try tool toad or pl/sql developer or use "alter package" command in sql plus command line.


Comments

Popular posts from this blog

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

c++ - Convert big endian to little endian when reading from a binary file -