ITPub博客

首页 > 数据库 > Oracle > OPTIMIZER_MODE Initialization Parameter

OPTIMIZER_MODE Initialization Parameter

原创 Oracle 作者:tsinglee 时间:2008-04-02 11:13:16 0 删除 编辑

ALL_ROWS :The optimizer uses a cost-based approach for all SQL statements
in the session regardless of the presence of statistics and
optimizes with a goal of best throughput (minimum resource
use to complete the entire statement). This is the default value.

FIRST_ROWS_n :The optimizer uses a cost-based approach, regardless of the
presence of statistics, and optimizes with a goal of best response
time to return the first n number of rows; n can equal 1, 10, 100,
or 1000.

FIRST_ROWS :The optimizer uses a mix of cost and heuristics to find a best
plan for fast delivery of the first few rows.

Note: Using heuristics sometimes leads the query optimizer to
generate a plan with a cost that is significantly larger than the
cost of a plan without applying the heuristic. FIRST_ROWS is
available for backward compatibility and plan stability; use
FIRST_ROWS_n instead.

If the optimizer uses the cost-based approach for a SQL statement, and if some
tables accessed by the statement have no statistics, then the optimizer uses
internal information, such as the number of data blocks allocated to these
tables, to estimate other statistics for these tables.

[@more@]

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/10599713/viewspace-1001789/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: ANALYZE INDEX clause
下一篇: ERROR:ORA-01555
请登录后发表评论 登录
全部评论
  • 博文量
    740
  • 访问量
    2002850