Re: PL/SQL procedures and packages
From: Andy Hardy <Andy_Hardy_at_camk.demon.co.uk>
Date: 1998/01/06
Message-ID: <9$8hwBApufs0Mwtr_at_camk.demon.co.uk>#1/1
Date: 1998/01/06
Message-ID: <9$8hwBApufs0Mwtr_at_camk.demon.co.uk>#1/1
In article <34AEFF3E.591C_at_bellsouth.net>, Amoda Kulkarni
<amodk_at_bellsouth.net> writes
>Hi All,
> How do I make PL/SQL procedures and functions stay in memory?
>
>Thanks in Advance
>Amod
Amod,
Packages can be pinned into the buffer pool via the dbms_shared_pool package and its keep and unkeep procedures.
Pinning a package means that it will not be swapped out of memory until the database is shut down or explicitly unpinned. Is this what you were asking?
SQL> exec dbms_shared_pool.keep ('andy.my_package')
and
SQL> exec dbms_shared_pool.unkeep ('andy.my_package')
Andy
-- Andy Hardy Senior IT Systems Engineer Cegelec AEG ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Opinions are mine and do not necessarily reflect those of Cegelec AEGReceived on Tue Jan 06 1998 - 00:00:00 CET