DBAsupport.com Forums - Powered by vBulletin
Results 1 to 4 of 4

Thread: pin procedures/packages

  1. #1
    Join Date
    Oct 2000
    Posts
    90

    Angry

    How do you determine which procedures and packages in the database are most often loaded?

    I want to pin procedures and packages in my database so I would like to know determine which procedures and packages in the database are most often loaded

  2. #2
    Join Date
    Oct 2000
    Location
    Saskatoon, SK, Canada
    Posts
    3,925
    Use the view v$db_object_cache to determine which are the packages that are being loaded more and then choose those packages for pinning.


    Sam
    Thanx
    Sam



    Life is a journey, not a destination!


  3. #3
    Join Date
    Oct 2000
    Posts
    90
    so from v$db_object_cache, how do I determine which procedure/packages are the best candidates to pin?

  4. #4
    Join Date
    Sep 2000
    Location
    Chennai, India
    Posts
    865
    Use this script . . .

    SELECT RPAD(owner,10), RPAD(name,20), namespace, RPAD(type,15), loads, executions, locks,
    pins, kept FROM v$db_object_cache WHERE sharable_mem > 10000
    AND (type='PACKAGE' OR type='PACKAGE BODY' OR type='FUNCTION'
    OR type = 'PROCEDURE') ORDER BY loads;





Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width