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.

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

As Figure 8-9 shows, looking for the log file sync wait event SQL is very straightforward. The first method shown samples directly from v$session. Starting with Oracle Database 10g, real-time wait event details are included directly in v$session, allowing for SQL identification based on any wait event. However, if you do not want to repeatedly sample from v$session (which is not recommended), and if you have a license to use the active session history (ASH) facility (discussed in Chapter 5), the second example shows how you can also easily locate log file sync-related SQL from v$active_session_history. Since ASH data is buffered for perhaps less than an hour, if you want prior data, you can sample from the dba_hist_active_sess_history view, as shown in the third example in the figure. If you are performing your analysis based on a Statspack or AWR report, look for the highest total elapsed time DML SQL. While solving log file sync issues can be difficult, identifying the associated SQL is not.

Figure 8-9. Shown are three ways to gather the SQL associated with the wait event log file sync, or with a slight modification, any wait event.

There are times when the application truly demands an immediate commit, which can result in a tremendous commit rate. For example, I know of systems where financial transactions arrive from multiple sources. The transactions are small, but because they are independent transactions, the legal and business rules require that each individual incoming transaction must be immediately committed to the database. In this situation, you have little choice but to devise a solution that does not involve changing the application.

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