IBM Books

Producing an Access Plan Graph

Visual Explain uses information from a number of sources in order to produce an access plan graph, as shown in the illustration below. Based on various inputs, the optimizer chooses an access plan, and Visual Explain displays it in an access plan graph. The nodes in the graph represent tables and indexes and each operation on them. The links between the nodes represent the flow of data.
Figure appr not displayed.

The following list of tasks correspond to those shown in the illustration above. (Broken lines indicate steps that are required for Visual Explain.)

  1. Tune your table design and reorganize table data.

  2. Create appropriate indexes.

  3. Use the runstats command to provide the optimizer with current statistics.

  4. Choose appropriate configuration parameters.

  5. Choose appropriate bind options.

  6. Design queries to retrieve only required data.

  7. Create an access plan.

  8. Create explain snapshots.

  9. Display and use an access plan graph.

For example, to use Visual Explain, first update current statistics using the runstats command on the tables, and indexes used by the statement. These statistics, the configuration parameters, bind options, and the query itself are used by the optimizer to create an access plan and an explain snapshot when the package is bound. Visual Explain uses the resulting explain snapshot to display the access plan graph for the statement.

[ Top of Page | Table of Contents | Glossary | Index ]

[ DB2 List of Books | Search the DB2 Books ]