DBMS SHARED POOL
From Oracle FAQ
⧼orafaq-jumptonavigation⧽⧼orafaq-jumptosearch⧽
This article explains how to use the DBMS_SHARED_POOL package to manage the SHARED_POOL in the instance's SGA:
Install the DBMS_SHARED_POOL package
connect SYS AS SYSDBA @?/rdbms/admin/dbmspool.sql @?/rdbms/admin/prvtpool.plb
set serveroutput on size 50000 exec dbms_shared_pool.sizes(200);
exec dbms_shared_pool.keep('SYS.STANDARD');
exec dbms_shared_pool.unkeep('SYS.STANDARD');
Check what objects are pinned
SELECT * FROM v$db_object_cache WHERE kept = 'YES';
PS: Looks like Oracle pins some objects by itself.