期刊文献+

SQL执行计划与直方图关系研究 被引量:1

Research on Relationship between SQL Execution Plan and Histogram
下载PDF
导出
摘要 sql语句调优是数据库性能调优的重要方面.要达到同样的执行结果,sql语句有多种写法,不同的写法其性能差别很大.即使同一个sql语句,oracle也有多种途径去执行,即有多个执行计划.oracle比较这多个执行计划的性能优劣,耗费资源多少,来选择最优的执行计划.oracle在评估各个执行计划的性能时,需要借助sql语句执行的环境,即统计信息,来计算出每个执行计划耗费资源的多少.因此,尽可能收集准确的统计信息,对于oracle能否选择最优的执行计划,至关重要.其中,直方图的收集与否起着很重要的作用.本文通过实验来验证直方图对sql执行计划的影响,从而明确何种情况下需要收集直方图. Sql statement tuning is an important aspect of database performance tuning. To achieve the same effects, sql statement has a variety of wording, with different performance for the different wording. Even with only one sql statement, the oracle also has a variety of ways to implement. That is, there are multiple execution plans. The oracle compares the performance of these multiple execution plans, the cost of resources, to select the optimal execution plan. In assessing the performance of each implementation plan, the oracle needs the implementation of sql statement with the environment, that is statistical information to calculate the cost of the number of resources for each implementation plan.Therefore, it is critically important for the oracle to choose the best implementation plan to collect as much as possible accurate statistical information. Among them, the collection of the histogram plays a very important role. The experiment verifies the impact of the histogram for the sql implementation plan, which clears the circumstances under which it needs to collect histograms.
作者 张开基 ZHANG Kai-Ji(Sinopec Petroleum Engineering Corporation, Dongying 257000, Chin)
出处 《计算机系统应用》 2017年第10期246-250,共5页 Computer Systems & Applications
关键词 sql调优 执行计划 统计信息 直方图 sql tuning implementation plan statistics histogram
  • 相关文献

参考文献4

二级参考文献19

  • 1王晓春,赵霁,张岩.Windows平台上Oracle数据库的系统性能优化[J].计算机工程,2004,30(9):79-81. 被引量:15
  • 2聂洪.ORACLE数据库性能的调整[J].梅山科技,2006(B11):8-9. 被引量:3
  • 3李学强,罗省贤.基于ORACLE系统的数据库性能优化设计[J].通信与广播电视,2006(4):31-36. 被引量:3
  • 4Niemiec R J,薛莹,译.Oracle Database 10g性能调整与优化[M].北京:清华大学出版社,2009.
  • 5Loney K.Oracle Database 10g完全参考手册[M].张立浩,尹志军,译.北京:清华大学出版社,2006.
  • 6William G,Page Jr.Oracle 8/8i开发使用手册[M].王磊,蒋蕊,王焱,等译.北京:机械工业出版社,2002:48-62,159-229.
  • 7Oracle.Enterprise DBA Part 2:Performance and Tuning[M].volume 1-2.America:Oracle Corporation,1999.
  • 8Oracle.Enterprise DBA Part 1A:Architecture and Administration[M].volume 1-2.America:Oracle Corporation,1999.
  • 9Jeff Dunham.Database Performance Tuning Handbook[M].America:McGraw Hill Text,1997.
  • 10Stephen Rea.Oracle Database Tuning[EB/DL].2003-07-167.http://www.uaex.edu/srea/tuning.htm.

共引文献33

同被引文献6

引证文献1

二级引证文献1

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部