计算机与现代化

• 应用与开发 • 上一篇    下一篇

商用数据库的统一管理设计

  

  1. 1.南瑞集团公司,江苏南京210003;
    2.安徽南瑞继远电网技术有限公司,安徽合肥230088
  • 收稿日期:2016-08-26 出版日期:2017-03-29 发布日期:2017-03-30
  • 作者简介:刘群(1963-),男,河北临城人,南瑞集团公司、安徽南瑞继远电网技术有限公司高级工程师,本科,研究方向:自动化; 宋千义(1983-),男,安徽淮北人,软件工程师,本科,研究方向:软件研发; 通信作者:常勇(1992-),男,安徽阜阳人,软件助理工程师,硕士,研究方向:故障诊断,半实物仿真。

Design of Unified Commercial Database Management

  1. 1. NARI Group Corporation, Nanjing 210003, China;
    2. Anhui NARI Jiyuan Electric Co., Ltd., Hefei 230088, China
  • Received:2016-08-26 Online:2017-03-29 Published:2017-03-30

摘要: 在计算机软件开发中,当多个相关产品都用到了商用数据库时,由于不同数据库驱动和不同数据库的配置,且不同数据库在操作语法上不尽相同,从数据库的选型到应用层接口可能都不统一。为解决这个问题,本文设计开发了统一商用数据库,根据不同的平台给出不同的实现,对外提供统一访问接口。通过实现对业务表的管理,不涉及具体业务,实现了跨系统使用,并且为避免大量的数据库连接时导致服务不堪负荷,影响访问效率,采用数据库连接池的方式实现数据库的连接库的连接访问,使用户可以专注于业务实现。

关键词: 软件开发, 应用层接口, 商用数据库, 连接池

Abstract:  In computer software development, when the commercial database is used by multiple related products, due to the different database driven, different configuration and different operating grammar of the databases, it  may be different from the database selection to the application layer interface. To solve this problem, a unified commercial database is designed and developed. Different implementation is given for different platform when a uniform access interface is provided. By implementing the management of the business table, not involving the specific business, the use for across various systems is realized. And in order to avoid collapse to affect the access efficiency when a large number of databases are connected, the database connection pool is used to implement for connecting and accessing the database connection repository, and it makes the users can focus on business.

Key words: software development, application layer interface, commercial database, connection pool

中图分类号: