Beruflich Dokumente
Kultur Dokumente
July 9, 2009
Agenda
Background
Achievement
Introduction to Outlines
References
Q&A
2
Background
Achievement
Go-Live
Introduction to Outlines
USER_OUTLINES
USER_OUTLINE_HINTS
ALL_OUTLINES
ALL_OUTLINE_HINTS
DBA_OUTLINES
DBA_OUTLINE_HINTS
You can test if an outline is being used with the V$SQL view.
Query the OUTLINE_CATEGORY column in conjunction with
the SQL statement.
In a nutshell, get the outline for our original statement and make
it use the new execution plan as if it was hinted by swapping
the 2 Outlines.
Pros
Enormous benefits in terms of Performance tuning if source
code is not available or cannot be tuned via query rewrite.
As there is no code change involved following additional
benefits are achieved:
Mitigates Oracle de-support risk
Deployment time is greatly reduced
Can be used when upgrading from Rule Based to Query
Optimizer or during new Oracle database release.
Outlines can be moved between systems by category using
Import/Export, thus helping migrations between Test and
Production systems.
Cons
By using a stored outline, the system may be forcing the
optimizer to choose a different execution plan, so there
should be regular monitoring of the effects of the stored
outlines over time to make sure there is no negative impact.
11
References
http://download-west.oracle.com/docs/cd/B14117_01/server.
101/b10752/outlines.htm
http://www.dbazine.com/oracle/or-articles/jlewis4
http://www.dbazine.com/oracle/or-articles/jlewis5
http://www.psoug.org/reference/outlines.html
http://www.oracle-base.com/articles/misc/Outlines.php
http://asktom.oracle.com (search for Outlines)
12
Q&A
Questions?
13