首页> 外文OA文献 >An Ounce of Prevention is Worth a Pound of Cure: Formal Verification for Consistent Database Evolution
【2h】

An Ounce of Prevention is Worth a Pound of Cure: Formal Verification for Consistent Database Evolution

机译:一瞥预防值得一蹴而就:对一致的数据库演进进行形式验证

代理获取
本网站仅为用户提供外文OA文献查询和代理获取服务,本网站没有原文。下单后我们将采用程序或人工为您竭诚获取高质量的原文,但由于OA文献来源多样且变更频繁,仍可能出现获取不到、文献不完整或与标题不符等情况,如果获取不到我们将提供退款服务。请知悉。
获取外文期刊封面目录资料

摘要

Consistency of a database is an important property that must be preserved at all times. In most OODB systems today, application code can directly access and alter both the data as well as the structure of the database. As a consequence application code can potentially violate the integrity of the database, in terms of the invariants of the data model, the user-specified application constraints, and even the referential integrity of the objects themselves. A common form of consistency management in most databases today is to encode constraints at the system level (e.g., foreign keys), or at the trigger based level (e.g., user constraints) and to perform transaction rollback on discovery of any violation of these constraints. However, for programs that alter the structure as well as the objects in a database, such as an extensible schema evolution program, roll-backs are expensive and add to the already astronomical cost of doing schema evolution. In this paper, pre-execution formal verification of schema evolution programs is proposed as an alternative solution to the traditional rollback solution for consistency management. As part of this work we introduce the notion of contracts, i.e., pre- and post-conditions for an extensible schema evolution program, and demonstrate that they can be specified using a familiar language, OQL. We also demonstrate the ease and practicality of using a theorem prover for the formal verification of schema evolution programs. The theorem prover tool can be set up initially with all the information about the environment, i.e., the axioms of the database, the invariants and the basic schema evolution primitives. A writer then of an extensible schema evolution program need only supply the contracts and the program written in OQL to guarantee the correctness of their program. We highlight the main features of the verification process using a complete walk-through example. The end result of our approach is a more efficient consistency management framework that has limited overhead to the users and yet provides flexibility to safely add new schema evolution transformations to the system while assuming complete correctness.
机译:数据库的一致性是必须始终保留的重要属性。在当今的大多数OODB系统中,应用程序代码可以直接访问和更改数据以及数据库的结构。结果,就数据模型的不变性,用户指定的应用程序约束甚至对象本身的引用完整性而言,应用程序代码可能潜在地破坏数据库的完整性。当今大多数数据库中一致性管理的一种常见形式是在系统级别(例如,外键)或基于触发器的级别(例如,用户约束)编码约束,并在发现任何违反这些约束的条件时执行事务回滚。但是,对于更改数据库中的结构以及对象的程序(例如可扩展的架构演化程序),回滚是昂贵的,并且增加了进行架构演化的天价成本。在本文中,提议对模式演化程序进行预执行形式验证,以作为传统回滚解决方案一致性管理的替代解决方案。作为这项工作的一部分,我们介绍了合同的概念,即可扩展模式演化程序的前提条件和后置条件,并证明可以使用一种熟悉的语言OQL来指定它们。我们还演示了使用定理证明者对模式演化程序进行形式验证的简便性和实用性。可以首先使用有关环境的所有信息(即数据库的公理,不变式和基本模式演化原语)来建立定理证明工具。然后,可扩展模式演化程序的编写者只需提供合同和用OQL编写的程序即可保证其程序的正确性。我们使用一个完整的演练示例来突出显示验证过程的主要功能。我们的方法的最终结果是一个更有效的一致性管理框架,该框架对用户具有有限的开销,同时提供了灵活性,可以在假设完全正确的同时安全地向系统中添加新的架构演进转换。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号