19.06.2013 Views

DB2 UDB for z/OS Version 8 Performance Topics - IBM Redbooks

DB2 UDB for z/OS Version 8 Performance Topics - IBM Redbooks

DB2 UDB for z/OS Version 8 Performance Topics - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Figure 3-49 Starting to analyze a sample query<br />

You can create a category to save all the related SQL. The related SQL can be automatically<br />

saved in a current command history category and you can rerun it anytime.<br />

Note: Be<strong>for</strong>e you run an EXPLAIN, you can run the Analyzer. If Statistics Advisor suggests<br />

a RUNSTATS, you can execute the RUNSTATS, then execute the Analyzer again,<br />

iteratively. When no more RUNSTATS are suggested, run EXPLAIN. And if you want to<br />

execute the query, just click EXECUTE.<br />

We click the ANALYZE button. The screen that pops up, when the analysis is completed,<br />

shows the targeted RUNSTATS statements.<br />

Figure 3-50 reports the RUNSTATS suggestion <strong>for</strong> the SQL statement we analyzed. You can<br />

execute that RUNSTATS directly from Visual Explain (VE), after configuring a WLM<br />

environment, by invoking DSNUTILS from Statistics Advisor.<br />

Chapter 3. SQL per<strong>for</strong>mance 117

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

Saved successfully!

Ooh no, something went wrong!