December 2010
Intermediate to advanced
451 pages
11h 16m
English
You have a procedure that you run frequently, and you want to improve its overall running time by minimizing its startup time.
Use the DBMS_SHAPRED_POOL.KEEP procedure to keep a permanent copy of your code in the shared memory pool. For example, the following statement pins the procedure my_large_procedure in the database’s shared memory pool:
DBMS_SHARED_POOL.KEEP (
Name => 'my_large_procedure',
flag => 'P');
The DBMS_SHARED_POOL.KEEP procedure permanently keeps your code in the shared memory pool. By default, when PL/SQL code is executed, Oracle must first read the entire block of code into memory if it isn't already there from a previous execution. As additional ...
Read now
Unlock full access