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.

CHAPTER 17 SQL TUNING 403<br />

<br />

<br />

<br />

Using SQL Access Advisor<br />

If you are using Enterprise Edition and have a license for the Tuning Pack, you can use<br />

SQL Tuning Advisor <strong>to</strong> help you with SQL tuning. We’ve already created indexes and generated<br />

statistics; we now look <strong>to</strong> SQL Tuning Advisor for fresh ideas. The commands in<br />

the following example generate a recommendation report:<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

The final in the preceding code retrieves the following report from SQL Tuning<br />

Advisor:

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

Saved successfully!

Ooh no, something went wrong!