WO2016101301A1 - Objectification and virtualization mechanism for mode of relational database table - Google Patents

Objectification and virtualization mechanism for mode of relational database table Download PDF

Info

Publication number
WO2016101301A1
WO2016101301A1 PCT/CN2014/095494 CN2014095494W WO2016101301A1 WO 2016101301 A1 WO2016101301 A1 WO 2016101301A1 CN 2014095494 W CN2014095494 W CN 2014095494W WO 2016101301 A1 WO2016101301 A1 WO 2016101301A1
Authority
WO
WIPO (PCT)
Prior art keywords
virtual
database
mode
library
mapping
Prior art date
Application number
PCT/CN2014/095494
Other languages
French (fr)
Chinese (zh)
Inventor
郭树盛
唐素芳
徐志伟
Original Assignee
广东电子工业研究院有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广东电子工业研究院有限公司 filed Critical 广东电子工业研究院有限公司
Publication of WO2016101301A1 publication Critical patent/WO2016101301A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators

Definitions

  • the present invention relates to the field of computer application technologies, and in particular, to a relational database table schema objectification and virtualization mechanism.
  • Data sources are diverse, heterogeneous, and off-site. They are the basic forms of existing software application systems.
  • the database used varies due to the complexity of the system business and the application environment. The data between the systems cannot be directly interconnected, and even more Conduct unified management.
  • the mainstream relational database technologies are also inconsistent and difficult to grasp. It is difficult for development and maintenance personnel to take into account the management and maintenance of all types of relational databases, and it is impossible to realize data interconnection from the underlying physical structure of the database. This will inevitably lead to the separate use of the data and information of the software application systems of each information interconnection to form an "island" of information that is not connected to each other.
  • data sharing and correlation analysis mining has become more and more important, not only providing important information for upper-level decision-making, but also has many immeasurable business values.
  • the invention is directed to the phenomenon that the data source of the existing software application system is diverse, heterogeneous, and off-site, and the database data cannot be uniformly managed and interconnected to form an "island" of information, and a mainstream relational database table schema object is provided.
  • the mechanism of virtualization and virtualization is provided.
  • the mechanism is implemented by a virtual database, a virtual table, a virtual view, and a many-to-many mapping between them and a physical application server, a database server, a database, and a data table;
  • the virtual database is a virtual space organized and managed in a network environment; there is a corresponding virtual table (virtual level virtual resource), a role that can allocate virtual table usage rights, a virtual library resource user, and a virtual database.
  • virtual table virtual level virtual resource
  • Other entities such as views (virtual tables created based on virtual tables): and other network knowledge and activities derived from behavioral relationships within their lifecycle
  • the virtual database is a logical virtual network space with defined boundaries, as: 1) Specific network cohesive space composed of users, virtual resources, and roles; 2) interface between virtual space and network physical elements; operation of virtual database: creation, modification, and deletion; virtual resources can be moved or copied between virtual databases. Different virtual database administrators can share virtual resources;
  • the virtual table is an abstract concept representing a database server, a database, and a table at a logical level. It belongs to a specific virtual database, and has a relationship characteristic, having a schema and a constraint; implementing and specific through the pr mode and the vr mode.
  • the physical table of the database forms a one-to-one correspondence; the virtual table satisfies the relational operation operator, and a new virtual table, that is, a virtual view, can be formed through operations such as connection and association, thereby forming an access and mapping relationship between the virtual tables having the hierarchical structure; Complex data models and connections that can be used to represent business needs; operations of virtual tables: create, delete, modify, and interface to read, write, change, and delete data;
  • the virtual view is a composite virtual table based on a virtual table, and is a logical view recombined based on a virtual table field.
  • the virtual view also has a relationship characteristic, having a schema and a constraint; it can correspond to multiple virtual
  • the table has no direct correspondence with the physical table, but is indirectly mapped to each database physical table field according to the virtual table field; that is, the upper level vr mode and the lower vr mode are used to implement the hierarchical mapping relationship;
  • the library table data integration and the sql association operation realize the sharing and association operation of the data information without changing the physical attributes of the underlying databases;
  • the mapping relationship reflects the operation mapping between the virtual database, the virtual table/view, and the physical application server, the database server, the database, and the data table (file); the operation of facing the virtual database and the virtual table at the logical layer is finally mapped to The operation of the corresponding one or more physical concept entities; this mapping is many-to-many, and can also be cross-constraint; the virtual table can establish a mapping relationship between the physical database and the table (including files), and the mapping relationship is non- One-to-one correspondence, a virtual table schema Can be mapped to one or more database servers, databases, tables (files) on the network;
  • Each library table corresponds to a p-v object instance system, and the library table field corresponds to a pojo instance; thereby shielding the complex physical details and differences of the current software application system database.
  • All heterogeneous relational library tables are controlled by a unified virtual table logic concept, that is, each library table is simply regarded as a pv object instance system, and is persisted into a virtual table resource, and the basic virtual table and the actual relational database table.
  • Establish a one-to-one mapping relationship through the virtual view mode customization and virtual table data operations (additions and deletions, joins, unions, etc.) can be finally mapped to the corresponding operations of the underlying library table; in the case of shielding the underlying heterogeneous database differences Users can perform some operations across the library by building views on the underlying virtual tables.
  • vr mode and pr mode are: they all include the concept of objectization and persistence; objectification level: MetaVr object model of vr mode corresponding to library table, mainly by virtual library ID, virtual table ID, field attribute (library Table field pojo group json string), creation time, owner ID and other attributes; pr mode corresponding to the library table MetaPr object model, also mainly by virtual library ID, virtual table ID, field attributes (library table field pojo group Json string), creation time, owner ID and other attributes; only the virtual surface layer has both vr mode and pr mode, they establish mapping through specific field mapping; while virtual view layer only has vr mode layer, through upper vr mode Layer-to-lower vr mode layer mapping relationship is layer-by-layer mapping, and finally mapped to the virtual surface layer; persistence level: vr mode corresponds to a specific data record of the metabase table of the cloud database base library table; pr mode corresponds to the cloud database base library table metapr A specific data record of the table; vr mode and pr mode
  • the first step is to install a virtualized heterogeneous data integration service platform on each node, and then Configure other application server nodes in the configuration file of the previous node;
  • the second step is to deploy the initial environment required for system operation: 1) Import the system base library, which is the meta node database. 2) Register the virtual library account and activate it, and the system administrator approves it;
  • the virtual library administrator logs in to the system, creates his own virtual database, registers the virtual table, creates a virtual view based on the virtual table, and then creates his own ordinary users and user roles.
  • the virtual library administrator can use this function to create the virtual database n required by other applications.
  • Each time a virtual database is created at least one ordinary user is allocated to the virtual database. After the ordinary user logs in to the system, the resources of the virtual database can be used and operated (within the authority).
  • a virtual database m can be created on the service platform, and each virtual database number is globally unique, ensuring that multiple virtual databases can have a uniform global unique number;
  • an application developed for any virtual database can use a virtual database label.
  • the virtual table label (vdbid.vid) transparently accesses various resources through the access interface of the virtual table, wherein the program developer is not necessarily a virtual database.
  • the user while the program is running, will access the internal logic of the interface to determine whether the user has access to the virtual table/view based on the identity of the currently accessed user.
  • the cloud database virtualization platform can transparently develop, deploy, and manage network applications in a distributed network environment, without paying attention to physical resources and running application servers.
  • Location transforming heterogeneous relational library tables and library tables into a series of unified object model instances for control and operation.
  • the heterogeneity of resources and the details of physical operations are shielded; applications developed based on this virtual platform are globally accessible, deployable, and portable, ensuring the convenience of using the cloud database platform.
  • Figure 1 is a diagram of the various elements of the multi-heterogeneous software architecture and its virtualization mechanism
  • Figure 2 is a diagram of the database library table field objectification and persistence process
  • FIG. 3 is a hierarchical field mapping relationship diagram between virtual view virtual tables.
  • FIG 1 several basic elements of the cloud database virtualization platform are included, as well as the correspondence between these basic elements and the virtual database and virtual table.
  • the general network application is served by the application server and the database server connected to the back end for multiple front-end users, and the database server has its corresponding database.
  • Each network application calls its own virtual resource, that is, a virtual table, according to its own needs, and then calls the data resource through the mapping relationship between the virtual table and the underlying database through the virtual resource address.
  • the application server and the database server can be separately expanded to form a networked cluster service platform.
  • the upper virtual table (virtual view) field is mapped to the lower virtual view or the underlying virtual table by address, and each underlying virtual table mode (named vr in the figure) has a unique fixed pr mode.
  • each underlying virtual table mode named vr in the figure
  • the pr table has a one-to-one correspondence with the underlying physical table relationship.
  • each library table is simply regarded as a pv object instance system, and is persisted into a virtual table resource, and the basic virtual table is actually
  • the relational database table establishes a one-to-one mapping relationship, and the virtual view mode customization and the operation of the virtual table data (addition, deletion, modification, join, union, etc.) can be finally mapped to the corresponding operations of the underlying library table.
  • users can perform some operations between the inter-libraries by building views in the basic virtual table, such as join, union, etc.
  • the virtual table belongs to a specific virtual library. In the virtualization platform, it is managed by a virtual library.
  • the essence is a data record of the metavr table of the cloud database meta-node database and a materialization of the metapr table data record associated with the phase mapping. It is similar to the actual database table.
  • the field is the basic unit. Each field corresponds to a pojo instance. That is, the virtual table field of the virtual table or upper view is mapped to an actual database library table field.
  • the virtual table field pojo has some unique attributes such as mapping, mapping, code, etc. in addition to those of the actual physical library table, such as field type, field name, and field length.
  • the virtual table field is also the only identifiable number.
  • the virtual table also has its own unique properties, such as the unique address of the virtual table, the creator, the creation time, and so on.
  • the virtualized resource layer (virtual table) operation performed by the user through the virtualization platform essentially changes the logical table layer schema of the library table and does not directly change the actual library table schema.
  • the actual database table hereinafter referred to as the underlying physical table
  • the basic virtual table the view (virtual table view) built on the basic virtual table is through the hierarchical mapping to establish the relationship.
  • each virtual table has its corresponding vr mode, and there is an unchangeable pr mode.
  • the vr mode and the pr mode establish a field-to-one mapping relationship through a field mapping relationship, and the user operates the upper layer vr mode by mapping the address layer.
  • the layer resolves to the final concrete pr mode field, and the pr mode field establishes a solid one-to-one correspondence with the physical library table fields. Therefore, the upper vr mode field will eventually map to the specific physical library table field.
  • vr mode and pr mode are: they all include the two-layer concept of objectification and persistence.
  • Objectization level The MetaVr object model corresponding to the library table in vr mode is mainly composed of virtual library ID, virtual table ID, field attribute (json string of library table field pojo group), creation time, owner ID and other attributes.
  • the pr mode corresponds to the MetaPr object model of the library table, and is mainly composed of a virtual library ID, a virtual table ID, a field attribute (a json string of a library table field pojo group), a creation time, an owner ID, and the like. Only the virtual surface layer has both the vr mode and the pr mode, and they establish a mapping relationship through specific field mapping.
  • the virtual view layer only has the vr mode layer, and the layer-level association mapping is performed through the mapping relationship between the upper vr mode layer and the lower vr mode layer, and finally mapped to the virtual surface layer.
  • Persistence level The vr mode corresponds to a specific data record of the metavr table of the cloud database base library table.
  • the pr mode corresponds to a specific data record of the metabase table of the cloud database base library table.
  • the vr mode and the pr mode, the relationship between the upper vr mode and the lower vr mode are related by establishing a mapping relationship by representing a virtual table address, a field mapping value field value or a field value attribute value.
  • the invention realizes database virtualization, and the main steps are as follows:
  • the first step is to install a virtualized heterogeneous data integration service platform on each node and then configure other application server nodes in the current node's configuration file.
  • the second step is to deploy the initial environment required for system operation: 1) Import the system base library, which is the meta node database. 2) Register the virtual library account and activate it, and the system administrator approves it.
  • the virtual library administrator logs in to the system, creates his own virtual database, registers the virtual table, creates a virtual view based on the virtual table, and then creates his own ordinary users and user roles.
  • the virtual library administrator can use this function to create the virtual database n required by other applications.
  • Each time a virtual database is created at least one ordinary user is assigned to the virtual database. After the ordinary user logs in to the system, it can be used and operated (within the authority) The resources of the virtual database.
  • a virtual database m can be created on the service platform, and each virtual database number is globally unique, ensuring that multiple virtual databases can have a uniform global unique number.
  • an application developed for any virtual database can use a virtual database label.
  • the virtual table label (vdbid.vid) transparently accesses various resources through the access interface of the virtual table, wherein the program developer is not necessarily a virtual database.
  • the user while the program is running, will access the internal logic of the interface to determine whether the user has access to the virtual table/view based on the identity of the currently accessed user.
  • the invention provides a database virtualization mechanism and method, which virtualizes the current mainstream relational databases to a unified platform, shielding the underlying physical differences, and on the basis of a high degree of abstraction,
  • the multi-heterogeneous structure evolves into a logical, relatively simple and unified object-based model architecture.
  • Each complex and diverse physical table structure is unified in the form of basic elements such as virtual libraries and virtual tables, and the library table and library table fields are unified and objectified.
  • the multi-heterogeneous database of each application system is connected to the cloud database virtualization platform, and the user can customize a self-management and self-consumption data information service platform according to his own needs.

