January 2012
Intermediate to advanced
542 pages
11h 28m
English
In this recipe, we will see how to suggest (to the optimizer) the strategy to adopt for choosing the best execution plan, using optimizer hints.
The use of optimizer hints is a trick and should be considered only when no solution seems to work. The query optimizer is designed to choose the best execution plan, based on many different considerations, so it's very important to keep updated statistics to help the query optimizer in doing its work.
The following steps will explore optimizer hints:
SH schema:
CONNECT sh@TESTDB/sh
SET AUTOT TRACE EXP
Read now
Unlock full access