首页> 外国专利> Method for identifying discreted deadlock conditions on the multiple database system

Method for identifying discreted deadlock conditions on the multiple database system

机译:在多数据库系统上识别离散死锁条件的方法

摘要

1. TECHNICAL FIELD OF THE INVENTION;The present invention relates to a distributed deadlock identification method in a multiple database system.;2. The technical problem to be solved by the invention;The present invention seeks to provide a distributed deadlock identification method that identifies all deadlocks that may occur while ensuring maximum system performance.;3. Summary of the Solution of the Invention;In the distributed deadlock identification method applied to a multi-database system, a first step of checking whether a timed out transaction exists and initializing an index value I of a local database and setting a read-only variable to true ; A second step of checking whether the number of the local databases is equal to or larger than the index value of the local database, initializing the access index value J of each local database, and initializing the number of accesses to the I-th local database; If the number of accesses of the I-th local database is greater than or equal to 'J', the number of accesses to the I-th local database is increased by a predetermined first number, 'J' is increased by a predetermined first number, and the number of accesses of the I-th database is increased. A third step of setting the flag to true; If the number of accesses of the I local database is not greater than 'J', check whether the flag of the 'I' local database is true, and if the flag is true, initialize 'J', specify a read-only variable, and set the flag to true. Otherwise, determining whether all accessed transactions are in read mode; A fifth step of extending a time for waiting for a response from a local database if all transactions accessed in the fourth step are in a read mode; And a sixth step of retracting the timed out transaction by checking a flag of the local database and the number of accesses to the local database if all the transactions accessed in the fourth step are not in the read mode.;4. Important uses of the invention;The present invention is used in multiple database systems.
机译:多数据库系统中的分布式死锁识别方法技术领域本发明涉及一种多数据库系统中的分布式死锁识别方法。本发明要解决的技术问题;本发明寻求提供一种分布式死锁识别方法,其在确保最大系统性能的同时识别可能发生的所有死锁。发明内容在用于多数据库系统的分布式死锁识别方法中,第一步是检查是否存在超时事务,并初始化本地数据库的索引值I并设置只读变量真实地;第二步,检查本地数据库的数量是否等于或大于本地数据库的索引值,初始化每个本地数据库的访问索引值J,并初始化对第I个本地数据库的访问数量;如果第I个本地数据库的访问数量大于或等于“ J”,则对第I个本地数据库的访问数量增加预定的第一数量,而“ J”增加预定的第一数量数量,第I个数据库的访问次数增加。将标志设置为true的第三步;如果I本地数据库的访问次数不大于'J',请检查'I'本地数据库的标志是否为true,如果标志为true,则初始化'J',指定一个只读变量,并将标志设置为true。否则,确定所有访问的事务是否都处于读取模式;第五步,如果在第四步中访问的所有事务都处于读取模式,则延长等待本地数据库响应的时间;第六步,如果在第四步中访问的所有事务都不都处于读取模式,则通过检查本地数据库的标志和对本地数据库的访问次数来撤回超时的事务。本发明的重要用途;本发明用于多个数据库系统中。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号