首页> 外国专利> Database transaction with locking in two phases and multiple versions of objects

Database transaction with locking in two phases and multiple versions of objects

机译:在两个阶段锁定和对象的多个版本的数据库事务

摘要

A method is provided for consistent reading of a number of objects (1O, 2O, 3O) within a database. The method is adapted for use with a database in which transactions are managed by two-phase locking. A first phase (A) includes a request for access to objects (1O, 2O, 3O) affected by the transaction and locking of these objects as soon as access thereto has been granted. A second phase (B) includes committing the transaction and releasing all locks that were set in the first phase. The actual work performed in a transaction may be summarized as object changing actions and/or object non-changing actions. A change, or an update, of the content of an object is performed by writing the new content into a new version of the object, where the current version of the object prior to the transaction is retained until no further transactions make use of this version. The transaction performs all changing actions within the first phase (A). The transaction is adapted to retain access to the objects (1O, 2O, 3O) after the second phase (B). The transaction is also adapted to perform the largest possible number of non-changing actions in a third phase (C), after the second phase (B), whereafter the transaction closes access to the objects. Thus, the transaction is provided with a consistent snapshot of effected objects (1O, 2O, 3O) in the database after the locks have been released, with regard to non-changing actions.
机译:提供了一种用于一致读取数据库中多个对象( 1 O, 2 O, 3 O)的方法。该方法适用于通过两阶段锁定管理事务的数据库。第一阶段(A)包括访问受事务和​​锁定影响的对象( 1 O, 2 O, 3 O)的请求一旦授予对这些对象的访问权限。第二阶段(B)包括提交事务并释放在第一阶段中设置的所有锁。在交易中执行的实际工作可以概括为对象改变动作和/或对象不变动作。通过将新内容写入对象的新版本中来执行对象内容的更改或更新,其中保留交易之前对象的当前版本,直到没有其他交易使用该版本为止。该事务在第一阶段(A)内执行所有更改操作。事务适用于在第二阶段(B)之后保留对对象( 1 O, 2 O, 3 O)的访问。交易还适于在第二阶段(B)之后的第三阶段(C)中执行最大可能数量的不变动作,此后交易关闭对对象的访问。因此,在锁定后,将为数据库中的事务提供一致的受影响对象快照( 1 O, 2 O, 3 O)关于不变的行动已被释放。

著录项

  • 公开/公告号US6560601B1

    专利类型

  • 公开/公告日2003-05-06

    原文格式PDF

  • 申请/专利权人 TELEFONAKTIEBOLAGET LM ERICSSON (PUBL);

    申请/专利号US19990234514

  • 发明设计人 DAG ANDERS BJRNERSTEDT;

    申请日1999-01-21

  • 分类号G06F173/00;

  • 国家 US

  • 入库时间 2022-08-22 00:04:14

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号