1.

When Does A Subprogram Need Recompilation?

Answer»

When any database object associated with the subprogram changes, the program NEEDS to be recompiled. When the program is executed the next time, after the object is CHANGED, the SYSTEM will automatically perform runtime recompilation. To avoid this performance overhead, it is BETTER to explicitly recompile the subprogram USING the ALTER [PROCEDURE | FUCNTION] command, as shown in the following statement:

ALTER PROCEDURE proc_get_marks compile;

When any database object associated with the subprogram changes, the program needs to be recompiled. When the program is executed the next time, after the object is changed, the system will automatically perform runtime recompilation. To avoid this performance overhead, it is better to explicitly recompile the subprogram using the ALTER [PROCEDURE | FUCNTION] command, as shown in the following statement:



Discussion

No Comment Found