首页 | 官方网站   微博 | 高级检索  
     

ORACLE中SQL执行原理及性能优化研究
引用本文:刘光霆,何宏.ORACLE中SQL执行原理及性能优化研究[J].计算机应用与软件,2009,26(6):149-151.
作者姓名:刘光霆  何宏
作者单位:后勤工程学院基础部,重庆,400016
摘    要:SQL性能优化是一个系统工程,熟知SQL语法并不能保证SQL语句的高效。从分析ORACLE数据库中SQL语句执行原理入手,指出减少SQL语句的解析次数和优化CBO是SQL性能优化的重点,并用实例验证了使用绑定变量和高速缓存游标在提高SQL性能方面的重要作用。CBO将输入的SQL语句转化为实际的执行计划,而执行计划的优劣又主要依赖于初始化参数与统计信息的质量,因此在优化CBO中重点阐述了如何设置影响CBO行为的初始化参数及收集统计信息必须遵守的五条原则。

关 键 词:ORACLE  SQL  优化  CBO  

RESEARCH OF SQL'S EXECUTION-PRINCIPLE AND PERFORMANCE-TUNING IN ORACLE
Liu Guangting,He Hong.RESEARCH OF SQL'S EXECUTION-PRINCIPLE AND PERFORMANCE-TUNING IN ORACLE[J].Computer Applications and Software,2009,26(6):149-151.
Authors:Liu Guangting  He Hong
Affiliation:Department of Foundations;Logistic Engineering University;Chongqing 400016;China
Abstract:SQL performance tuning is system engineering.Being familiar with SQL grammar can not guarantee the high efficiency of SQL statement.In this paper it analyzes the execution process of SQL statement in Oracle database and finds out that reducing times of SQL statement parsing and optimizing CBO are the emphases of SQL performance tuning.Then it validates the key role of using bound variable and cache cursor in enhancing performance of SQL with example.CBO transforms SQL statement into execution plan,the quali...
Keywords:ORACLE SQL Performance-tuning CBO  
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司    京ICP备09084417号-23

京公网安备 11010802026262号