Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

 
 Home
 E-mail Us
 Oracle Articles
New Oracle Articles


 Oracle Training
 Oracle Tips

 Oracle Forum
 Class Catalog


 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Analysis
 Design
 Implementation
 Oracle Support


 SQL Tuning
 Security

 Oracle UNIX
 Oracle Linux
 Monitoring
 Remote s
upport
 Remote plans
 Remote
services
 Application Server

 Applications
 Oracle Forms
 Oracle Portal
 App Upgrades
 SQL Server
 Oracle Concepts
 Software Support

 Remote S
upport  
 Development  

 Implementation


 Consulting Staff
 Consulting Prices
 Help Wanted!

 


 Oracle Posters
 Oracle Books

 Oracle Scripts
 Ion
 Excel-DB  

Don Burleson Blog 


 

 

 


 

 

   

 

  Oracle Database Tips by Donald Burleson

Requirements for OUTLINE Use

The only privilege needed to create outlines is the CREATE ANY OUTLINE privilege. However it is also useful to be able to select from DBA_OUTLINES

To force a session to either use or not create out lines you would issue the command:

 ALTER SESSION SET CREATE_STORED_OUTLINES = TRUE | FALSE | <category>

This command causes Oracle to automatically create outlines for all SQL statements issued during the session. If set to TRUE then the category name for the outlines is set to DEFAULT.

Note: Category should not be quoted contrary to documentation

To turn on or off the creation of stored outlines at the system level issue the command:

 ALTER SYSTEM SET CREATE_STORED_OUTLINES = TRUE | FALSE | <category> [NOOVERRIDE]  

This determines whether Oracle should automatically create and store an outline for each query submitted on the system.  These outlines are stored in the DEFAULT category. If a particular query already has an outline defined for it in the DEFAULT category, that outline will remain and a new outline will not be created.

The NOOVERRIDE option specifies that this system setting will not override the setting for any session in which this parameter was explicitly set.

It should be noted that outlines overide all other optimizer settings. They are only used if a session explicitly requests that they be used using the following command.

ALTER SESSION SET USE_STORED_OUTLINES = TRUE | FALSE | <category>

Note: As with the previous commands, category should not be quoted contrary to documentation

If USE_STORED_OUTLINES is set to TRUE then the DEFAULT category is used. If set to a category then TRUE is assumed and that category is used.

 When set Oracle checks for a known stored plan based on an address calculated from the SQL TEXT of the statement. If  a plan exists in the selected category then that plan will be used (provided it is valid).


The above text is an excerpt from:

Using Oracle SQL Stored Outlines & Optimizer Plan Stability
ISBN 0-9740716-8-4

by Mike Ault

 

http://www.rampant-books.com/ebook_plan_stability.htm


��  
 
 
Oracle Training at Sea
 
 
 
 
oracle dba poster
 

 
Follow us on Twitter 
 
Oracle performance tuning software 
 
Oracle Linux poster
 
 
 

 

Burleson is the American Team

Note: This Oracle documentation was created as a support and Oracle training reference for use by our DBA performance tuning consulting professionals.  Feel free to ask questions on our Oracle forum.

Verify experience! Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.

Errata?  Oracle technology is changing and we strive to update our BC Oracle support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:  

and include the URL for the page.


                    









Burleson Consulting

The Oracle of Database Support

Oracle Performance Tuning

Remote DBA Services


 

Copyright © 1996 -  2020

All rights reserved by Burleson

Oracle ® is the registered trademark of Oracle Corporation.