Abstract

An objectification and virtualization mechanism for a mode of a mainstream relational database table. Rational database tables with huge physical differences are converted into a uniform object model, that is, each of the database tables is simply regarded as a p-v object instance system, and each database table field is converted into a pojo instance to serve as a key attribute of the p-v object instance system and is persistent in a cloud database meta node database so as to form a virtual table resource. Thus, a complex physical structure of a multi-element heterogeneous database is evolved into a uniform virtual database platform with a relatively simple logic, a mapping is established between a logic element and a physical element, and an operation mode of concept of a logic layer is defined and mapped into an operation mode for the physical element, complex underlying physical details and differences are shielded, and a cloud database virtualization platform uniformly based on an object model operation is provided. The solution solves the problem that database data cannot be uniformly managed and cannot interconnect and interwork, and thus can be used for the interconnection and interworking of the database data.

Description

关系型数据库表模式对象化和虚拟化机制Relational database table schema objectification and virtualization mechanism 技术领域Technical field
本发明涉及计算机应用技术领域,特别涉及一种关系型数据库表模式对象化和虚拟化机制。The present invention relates to the field of computer application technologies, and in particular, to a relational database table schema objectification and virtualization mechanism.
背景技术Background technique
数据源多元、异构、异地是现有软件应用系统存在的基本形式,由于系统业务复杂程度及应用环境不同所使用的数据库也各有差异;导致各系统之间数据无法直接互联互通,更无法进行统一管理。而现阶段各主流关系型数据库技术也不一致且不容易掌握,开发及维护人员很难兼顾所有类型关系型数据库的管理及维护工作,更无法从数据库底层物理结构层面实现数据的互联互通。这就必然导致各信息互联的软件应用系统数据信息各自为政,形成一座座互不联通的信息“孤岛”。而随着大数据时代的到来,数据共享及关联分析挖掘已经越来越重要了,不仅为上层决策能够提供重要信息,更有很多不可估量的商业价值。Data sources are diverse, heterogeneous, and off-site. They are the basic forms of existing software application systems. The database used varies due to the complexity of the system business and the application environment. The data between the systems cannot be directly interconnected, and even more Conduct unified management. At this stage, the mainstream relational database technologies are also inconsistent and difficult to grasp. It is difficult for development and maintenance personnel to take into account the management and maintenance of all types of relational databases, and it is impossible to realize data interconnection from the underlying physical structure of the database. This will inevitably lead to the separate use of the data and information of the software application systems of each information interconnection to form an "island" of information that is not connected to each other. With the advent of the era of big data, data sharing and correlation analysis mining has become more and more important, not only providing important information for upper-level decision-making, but also has many immeasurable business values.
发明内容Summary of the invention
本发明是针对现有的软件应用系统数据源多样、异构、异地,导致数据库数据无法统一管理及互联互通从而形成一个个信息“孤岛”的现象,而提供一种主流关系型数据库表模式对象化并虚拟化的机制。The invention is directed to the phenomenon that the data source of the existing software application system is diverse, heterogeneous, and off-site, and the database data cannot be uniformly managed and interconnected to form an "island" of information, and a mainstream relational database table schema object is provided. The mechanism of virtualization and virtualization.
本发明解决上述技术问题的技术方案是:The technical solution of the present invention to solve the above technical problem is:
所述的机制由虚拟数据库、虚拟表、虚拟视图,以及它们与物理的应用服务器、数据库服务器、数据库、数据表之间的多对多映射实现; The mechanism is implemented by a virtual database, a virtual table, a virtual view, and a many-to-many mapping between them and a physical application server, a database server, a database, and a data table;
所述的虚拟数据库,是网络环境中一种组织和管理的虚拟空间;其里面有相应的虚拟表(逻辑层面的虚拟资源)、可以分配虚拟表使用权限的角色、虚拟库资源使用者、虚拟视图(基于虚拟表创建的虚拟表)的等实体:及其他们生命周期内的行为联系衍生的其他网络知识和活动,虚拟数据库是一个逻辑的具有确定边界的虚拟网络空间,作为:1)由用户、虚拟资源、角色构成的特定网络内聚空间;2)虚拟空间与网络物理要素之间的界面;虚拟数据库的操作有:创建、修改、删除;虚拟数据库之间可以移动或者复制虚拟资源,不同虚拟数据库管理员可以共享虚拟资源;The virtual database is a virtual space organized and managed in a network environment; there is a corresponding virtual table (virtual level virtual resource), a role that can allocate virtual table usage rights, a virtual library resource user, and a virtual database. Other entities such as views (virtual tables created based on virtual tables): and other network knowledge and activities derived from behavioral relationships within their lifecycle, the virtual database is a logical virtual network space with defined boundaries, as: 1) Specific network cohesive space composed of users, virtual resources, and roles; 2) interface between virtual space and network physical elements; operation of virtual database: creation, modification, and deletion; virtual resources can be moved or copied between virtual databases. Different virtual database administrators can share virtual resources;
所述的虚拟表,是在逻辑层面表示数据库服务器、数据库、表的抽象概念,它所属一个特定的虚拟数据库,本身也具有关系的特性,具有schema和约束;通过pr模式及vr模式实现与具体数据库物理表形成一一对应关系;虚拟表满足关系操作算子,可以通过连接、联合等操作形成新的虚拟表,即虚拟视图,这样形成具有层次结构的虚拟表之间的访问和映射关系;可以用来表示业务需要的复杂的数据模型及联系;虚拟表的操作:创建、删除、修改,以及读数据、写数据、变更数据、删除数据的接口;The virtual table is an abstract concept representing a database server, a database, and a table at a logical level. It belongs to a specific virtual database, and has a relationship characteristic, having a schema and a constraint; implementing and specific through the pr mode and the vr mode. The physical table of the database forms a one-to-one correspondence; the virtual table satisfies the relational operation operator, and a new virtual table, that is, a virtual view, can be formed through operations such as connection and association, thereby forming an access and mapping relationship between the virtual tables having the hierarchical structure; Complex data models and connections that can be used to represent business needs; operations of virtual tables: create, delete, modify, and interface to read, write, change, and delete data;
所述的虚拟视图,是建立在虚拟表基础上的复合虚拟表,是以虚拟表字段为基础单位重新组合的逻辑视图,本身也具有关系的特性,具有schema和约束;它可以对应多个虚拟表,跟物理表没有直接对应关系,而是根据虚拟表字段间接映射到各数据库物理表字段;也就是通过上层vr模式跟下层vr模式来实现层级映射关系;通过它来实现底层各多元异构库表数据整合及sql关联操作,在不改变底层各数据库物理属性的情况下,实现在数据信息的共享与关联操作;The virtual view is a composite virtual table based on a virtual table, and is a logical view recombined based on a virtual table field. The virtual view also has a relationship characteristic, having a schema and a constraint; it can correspond to multiple virtual The table has no direct correspondence with the physical table, but is indirectly mapped to each database physical table field according to the virtual table field; that is, the upper level vr mode and the lower vr mode are used to implement the hierarchical mapping relationship; The library table data integration and the sql association operation realize the sharing and association operation of the data information without changing the physical attributes of the underlying databases;
映射:映射关系反映了虚拟数据库、虚拟表/视图,与物理的应用服务器、数据库服务器、数据库、数据表(文件)之间的操作映射;在逻辑层面对虚拟数据库、虚拟表的操作最终映射到对应的一个或多个物理概念实体的操作;这种映射是多对多的,同时还可以是交叉约束;虚拟表可以建立到物理数据库和表(包括文件)的映射关系,这种映射关系是非一一对应的,一个虚拟表schema 可以映射到网络上的一个或多个数据库服务器、数据库、表(文件);Mapping: The mapping relationship reflects the operation mapping between the virtual database, the virtual table/view, and the physical application server, the database server, the database, and the data table (file); the operation of facing the virtual database and the virtual table at the logical layer is finally mapped to The operation of the corresponding one or more physical concept entities; this mapping is many-to-many, and can also be cross-constraint; the virtual table can establish a mapping relationship between the physical database and the table (including files), and the mapping relationship is non- One-to-one correspondence, a virtual table schema Can be mapped to one or more database servers, databases, tables (files) on the network;
每个库表对应一个p-v对象实例体系,及库表字段对应一个pojo实例;从而屏蔽当前软件应用系统数据库复杂的物理细节及差异。Each library table corresponds to a p-v object instance system, and the library table field corresponds to a pojo instance; thereby shielding the complex physical details and differences of the current software application system database.
所有异构关系型库表都借助统一的虚拟表逻辑概念来管控,也就是把每个库表简单看成一个p-v对象实例体系,并且持久化成虚拟表资源,基础虚拟表跟实际关系型数据库表建立一一映射关系,通过虚拟视图模式的自定义及虚拟表数据的操作(增删查改,join,union等)可以最终映射到底层库表的对应操作;在屏蔽底层异构数据库差异的情况下,用户可以通过在基础虚拟表建视图进行跨库间的一些操作。All heterogeneous relational library tables are controlled by a unified virtual table logic concept, that is, each library table is simply regarded as a pv object instance system, and is persisted into a virtual table resource, and the basic virtual table and the actual relational database table. Establish a one-to-one mapping relationship, through the virtual view mode customization and virtual table data operations (additions and deletions, joins, unions, etc.) can be finally mapped to the corresponding operations of the underlying library table; in the case of shielding the underlying heterogeneous database differences Users can perform some operations across the library by building views on the underlying virtual tables.
vr模式及pr模式主要特征分别为:它们都包括对象化及持久化两层概念;对象化层面:vr模式对应库表的MetaVr对象模型,主要由虚拟库ID,虚拟表ID,字段属性(库表字段pojo组的json字符串),创建时间,所有者ID等属性组成;pr模式对应库表的MetaPr对象模型,也主要由虚拟库ID,虚拟表ID,字段属性(库表字段pojo组的json字符串),创建时间,所有者ID等属性组成;只有虚拟表层才同时具有vr模式跟pr模式,它们通过具体字段映射来建立映射关系;而虚拟视图层只有vr模式层,通过上层vr模式层与下层vr模式层映射关系进行层层关联映射,并最终映射到虚拟表层;持久化层面:vr模式对应云数据库基础库表metavr表的一条特定数据记录;pr模式对应云数据库基础库表metapr表的一条特定数据记录;vr模式跟pr模式,上层vr模式跟下层vr模式之间的关系都是通过代表虚拟表地址、字段映射值字段值或字段值属性值来进行关联和建立映射关系的。The main features of vr mode and pr mode are: they all include the concept of objectization and persistence; objectification level: MetaVr object model of vr mode corresponding to library table, mainly by virtual library ID, virtual table ID, field attribute (library Table field pojo group json string), creation time, owner ID and other attributes; pr mode corresponding to the library table MetaPr object model, also mainly by virtual library ID, virtual table ID, field attributes (library table field pojo group Json string), creation time, owner ID and other attributes; only the virtual surface layer has both vr mode and pr mode, they establish mapping through specific field mapping; while virtual view layer only has vr mode layer, through upper vr mode Layer-to-lower vr mode layer mapping relationship is layer-by-layer mapping, and finally mapped to the virtual surface layer; persistence level: vr mode corresponds to a specific data record of the metabase table of the cloud database base library table; pr mode corresponds to the cloud database base library table metapr A specific data record of the table; vr mode and pr mode, the relationship between the upper vr mode and the lower vr mode is through the representative virtual table Site, field mapping value field value or attribute value to associate and establish mapping relationships.
所述的机制中,虚拟化主要步骤如下:Among the mechanisms described, the main steps of virtualization are as follows:
第一步,在每个节点上安装虚拟化多元异构数据整合服务平台,然后在当 前节点的配置文件中配置其他应用服务器节点;The first step is to install a virtualized heterogeneous data integration service platform on each node, and then Configure other application server nodes in the configuration file of the previous node;
第二步,部署系统运行需要的初始环境:1)导入系统基础库,即元节点数据库。2)注册虚拟库账号并激活,系统管理员审批通过;The second step is to deploy the initial environment required for system operation: 1) Import the system base library, which is the meta node database. 2) Register the virtual library account and activate it, and the system administrator approves it;
第三步,虚拟库管理员登陆系统,创建自己的虚拟数据库,注册虚拟表,在虚拟表基础上创建虚拟视图,再创建自己普通用户及用户角色等。虚拟库管理员可以用该功能创建其他应用需要的虚拟数据库n,创建虚拟数据库的时候,可以注册虚拟数据库需要的虚拟表或者创建虚拟视图,同样需要指定这些虚拟表映射的物理库表的存储位置,每创建一个虚拟数据库,就为该虚拟数据库分配至少一个普通用户,普通用户登录到系统后,可以使用及操作(权限以内)虚拟数据库的资源。同理,可以在该服务平台创建虚拟数据库m,每个虚拟数据库编号全局唯一,确保多个虚拟数据库能够统一的全局唯一编号;In the third step, the virtual library administrator logs in to the system, creates his own virtual database, registers the virtual table, creates a virtual view based on the virtual table, and then creates his own ordinary users and user roles. The virtual library administrator can use this function to create the virtual database n required by other applications. When creating a virtual database, you can register the virtual tables required by the virtual database or create virtual views. You also need to specify the storage location of the physical library tables mapped by these virtual tables. Each time a virtual database is created, at least one ordinary user is allocated to the virtual database. After the ordinary user logs in to the system, the resources of the virtual database can be used and operated (within the authority). Similarly, a virtual database m can be created on the service platform, and each virtual database number is globally unique, ensuring that multiple virtual databases can have a uniform global unique number;
第四步,针对任何一个虚拟数据库开发的应用程序可以用一个虚拟数据库标号.虚拟表标号(vdbid.vid)通过虚拟表的访问接口透明的访问各种资源,其中,程序开发人员未必是虚拟数据库的用户,而程序在运行时,会根据当前访问的用户身份,访问接口内部逻辑确定该用户是否有对虚拟表/视图访问的权限。In the fourth step, an application developed for any virtual database can use a virtual database label. The virtual table label (vdbid.vid) transparently accesses various resources through the access interface of the virtual table, wherein the program developer is not necessarily a virtual database. The user, while the program is running, will access the internal logic of the interface to determine whether the user has access to the virtual table/view based on the identity of the currently accessed user.
本方法的有益效果是:The beneficial effects of this method are:
通过将物理概念在逻辑层面加以总结和抽象,借助虚拟数据库、虚拟表、虚拟视图三个逻辑概念和映射,就可以表示和操作多元异构体系结构中物理存在的应用服务器、数据库服务器、数据库和表。这样设计、开发、部署、维护、管理互连网的应用和资源的大量操作都可以直接基于这两个逻辑概念完成,屏蔽了以前必须关注的物理操作的烦琐细节,确保了对互连网平台使用的方便性,以及应用的可扩展、可移植、松耦合特性。By summarizing and abstracting the physical concepts at the logical level, with the three logical concepts and mappings of virtual databases, virtual tables, and virtual views, it is possible to represent and operate the physical application servers, database servers, databases, and table. Such a large number of operations for designing, developing, deploying, maintaining, and managing Internet applications and resources can be directly based on these two logical concepts, shielding the cumbersome details of physical operations that must be prioritized before, ensuring the convenience of using the Internet platform. And the scalable, portable, and loosely coupled nature of the application.
使用本发明的方法,基于云数据库虚拟化平台可以在分布式网络环境透明的开发、部署、管理网络应用,不需要关注物理资源、运行应用服务器的具体 位置,把异构关系型库表及库表转化为一系列统一的对象模型实例来管控与操作。屏蔽了资源的异构性以及物理操作细节;基于此虚拟平台开发的应用程序具有全局可访问、可部署、可移植的特点,这样确保使用云数据库平台的便捷性。Using the method of the present invention, the cloud database virtualization platform can transparently develop, deploy, and manage network applications in a distributed network environment, without paying attention to physical resources and running application servers. Location, transforming heterogeneous relational library tables and library tables into a series of unified object model instances for control and operation. The heterogeneity of resources and the details of physical operations are shielded; applications developed based on this virtual platform are globally accessible, deployable, and portable, ensuring the convenience of using the cloud database platform.
附图说明DRAWINGS
下面结合附图对本发明进一步说明:The present invention is further described below in conjunction with the accompanying drawings:
图1是多元异构软件体系架构各要素及其虚拟化机制关系图;Figure 1 is a diagram of the various elements of the multi-heterogeneous software architecture and its virtualization mechanism;
图2是数据库库表字段对象化并持久化过程图;Figure 2 is a diagram of the database library table field objectification and persistence process;
图3是虚拟视虚拟表之间的层级字段映射关系图。FIG. 3 is a hierarchical field mapping relationship diagram between virtual view virtual tables.
具体实施方式detailed description
图1中,包括云数据库虚拟化平台的几个基本要素,以及这几个基本要素与虚拟数据库、虚拟表之间的对应关系。一般的网络应用都由应用服务器及连接后端的数据库服务器为多个前端用户服务,而数据库服务器又有其对应数据库。各网络应用根据自身需要调用定制自己的虚拟资源也就是虚拟表,然后通过虚拟资源地址再由虚拟表与底层数据库的映射关系调用数据资源。当系统的用户规模或者数据规模扩展时,可以分别拓展应用服务器和数据库服务器,形成网络化的集群服务平台。同时,当单个数据库服务器的负载过高的时候,还可以进一步的将一个或者多个库中的多个表拆分,分别部署到不同的数据库服务器上,这样可以更细粒度的降低单台数据库服务器的负载。In Figure 1, several basic elements of the cloud database virtualization platform are included, as well as the correspondence between these basic elements and the virtual database and virtual table. The general network application is served by the application server and the database server connected to the back end for multiple front-end users, and the database server has its corresponding database. Each network application calls its own virtual resource, that is, a virtual table, according to its own needs, and then calls the data resource through the mapping relationship between the virtual table and the underlying database through the virtual resource address. When the user scale or data size of the system is expanded, the application server and the database server can be separately expanded to form a networked cluster service platform. At the same time, when the load of a single database server is too high, it is possible to further split multiple tables in one or more libraries and deploy them to different database servers, so that a single database can be reduced in a finer granularity. The load of the server.
图2中,关系型数据库库表属性对象化后,转成json字符串,作为MetaPr及MetaVr对象attributes属性值,最终通过java对象及库表orm技术持久化到metavr及metapr库表成为其具体数据记录值。In Figure 2, after the relational database library table attribute is objectified, it is converted into json string, which is the attribute value of MetaPr and MetaVr object. Finally, it is persisted to metavr and metapr library table by java object and library table orm technology to become its specific data. Record the value.
图3中,上层虚拟表(虚拟视图)字段会通过地址一一映射到下层虚拟视图或基础虚拟表,而每个基础虚拟表模式(图中以vr命名)会有唯一固定的pr模式与之对应,而pr表又跟底层物理表关系一一对应。 In Figure 3, the upper virtual table (virtual view) field is mapped to the lower virtual view or the underlying virtual table by address, and each underlying virtual table mode (named vr in the figure) has a unique fixed pr mode. Corresponding, and the pr table has a one-to-one correspondence with the underlying physical table relationship.
本发米国内所有异构关系型库表都借助统一的虚拟表逻辑概念来管控,也就是把每个库表简单看成一个p-v对象实例体系,并且持久化成虚拟表资源,基础虚拟表跟实际关系型数据库表建立一一映射关系,通过虚拟视图模式的自定义及虚拟表数据的操作(增删查改,join,union等)可以最终映射到底层库表的对应操作。在屏蔽底层异构数据库差异的情况下,用户可以通过在基础虚拟表建视图进行跨库间的一些操作,如join,union等All the heterogeneous relational library tables in this issue are controlled by the unified virtual table logic concept, that is, each library table is simply regarded as a pv object instance system, and is persisted into a virtual table resource, and the basic virtual table is actually The relational database table establishes a one-to-one mapping relationship, and the virtual view mode customization and the operation of the virtual table data (addition, deletion, modification, join, union, etc.) can be finally mapped to the corresponding operations of the underlying library table. In the case of shielding the underlying heterogeneous database differences, users can perform some operations between the inter-libraries by building views in the basic virtual table, such as join, union, etc.
虚拟表它归属于特定虚拟库,在虚拟化平台它是以虚拟库统一归类管理的。实质是云数据库元节点数据库metavr表的一条数据记录及相映射关联的metapr表数据记录物化的一个东西。它跟实际数据库表类似也是以字段为基本单位,每个字段又对应一个pojo实例,也就是虚拟表或上层视图的虚拟表字段都将映射到某一实际数据库库表字段。虚拟表字段pojo除了实际物理库表的那些基础属性,如字段类型,字段名称,字段长度等属性外,还有它特有的一些属性如映射,被映射,代码等。虚拟表字段也是唯一可标识的编号。除了跟实际库表类似的一些属性虚拟表也有它自己特有的一些属性,如虚拟表唯一可标识的地址,创建者,创建时间等。The virtual table belongs to a specific virtual library. In the virtualization platform, it is managed by a virtual library. The essence is a data record of the metavr table of the cloud database meta-node database and a materialization of the metapr table data record associated with the phase mapping. It is similar to the actual database table. The field is the basic unit. Each field corresponds to a pojo instance. That is, the virtual table field of the virtual table or upper view is mapped to an actual database library table field. The virtual table field pojo has some unique attributes such as mapping, mapping, code, etc. in addition to those of the actual physical library table, such as field type, field name, and field length. The virtual table field is also the only identifiable number. In addition to some properties similar to the actual library table, the virtual table also has its own unique properties, such as the unique address of the virtual table, the creator, the creation time, and so on.
用户通过虚拟化平台进行的虚拟化资源层(虚拟表)操作,实质只是改变库表逻辑概念层schema并不直接改变实际库表schema。实际数据库表(下面都以底层物理表代称),基础虚拟表,建立在基础虚拟表上的视图(虚拟表视图)之间都是通过层级映射来建立关联关系的。在基础虚拟表层每个虚拟表有其对应的vr模式,还有不可更改的pr模式,vr模式与pr模式通过字段映射关系来建立字段一一映射关系,用户操作上层vr模式都通过映射地址层层解析到最终具体pr模式字段,而pr模式字段又是跟物理库表字段建立稳固的一一对应关系。因而上层vr模式字段都最终会映射到具体物理库表字段。 The virtualized resource layer (virtual table) operation performed by the user through the virtualization platform essentially changes the logical table layer schema of the library table and does not directly change the actual library table schema. The actual database table (hereinafter referred to as the underlying physical table), the basic virtual table, the view (virtual table view) built on the basic virtual table is through the hierarchical mapping to establish the relationship. In the basic virtual surface layer, each virtual table has its corresponding vr mode, and there is an unchangeable pr mode. The vr mode and the pr mode establish a field-to-one mapping relationship through a field mapping relationship, and the user operates the upper layer vr mode by mapping the address layer. The layer resolves to the final concrete pr mode field, and the pr mode field establishes a solid one-to-one correspondence with the physical library table fields. Therefore, the upper vr mode field will eventually map to the specific physical library table field.
vr模式及pr模式主要特征分别为:它们都包括对象化及持久化两层概念。对象化层面:vr模式对应库表的MetaVr对象模型,主要由虚拟库ID,虚拟表ID,字段属性(库表字段pojo组的json字符串),创建时间,所有者ID等属性组成。pr模式对应库表的MetaPr对象模型,也主要由虚拟库ID,虚拟表ID,字段属性(库表字段pojo组的json字符串),创建时间,所有者ID等属性组成。只有虚拟表层才同时具有vr模式跟pr模式,它们通过具体字段映射来建立映射关系。而虚拟视图层只有vr模式层,通过上层vr模式层与下层vr模式层映射关系进行层层关联映射,并最终映射到虚拟表层。持久化层面:vr模式对应云数据库基础库表metavr表的一条特定数据记录。pr模式对应云数据库基础库表metapr表的一条特定数据记录。vr模式跟pr模式,上层vr模式跟下层vr模式之间的关系都是通过代表虚拟表地址、字段映射值字段值或字段值属性值来进行关联和建立映射关系的。The main features of vr mode and pr mode are: they all include the two-layer concept of objectification and persistence. Objectization level: The MetaVr object model corresponding to the library table in vr mode is mainly composed of virtual library ID, virtual table ID, field attribute (json string of library table field pojo group), creation time, owner ID and other attributes. The pr mode corresponds to the MetaPr object model of the library table, and is mainly composed of a virtual library ID, a virtual table ID, a field attribute (a json string of a library table field pojo group), a creation time, an owner ID, and the like. Only the virtual surface layer has both the vr mode and the pr mode, and they establish a mapping relationship through specific field mapping. The virtual view layer only has the vr mode layer, and the layer-level association mapping is performed through the mapping relationship between the upper vr mode layer and the lower vr mode layer, and finally mapped to the virtual surface layer. Persistence level: The vr mode corresponds to a specific data record of the metavr table of the cloud database base library table. The pr mode corresponds to a specific data record of the metabase table of the cloud database base library table. The vr mode and the pr mode, the relationship between the upper vr mode and the lower vr mode are related by establishing a mapping relationship by representing a virtual table address, a field mapping value field value or a field value attribute value.
本发明实现数据库虚拟化,主要步骤如下:The invention realizes database virtualization, and the main steps are as follows:
第一步,在每个节点上安装虚拟化多元异构数据整合服务平台,然后在当前节点的配置文件中配置其他应用服务器节点。The first step is to install a virtualized heterogeneous data integration service platform on each node and then configure other application server nodes in the current node's configuration file.
第二步,部署系统运行需要的初始环境:1)导入系统基础库,即元节点数据库。2)注册虚拟库账号并激活,系统管理员审批通过。The second step is to deploy the initial environment required for system operation: 1) Import the system base library, which is the meta node database. 2) Register the virtual library account and activate it, and the system administrator approves it.
第三步,虚拟库管理员登陆系统,创建自己的虚拟数据库,注册虚拟表,在虚拟表基础上创建虚拟视图,再创建自己普通用户及用户角色等。虚拟库管理员可以用该功能创建其他应用需要的虚拟数据库n,创建虚拟数据库的时候,可以注册虚拟数据库需要的虚拟表或者创建虚拟视图,同样需要指定这些虚拟表映射的物理库表的存储位置,每创建一个虚拟数据库,就为该虚拟数据库分配至少一个普通用户,普通用户登录到系统后,可以使用及操作(权限以内) 虚拟数据库的资源。同理,可以在该服务平台创建虚拟数据库m,每个虚拟数据库编号全局唯一,确保多个虚拟数据库能够统一的全局唯一编号。In the third step, the virtual library administrator logs in to the system, creates his own virtual database, registers the virtual table, creates a virtual view based on the virtual table, and then creates his own ordinary users and user roles. The virtual library administrator can use this function to create the virtual database n required by other applications. When creating a virtual database, you can register the virtual tables required by the virtual database or create virtual views. You also need to specify the storage location of the physical library tables mapped by these virtual tables. Each time a virtual database is created, at least one ordinary user is assigned to the virtual database. After the ordinary user logs in to the system, it can be used and operated (within the authority) The resources of the virtual database. Similarly, a virtual database m can be created on the service platform, and each virtual database number is globally unique, ensuring that multiple virtual databases can have a uniform global unique number.
第四步,针对任何一个虚拟数据库开发的应用程序可以用一个虚拟数据库标号.虚拟表标号(vdbid.vid)通过虚拟表的访问接口透明的访问各种资源,其中,程序开发人员未必是虚拟数据库的用户,而程序在运行时,会根据当前访问的用户身份,访问接口内部逻辑确定该用户是否有对虚拟表/视图访问的权限。In the fourth step, an application developed for any virtual database can use a virtual database label. The virtual table label (vdbid.vid) transparently accesses various resources through the access interface of the virtual table, wherein the program developer is not necessarily a virtual database. The user, while the program is running, will access the internal logic of the interface to determine whether the user has access to the virtual table/view based on the identity of the currently accessed user.
本发明提供的一种数据库虚拟化机制及方法正是由此应运而生,它将目前各主流关系型数据库虚拟化到一个统一平台,屏蔽了底层物理差异,在高度抽象的基础上,把现在多元异构结构演变成一个逻辑性的相对简单且统一的基于对象模型的体系架构。各复杂多样物理表结构,都统一以虚拟库、虚拟表等基本要素形式体现,并将库表及库表字段统一对象化操作。各应用系统多元异构数据库接入到云数据库虚拟化平台,用户便可以根据自身需要自定一套自管理、自消费数据信息服务平台。体现两方面的优点:1)模式上:用户可以自行设计和创造统一虚拟表资源;2)技术上:物理平台向逻辑平台的转化,把网络上大量物理存在的服务器及端口、数据源、资源等烦琐的开发和设计过程隐藏在内部,提升应用开发的层次。 The invention provides a database virtualization mechanism and method, which virtualizes the current mainstream relational databases to a unified platform, shielding the underlying physical differences, and on the basis of a high degree of abstraction, The multi-heterogeneous structure evolves into a logical, relatively simple and unified object-based model architecture. Each complex and diverse physical table structure is unified in the form of basic elements such as virtual libraries and virtual tables, and the library table and library table fields are unified and objectified. The multi-heterogeneous database of each application system is connected to the cloud database virtualization platform, and the user can customize a self-management and self-consumption data information service platform according to his own needs. It embodies the advantages of two aspects: 1) mode: users can design and create unified virtual table resources by themselves; 2) technically: the transformation of physical platform to logical platform, the server and port, data source and resource of a large number of physical existence on the network The cumbersome development and design process is hidden internally and enhances the level of application development.

