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.

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

3 decode(a.type,'PACKAGE','PKG','PACKAGE BODY','PBDY','FUNCTION','FNC','PROCEDURE','PRC') typex,

Figure 7-14. Shown is the OSM script dboc.sql, which is used to quickly identify large and/or frequently executed shared pool objects. This example was run soon after the instance restarted.

To keep a cursor in the shared pool, gather both its address and hash value from a v$sql, v$sqlarea, or perhaps v$open_cursor script. Notice that in the following code snippet the address (6877c238) and hash value (1356456286) are concatenated together with a comma between them. The second parameter is a C, since we are keeping a cursor. For keeping triggers the parameter is T; for sequences, use Q; and for packages, procedures, and functions, the parameter is P.

©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!