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.

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

The redo size statistic number depends on the Oracle release, so I always double-check. This script was run on an Oracle Database 10g Release 1 system, which assigns the redo size statistic as number 133. In Oracle Database 11g Release 1, the redo size statistic number is 140. While Oracle does occasionally change a statistic number, changing the name is even less likely. Therefore, the query in Figure 8-1 could easily have filtered on the statistic name instead of its number.

After the initial redo bytes-generated value is reported, the session sleeps for 5 seconds while other sessions are modifying the customers table. When the session wakes up, it then performs a full-table scan on the customers table, which touches every block in the table, and then once again gathers how many redo bytes the session has generated. If the customers table had changes committed while the session slept, and the session was the first to touch the changed buffer containing at least one committed row, we would expect to see redo associated with the session. Figure 8-2 shows what actually happened.

Figure 8-2. Shown is the result of a session querying a table (2,691,136 rows), which generated 440,324 bytes (881,952 - 441,628) of redo.

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