Claims (5)

  1. 一种关系型数据库表模式对象化和虚拟化机制,其特征在于:所述的机制由虚拟数据库、虚拟表、虚拟视图,以及它们与物理的应用服务器、数据库服务器、数据库、数据表之间的多对多映射实现;A relational database table schema objectification and virtualization mechanism, characterized in that: the mechanism is composed of a virtual database, a virtual table, a virtual view, and a physical application server, a database server, a database, and a data table. Many-to-many mapping implementation;
    所述的虚拟数据库,是网络环境中一种组织和管理的虚拟空间;其里面有相应的虚拟表(逻辑层面的虚拟资源)、可以分配虚拟表使用权限的角色、虚拟库资源使用者、虚拟视图(基于虚拟表创建的虚拟表)的等实体:及其他们生命周期内的行为联系衍生的其他网络知识和活动,虚拟数据库是一个逻辑的具有确定边界的虚拟网络空间,作为:1)由用户、虚拟资源、角色构成的特定网络内聚空间;2)虚拟空间与网络物理要素之间的界面;虚拟数据库的操作有:创建、修改、删除;虚拟数据库之间可以移动或者复制虚拟资源,不同虚拟数据库管理员可以共享虚拟资源;The virtual database is a virtual space organized and managed in a network environment; there is a corresponding virtual table (virtual level virtual resource), a role that can allocate virtual table usage rights, a virtual library resource user, and a virtual database. Other entities such as views (virtual tables created based on virtual tables): and other network knowledge and activities derived from behavioral relationships within their lifecycle, the virtual database is a logical virtual network space with defined boundaries, as: 1) Specific network cohesive space composed of users, virtual resources, and roles; 2) interface between virtual space and network physical elements; operation of virtual database: creation, modification, and deletion; virtual resources can be moved or copied between virtual databases. Different virtual database administrators can share virtual resources;
    所述的虚拟表,是在逻辑层面表示数据库服务器、数据库、表的抽象概念,它所属一个特定的虚拟数据库,本身也具有关系的特性,具有schema和约束;通过pr模式及vr模式实现与具体数据库物理表形成一一对应关系;虚拟表满足关系操作算子,可以通过连接、联合等操作形成新的虚拟表,即虚拟视图,这样形成具有层次结构的虚拟表之间的访问和映射关系;可以用来表示业务需要的复杂的数据模型及联系;虚拟表的操作:创建、删除、修改,以及读数据、写数据、变更数据、删除数据的接口;The virtual table is an abstract concept representing a database server, a database, and a table at a logical level. It belongs to a specific virtual database, and has a relationship characteristic, having a schema and a constraint; implementing and specific through the pr mode and the vr mode. The physical table of the database forms a one-to-one correspondence; the virtual table satisfies the relational operation operator, and a new virtual table, that is, a virtual view, can be formed through operations such as connection and association, thereby forming an access and mapping relationship between the virtual tables having the hierarchical structure; Complex data models and connections that can be used to represent business needs; operations of virtual tables: create, delete, modify, and interface to read, write, change, and delete data;
    所述的虚拟视图,是建立在虚拟表基础上的复合虚拟表,是以虚拟表字段为基础单位重新组合的逻辑视图,本身也具有关系的特性,具有schema和约束;它可以对应多个虚拟表,跟物理表没有直接对应关系,而是根据虚拟表字段间接映射到各数据库物理表字段;也就是通过上层vr模式跟下层vr模式来实现层级映射关系;通过它来实现底层各多元异构库表数据整合及sql关联操作,在不改变底层各数据库物理属性的情况下,实现在数据信息的共享与关联操作; The virtual view is a composite virtual table based on a virtual table, and is a logical view recombined based on a virtual table field. The virtual view also has a relationship characteristic, having a schema and a constraint; it can correspond to multiple virtual The table has no direct correspondence with the physical table, but is indirectly mapped to each database physical table field according to the virtual table field; that is, the upper level vr mode and the lower vr mode are used to implement the hierarchical mapping relationship; The library table data integration and the sql association operation realize the sharing and association operation of the data information without changing the physical attributes of the underlying databases;
    映射:映射关系反映了虚拟数据库、虚拟表/视图,与物理的应用服务器、数据库服务器、数据库、数据表(文件)之间的操作映射;在逻辑层面对虚拟数据库、虚拟表的操作最终映射到对应的一个或多个物理概念实体的操作;这种映射是多对多的,同时还可以是交叉约束;虚拟表可以建立到物理数据库和表(包括文件)的映射关系,这种映射关系是非一一对应的,一个虚拟表schema可以映射到网络上的一个或多个数据库服务器、数据库、表(文件);Mapping: The mapping relationship reflects the operation mapping between the virtual database, the virtual table/view, and the physical application server, the database server, the database, and the data table (file); the operation of facing the virtual database and the virtual table at the logical layer is finally mapped to The operation of the corresponding one or more physical concept entities; this mapping is many-to-many, and can also be cross-constraint; the virtual table can establish a mapping relationship between the physical database and the table (including files), and the mapping relationship is non- One-to-one correspondence, a virtual table schema can be mapped to one or more database servers, databases, tables (files) on the network;
    每个库表对应一个p-v对象实例体系,及库表字段对应一个pojo实例;从而屏蔽当前软件应用系统数据库复杂的物理细节及差异。Each library table corresponds to a p-v object instance system, and the library table field corresponds to a pojo instance; thereby shielding the complex physical details and differences of the current software application system database.
  2. 根据权利要求1所述的数据库表模式对象化和虚拟化机制,其特征在于:所有异构关系型库表都借助统一的虚拟表逻辑概念来管控,也就是把每个库表简单看成一个p-v对象实例体系,并且持久化成虚拟表资源,基础虚拟表跟实际关系型数据库表建立一一映射关系,通过虚拟视图模式的自定义及虚拟表数据的操作(增删查改,join,union等)可以最终映射到底层库表的对应操作;在屏蔽底层异构数据库差异的情况下,用户可以通过在基础虚拟表建视图进行跨库间的一些操作。The database table schema objectification and virtualization mechanism according to claim 1, wherein all heterogeneous relational library tables are controlled by a unified virtual table logical concept, that is, each library table is simply regarded as one. Pv object instance system, and persisted into a virtual table resource, the basic virtual table and the actual relational database table to establish a one-to-one mapping relationship, through the virtual view mode customization and virtual table data operations (additions and deletions, join, union, etc.) You can finally map to the corresponding operation of the underlying library table; in the case of shielding the underlying heterogeneous database differences, users can perform some operations across the library by building a view in the underlying virtual table.
  3. 根据权利1所述的数据库表模式对象化和虚拟化机制,其特征在于:vr模式及pr模式主要特征分别为:它们都包括对象化及持久化两层概念;对象化层面:vr模式对应库表的MetaVr对象模型,主要由虚拟库ID,虚拟表ID,字段属性(库表字段pojo组的json字符串),创建时间,所有者ID等属性组成;pr模式对应库表的MetaPr对象模型,也主要由虚拟库ID,虚拟表ID,字段属性(库表字段pojo组的json字符串),创建时间,所有者ID等属性组成;只有虚拟表层才同时具有vr模式跟pr模式,它们通过具体字段映射来建立映射关系;而虚拟视图层只有vr模式层,通过上层vr模式层与下层vr模式层映射关系进行层层关联映射,并最终映射到虚拟表层;持久化层面:vr模式对应云数据库 基础库表metavr表的一条特定数据记录;pr模式对应云数据库基础库表metapr表的一条特定数据记录;vr模式跟pr模式,上层vr模式跟下层vr模式之间的关系都是通过代表虚拟表地址、字段映射值字段值或字段值属性值来进行关联和建立映射关系的。The database table schema objectification and virtualization mechanism according to claim 1, wherein the main features of the vr mode and the pr mode are: they both include a two-layer concept of objectification and persistence; and an objectification level: a vr mode corresponding library The MetaVr object model of the table is mainly composed of a virtual library ID, a virtual table ID, a field attribute (a json string of a library table field pojo group), a creation time, an owner ID, and the like; a pr mode corresponds to a MetaPr object model of the library table, It is also mainly composed of virtual library ID, virtual table ID, field attribute (json string of library table field pojo group), creation time, owner ID and other attributes; only virtual surface layer has vr mode and pr mode at the same time, they pass specific The field mapping is used to establish the mapping relationship; the virtual view layer only has the vr mode layer, and the layer-level association mapping is performed through the mapping relationship between the upper vr mode layer and the lower vr mode layer, and finally mapped to the virtual surface layer; the persistence layer: the vr mode corresponds to the cloud database A specific data record of the metavr table of the base library table; the pr mode corresponds to a specific data record of the metapr table of the cloud database base library table; the vr mode and the pr mode, the relationship between the upper vr mode and the lower vr mode are represented by the virtual table Address, field mapping value field value or field value attribute value for association and mapping.
  4. 根据权利2所述的数据库表模式对象化和虚拟化机制,其特征在于:vr模式及pr模式主要特征分别为:它们都包括对象化及持久化两层概念;对象化层面:vr模式对应库表的MetaVr对象模型,主要由虚拟库ID,虚拟表ID,字段属性(库表字段pojo组的json字符串),创建时间,所有者ID等属性组成;pr模式对应库表的MetaPr对象模型,也主要由虚拟库ID,虚拟表ID,字段属性(库表字段pojo组的json字符串),创建时间,所有者ID等属性组成;只有虚拟表层才同时具有vr模式跟pr模式,它们通过具体字段映射来建立映射关系;而虚拟视图层只有vr模式层,通过上层vr模式层与下层vr模式层映射关系进行层层关联映射,并最终映射到虚拟表层;持久化层面:vr模式对应云数据库基础库表metavr表的一条特定数据记录;pr模式对应云数据库基础库表metapr表的一条特定数据记录;vr模式跟pr模式,上层vr模式跟下层vr模式之间的关系都是通过代表虚拟表地址、字段映射值字段值或字段值属性值来进行关联和建立映射关系的。The database table schema objectification and virtualization mechanism according to claim 2, wherein the main features of the vr mode and the pr mode are: they both include a two-layer concept of objectification and persistence; and an objectification level: a vr mode corresponding library The MetaVr object model of the table is mainly composed of a virtual library ID, a virtual table ID, a field attribute (a json string of a library table field pojo group), a creation time, an owner ID, and the like; a pr mode corresponds to a MetaPr object model of the library table, It is also mainly composed of virtual library ID, virtual table ID, field attribute (json string of library table field pojo group), creation time, owner ID and other attributes; only virtual surface layer has vr mode and pr mode at the same time, they pass specific The field mapping is used to establish the mapping relationship; the virtual view layer only has the vr mode layer, and the layer-level association mapping is performed through the mapping relationship between the upper vr mode layer and the lower vr mode layer, and finally mapped to the virtual surface layer; the persistence layer: the vr mode corresponds to the cloud database a specific data record of the metafr table of the base library table; the pr mode corresponds to a specific data record of the metapr table of the cloud database base library table; vr mode pr mode, the upper vr mode to associate and establish mapping relationship with the relationship between the underlying models are vr virtual address table, field mapping value field value or attribute value through a representative.
  5. 根据权利1至4任一项所述的数据库表模式对象化和虚拟化机制,其特征在于:所述的机制中,虚拟化主要步骤如下:The database table schema objectification and virtualization mechanism according to any one of claims 1 to 4, wherein in the mechanism, the main steps of virtualization are as follows:
    第一步,在每个节点上安装虚拟化多元异构数据整合服务平台,然后在当前节点的配置文件中配置其他应用服务器节点;The first step is to install a virtualized heterogeneous data integration service platform on each node, and then configure other application server nodes in the configuration file of the current node;
    第二步,部署系统运行需要的初始环境:1)导入系统基础库,即元节点数据库。2)注册虚拟库账号并激活,系统管理员审批通过; The second step is to deploy the initial environment required for system operation: 1) Import the system base library, which is the meta node database. 2) Register the virtual library account and activate it, and the system administrator approves it;
    第三步,虚拟库管理员登陆系统,创建自己的虚拟数据库,注册虚拟表,在虚拟表基础上创建虚拟视图,再创建自己普通用户及用户角色等。虚拟库管理员可以用该功能创建其他应用需要的虚拟数据库n,创建虚拟数据库的时候,可以注册虚拟数据库需要的虚拟表或者创建虚拟视图,同样需要指定这些虚拟表映射的物理库表的存储位置,每创建一个虚拟数据库,就为该虚拟数据库分配至少一个普通用户,普通用户登录到系统后,可以使用及操作(权限以内)虚拟数据库的资源。同理,可以在该服务平台创建虚拟数据库m,每个虚拟数据库编号全局唯一,确保多个虚拟数据库能够统一的全局唯一编号;In the third step, the virtual library administrator logs in to the system, creates his own virtual database, registers the virtual table, creates a virtual view based on the virtual table, and then creates his own ordinary users and user roles. The virtual library administrator can use this function to create the virtual database n required by other applications. When creating a virtual database, you can register the virtual tables required by the virtual database or create virtual views. You also need to specify the storage location of the physical library tables mapped by these virtual tables. Each time a virtual database is created, at least one ordinary user is allocated to the virtual database. After the ordinary user logs in to the system, the resources of the virtual database can be used and operated (within the authority). Similarly, a virtual database m can be created on the service platform, and each virtual database number is globally unique, ensuring that multiple virtual databases can have a uniform global unique number;
    第四步,针对任何一个虚拟数据库开发的应用程序可以用一个虚拟数据库标号.虚拟表标号(vdbid.vid)通过虚拟表的访问接口透明的访问各种资源,其中,程序开发人员未必是虚拟数据库的用户,而程序在运行时,会根据当前访问的用户身份,访问接口内部逻辑确定该用户是否有对虚拟表/视图访问的权限。 In the fourth step, an application developed for any virtual database can use a virtual database label. The virtual table label (vdbid.vid) transparently accesses various resources through the access interface of the virtual table, wherein the program developer is not necessarily a virtual database. The user, while the program is running, will access the internal logic of the interface to determine whether the user has access to the virtual table/view based on the identity of the currently accessed user.
