Automatic Process for Pinning Packages under WinNT/2K [message #52060] |
Mon, 01 July 2002 01:51 |
Nagesh
Messages: 18 Registered: April 2002
|
Junior Member |
|
|
Hello,
My application requires pinning of packages. Right now i am manually pinning the packages after instance up by using DBMS_SHARED_POOL_KEEP('');
My database environment is Win 2k.
How can i achieve automatic process for pinning packages while instance up instead of manual process.
Thanks in advance.
Nagesh.
|
|
|
|
Re: Automatic Process for Pinning Packages under WinNT/2K [message #52089 is a reply to message #52070] |
Tue, 02 July 2002 06:00 |
B
Messages: 327 Registered: August 1999
|
Senior Member |
|
|
Whoawwww GOOD IDEA Mahesh. But i think it's work only on Oracle 9+ ( because Trigger AFTER STARTUP or Before SHUTDOWN don't work on ORACLE 8 or less )... Can just use Dynamic SQL like:
spool test.sql
select 'exec DBMS_SHARED_POOL.KEEP('''||object_name||''',''P'')' from all_objects
where ( condition to get the wanted packages, don't forget DBMS_STANDARD and DBMS_SQL );
spool off
@test.sql
|
|
|
|