摘要
简述铁路局内部服务器之间交换数据,产生了数据一致性的问题。基于性能要求,系统将文件数据存储于服务器的文件夹中,使得数据库内部机制(如触发器等)难以控制文件数据一致性。针对该问题,基于socket通信设计一种工具实现文件数据一致性。该工具首先设计参数配置文件和利用工厂模式技术使程序访问数据库时不局限于何种数据库以及数据表等,使之成为一个可扩展的独立工具;实时监测数据库并自动实现文件记录的数据一致性;有较强的容错性如网络中断、文件传输中断、数据库连接错误等;产生日志文件以供查询。给出基于VC6.0平台的实现方法。
This paper introduces briefly that railway administration on the exchange of data between the internal server,resulting in a data consistency problem.Based on performance requirements,the files are stored in the server folder so that the internal mechanism of the database (such as trigger, etc.) is difficult to control file data consistency.For the problem,a tool based socket communication to achieve data consistency of file is designed.The configuration file of parameters is designed in tool,and the factory model is used to access the database while are not limited to,such as databases and tables to be- come an independent tool for expansion.
出处
《工业控制计算机》
2010年第10期82-83,85,共3页
Industrial Control Computer