PCT/CN2014/095494 2014-12-25 2014-12-30 Objectification and virtualization mechanism for mode of relational database table WO2016101301A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410831459.6A CN104462559B (en) 2014-12-25 2014-12-25 A kind of mainstream relational database table schema object and virtual method
CN201410831459.6 2014-12-25

Publications (1)

Publication Number Publication Date
WO2016101301A1 true WO2016101301A1 (en) 2016-06-30

Family

ID=52908594

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/095494 WO2016101301A1 (en) 2014-12-25 2014-12-30 Objectification and virtualization mechanism for mode of relational database table

Country Status (2)

Country Link
CN (1) CN104462559B (en)
WO (1) WO2016101301A1 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10901864B2 (en) 2018-07-03 2021-01-26 Pivotal Software, Inc. Light-weight mirror container
CN112328665A (en) * 2019-08-05 2021-02-05 北京国双科技有限公司 Data import method and device, storage medium and processor
CN112860657A (en) * 2021-01-14 2021-05-28 中车青岛四方车辆研究所有限公司 Method and system for constructing address space of real-time database of TIAS (geographic information System)
CN113254953A (en) * 2021-04-28 2021-08-13 深圳市鹰硕技术有限公司 Authority distribution management method, device, online education system and storage medium
CN113434103A (en) * 2021-06-24 2021-09-24 华东师范大学 Multi-screen interaction method and system based on screen virtualization and application thereof
CN113849503A (en) * 2021-09-10 2021-12-28 杭州未名信科科技有限公司 Open big data processing system, method and medium
CN114710404A (en) * 2022-04-22 2022-07-05 中国工商银行股份有限公司 Virtual server configuration information management method and device based on configuration management system
CN116167089A (en) * 2023-04-20 2023-05-26 恒辉信达技术有限公司 High security database

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105045848B (en) * 2015-06-30 2019-01-29 四川长虹电器股份有限公司 A kind of data base management system for supporting Boolean expression to inquire
CN106919607B (en) * 2015-12-25 2020-09-08 华为技术有限公司 Data access method, device and system
CN105893488A (en) * 2016-03-29 2016-08-24 国云科技股份有限公司 Method for quickly, conveniently and flexibly making data statistics report forms
CN110036382B (en) * 2016-09-30 2024-04-02 硕动力公司 Multi-tenant non-relational platform object
CN106775938A (en) * 2016-12-04 2017-05-31 国云科技股份有限公司 A kind of virtualization data delivery system and its implementation
CN106650414B (en) * 2016-12-28 2020-05-19 广州杰赛科技股份有限公司 User authority management method and system
CN108984620B (en) * 2018-06-14 2021-02-05 中国科学院重庆绿色智能技术研究院 Design method of dynamic extensible relational database
CN109213820B (en) * 2018-08-30 2021-10-22 成都索贝数码科技股份有限公司 Method for realizing fusion use of multiple types of databases
CN110472100A (en) * 2019-08-13 2019-11-19 汇智点亮科技(北京)有限公司 Data managing method, system, electric terminal and storage medium
CN112965723B (en) * 2021-04-01 2021-12-28 北京数易云服科技有限公司 Object database implementation method and virtual object database
CN113672479A (en) * 2021-04-27 2021-11-19 全球能源互联网研究院有限公司 Data sharing method and device and computer equipment
CN114706857A (en) * 2022-04-22 2022-07-05 北京友友天宇系统技术有限公司 Unified authentication/authorization method, equipment and storage medium for cross-multi-source heterogeneous storage system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103593422A (en) * 2013-11-01 2014-02-19 国云科技股份有限公司 Virtual access management method of heterogeneous database
CN103617175A (en) * 2013-11-04 2014-03-05 广东电子工业研究院有限公司 Method for virtualization of large-scale distributed heterogeneous data
CN103870605A (en) * 2014-04-08 2014-06-18 南京优玛软件科技有限公司 Data base virtual image achieving method orientated to object

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012158890A1 (en) * 2011-05-17 2012-11-22 Datavode Inc. Providing access to mainframe data objects in a heterogeneous computing environment
CN103631870B (en) * 2013-11-06 2017-02-01 广东电子工业研究院有限公司 System and method used for large-scale distributed data processing
CN103605698A (en) * 2013-11-06 2014-02-26 广东电子工业研究院有限公司 Cloud database system used for distributed heterogeneous data resource integration
CN103685535A (en) * 2013-12-20 2014-03-26 广东电子工业研究院有限公司 Interface design of cloud database system for large-scale distributed heterogeneous data treatment
CN104008135A (en) * 2014-05-07 2014-08-27 南京邮电大学 Multi-source heterogeneous database fusion system and data query method thereof
CN104156419B (en) * 2014-08-03 2019-07-26 广东电子工业研究院有限公司 A kind of the hypostazation method and its engine of heterogeneous data source

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103593422A (en) * 2013-11-01 2014-02-19 国云科技股份有限公司 Virtual access management method of heterogeneous database
CN103617175A (en) * 2013-11-04 2014-03-05 广东电子工业研究院有限公司 Method for virtualization of large-scale distributed heterogeneous data
CN103870605A (en) * 2014-04-08 2014-06-18 南京优玛软件科技有限公司 Data base virtual image achieving method orientated to object

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10901864B2 (en) 2018-07-03 2021-01-26 Pivotal Software, Inc. Light-weight mirror container
CN112328665A (en) * 2019-08-05 2021-02-05 北京国双科技有限公司 Data import method and device, storage medium and processor
CN112860657A (en) * 2021-01-14 2021-05-28 中车青岛四方车辆研究所有限公司 Method and system for constructing address space of real-time database of TIAS (geographic information System)
CN113254953A (en) * 2021-04-28 2021-08-13 深圳市鹰硕技术有限公司 Authority distribution management method, device, online education system and storage medium
CN113434103A (en) * 2021-06-24 2021-09-24 华东师范大学 Multi-screen interaction method and system based on screen virtualization and application thereof
CN113434103B (en) * 2021-06-24 2022-04-05 华东师范大学 Multi-screen interaction method and system based on screen virtualization and application thereof
CN113849503A (en) * 2021-09-10 2021-12-28 杭州未名信科科技有限公司 Open big data processing system, method and medium
CN113849503B (en) * 2021-09-10 2023-10-20 杭州未名信科科技有限公司 Open big data processing system, method and medium
CN114710404A (en) * 2022-04-22 2022-07-05 中国工商银行股份有限公司 Virtual server configuration information management method and device based on configuration management system
CN114710404B (en) * 2022-04-22 2024-04-12 中国工商银行股份有限公司 Virtual server configuration information management method and device based on configuration management system
CN116167089A (en) * 2023-04-20 2023-05-26 恒辉信达技术有限公司 High security database

