You were brought to this page based on an internet search
and as a free service to Oracle DBAs.
The text below is an except from the book,
Oracle Performance Firefighting, written by
Craig Shallahamer of
OraPub, Inc.
Figures and tables are not included on this page, only their reference.
To order the book in either print or PDF form, click
here.
©2009, 2010 by Craig Shallahamer. This is copyrighted material.
PleaseOut of respect for those involved in the creation of the book and also for
their familes, we ask you to respect the copyright both in intent and deed. Thank you.
-------------------------------
Finally, upon issuing either one of the preceding code snippets, you can easily check to ensure the object is indeed being kept. For example, Figure 7-15 (which does not show cursors) will clearly show the trader.buy procedure with the Kept? column set to YES.
Figure 7-15. Shown is a recently restarted instance with the trader.buy procedure kept (pinned) in the shared pool. While kept, the procedure has not been executed yet, so the script parameters had to be set to 0 for the buy procedure to display.
I'm frequently asked how often to refine the pin list. Personally, I don't like to invoke any database change until I have a very good reason. A good reason for refining your pin list is if your system has suddenly started experiencing shared pool latch contention or has encountered 4031 errors. This is very important: From a more proactive posture, refine the pin list if application functionality is added, an application upgrade occurs, or application usage significantly changes.
©2009, 2010 by Craig Shallahamer. This is copyrighted material.
PleaseOut of respect for those involved in the creation of the book and also for
their familes, we ask you to respect the copyright both in intent and deed. Thank you.
|