December 2010
Intermediate to advanced
451 pages
11h 16m
English
You have computationally intensive code that you want to optimize to decrease its running time.
Recompile the package, procedure, or function in native mode using the NATIVE setting:
ALTER PACKAGE my_package COMPILE BODY PLSQL_CODE_TYPE=NATIVE REUSE SETTINGS;
ALTER PROCEDURE my_procedure COMPILE PLSQL_CODE_TYPE=NATIVE REUSE SETTINGS;
ALTER FUNCTION my_function COMPILE PLSQL_CODE_TYPE=NATIVE REUSE SETTINGS;
Here is an example of a computationally intensive procedure. It uses the factorial function from Recipe 17-4.
CREATE OR REPLACE PROCEDURE factorial_test as
fact NUMBER;
BEGIN
FOR i IN 1..100 LOOP
fact := factorial(33);
END LOOP;
END factorial_test;
-- ...Read now
Unlock full access