首页> 外国专利> Relational database system and method with high data availability during table data restructuring

Relational database system and method with high data availability during table data restructuring

机译:在表数据重构期间具有高数据可用性的关系数据库系统和方法

摘要

A database computer system includes memory, residing in a plurality of interconnected computer nodes, for storing database tables. Each database table has a plurality of columns, a primary key index based on a specified subset of the columns, and an associated table schema. At least a subset of the database tables are partitioned into a plurality of partitions, each partition storing records having primary key values in a primary key range distinct from the other partitions. A transaction manager generates and stores an audit trail, each audit entry denoting a database table record event, such as an addition, deletion or alteration of a specified database table record in a specified one of said database tables. Four online data definition procedures allow the structure of a database table to be altered while the database table remains available to execution of transactions, with minimal impact of the availability of the database table for transaction execution. The four online data definition procedures are a move partition procedure, a split partition procedure, a move partition boundary procedure, and a create new index procedure. Each of these online procedures has three or four phases of execution. In a first phase, records of a table partition or the entire table are accessed using read only access, so as to generate a new partition, move records between two partitions, or to create a new index. In a second phase, audit trail entries are used to clean up the data structures created during the first phase. In a third phase, access to the database table is briefly locked while audit trail entries created after the second phase are used to make final changes to the data structures created during the first phase, and while the database table schema is updated to reflect the changes to the database table produced.
机译:数据库计算机系统包括驻留在多个互连的计算机节点中的存储器,用于存储数据库表。每个数据库表都具有多个列,基于列的指定子集的主键索引以及关联的表架构。数据库表的至少一个子集被划分为多个分区,每个分区存储具有在与其他分区不同的主键范围内的主键值的记录。事务管理器生成并存储审计跟踪,每个审计条目表示数据库表记录事件,例如在所述数据库表中指定的一个中添加,删除或更改指定的数据库表记录。四种在线数据定义过程允许更改数据库表的结构,同时数据库表仍可用于执行事务,同时将数据库表的可用性对事务执行的影响降至最低。四个在线数据定义过程是移动分区过程,拆分分区过程,移动分区边界过程和创建新索引过程。这些在线过程中的每一个都有三个或四个执行阶段。在第一阶段,使用只读访问权限访问表分区或整个表的记录,以便生成新分区,在两个分区之间移动记录或创建新索引。在第二阶段,审核跟踪条目用于清除在第一阶段创建的数据结构。在第三阶段中,对数据库表的访问被短暂锁定,而在第二阶段之后创建的审计跟踪条目用于对第一阶段中创建的数据结构进行最终更改,并且数据库表模式进行更新以反映更改到产生的数据库表。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号