CN114281803A - Data migration method, device, equipment, medium and program product - Google Patents
Data migration method, device, equipment, medium and program product Download PDFInfo
- Publication number
- CN114281803A CN114281803A CN202111628423.4A CN202111628423A CN114281803A CN 114281803 A CN114281803 A CN 114281803A CN 202111628423 A CN202111628423 A CN 202111628423A CN 114281803 A CN114281803 A CN 114281803A
- Authority
- CN
- China
- Prior art keywords
- data
- source
- file
- database
- data migration
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
本公开提供了一种数据迁移方法,可以应用于互联网技术领域或金融领域。该数据迁移方法包括:获取配置信息,所述配置信息包括数据连接配置信息,数据迁移配置信息,以及用户映射;基于所述数据连接配置信息连接源数据库和目标数据库;基于所述数据迁移配置信息和用户映射进行数据迁移,其中,所述数据包含参数类数据和业务类数据;基于数据迁移结果执行数据迁移校验;其中,所述用户映射用于实现源数据库和目标数据库的用户参数匹配,匹配结果用于实现业务类数据的迁移。本公开还提供了一种数据迁移装置、设备、介质和程序产品。
The present disclosure provides a data migration method, which can be applied to the field of Internet technology or the field of finance. The data migration method includes: acquiring configuration information, where the configuration information includes data connection configuration information, data migration configuration information, and user mapping; connecting a source database and a target database based on the data connection configuration information; and based on the data migration configuration information Perform data migration with user mapping, wherein the data includes parameter type data and business type data; perform data migration verification based on the data migration result; wherein, the user mapping is used to realize the matching of user parameters between the source database and the target database, The matching result is used to realize the migration of business data. The present disclosure also provides a data migration apparatus, device, medium and program product.
Description
技术领域technical field
本公开涉及互联网技术领域或金融领域,具体涉及一种数据迁移方法、装置、设备、介质和程序产品。The present disclosure relates to the field of Internet technology or the field of finance, and in particular, to a data migration method, apparatus, device, medium and program product.
背景技术Background technique
数据迁移是系统重构中的重要节点,现有的数据迁移方法,常常存在迁移的数据权限不准确,迁移后数据不能平滑地在新系统中呈现的问题。在出现上述问题时,常常需要通过修改新系统功能及实现方式来迁就迁移数据的不足。需开发一种新的数据迁移方法,以提高数据迁移的准确性和完整性,改善数据迁移后在新系统呈现的平滑度。Data migration is an important node in system reconstruction. The existing data migration methods often have inaccurate data permissions to migrate, and the data cannot be smoothly presented in the new system after migration. When the above problems occur, it is often necessary to modify the functions and implementation methods of the new system to accommodate the deficiencies of the migrated data. A new data migration method needs to be developed to improve the accuracy and completeness of data migration and improve the smoothness of data migration in the new system.
发明内容SUMMARY OF THE INVENTION
鉴于上述问题,本公开的实施例提供了一种数据迁移方法、装置、设备、介质和程序产品。In view of the above problems, embodiments of the present disclosure provide a data migration method, apparatus, device, medium and program product.
根据本公开的第一个方面,提供了一种数据迁移方法,包括:获取配置信息,所述配置信息包括数据连接配置信息,数据迁移配置信息,以及用户映射;基于所述数据连接配置信息连接源数据库和目标数据库;基于所述数据迁移配置信息和用户映射进行数据迁移,其中,所述数据包含参数类数据和业务类数据;基于数据迁移结果执行数据迁移校验;其中,所述用户映射用于实现源数据库和目标数据库的用户参数匹配,匹配结果用于实现业务类数据的迁移。According to a first aspect of the present disclosure, there is provided a data migration method, including: acquiring configuration information, the configuration information including data connection configuration information, data migration configuration information, and user mapping; connecting based on the data connection configuration information source database and target database; perform data migration based on the data migration configuration information and user mapping, wherein the data includes parameter data and business data; perform data migration verification based on the data migration result; wherein the user mapping It is used to realize the user parameter matching between the source database and the target database, and the matching result is used to realize the migration of business data.
根据本公开的实施例,所述用户映射包含用户组合信息,所述用户组合信息包含用户机构和用户部门中的至少一种,以及用户名和用户注册名中的至少一种。According to an embodiment of the present disclosure, the user mapping includes user combination information including at least one of a user organization and a user department, and at least one of a user name and a user registration name.
根据本公开的实施例,所述源数据库和目标数据库为异构数据库。According to an embodiment of the present disclosure, the source database and the target database are heterogeneous databases.
根据本公开的实施例,所述源数据库为非关系型数据库,所述目标数据库为关系型数据库。According to an embodiment of the present disclosure, the source database is a non-relational database, and the target database is a relational database.
根据本公开的实施例,当源数据库中的文件数据含有附件时,所述方法还包括:获取来自于源数据库的文件数据;将所述文件数据拆分为源文件和源附件;将所述源附件存储至文件服务器;获取来自于文件服务器的文件路径及标识信息;基于所述文件路径及标识信息建立目标数据库中目标文件与文件服务器中源附件间的映射关系,其中,目标文件为源文件迁移至目标数据库后所生成。According to an embodiment of the present disclosure, when the file data in the source database contains attachments, the method further includes: acquiring the file data from the source database; splitting the file data into a source file and a source attachment; The source attachment is stored in the file server; the file path and identification information from the file server are obtained; the mapping relationship between the target file in the target database and the source attachment in the file server is established based on the file path and identification information, wherein the target file is the source Generated after the file is migrated to the target database.
根据本公开的实施例,所述源数据库分布式存储于m个源服务器,其中,m为大于等于2的整数,所述目标数据库集中存储于目标服务器,所述方法还包括:获取来自于源数据库的文件数据;将文件数据拆分为源文件和源附件;将所述源附件存储至当前源服务器临时目录;获取来自目标服务器的目标附件信息,其中,所述目标附件信息基于所述源附件和源文件标识信息生成,所述源文件标识信息获取自所述源服务器临时目录;基于所述目标附件信息建立目标文件和目标附件的映射关系,其中,所述目标文件为源文件迁移至目标数据库后所生成。According to an embodiment of the present disclosure, the source database is distributed and stored in m source servers, where m is an integer greater than or equal to 2, the target database is centrally stored in the target server, and the method further includes: obtaining data from the source server file data of the database; split the file data into source files and source attachments; store the source attachments in the current source server temporary directory; obtain target attachment information from the target server, wherein the target attachment information is based on the source Attachment and source file identification information are generated, and the source file identification information is obtained from the temporary directory of the source server; based on the target attachment information, a mapping relationship between the target file and the target attachment is established, wherein the target file is the source file migrated to. generated after the target database.
根据本公开的实施例,源文件标识信息包含源服务器标识,机构标识,源文件标识中的至少一种。According to an embodiment of the present disclosure, the source file identification information includes at least one of a source server identification, an organization identification, and a source file identification.
根据本公开的实施例,源文件标识还包括时间散列名。According to an embodiment of the present disclosure, the source file identification further includes a time hash name.
本公开的第二方面提供了一种数据迁移装置,包括:第一获取模块,配置为获取配置信息,所述配置信息包括数据连接配置信息,数据迁移配置信息,以及用户映射;连接模块,配置为基于所述数据连接配置信息连接源数据库和目标数据库;迁移模块,配置为基于所述数据迁移配置信息和用户映射进行数据迁移,其中,所述数据包含参数类数据和业务类数据;校验模块,配置为基于数据迁移结果执行数据迁移校验;其中,所述用户映射用于实现源数据库和目标数据库的用户参数匹配,匹配结果用于实现业务类数据的迁移。A second aspect of the present disclosure provides a data migration device, comprising: a first acquisition module configured to acquire configuration information, the configuration information including data connection configuration information, data migration configuration information, and user mapping; a connection module configured to configure To connect the source database and the target database based on the data connection configuration information; the migration module is configured to perform data migration based on the data migration configuration information and user mapping, wherein the data includes parameter data and business data; The module is configured to perform data migration verification based on the data migration result; wherein, the user mapping is used to realize the matching of user parameters between the source database and the target database, and the matching result is used to realize the migration of business data.
本公开的第三方面提供了一种电子设备,包括:一个或多个处理器;存储器,用于存储一个或多个程序,其中,当所述一个或多个程序被所述一个或多个处理器执行时,使得一个或多个处理器执行上述方法。A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more programs When executed by the processor, one or more processors are caused to execute the above method.
本公开的第四方面还提供了一种计算机可读存储介质,其上存储有可执行指令,该指令被处理器执行时使处理器执行上述方法。A fourth aspect of the present disclosure also provides a computer-readable storage medium having executable instructions stored thereon, the instructions, when executed by a processor, cause the processor to perform the above method.
本公开的第五方面还提供了一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现上述方法。A fifth aspect of the present disclosure also provides a computer program product, including a computer program, which implements the above method when executed by a processor.
本公开的实施例提供的数据迁移方法,通过配置用户映射,实现源数据库和目标数据库用户参数的准确匹配,进一步实现业务数据的准确迁移。迁移后数据权限准确,能够平滑地在新系统中呈现。The data migration method provided by the embodiments of the present disclosure realizes accurate matching of user parameters of the source database and the target database by configuring user mapping, and further realizes the accurate migration of business data. After migration, data permissions are accurate and can be smoothly presented in the new system.
附图说明Description of drawings
通过以下参照附图对本公开实施例的描述,本公开的上述内容以及其他目的、特征和优点将更为清楚,在附图中:The foregoing and other objects, features and advantages of the present disclosure will become more apparent from the following description of embodiments of the present disclosure with reference to the accompanying drawings, in which:
图1示意性示出了根据本公开实施例的数据迁移方法、装置、设备、介质和程序产品的应用场景图。FIG. 1 schematically shows an application scenario diagram of a data migration method, apparatus, device, medium, and program product according to an embodiment of the present disclosure.
图2示意性示出了根据本公开实施例的数据迁移方法的流程图。FIG. 2 schematically shows a flowchart of a data migration method according to an embodiment of the present disclosure.
图3示意性示出了根据本公开实施例的附件迁移的方法的流程图。FIG. 3 schematically shows a flowchart of a method for attachment migration according to an embodiment of the present disclosure.
图4示意性示出了根据本公开另一些实施例的附件迁移方法的流程图。FIG. 4 schematically shows a flowchart of an attachment migration method according to other embodiments of the present disclosure.
图5示意性示出了根据本公开实施例的数据迁移装置的结构框图。FIG. 5 schematically shows a structural block diagram of a data migration apparatus according to an embodiment of the present disclosure.
图6示意性示出了根据本公开实施例的适于实现数据迁移方法的电子设备的方框图。FIG. 6 schematically shows a block diagram of an electronic device suitable for implementing a data migration method according to an embodiment of the present disclosure.
具体实施方式Detailed ways
以下,将参照附图来描述本公开的实施例。但是应该理解,这些描述只是示例性的,而并非要限制本公开的范围。在下面的详细描述中,为便于解释,阐述了许多具体的细节以提供对本公开实施例的全面理解。然而,明显地,一个或多个实施例在没有这些具体细节的情况下也可以被实施。此外,在以下说明中,省略了对公知结构和技术的描述,以避免不必要地混淆本公开的概念。Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood, however, that these descriptions are exemplary only, and are not intended to limit the scope of the present disclosure. In the following detailed description, for convenience of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the present disclosure. It will be apparent, however, that one or more embodiments may be practiced without these specific details. Also, in the following description, descriptions of well-known structures and techniques are omitted to avoid unnecessarily obscuring the concepts of the present disclosure.
在此使用的术语仅仅是为了描述具体实施例,而并非意在限制本公开。在此使用的术语“包括”、“包含”等表明了所述特征、步骤、操作和/或部件的存在,但是并不排除存在或添加一个或多个其他特征、步骤、操作或部件。The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the present disclosure. The terms "comprising", "comprising" and the like as used herein indicate the presence of stated features, steps, operations and/or components, but do not preclude the presence or addition of one or more other features, steps, operations or components.
在此使用的所有术语(包括技术和科学术语)具有本领域技术人员通常所理解的含义,除非另外定义。应注意,这里使用的术语应解释为具有与本说明书的上下文相一致的含义,而不应以理想化或过于刻板的方式来解释。All terms (including technical and scientific terms) used herein have the meaning as commonly understood by one of ordinary skill in the art, unless otherwise defined. It should be noted that terms used herein should be construed to have meanings consistent with the context of the present specification and should not be construed in an idealized or overly rigid manner.
在使用类似于“A、B和C等中至少一个”这样的表述的情况下,一般来说应该按照本领域技术人员通常理解该表述的含义来予以解释(例如,“具有A、B和C中至少一个的系统”应包括但不限于单独具有A、单独具有B、单独具有C、具有A和B、具有A和C、具有B和C、和/或具有A、B、C的系统等)。Where expressions like "at least one of A, B, and C, etc.," are used, they should generally be interpreted in accordance with the meaning of the expression as commonly understood by those skilled in the art (eg, "has A, B, and C") At least one of the "systems" shall include, but not be limited to, systems with A alone, B alone, C alone, A and B, A and C, B and C, and/or A, B, C, etc. ).
需要说明的是,本公开实施例提供的数据迁移方法、装置、系统和电子设备可用于互联网技术在数据迁移相关方面,也可用于除互联网技术之外的多种领域,如金融领域等。本公开实施例提供的数据迁移方法、装置、系统和电子设备的应用领域不做限定。It should be noted that the data migration method, apparatus, system, and electronic device provided by the embodiments of the present disclosure can be used in Internet technology related aspects of data migration, and can also be used in various fields other than Internet technology, such as the financial field. The application fields of the data migration method, apparatus, system, and electronic device provided by the embodiments of the present disclosure are not limited.
本公开的实施例提供了一种数据迁移方法,包括:获取配置信息,所述配置信息包括数据连接配置信息,数据迁移配置信息,以及用户映射。基于所述数据连接配置信息连接源数据库和目标数据库。基于所述数据迁移配置信息和用户映射进行数据迁移,其中,所述数据包含参数类数据和业务类数据。基于数据迁移结果执行数据迁移校验。其中,所述用户映射用于实现源数据库和目标数据库的用户参数匹配,匹配结果用于实现业务类数据的迁移。An embodiment of the present disclosure provides a data migration method, including: acquiring configuration information, where the configuration information includes data connection configuration information, data migration configuration information, and user mapping. The source database and the target database are connected based on the data connection configuration information. Data migration is performed based on the data migration configuration information and user mapping, wherein the data includes parameter data and service data. Perform data migration verification based on the data migration result. The user mapping is used to match user parameters between the source database and the target database, and the matching result is used to migrate business data.
图1示意性示出了根据本公开实施例的数据迁移方法、装置、设备、介质和程序产品的应用场景图。FIG. 1 schematically shows an application scenario diagram of a data migration method, apparatus, device, medium, and program product according to an embodiment of the present disclosure.
如图1所示,根据该实施例的应用场景100可以包括数据迁移平台,源数据库102,目标数据库103,网络104,文件服务器105和用户终端106。网络104用以在数据迁移平台101,源数据库102,目标数据库103,文件服务器105和用户终端106之间提供通信链路的介质。网络104可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。As shown in FIG. 1 , an
用户可以使用用户终端106通过网络104与数据迁移平台101交互,设置配置信息以对数据迁移进行配置。用户终端106上还可以安装有各种通讯客户端应用,例如购物类应用、网页浏览器应用、搜索类应用、即时通信工具、邮箱客户端、社交平台软件等(仅为示例)。The user can use the
用户终端106可以是具有显示屏并且支持网页浏览的各种电子设备,包括但不限于智能手机、平板电脑、膝上型便携计算机和台式计算机等等。The
数据迁移平台101可以获取来自于用户终端106的配置信息,并根据配置信息连接源数据库102和目标数据库103,从而建立源数据库102和目标数据库103的数据迁移通道。数据迁移平台可以为后台管理服务器(仅为示例)。源数据库102可以存储于单一服务器或服务器集群,其可以包含一个或多个数据库,目标数据库103也可以存储于单一服务器或服务器集群,其可以包含一个或多个数据库。源数据库102可以包含待迁移的数据,目标数据库103可以包含迁移后的数据,其中,待迁移的数据可以与迁移后的数据存在相同或不同的结构。文件服务器105可以用于存储附件文件。The
需要说明的是,本公开实施例所提供的数据迁移方法一般可以由数据迁移平台101执行。相应地,本公开实施例所提供的数据迁移装置一般可以设置于数据迁移平台101中。本公开实施例所提供的数据迁移方法也可以由不同于数据迁移平台101且能够与源数据库102,目标数据库103,文件服务器105和/或用户终端106通信的服务器或服务器集群执行。相应地,本公开实施例所提供的数据迁移装置也可以设置于不同于数据迁移平台101且能够与源数据库102,目标数据库103,文件服务器105和/或用户终端106通信的服务器或服务器集群中。It should be noted that, the data migration method provided by the embodiments of the present disclosure may generally be executed by the
应该理解,图1中的用户终端、数据迁移平台、网络、源数据库、目标数据库和文件服务器的数目仅仅是示意性的。根据实现需要,可以具有任意数目的用户终端、数据迁移平台、网络、源数据库、目标数据库和文件服务器。It should be understood that the numbers of user terminals, data migration platforms, networks, source databases, target databases and file servers in FIG. 1 are merely illustrative. According to implementation needs, there can be any number of user terminals, data migration platforms, networks, source databases, target databases and file servers.
以下将基于图1描述的场景,通过图2~图4对公开实施例的数据迁移方法进行详细描述。Based on the scenario described in FIG. 1 , the data migration method of the disclosed embodiment will be described in detail below with reference to FIGS. 2 to 4 .
图2示意性示出了根据本公开实施例的数据迁移方法的流程图。FIG. 2 schematically shows a flowchart of a data migration method according to an embodiment of the present disclosure.
如图2所示,该实施例的数据迁移方法包括操作S210~操作S240。As shown in FIG. 2 , the data migration method of this embodiment includes operations S210 to S240.
在操作S210,获取配置信息。In operation S210, configuration information is acquired.
根据本公开的实施例,数据迁移方法可以基于数据迁移平台实现。为实现数据迁移,数据迁移平台可以基于用户终端获取预设的配置信息。其中,典型的配置信息可以包括数据连接配置信息,数据迁移配置信息,以及用户映射。According to an embodiment of the present disclosure, the data migration method can be implemented based on a data migration platform. To implement data migration, the data migration platform may acquire preset configuration information based on the user terminal. The typical configuration information may include data connection configuration information, data migration configuration information, and user mapping.
在本公开的实施例中,数据连接配置信息可以包含JDBC配置信息。JDBC是一种java数据库连接技术,其是一种用于执行SQL语句的Java API,可以访问多种数据库。典型的JDBC配置信息可以包含连接字符串、用户名和密码。可以通过配置好的JDBC信息访问目标数据库。在本公开的实施例中,数据可以包含参数类数据和业务类数据。相应的,数据迁移配置信息可以包括但不限于:配置类型,文件类型名称,文件名,过滤条件,附件文件配置,文件服务配置,字段映射配置,字段类型,特殊方法名称等。其中,配置类型可以为配置选择迁移业务类数据或参数类数据。文件类型名称可以包括配置迁移的数据类型名称,例如签报,发文,事务审批等。文件名可以包括配置待迁移的数据库名称,例如文档型数据库名称。过滤条件可以包括配置待迁移数据库中数据抽取过滤条件,例如数据抽取的时间范围,数据的存在形式(例如电子类、实物类、半电子类等)。附件文件配置可以包括配置是否涉及附件文件。文件服务配置可以包括配置文件服务器相关信息,例如文件服务器的IP地址或端口,附件文件传输的目标路径等。字段映射配置可以包括配置目标数据库字段名称、对应的源数据库中字段及其大小限制。字段类型包括可以映射的字段类型,例如文本、整形、数值(浮点型)、富文本、日期、时间等。特殊方法名称包括可以通过后台完成字段值获取的特殊方法,例如对通过常规映射无法转换的特殊格式进行抽取的处理方法。可以理解,数据迁移配置信息可以通过选中或填写的方式进行配置。In an embodiment of the present disclosure, the data connection configuration information may include JDBC configuration information. JDBC is a Java database connection technology, which is a Java API for executing SQL statements and can access various databases. Typical JDBC configuration information can include a connection string, username and password. The target database can be accessed through the configured JDBC information. In the embodiment of the present disclosure, the data may include parameter type data and service type data. Correspondingly, the data migration configuration information may include but is not limited to: configuration type, file type name, file name, filter condition, attachment file configuration, file service configuration, field mapping configuration, field type, special method name, etc. Among them, the configuration type can choose to migrate business data or parameter data for configuration. The file type name can include the name of the data type to be migrated, such as signing, posting, transaction approval, etc. The file name can include the name of the database to be migrated, such as the name of a document database. The filtering conditions may include configuring filtering conditions for data extraction in the database to be migrated, such as the time range of data extraction, and the existing form of data (eg, electronic, physical, semi-electronic, etc.). Attachment file configuration may include configuring whether attachment files are involved. The file service configuration may include configuration file server related information, such as the IP address or port of the file server, and the destination path of the attachment file transfer, etc. Field mapping configuration can include configuring target database field names, corresponding fields in the source database, and their size limits. Field types include the types of fields that can be mapped, such as text, integer, numeric (float), rich text, date, time, etc. Special method names include special methods that can complete field value acquisition through the background, such as processing methods for extracting special formats that cannot be converted through conventional mapping. It can be understood that the data migration configuration information can be configured by selecting or filling in.
根据本公开的实施例,用户映射用于实现源数据库和目标数据库的用户参数匹配,匹配结果用于实现业务类数据的迁移。具体的,可以预先建立用户映射,以实现源数据库和目标数据库中同一用户的参数匹配,进而利于查找同一用户在源数据库中关联的业务类数据,并将相关业务类数据迁移至目标数据库,实现目标数据库中该用户及其关联的业务数据的精准对应。According to the embodiment of the present disclosure, the user mapping is used to implement the user parameter matching between the source database and the target database, and the matching result is used to implement the migration of business data. Specifically, user mapping can be established in advance to match the parameters of the same user in the source database and the target database, which is convenient for finding business data associated with the same user in the source database, and migrating the relevant business data to the target database to achieve The exact correspondence of the user and its associated business data in the target database.
根据本公开的实施例,所述用户映射可以包含用户组合信息,所述用户组合信息包含用户机构和用户部门中的至少一种,以及用户名和用户注册名中的至少一种。According to an embodiment of the present disclosure, the user mapping may include user combination information including at least one of a user organization and a user department, and at least one of a user name and a user registration name.
在一些具体的实施例中,源数据库的用户结构体系可以与目标数据库不一致。例如,源数据库中用户结构体系为zhangsan/bj/org,目标数据库中用户结构体系为zhangsan1.bj。用户结构体系的不同导致数据迁移时源数据库和目标数据库的用户参数无法匹配,从而无法实现业务数据的准确迁移。可以利用用户组合信息建立源数据库和目标数据库的用户映射关系,从而实现用户参数的唯一匹配,进而实现业务数据的完整迁移。In some specific embodiments, the user structure of the source database may be inconsistent with the target database. For example, the user structure in the source database is zhangsan/bj/org, and the user structure in the target database is zhangsan1.bj. The difference in user structure leads to the inability to match the user parameters of the source database and the target database during data migration, so that the accurate migration of business data cannot be achieved. The user mapping relationship between the source database and the target database can be established by using the user combination information, so as to realize the unique matching of user parameters, and then realize the complete migration of business data.
在一个典型的示例中,源数据库中用户结构体系为zhangsan/bj/org,该体系包含用户名张三,用户注册名Zhangsan,用户机构为北京分行,用户部门为办公室。目标数据库用户结构体系为zhangsan1.bj,该体系包含用户张三,用户注册名Zhangsan,用户机构为北京分行,用户部门为办公室。可以基于源数据库传递用户机构、用户部门、用户名和用户注册名中的一种或多种到目标数据库,可以通过用户机构和/或用户部门,以及用户名和/或用户注册名组合查找用户,若查询数据唯一,信息完整匹配,将目标数据库中的用户结构体系(例如用户体系名称)返回到源数据库的用户结构体系字段中。若同一用户部门下存在重名用户情况,可以返回容错数据,再根据用户岗位比较用户信息确认最终映射用户。通过用户结构体系字段回写,可以实现用户映射关系的建立。In a typical example, the user structure system in the source database is zhangsan/bj/org, the system includes the user name Zhang San, the user registered name Zhangsan, the user organization is Beijing Branch, and the user department is the office. The user structure system of the target database is zhangsan1.bj, which includes user Zhang San, the user's registered name is Zhangsan, the user organization is Beijing Branch, and the user department is the office. One or more of user organization, user department, user name and user registration name can be passed to the target database based on the source database, and the user can be looked up by the combination of user organization and/or user department, and user name and/or user registration name, if The query data is unique, the information is completely matched, and the user structure system (such as the user system name) in the target database is returned to the user structure system field of the source database. If there are users with the same name in the same user department, you can return the fault-tolerant data, and then compare the user information according to the user position to confirm the final mapped user. The user mapping relationship can be established by writing back the fields of the user structure system.
在操作S220,基于数据连接配置信息连接源数据库和目标数据库。In operation S220, the source database and the target database are connected based on the data connection configuration information.
根据本公开的实施例,源数据库和目标数据库可以为异构数据库。在一些具体的实施例中,源数据库可以为非关系型数据库,而目标数据库可以为关系型数据库。典型的非关系型数据库可以包含文档数据库。可以基于文件类型将文档文件存储于相应的文档数据库中。当文件数据从文档数据库迁移至关系型数据库后,一个文档文件以一条记录的形式保存于关系型数据库中。According to an embodiment of the present disclosure, the source database and the target database may be heterogeneous databases. In some specific embodiments, the source database may be a non-relational database, and the target database may be a relational database. Typical non-relational databases can include document databases. The document files may be stored in a corresponding document database based on the file type. After the file data is migrated from the document database to the relational database, a document file is stored in the relational database in the form of a record.
在操作S230,基于数据迁移配置信息和用户映射进行数据迁移。In operation S230, data migration is performed based on the data migration configuration information and the user mapping.
在配置好数据迁移配置信息和用户映射后,可以进行数据迁移。After the data migration configuration information and user mapping are configured, data migration can be performed.
在本公开的实施例中,进行数据迁移时,为了确保数据迁移的完整性,可以先迁移参数类数据,再迁移业务类数据。例如,可以基于迁移配置信息将参数类数据抽取至目标数据库,同时基于用户映射完成用户参数的匹配,再将参数类数据关联的业务数据基于用户参数迁移至目标数据库。其中,数据关联的当前处理人和流转人员均可以为本公开实施例中所述的用户。In the embodiments of the present disclosure, during data migration, in order to ensure the integrity of the data migration, parameter type data may be migrated first, and then service type data may be migrated. For example, parameter data can be extracted to the target database based on migration configuration information, user parameters can be matched based on user mapping, and business data associated with parameter data can be migrated to the target database based on user parameters. Wherein, both the current processor and the transfer personnel of the data association can be the users described in the embodiments of the present disclosure.
在操作S240,基于数据迁移结果执行数据迁移校验。In operation S240, data migration verification is performed based on the data migration result.
根据本公开的实施例,在完成数据迁移后,可以执行数据迁移校验,包括自动生成检查脚本并访问目标数据库,检查数据迁移结果的正确性,从而判断数据迁移是否成功。可以理解,在数据迁移后,可以反馈迁移成功或迁移不成功。当迁移不成功时,可以返回失败原因。典型的失败原因可以包含网络中断,源数据库异常和/或目标数据库异常等。对于不同的失败原因可以有相应的异常处理方法。可以理解,在执行校验后,可以生成检查日志,以直观查看数据迁移结果。According to the embodiments of the present disclosure, after data migration is completed, data migration verification can be performed, including automatically generating a check script and accessing the target database to check the correctness of the data migration result, thereby judging whether the data migration is successful. It can be understood that after data migration, it can be reported that the migration is successful or the migration is unsuccessful. When the migration is unsuccessful, the failure reason can be returned. Typical failure reasons can include network outages, source database exceptions and/or target database exceptions, etc. There can be corresponding exception handling methods for different failure reasons. It can be understood that after the verification is performed, a check log can be generated to visually check the data migration result.
根据本公开的实施例,当源数据库中的文件数据含有附件时,还可以包含附件迁移的步骤。According to an embodiment of the present disclosure, when the file data in the source database contains attachments, a step of migrating attachments may also be included.
图3示意性示出了根据本公开实施例的附件迁移的方法的流程图。FIG. 3 schematically shows a flowchart of a method for attachment migration according to an embodiment of the present disclosure.
如图3所示,该实施例的数据迁移方法包括操作S310~操作S350。As shown in FIG. 3 , the data migration method of this embodiment includes operations S310 to S350.
在操作S310,获取来自于源数据库的文件数据。In operation S310, file data from the source database is acquired.
在操作S320,将所述文件数据拆分为源文件和源附件。In operation S320, the file data is split into source files and source attachments.
在操作S330,将所述源附件存储至文件服务器。In operation S330, the source attachment is stored to a file server.
在操作S340,获取来自于文件服务器的文件路径及标识信息。In operation S340, the file path and identification information from the file server are obtained.
在操作S350,基于所述文件路径及标识信息建立目标数据库中目标文件与文件服务器中源附件间的映射关系。In operation S350, a mapping relationship between the target file in the target database and the source attachment in the file server is established based on the file path and the identification information.
根据本公开的实施例,为提高数据迁移效率,降低附件存储开销,可以基于文件服务器对附件进行存储。具体地,可以将来自于源数据库的文件数据进行拆分,获取源文件和源附件。其中,源文件可以迁移存储于目标数据库,源附件存储至文件服务器。为了保证数据迁移的准确性和完整性,可以通过文件路径及标识信息建立目标文件和源附件的唯一映射关系,其中,目标文件为源文件迁移至目标数据库后所生成。其中,文件路径及标识信息可以包括文件服务器的IP地址和/或端口等信息,还可以包含附件文件存储的目录路径信息等。数据迁移平台可以获取来自于文件服务器的文件路径及标识信息,将其自动添加至抽取的SQL语句中,进而写入目标数据库中,以实现目标文件和源附件的连接。According to the embodiments of the present disclosure, in order to improve data migration efficiency and reduce attachment storage overhead, attachments may be stored based on a file server. Specifically, the file data from the source database can be split to obtain source files and source attachments. The source files can be migrated and stored in the target database, and the source attachments can be stored in the file server. In order to ensure the accuracy and integrity of data migration, a unique mapping relationship between the target file and the source attachment can be established through the file path and identification information, where the target file is generated after the source file is migrated to the target database. The file path and identification information may include information such as the IP address and/or port of the file server, and may also include directory path information stored in the attachment file, and the like. The data migration platform can obtain the file path and identification information from the file server, automatically add it to the extracted SQL statement, and then write it into the target database to realize the connection between the target file and the source attachment.
根据本公开的实施例,源数据库可以存储于一个源服务器,也可以分布式存储于多个源服务器。相应的,目标数据库可以存储于一个目标服务器,也可以分布式存储于多个目标服务器。其中,当源数据库分布式存储于m个源服务器,其中,m为大于等于2的整数,目标数据库集中存储于目标服务器时,附件迁移方法还可以包含如图4所示的步骤。According to an embodiment of the present disclosure, the source database may be stored in one source server, or may be distributed and stored in multiple source servers. Correspondingly, the target database may be stored in one target server, or may be distributed and stored in multiple target servers. Wherein, when the source database is distributed and stored in m source servers, where m is an integer greater than or equal to 2, and the target database is centrally stored in the target server, the attachment migration method may further include the steps shown in FIG. 4 .
图4示意性示出了根据本公开另一些实施例的附件迁移方法的流程图。FIG. 4 schematically shows a flowchart of an attachment migration method according to other embodiments of the present disclosure.
如图4所示,该实施例的数据迁移方法包括操作S410~操作S450。As shown in FIG. 4 , the data migration method of this embodiment includes operations S410 to S450.
在操作S410,获取来自于源数据库的文件数据。In operation S410, file data from the source database is acquired.
在操作S420,将文件数据拆分为源文件和源附件。In operation S420, the file data is split into source files and source attachments.
在操作S430,将所述源附件存储至当前源服务器临时目录。In operation S430, the source attachment is stored in the current source server temporary directory.
在操作S440,获取来自目标服务器的目标附件信息。In operation S440, target attachment information from the target server is acquired.
在操作S450,基于目标附件信息建立目标文件和目标附件的映射关系。In operation S450, a mapping relationship between the target file and the target attachment is established based on the target attachment information.
根据本公开的实施例,目标文件为源文件迁移至目标数据库后所生成。目标附件信息基于源附件和源文件标识信息生成,源文件标识信息获取自所述源服务器临时目录。According to an embodiment of the present disclosure, the target file is generated after the source file is migrated to the target database. The target attachment information is generated based on the source attachment and the source file identification information, and the source file identification information is obtained from the temporary directory of the source server.
在本公开的实施例中,可以基于预设的存储标准将多个源数据库分布式存储于m个源服务器。例如,可以基于文件类型将文件数据存储于不同的源数据库,也可以基于源数据库的管理者将源数据库存储于不同的源服务器中。在一些具体的实施例中,可以将机构作为源服务器的划分标准。其中,机构可以与用户机构相同。在某些情况下,m个源服务器中的用于存储某一类型文件数据的源数据库可以均包含含有源附件的文件数据w,即存在m个文件数据w,每个文件数据都包含源文件(文件主体)和源附件。当将m个文件数据w迁移至目标数据库后,可以以数据表中的m条记录的形式存在。其中,基于数据存储规则,源文件可以包含唯一标识,而与其对应的源附件不含源文件标识信息。为了提高数据迁移效率,降低附件存储开销,且不丢失附件,保持迁移后文件数据完整性,可以在对文件数据w进行迁移时,将来自于源数据库的文件数据w拆分为源文件和源附件。进一步,可以将拆分得到的源附件存储至当前源服务器临时目录。当前源服务器临时目录可以基于源服务器和/或源文件生成源文件标识信息,进一步将源文件标识信息写入源附件。当前源服务器临时目录可以将含有源文件标识信息的源附件存储至目标服务器的目标数据库中,并生成目标附件信息。可以理解,目标附件信息可以包含源附件自身的标识信息(例如标题)和源文件标识信息。目标数据库可以将目标附件信息回写至数据迁移平台。数据迁移平台可以在获取来自于目标数据库的目标附件信息后,将其自动添加至抽取的SQL语句中,并写入目标数据库中,从而建立目标文件和目标附件的映射关系。其中,涉及到当前源服务器执行的步骤可以被m个源服务器中的每一个执行,从而防止在源附件自身的标识信息(例如标题)相同的情况下,造成的附件文件覆盖或丢失。其中,目标文件为源文件迁移至目标数据库后所生成。目标附件可以保存在目标数据库所在的目标服务器中,也可以保存在单独的文件服务器中。当保存在文件服务器中,可以基于文件服务器生成的文件路径及标识信息建立目标数据库中目标文件与文件服务器中目标附件间的映射关系。In the embodiment of the present disclosure, a plurality of source databases may be distributed and stored in m source servers based on a preset storage standard. For example, file data may be stored in different source databases based on file types, or source databases may be stored in different source servers based on the manager of the source databases. In some specific embodiments, the organization can be used as the classification standard of the origin server. Among them, the organization can be the same as the user organization. In some cases, the source databases used to store a certain type of file data in m source servers may all contain file data w containing source attachments, that is, there are m file data w, each of which contains source files (file body) and source attachments. After the m file data w is migrated to the target database, it can exist in the form of m records in the data table. Wherein, based on the data storage rules, the source file may contain a unique identifier, while the source attachment corresponding thereto does not contain source file identifier information. In order to improve the efficiency of data migration, reduce the storage overhead of attachments, not lose attachments, and maintain the integrity of file data after migration, when migrating file data w, the file data w from the source database can be split into source files and source files. appendix. Further, the source attachment obtained by splitting can be stored in the temporary directory of the current source server. The current source server temporary directory may generate source file identification information based on the source server and/or the source file, and further write the source file identification information into the source attachment. The temporary directory of the current source server can store the source attachment containing the identification information of the source file in the target database of the target server, and generate the target attachment information. It can be understood that the target attachment information may include identification information (eg, title) of the source attachment itself and identification information of the source file. The target database can write back the target attachment information to the data migration platform. After acquiring the target attachment information from the target database, the data migration platform can automatically add it to the extracted SQL statement and write it into the target database, thereby establishing the mapping relationship between the target file and the target attachment. The steps related to the execution of the current source server can be executed by each of the m source servers, thereby preventing the attachment file from being overwritten or lost when the source attachment's own identification information (eg title) is the same. The target file is generated after the source file is migrated to the target database. Target attachments can be saved on the target server where the target database is located, or on a separate file server. When stored in the file server, the mapping relationship between the target file in the target database and the target attachment in the file server can be established based on the file path and identification information generated by the file server.
在一些具体的实施例中,源文件标识信息包含源服务器标识,机构标识,源文件标识中的至少一种。其中,源服务器标识可以包含服务器名,服务器编号等。机构标识可以包含机构名,机构编号,机构代码等。源文件标识可以包含源文件编号,源文件名等。在一些具体的实施例中,源文件标识还可以包括时间散列名,其中,时间散列名可以为源文件的生成时间,修改时间,发布时间等。可以理解,源文件标识信息种类不作限定,以可以唯一标识源文件,建立源文件和源附件间的关联关系为准。In some specific embodiments, the source file identification information includes at least one of a source server identification, an organization identification, and a source file identification. The source server identifier may include a server name, a server number, and the like. Institution ID can include institution name, institution number, institution code, etc. The source file identifier can contain the source file number, source file name, etc. In some specific embodiments, the source file identifier may further include a time hash name, where the time hash name may be the generation time, modification time, release time, etc. of the source file. It can be understood that the type of source file identification information is not limited, as long as it can uniquely identify the source file and establish an association relationship between the source file and the source attachment.
本公开的实施例提供的数据迁移方法,通过配置用户映射,实现源数据库和目标数据库用户参数的准确匹配,进一步实现业务数据的准确迁移。迁移后数据权限准确,能够平滑地在新系统中呈现的问题。进一步,通过将源文件数据拆分存储并以目标附件信息建立目标文件和目标附件的映射关系,避免分布式数据存储中文件覆盖和丢失的问题,提高了数据迁移的完整性,准确性和安全性。The data migration method provided by the embodiments of the present disclosure realizes accurate matching of user parameters of the source database and the target database by configuring user mapping, and further realizes the accurate migration of business data. After the migration, the data permissions are accurate, and the problems can be smoothly presented in the new system. Further, by dividing and storing the source file data and establishing the mapping relationship between the target file and the target attachment with the target attachment information, the problem of file overwriting and loss in distributed data storage is avoided, and the integrity, accuracy and security of data migration are improved. sex.
基于上述数据迁移方法,本公开还提供了一种数据迁移装置。以下将结合图5对该装置进行详细描述。Based on the above data migration method, the present disclosure also provides a data migration apparatus. The device will be described in detail below with reference to FIG. 5 .
图5示意性示出了根据本公开实施例的数据迁移装置的结构框图。FIG. 5 schematically shows a structural block diagram of a data migration apparatus according to an embodiment of the present disclosure.
如图5所示,该实施例的数据迁移装置500包括获取模块510、连接模块520,迁移模块530和校验模块540。As shown in FIG. 5 , the
获取模块510被配置为获取配置信息,所述配置信息包括数据连接配置信息,数据迁移配置信息,以及用户映射。用户映射用于实现源数据库和目标数据库的用户参数匹配,匹配结果用于实现业务类数据的迁移。The obtaining
连接模块520被配置为基于所述数据连接配置信息连接源数据库和目标数据库。The
迁移模块530被配置为基于所述数据迁移配置信息和用户映射进行数据迁移,其中,所述数据包含参数类数据和业务类数据。The
校验模块540被配置为基于数据迁移结果执行数据迁移校验。The
根据本公开的实施例,第一获取模块510、连接模块520,迁移模块530和校验模块540中的任意多个模块可以合并在一个模块中实现,或者其中的任意一个模块可以被拆分成多个模块。或者,这些模块中的一个或多个模块的至少部分功能可以与其他模块的至少部分功能相结合,并在一个模块中实现。根据本公开的实施例,第一获取模块510、连接模块520,迁移模块530和校验模块540中的至少一个可以至少被部分地实现为硬件电路,例如现场可编程门阵列(FPGA)、可编程逻辑阵列(PLA)、片上系统、基板上的系统、封装上的系统、专用集成电路(ASIC),或可以通过对电路进行集成或封装的任何其他的合理方式等硬件或固件来实现,或以软件、硬件以及固件三种实现方式中任意一种或以其中任意几种的适当组合来实现。或者,第一获取模块510、连接模块520,迁移模块530和校验模块540中的至少一个可以至少被部分地实现为计算机程序模块,当该计算机程序模块被运行时,可以执行相应的功能。According to an embodiment of the present disclosure, any plurality of modules in the
图6示意性示出了根据本公开实施例的适于实现数据迁移方法的电子设备的方框图。FIG. 6 schematically shows a block diagram of an electronic device suitable for implementing a data migration method according to an embodiment of the present disclosure.
如图6所示,根据本公开实施例的电子设备900包括处理器901,其可以根据存储在只读存储器(ROM)902中的程序或者从存储部分908加载到随机访问存储器(RAM)903中的程序而执行各种适当的动作和处理。处理器901例如可以包括通用微处理器(例如CPU)、指令集处理器和/或相关芯片组和/或专用微处理器(例如,专用集成电路(ASIC))等等。处理器901还可以包括用于缓存用途的板载存储器。处理器901可以包括用于执行根据本公开实施例的方法流程的不同动作的单一处理单元或者是多个处理单元。As shown in FIG. 6 , an
在RAM 903中,存储有电子设备900操作所需的各种程序和数据。处理器901、ROM902以及RAM 903通过总线904彼此相连。处理器901通过执行ROM 902和/或RAM 903中的程序来执行根据本公开实施例的方法流程的各种操作。需要注意,所述程序也可以存储在除ROM 902和RAM903以外的一个或多个存储器中。处理器901也可以通过执行存储在所述一个或多个存储器中的程序来执行根据本公开实施例的方法流程的各种操作。In the
根据本公开的实施例,电子设备900还可以包括输入/输出(I/O)接口905,输入/输出(I/O)接口905也连接至总线904。电子设备900还可以包括连接至I/O接口905的以下部件中的一项或多项:包括键盘、鼠标等的输入部分906;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分907;包括硬盘等的存储部分908;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分909。通信部分909经由诸如因特网的网络执行通信处理。驱动器910也根据需要连接至I/O接口905。可拆卸介质911,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器910上,以便于从其上读出的计算机程序根据需要被安装入存储部分908。According to an embodiment of the present disclosure, the
本公开还提供了一种计算机可读存储介质,该计算机可读存储介质可以是上述实施例中描述的设备/装置/系统中所包含的;也可以是单独存在,而未装配入该设备/装置/系统中。上述计算机可读存储介质承载有一个或者多个程序,当上述一个或者多个程序被执行时,实现根据本公开实施例的方法。The present disclosure also provides a computer-readable storage medium. The computer-readable storage medium may be included in the device/apparatus/system described in the above embodiments; it may also exist alone without being assembled into the device/system. device/system. The above-mentioned computer-readable storage medium carries one or more programs, and when the above-mentioned one or more programs are executed, implement the method according to the embodiment of the present disclosure.
根据本公开的实施例,计算机可读存储介质可以是非易失性的计算机可读存储介质,例如可以包括但不限于:便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。例如,根据本公开的实施例,计算机可读存储介质可以包括上文描述的ROM 902和/或RAM 903和/或ROM 902和RAM 903以外的一个或多个存储器。According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, such as, but not limited to, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM) , erasable programmable read only memory (EPROM or flash memory), portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing. In this disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. For example, according to embodiments of the present disclosure, a computer-readable storage medium may include one or more memories other than
本公开的实施例还包括一种计算机程序产品,其包括计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。当计算机程序产品在计算机系统中运行时,该程序代码用于使计算机系统实现本公开实施例所提供的数据迁移方法。Embodiments of the present disclosure also include a computer program product comprising a computer program containing program code for performing the method illustrated in the flowchart. When the computer program product runs in the computer system, the program code is used to make the computer system implement the data migration method provided by the embodiments of the present disclosure.
在该计算机程序被处理器901执行时执行本公开实施例的系统/装置中限定的上述功能。根据本公开的实施例,上文描述的系统、装置、模块、单元等可以通过计算机程序模块来实现。When the computer program is executed by the
在一种实施例中,该计算机程序可以依托于光存储器件、磁存储器件等有形存储介质。在另一种实施例中,该计算机程序也可以在网络介质上以信号的形式进行传输、分发,并通过通信部分909被下载和安装,和/或从可拆卸介质911被安装。该计算机程序包含的程序代码可以用任何适当的网络介质传输,包括但不限于:无线、有线等等,或者上述的任意合适的组合。In one embodiment, the computer program may rely on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted, distributed in the form of a signal over a network medium, and downloaded and installed through the
在这样的实施例中,该计算机程序可以通过通信部分909从网络上被下载和安装,和/或从可拆卸介质911被安装。在该计算机程序被处理器901执行时,执行本公开实施例的系统中限定的上述功能。根据本公开的实施例,上文描述的系统、设备、装置、模块、单元等可以通过计算机程序模块来实现。In such an embodiment, the computer program may be downloaded and installed from the network via the
根据本公开的实施例,可以以一种或多种程序设计语言的任意组合来编写用于执行本公开实施例提供的计算机程序的程序代码,具体地,可以利用高级过程和/或面向对象的编程语言、和/或汇编/机器语言来实施这些计算程序。程序设计语言包括但不限于诸如Java,C++,python,“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算设备上执行、部分地在用户设备上执行、部分在远程计算设备上执行、或者完全在远程计算设备或服务器上执行。在涉及远程计算设备的情形中,远程计算设备可以通过任意种类的网络,包括局域网(LAN)或广域网(WAN),连接到用户计算设备,或者,可以连接到外部计算设备(例如利用因特网服务提供商来通过因特网连接)。According to the embodiments of the present disclosure, the program code for executing the computer program provided by the embodiments of the present disclosure may be written in any combination of one or more programming languages, and specifically, high-level procedures and/or object-oriented programming may be used. programming language, and/or assembly/machine language to implement these computational programs. Programming languages include, but are not limited to, languages such as Java, C++, python, "C" or similar programming languages. The program code may execute entirely on the user computing device, partly on the user device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (eg, using an Internet service provider business via an Internet connection).
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,上述模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图或流程图中的每个方框、以及框图或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logical functions for implementing the specified functions executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams or flowchart illustrations, and combinations of blocks in the block diagrams or flowchart illustrations, can be implemented in special purpose hardware-based systems that perform the specified functions or operations, or can be implemented using A combination of dedicated hardware and computer instructions is implemented.
本领域技术人员可以理解,本公开的各个实施例和/或权利要求中记载的特征可以进行多种组合或/或结合,即使这样的组合或结合没有明确记载于本公开中。特别地,在不脱离本公开精神和教导的情况下,本公开的各个实施例和/或权利要求中记载的特征可以进行多种组合和/或结合。所有这些组合和/或结合均落入本公开的范围。Those skilled in the art will appreciate that various combinations and/or combinations of features recited in various embodiments and/or claims of the present disclosure are possible, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments of the present disclosure and/or in the claims may be made without departing from the spirit and teachings of the present disclosure. All such combinations and/or combinations fall within the scope of this disclosure.
以上对本公开的实施例进行了描述。但是,这些实施例仅仅是为了说明的目的,而并非为了限制本公开的范围。尽管在以上分别描述了各实施例,但是这并不意味着各个实施例中的措施不能有利地结合使用。本公开的范围由所附权利要求及其等同物限定。不脱离本公开的范围,本领域技术人员可以做出多种替代和修改,这些替代和修改都应落在本公开的范围之内。Embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only, and are not intended to limit the scope of the present disclosure. Although the various embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the appended claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art can make various substitutions and modifications, and these substitutions and modifications should all fall within the scope of the present disclosure.
Claims (12)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111628423.4A CN114281803A (en) | 2021-12-28 | 2021-12-28 | Data migration method, device, equipment, medium and program product |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111628423.4A CN114281803A (en) | 2021-12-28 | 2021-12-28 | Data migration method, device, equipment, medium and program product |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114281803A true CN114281803A (en) | 2022-04-05 |
Family
ID=80877111
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111628423.4A Pending CN114281803A (en) | 2021-12-28 | 2021-12-28 | Data migration method, device, equipment, medium and program product |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114281803A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114840496A (en) * | 2022-05-30 | 2022-08-02 | 中国船舶重工集团海装风电股份有限公司 | Cross-database data migration method and system for wind power plant |
CN115269547A (en) * | 2022-07-22 | 2022-11-01 | 平安付科技服务有限公司 | Data processing method, device, storage medium and electronic device |
CN115858503A (en) * | 2023-02-28 | 2023-03-28 | 江西师范大学 | Method and system for heterogeneous database migration management based on migration linked list |
CN116483806A (en) * | 2023-04-25 | 2023-07-25 | 中国工商银行股份有限公司 | Database transformation method, apparatus, device, storage medium, and program product |
CN117354055A (en) * | 2023-12-04 | 2024-01-05 | 广东润建电力科技有限公司 | Block chain twin Internet of things information data migration method and system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110619016A (en) * | 2019-09-24 | 2019-12-27 | 苏州浪潮智能科技有限公司 | Data processing method and device for big data platform and storage medium |
US20210109934A1 (en) * | 2016-03-30 | 2021-04-15 | Groupon, Inc. | Configurable and incremental database migration framework for heterogeneous databases |
CN112817944A (en) * | 2021-02-26 | 2021-05-18 | 北京北信源软件股份有限公司 | Data migration method and device, electronic equipment and storage medium |
CN113051245A (en) * | 2019-12-26 | 2021-06-29 | 云丁网络技术(北京)有限公司 | Method, device and system for migrating data |
-
2021
- 2021-12-28 CN CN202111628423.4A patent/CN114281803A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20210109934A1 (en) * | 2016-03-30 | 2021-04-15 | Groupon, Inc. | Configurable and incremental database migration framework for heterogeneous databases |
CN110619016A (en) * | 2019-09-24 | 2019-12-27 | 苏州浪潮智能科技有限公司 | Data processing method and device for big data platform and storage medium |
CN113051245A (en) * | 2019-12-26 | 2021-06-29 | 云丁网络技术(北京)有限公司 | Method, device and system for migrating data |
CN112817944A (en) * | 2021-02-26 | 2021-05-18 | 北京北信源软件股份有限公司 | Data migration method and device, electronic equipment and storage medium |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114840496A (en) * | 2022-05-30 | 2022-08-02 | 中国船舶重工集团海装风电股份有限公司 | Cross-database data migration method and system for wind power plant |
CN115269547A (en) * | 2022-07-22 | 2022-11-01 | 平安付科技服务有限公司 | Data processing method, device, storage medium and electronic device |
CN115858503A (en) * | 2023-02-28 | 2023-03-28 | 江西师范大学 | Method and system for heterogeneous database migration management based on migration linked list |
CN115858503B (en) * | 2023-02-28 | 2023-05-09 | 江西师范大学 | Heterogeneous database migration management method and system based on migration linked list |
CN116483806A (en) * | 2023-04-25 | 2023-07-25 | 中国工商银行股份有限公司 | Database transformation method, apparatus, device, storage medium, and program product |
CN116483806B (en) * | 2023-04-25 | 2025-08-22 | 中国工商银行股份有限公司 | Database transformation method, device, equipment, storage medium and program product |
CN117354055A (en) * | 2023-12-04 | 2024-01-05 | 广东润建电力科技有限公司 | Block chain twin Internet of things information data migration method and system |
CN117354055B (en) * | 2023-12-04 | 2024-03-12 | 广东润建电力科技有限公司 | Block chain twin Internet of things information data migration method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN114281803A (en) | Data migration method, device, equipment, medium and program product | |
US10540383B2 (en) | Automatic ontology generation | |
US10169417B2 (en) | Detecting logical relationships based on structured query statements | |
US9454558B2 (en) | Managing an index of a table of a database | |
US10885000B2 (en) | Repairing corrupted references | |
CN113760948A (en) | Method and device for querying data | |
US9996596B2 (en) | Managing a table of a database | |
US10936625B2 (en) | Progressive optimization for implicit cast predicates | |
US10248668B2 (en) | Mapping database structure to software | |
US11188228B1 (en) | Graphing transaction operations for transaction compliance analysis | |
US9201937B2 (en) | Rapid provisioning of information for business analytics | |
EP4281860B1 (en) | Unified data security labeling framework | |
US10664501B2 (en) | Deriving and interpreting users collective data asset use across analytic software systems | |
US10885157B2 (en) | Determining a database signature | |
CN114253946B (en) | Tracking method, device, electronic device, medium and program product | |
CN114996243A (en) | Database operation method and device, electronic equipment and storage medium | |
CN114547090A (en) | Data query method and device, electronic equipment and storage medium | |
US12386855B2 (en) | Automatic script generation using a multi-layered ingestion program to reduce runtime errors | |
CN111914065B (en) | Short message content verification method, device, computer system and computer readable medium | |
US10073868B1 (en) | Adding and maintaining individual user comments to a row in a database table | |
CN118861093A (en) | Database operation method and device | |
CN118839354A (en) | User permission butt joint method, device, equipment and medium between multiple systems | |
CN116821154A (en) | Database operation log generation method, exception locating method, device and media | |
CN114444456A (en) | Electronic report management method, device, server and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |