###
DOI:
计算机系统应用英文版:2016,25(5):1-7
←前一篇   |   后一篇→
本文二维码信息
码上扫一扫!
基于PL/SQL的批量处理应用的性能优化策略
(中国民航信息网络股份有限公司, 北京 100102)
Performance Optimization Strategy of Batch Process Application Based on PL/SQL
(Travelsky Technology Limited, Beijing 100102, China)
摘要
图/表
参考文献
相似文献
本文已被:浏览 1489次   下载 2987
Received:August 21, 2015    Revised:November 02, 2015
中文摘要: Oracle数据库系统是目前企业应用最广泛的大型关系数据库管理系统.PL/SQL是Oracle对结构化查询语言SQL扩展的过程性语言,利用其设计和开发触发器、视图、存储过称、包以及函数等实现对数据库的数据处理.在很多企业应用架构设计中,会采取Oracle端存储过程实现一些用户交互少、逻辑复杂和涉及数据量大的批量处理,使得数据库具备了数据存储和业务处理的双重角色.但是在这种应用中,随着数据量的不断增加,如何保证存储过程的性能非常关键.本文结合中国民航国际客运收入管理系统海外版性能优化的成功实践,简要介绍了Oracle的OEM工具和AWR报告两个发现性能问题的工具,并从代码结构调整降I/O、临时表和模拟多线程三方面总结了基于PL/SQL的批量处理应用的性能优化策略,为采用此类架构设计的开发人员和运维人员提供持续优化的思路.
中文关键词: 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
ZHANG Xiao-Bin,WANG Chao.Performance Optimization Strategy of Batch Process Application Based on PL/SQL.COMPUTER SYSTEMS APPLICATIONS,2016,25(5):1-7