Oracle Performance Firefighting
by Craig Shallahamer

Get the book here



Craig Shallahamer's Blog

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.
Please—Out 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.

-------------------------------

There are four straightforward steps to ensure the objects you want are always kept in the shared pool. While the word pin is commonly used, the dbms_shared_pool package's keep function is used to ensure the object is kept in the shared pool. This package is not loaded by default when the database is created, so your first step is to load it. The following code snippet is an example of how to create the procedure.

The next step is to find the large and/or popular objects. Oracle keeps track of shared pool object usage and makes this information easily available via the v$db_object_cache view. Figure 7-14 shows the output from the OSM script dboc.sql, which is used to identify potential objects. You're likely to see a group of packages that are much larger than the rest and also packages that are executed much more frequently than others. There may also be objects that you personally know have unusual execution profiles and you want to have cached.

Once you have the list of objects to keep, the next step is to determine how to place them in the cache. The keep function is used to pin the object, or better said, to keep the object in the shared pool.

©2009, 2010 by Craig Shallahamer. This is copyrighted material.
Please—Out 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.


Know what's important before it's too late!

OraPub's
Performance Training

is like no other...





More Class Pics...
Get student testimonials!