Oracle8i Reference
Release 2 (8.1.6)

Part Number A76961-01

Library

Product

Contents

Index

Go to previous page Go to beginning of chapter Go to next page

Initialization Parameters, 124 of 188


OPTIMIZER_MODE

Parameter type: 

String 

Syntax: 

OPTIMIZER_MODE =

{RULE | CHOOSE | FIRST_ROWS | ALL_ROWS} 

Parameter class: 

Dynamic. Scope=ALTER SESSION. 

Default value: 

CHOOSE 

OPTIMIZER_MODE specifies the goal of optimization of SQL statements. 

  • RULE specifies that rule-based optimization is to be used unless hints are specified in the query.

  • CHOOSE specifies cost-based optimization for a SQL statement if the data dictionary contains statistics for at least one table accessed in the statement. If no such statistics are present, the optimizer uses the rule-based approach.

  • FIRST_ROWS causes the optimizer to use cost-based optimization to choose execution plans that minimize response time. This setting overrides a nonzero setting for "OPTIMIZER_PERCENT_PARALLEL".

  • ALL_ROWS causes the optimizer to use cost-based optimization to choose execution plans that minimize total execution time.

 

See Also:

 


Go to previous page Go to beginning of chapter Go to next page
Oracle
Copyright © 1996-2000, Oracle Corporation.

All Rights Reserved.

Library

Product

Contents

Index