01.09.2016 Views

Beginning Oracle Database 11g Administration From Novice to Professional

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

362<br />

CHAPTER 16 INSTANCE TUNING<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

The most important section of the Statspack report is the “Top 5 Timed Events” section.<br />

It is preceded by details concerning the workload processed by the database. In<br />

Listing 16-2, you can see that the DB time was 1,589.75 minutes during an elapsed interval<br />

of 60.55 minutes. DB time is the sum of the response times of all database calls made<br />

by the connected sessions. The reason it is so much larger than the clock time is because<br />

many database sessions were simultaneously active. Note that actual CPU usage was only<br />

7.88 minutes, less than one half of 1 percent of DB time. The rest of the time was spent<br />

waiting for overhead activities such as reading data from disk (<br />

operations) and writing redo information <strong>to</strong> the online redo logs ( operations).<br />

Each operation retrieves one 8 KB block of data from disk.<br />

The average time for each operation was 239 milliseconds, which is <strong>to</strong>tally unacceptable<br />

and indicates that the disks were the bottleneck; it should not take more than 5 milliseconds<br />

<strong>to</strong> retrieve a block of data. The average time for each operation was<br />

426 milliseconds—more than four-tenths of a second—another indication that the disks<br />

are the bottleneck.<br />

The best way <strong>to</strong> tune this database would be <strong>to</strong> get faster disks; another alternative<br />

would be <strong>to</strong> increase the size of the buffer cache so that less data has <strong>to</strong> be read from disk.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!