日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

转 执行计划突变分析

發布時間:2024/4/13 编程问答 24 豆豆
生活随笔 收集整理的這篇文章主要介紹了 转 执行计划突变分析 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

https://carlos-sierra.net/2013/05/28/oracle-queries-are-taking-different-plans/

?

SQLTXPLAIN?

?

?

Oracle Queries are taking different?Plans

with 4 comments

I recently saw a post with this title “Oracle Queries are taking different Plans” and since there was a lot of guessing I suggested to use SQLTXPLAIN and find there the root cause. For some reason or another the thread is still open after 20 days, and the guessing continues. Since the problem of “finding the root cause of a change on an execution plan” is old and still common, I decided to talk about it here.

In Oracle, execution plans do change for one SQL over time, that is a fundamental function of the Cost-based Optimizer (CBO). Not only is normal, but expected and desired in most circumstances. What is not desired, is when a SQL that had a good performing plan suddenly changes its plan to one that we consider sub-optimal in terms of performance. This should be the concern and focus. So WHY the CBO suddenly generates such a plan? The possible reasons are many but I enlist here the most common ones I can think of:

  • Schema object statistics changes
  • Small sample sizes when gathering CBO schema statistics (mostly on 10g)
  • Lack of statistics in some columns referenced by predicates
  • Inconsistent values of bind variables referenced by SQL
  • System wide changes like CBO parameters or system statistics
  • Index modifications including new and dropped indexes
  • Invalid or invisible indexes
  • Large SQL text with many predicates where several plans with similar cost are possible
  • Inconsistent ramp-up process of Adaptive Cursor Sharing (ACS)
  • SQL Profiles generated by the SQL Tuning Advisor (STA)
  • An index changing its blevel (for example from blevel 2 to 3)
  • Volatile values in some columns (for example value “Pending” exists in table column for a short time)
  • Asynchronous gathering of stats on volatile data instead of gathering right between load and consumption

The list above is not comprehensive. It only includes what came to my mind while writing it, so I may have forgotten several cases. And of course there are always some corner cases like special conditions activating uncommon heuristics, or simply hitting a CBO bug.

Guessing WHY a plan has changed is very time consuming and requires multiple queries to the metadata on the database. Since most of the metadata we are interested on is dynamic by nature, we base our guess work on an ever changing environment. Of course the root cause become elusive and we may give up for some time, or jump to false conclusions.

This is where SQLTXPLAIN (MOS 215187.1) or its younger and lighter sister SQLHC (MOS?1366133.1) come to the rescue. These free tools, specially SQLTXPLAIN (SQLT), capture the static and dynamic environment around the one SQL we want to analyze.

By having a consistent view of all elements affecting the execution plan, it becomes much easier to find the root cause of a plan change. And since SQLT also includes current and past details about parameters, statistics and bind variable values, we can even correlate those values to prior execution plans. So I encourage you to try SQLTXPLAIN on a SQL next time you are confronted by the old question: “WHY Oracle?Queries are taking different Plans?”.

I am aware SQLTXPLAIN is intimidating. Its output is?exuberant, but the point is that it includes what we need to find the root cause of most if not all SQL Tuning cases where a plan has changed.

I have presented this SQLT tool in several conferences during the past year or so. I think it is appropriate now to put together a 3 days workshop to master this tool… Just an idea at this time.

轉載于:https://www.cnblogs.com/feiyun8616/p/11062697.html

總結

以上是生活随笔為你收集整理的转 执行计划突变分析的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。

主站蜘蛛池模板: 使劲插视频| 成人短视频在线观看 | 亚洲精品视屏 | 亚洲国产aⅴ成人精品无吗 日韩乱论 | 熟女精品一区二区三区 | 国产在线麻豆精品观看 | 97久久精品人人澡人人爽 | 国产欧美日韩91 | 女人下面无遮挡 | 久久影院午夜理论片无码 | 不卡日韩 | 成人免费区一区二区三区 | 国产一级免费视频 | 秘密的基地 | 91精彩视频 | 欧美色激情 | 国产在线网址 | a视频免费看 | 亚洲成人久久精品 | a资源在线 | 色婷婷麻豆 | 久久男人网 | 国产亚洲精品久久久久四川人 | 国内91视频| 在哪里可以看毛片 | 久久五月视频 | 日本极品丰满ⅹxxxhd | 日韩av综合网 | 久久最新| 在线看国产精品 | 超碰在线公开 | 亚洲爆乳无码一区二区三区 | 日韩精品免费在线视频 | 欧美日韩性视频 | 中文字幕少妇在线三级hd | 国产经典一区 | 亚洲一区二区激情 | 潘金莲一级淫片aaaaaa播放 | 国产精品99久久久久久www | 97人人爽人人爽人人爽人人爽 | 九色国产精品 | 人妻无码一区二区三区免费 | 日韩精品一区二区三区 | 色悠悠网 | 91精品国产色综合久久不卡98口 | 一本色道久久88加勒比—综合 | 美女网站免费观看视频 | 青青草免费在线观看 | 神马久久午夜 | 久久精品亚洲无码 | 亚洲成人一区二区在线观看 | 韩国一二三区 | 麻豆污视频| 日韩精品视频在线 | 精品麻豆 | 美女被啪羞羞粉色视频 | 国产极品尤物 | 日本福利视频一区 | 成年人在线视频网站 | 麻豆成人在线视频 | 国产精品一区二区麻豆 | 大学生av| 久久久88| 国产人妖ts重口系列网站观看 | 日本夜夜操 | 38在线视频 | 成人做爰www看视频软件 | 亚洲国产日韩欧美一区二区三区 | 免费又黄又爽又色的视频 | 色综合啪啪 | 香蕉视频免费 | 91视频论坛 | 欧美日韩亚洲一区二区三区 | 久久久黄色大片 | 无套内谢88av免费看 | 奇米影视首页 | 国产中文字幕91 | 天堂精品久久 | 欧美性aaa | 日本在线不卡一区 | 日韩在线视频观看免费 | 干夜夜| 波多野结衣视频在线看 | va在线看 | 一区二区三区四区中文字幕 | 欧美日韩国产中文 | 大陆日韩欧美 | 日韩在线观看不卡 | 综合av第一页 | 午夜精品成人毛片非洲 | 欧美性生活一区二区 | 日韩aⅴ在线观看 | 久久久久久黄色 | 欧美粗暴jizz性欧美20 | 中文字幕一区二区视频 | 国产av日韩一区二区三区精品 | 中文字幕无线码 | 51吃瓜网今日 | 相亲对象是问题学生动漫免费观看 |