Steps to Take Before Analysis

Take the following steps first:

  1. Check whether sort-merge joins are enabled (12.0 and later).

  2. Check whether join transitive closure is enabled (12.0 and later).

  3. Check whether an abstract plan is in use (12.0 and later).

  4. Determine when update statistics was last run, and the extent to which performance improved as a result.

  5. If a stored procedure problem appeared following an upgrade, drop and recreate the procedure to see if performance improves.

  6. For a new query, verify there are no datatype mismatches. Mismatches that prevent a query from using an index are commonly seen:

    Check that the datatype the query uses in join clauses and search arguments matches the column datatype. For details, see “Datatype Mismatches and Query Optimization” in the Performance and Tuning Guide.

  7. Proceed with analysis if these steps do not help.

If one or more of the following is true, your problem may be related to the optimizer: