基于PL/SQL的批量处理应用的性能优化策略
DOI:
作者:
作者单位:

作者简介:

通讯作者:

中图分类号:

基金项目:


Performance Optimization Strategy of Batch Process Application Based on PL/SQL
Author:
Affiliation:

Fund Project:

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 增强出版
  • |
  • 文章评论
    摘要:

    Oracle数据库系统是目前企业应用最广泛的大型关系数据库管理系统.PL/SQL是Oracle对结构化查询语言SQL扩展的过程性语言,利用其设计和开发触发器、视图、存储过称、包以及函数等实现对数据库的数据处理.在很多企业应用架构设计中,会采取Oracle端存储过程实现一些用户交互少、逻辑复杂和涉及数据量大的批量处理,使得数据库具备了数据存储和业务处理的双重角色.但是在这种应用中,随着数据量的不断增加,如何保证存储过程的性能非常关键.本文结合中国民航国际客运收入管理系统海外版性能优化的成功实践,简要介绍了Oracle的OEM工具和AWR报告两个发现性能问题的工具,并从代码结构调整降I/O、临时表和模拟多线程三方面总结了基于PL/SQL的批量处理应用的性能优化策略,为采用此类架构设计的开发人员和运维人员提供持续优化的思路.

    Abstract:

    As large-scale RDBMS, Oracle is used most widely in enterprise application. PL/SQL is programming language based on SQL and expanded by Oracle. We could adopt PL/SQL to develop trigger, view, stored procedure, package and function to process data. In many architecture designs of enterprise application, stored procedure is utilized to achieve batch processing which does not need more user interaction, owns complex logic and often involves a large amount of data, making the database have dual roles which are data storage and business process. With the increasing amount of data, how to guarantee performance of stored procedure is very important. In this article, based on successful practice of performance tuning to oversea version of China Aviation International Passenger Revenue Accounting Solution, the author introduces Oracle's OEM and AWR report simply which are used to discover performance problem, and three technologies as optimization strategy adopted in batch processing application based on PL/SQL are summarized, they are code refactoring to decrease I/O, temporary table and simulating multi-thread. The target of this article is to provide thinking for developer and maintainer engaging in continuous optimization about the application utilizing such architecture.

    参考文献
    相似文献
    引证文献
引用本文

张孝斌,王超.基于PL/SQL的批量处理应用的性能优化策略.计算机系统应用,2016,25(5):1-7

复制
分享
文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:2015-08-21
  • 最后修改日期:2015-11-02
  • 录用日期:
  • 在线发布日期: 2016-05-20
  • 出版日期:
您是第位访问者
版权所有:中国科学院软件研究所 京ICP备05046678号-3
地址:北京海淀区中关村南四街4号 中科院软件园区 7号楼305房间,邮政编码:100190
电话:010-62661041 传真: Email:csa (a) iscas.ac.cn
技术支持:北京勤云科技发展有限公司

京公网安备 11040202500063号