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.

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

Based on this report, I believe the client identifier is being set correctly, and it's time to enable both tracing and statistics collection.

This code snippet turns on tracing, statistics collection, and sleeps for my specified data collection interval of 60 seconds. Since I am using only the client identifier to screen sessions of interest, I enabled statistics collection using the client_id_stat_enable procedure. I want the trace files to include both wait event details and bind variables (which you can lose when consolidating trace files) based on the client identifier. Therefore, I enabled tracing using the client_id_trace_enable procedure.

This report shows the activity during the collection interval only for the sessions of interest. Also note the use of the v$client_stats view, since we were collecting data based on the client identifier. We are provided with different types of statistics: DB CPU (service time), wait times (queue time) related to IO and RAC, workload statistics like db block changes, execute count, and user calls. This is a wonderful collection of statistics that can be used for firefighting, response-time analysis, and predictive analysis.

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