为了在系统协同工作过程中使异构数据库的数据同步,基于agent技术给出了一个数据同步模型。在该模型中,agent的局部代理利用数据同步监听器对数据的变化进行实时监听,全局代理利用数据同步检测器对数据是否同步进行定期检测,并生成相应的同步命令由全局代理分发执行,解决了协同系统中异构数据库的数据同步问题。最后,该模型应用到一个"项目控制管理系统"中,说明了该模型的可用性和有效性以及数据同步机制的正确性和实时性。
In order to carry out data synchronization of heterogeneous database in collaboration process,the paper presented a new data synchronization model based on agent technology.In the model,the local agent monitored the changes of the data using data synchronization listener in real time.And the global agent tested system using data synchronization detector periodically and generated corresponding synchronization commands that were distributed execution by the global agent,and solved the data synchronization problems of heterogeneous database in collaborative system.Finally,the data synchronization model was applied to a "project control and management system".The result shows the availability and effectiveness of the model and the accuracy and real-time of the data synchronization mechanism.