Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

pinning objects

baskar.lJan 14 2010 — edited Jan 18 2010
hi all,

Good day...

DB version is 10.2.0.4 ..Shared pool size is 2.5G. How do i pin the right objects..? Am using the below script to spool those objects with loads >5 and executions >100000
select 'execute sys.dbms_shared_pool.keep(''' ||
       owner || '.' || name || ''','  ||
       decode(type, 'TRIGGER', '''R''', 'JAVA CLASS', '''JC''', 'SEQUENCE', '''Q''', '''P''') || ')' stmt
  from v$db_object_cache
 where type in ( 'FUNCTION', 'PROCEDURE', 'PACKAGE', 'PACKAGE BODY', 'JAVA CLASS', 'TRIGGER', 'SEQUENCE')
   and kept <> 'YES'
   and owner not in ('SYS','SYSTEM')
   and ( loads >= &loads
      or executions >= &executions )
 order by loads, executions;
spool off;
But i do have a pinning object list which is taken during the implementation and dont know on what metrics that file is spooled. But when i pin the objects taken from the above sql..i could see concurrent programs taking a bit more time to complete..How do i pin the right and needed objects?

thanks,
baskar.l
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 15 2010
Added on Jan 14 2010
29 comments
2,487 views