Also Published As

Publication number Publication date
CN104462559A (en) 2015-03-25
CN104462559B (en) 2018-08-07

Similar Documents

Publication Publication Date Title
WO2016101301A1 (en) Objectification and virtualization mechanism for mode of relational database table
US10673932B2 (en) System and method for abstraction of objects for cross virtual universe deployment
US7895156B2 (en) Method, system, and computer program product for implementing a model exchange framework generating a synchronization record in response to a model exchange request using fusion technology
US9715536B2 (en) Virtualization method for large-scale distributed heterogeneous data
WO2019226327A1 (en) Data platform fabric
CN111523003A (en) Data application method and platform with time sequence dynamic map as core
US9201700B2 (en) Provisioning computer resources on a network
CN101360123B (en) Network system and management method thereof
CN104331477A (en) Method for testing concurrency property of cloud platform based on federated research
CN101201842A (en) Digital museum gridding and construction method thereof
CN108268614B (en) Distributed management method for forest resource spatial data
CN102193958A (en) Method for implementing spatial decision support system based on Internet
CN105141702A (en) Model-based mixed cloud construction method
CN113168406A (en) Isolated hierarchical runtime environment for multi-tenant databases
US11960488B2 (en) Join queries in data virtualization-based architecture
US10951431B1 (en) Device registry service
Khan et al. An intelligent data service framework for heterogeneous data sources
Song et al. An e-Learning system based on GWT and Berkeley DB
Yong-Peng et al. Design and implementation of geological environment survey big data platform for Danjiangkou reservoir water source area based on WebGIS
WO2023151239A1 (en) Micro-service creation method and related device
US11803568B1 (en) Replicating changes from a database to a destination and modifying replication capacity
Sun et al. The Database Architecture Design of the Satellite Simulation Platform
Penberthy et al. Other RDS Databases
Zhen-Zhong Research of Information Retrieval in the Cloud Computing Environment
Singh An Approach to Secure Data Management in Cloud Computing

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14908868

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14908868

Country of ref document: EP

Kind code of ref document: A1