Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Package compilation in a production environment. Can this cause any problems?

Our biggest client (150 billion $ of turnover) is afraid about compiling package during the online production time can cause database to hang.

I think it is impossible since the package I want to compile are alone and isolated. They are used to correct data or to analize them.

My chief told something about SGA? Is it possible?

What do you think about?

like image 739
Revious Avatar asked Dec 31 '25 00:12

Revious


1 Answers

Compiling a PL/SQL package in online production is problematic if:

  • the package is currently being executed, or
  • the package has state (such a body variables) and has been used in one of the sessions that's still logged in

The former can block sessions (most likely just the one that compiles the packages due to a library cache pin lock), the latter one will lead to the following error message in all session that try to use the package again after the compiliation:

ORA-04061: existing state of package body "SCHEMA.PACKAGE" has been invalidated

I don't think there's any specific problem related to the SGA.

like image 122
Codo Avatar answered Jan 02 '26 15:01

Codo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!