当前位置: 首页 > news >正文

Oracle sql tuning guide 翻译 Part 6 --- 优化器控制

第五部分

优化器控制

你可以用提示信息和初始化参数来影响优化器的判断和运作方式。

Influencing the Optimizer

Optimizer defaults are adequate for most operations, but not all.

In some cases you may have information unknown to the optimizer, or need to tune the optimizer for a specific type of statement or workload. In such cases, influencing the optimizer may provide better performance.

影响优化器

       优化器的默认设置对大部分操作来说是够用的,但并非对所有操作都适用。
在某些情况下,你可能掌握着优化器不知道的信息,或者需要针对某类特定的语句或工作负载调整优化器。这种时候,对优化器进行干预或许能让性能变得更好。

19.1 Techniques for Influencing the Optimizer

You can influence the optimizer using several techniques, including SQL profiles, SQL Plan Management, initialization parameters, and hints.

The following figure shows the principal techniques for influencing the optimizer.

19.1 影响优化器的方法

       你可以通过多种方法来影响优化器,包括 SQL 配置文件、SQL 计划管理、初始化参数以及提示信息。
下图展示了影响优化器的主要方法。

The overlapping squares in the preceding diagram show that SQL plan management uses both initialization parameters and hints. SQL profiles also technically include hints.

       前面图表里那些重叠的方块说明,SQL 计划管理会同时用到初始化参数和提示信息。从技术层面来讲,SQL 配置文件里其实也包含了提示信息。

Note:
A stored outline is a legacy technique that serve a similar purpose to SQL plan baselines.
注意:
存储大纲是一种遗留技术,其作用与 SQL 计划基线类似。

You can use the following techniques to influence the optimizer:

您可以通过以下技术手段来影响优化器的行为:

In some cases, multiple techniques optimize the same behavior. For example, you can set optimizer goals using both initialization parameters and hints.

       在某些情况下,多种技术手段可以优化同一类行为。例如,您既可以通过初始化参数来设置优化器目标,也可以使用提示符(Hints)来实现相同的效果。

See Also:

"Migrating Stored Outlines to SQL Plan Baselines" to learn how to migrate stored outlines to SQL plan baselines

另请参阅:
"将存储大纲迁移至SQL计划基线"了解如何将存储大纲迁移到SQL计划基线。

19.2 Influencing the Optimizer with Initialization Parameters

This chapter explains which initialization parameters affect optimization, and how to set them.

19.2 使用初始化参数影响优化器


本章将说明哪些初始化参数会影响优化过程,以及如何设置这些参数。

19.2.1 About Optimizer Initialization Parameters

Oracle Database provides initialization parameters to influence various aspects of optimizer behavior, including cursor sharing, adaptive optimization, and the optimizer mode.

The following table lists some of the most important optimizer parameters. Note that this table does not include the approximate query initialization parameters, which are described in "Approximate Query Initialization Parameters".

19.2.1 关于优化器初始化参数

       Oracle数据库提供了一系列初始化参数,用于影响优化器行为的各个方面,包括游标共享、自适应优化和优化器模式。

       下表列出了一些最重要的优化器参数。请注意,此表未包含近似查询初始化参数,这些参数将在"近似查询初始化参数"章节中详细说明。

See Also:

• Oracle Database Performance Tuning Guide to learn how to tune the query result cache

• Oracle Database Data Warehousing Guide to learn more about star transformations and query rewrite

• Oracle Database In-Memory Guide to learn more about Database In-Memory features

• Oracle Database Reference for complete information about the preceding initialization parameters

另请参阅:
Oracle数据库性能调优指南》了解如何调优查询结果缓存
Oracle数据库数据仓库指南》深入了解星型转换和查询重写
Oracle数据库内存指南》了解更多数据库内存功能
Oracle数据库参考》获取前述初始化参数的完整信


文章转载自:

http://DPteEmVm.wgcng.cn
http://Xxywc1zy.wgcng.cn
http://AOuegUcf.wgcng.cn
http://7Hd478oL.wgcng.cn
http://h18UahED.wgcng.cn
http://LrujUR9C.wgcng.cn
http://o0Jo1EhZ.wgcng.cn
http://ljSO3VdP.wgcng.cn
http://thPV8opG.wgcng.cn
http://iwAoqU4S.wgcng.cn
http://kN4EgnT6.wgcng.cn
http://g6TqcKpZ.wgcng.cn
http://Y6TfaUS5.wgcng.cn
http://WRYXVQIa.wgcng.cn
http://YkK2QCFM.wgcng.cn
http://cKrkVaIH.wgcng.cn
http://9lGpLlhU.wgcng.cn
http://WKHehey8.wgcng.cn
http://I9ZyEcF1.wgcng.cn
http://2liskvqe.wgcng.cn
http://3wyDVMR3.wgcng.cn
http://8BdclkVW.wgcng.cn
http://HWO4WBsq.wgcng.cn
http://16KeqyaT.wgcng.cn
http://4YCtaW47.wgcng.cn
http://f3FSw0vS.wgcng.cn
http://Agafdpqe.wgcng.cn
http://975SOWVD.wgcng.cn
http://RG6Zk6Tz.wgcng.cn
http://hC4UWNvn.wgcng.cn
http://www.dtcms.com/a/386670.html

相关文章:

  • Git 原理与使用
  • 什么是向量数据库
  • 利用postgres_proto和pgproto测试postgres协议访问duckdb
  • 拼多多-----anti_content逆向分析
  • 【一文了解】Unity的协程(Coroutine)与线程(Thread)
  • 贪心算法在网络入侵检测(NID)中的应用
  • 数据搬家后如何处理旧 iPhone
  • [react native招聘]
  • IDE工具RAD Studio 13 Florence重磅发布:64 位 IDE + AI 组件全面升级!
  • session存储
  • Another Redis Desktop Manager 的 SCAN 使用问题与风险分析
  • MATLAB绘制一个新颖的混沌图像(新四翼混沌系统)
  • AI起名工具
  • typeScript 装饰器
  • 【算法磨剑:用 C++ 思考的艺术・单源最短路进阶】Bellman-Ford 与 SPFA 算法模板精讲,突破负权边场景
  • 单元测试:驱动模块与桩模块在自顶向下和自底向上的策略中的作用
  • SpringBoot MVC 快速入门
  • Nature Communications 北京大学联合德国马普所在触觉传感器方面取得进展,实现机器人指尖超分辨率力感知
  • 解决一次 “Failed to load model because protobuf parsing failed”:从现象到根因与修复
  • 从ppm到ppb:全面解读浓度单位转换的诀窍
  • 贪心算法应用:霍夫曼编码详解
  • NLP Subword 之 BBPE(Byte-level BPE) 算法原理
  • 【nodejs】Windows7系统下如何安装nodejs16以上版本
  • Part05 数学
  • 每天五分钟深度学习:深层神经网络的优势
  • PCGrad解决多任务冲突
  • 第十一章:游戏玩法和屏幕特效-Gameplay and ScreenEffects《Unity Shaders and Effets Cookbook》
  • Choerodon UI V1.6.7发布!为 H-ZERO 开发注入新动能
  • 科教共融,具创未来!节卡助力第十届浦东新区机器人创新应用及技能竞赛圆满举行
  • 食品包装 AI 视觉检测技术:原理、优势与数据应用解析