10G默认optimizer_mode为all_rows

本文详细介绍了Oracle数据库中优化器模式的各种设置及其作用。包括first_rows_n、first_rows和all_rows等不同模式的选择依据和优化目标,这对于理解SQL执行计划及优化数据库性能至关重要。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

show">sys@ora10g>show parameter optimizer_mode

NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
optimizer_mode string all_rows
optimizer_mode establishes the default behavior for choosing an optimization
approach for the instance.
Values:
■ first_rows_n
The optimizer uses a cost-based approach and optimizes with a goal of best
response time to return the first n rows (where n = 1, 10, 100, 1000).
■ first_rows
The optimizer uses a mix of costs and heuristics to find a best plan for fast
delivery
of the first few rows.
■ all_rows
The optimizer uses a cost-based approach for all SQL statements in the session
and
optimizes with a goal of best throughput (minimum resource use to complete the
entire statement).

[@more@]

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

转载于:http://blog.itpub.net/10599713/viewspace-970831/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值