KR101737575B1 - Method and device for verifying data based on sql sentences generated automatically - Google Patents
Method and device for verifying data based on sql sentences generated automatically Download PDFInfo
- Publication number
- KR101737575B1 KR101737575B1 KR1020150185130A KR20150185130A KR101737575B1 KR 101737575 B1 KR101737575 B1 KR 101737575B1 KR 1020150185130 A KR1020150185130 A KR 1020150185130A KR 20150185130 A KR20150185130 A KR 20150185130A KR 101737575 B1 KR101737575 B1 KR 101737575B1
- Authority
- KR
- South Korea
- Prior art keywords
- data
- server
- identification information
- location identification
- target
- Prior art date
Links
Images
Classifications
-
- G06F17/30289—
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/008—Reliability or availability analysis
-
- G06F17/271—
-
- G06F17/303—
-
- G06F17/30371—
Landscapes
- Engineering & Computer Science (AREA)
- Quality & Reliability (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
The present invention relates to a method and an apparatus for verifying data based on automatically generated SQL statements, and more particularly, to a method and apparatus for verifying data based on automatically generated SQL statements for increasing efficiency and reducing labor costs in data verification work, ≪ / RTI >
Due to the development of Internet technology, all business systems of each company are being built using servers. These servers need to be constantly updated and managed, which requires data migration from the origin server to the new target server.
In this case, it is necessary to create a mapping logic for converting the table value and the column value of the data stored in the source server into the table value and the column value stored in the target server. In the conventional technology, It has been configured to write directly in Structured Query Language (SQL) syntax and manually manage the history of mapping logic changes. As a result, time is wasted when writing SQL, and the history of mapping logic changes for each developer is handled by the developer, making it impossible to manage the entire history and causing problems such as change history and data loss.
In addition, it is required to perform an operation to verify whether the data converted to the target server is fully implemented from the origin server. At this time, in the case of the related art, conversion data verification is performed in such a manner that a developer directly prepares a technical verification program, assigns a separate time at the completion of the data transfer, directly performs a verification program, and manually reports and compiles it. In this case, since the dependency on the program created by the developer becomes high, there arises a problem that the developer can not judge whether or not the data conversion verification is completed in the viewpoint of the customer.
SUMMARY OF THE INVENTION The present invention has been made to solve the above problems of the related art, and it is an object of the present invention to automatically generate an SQL statement for data transfer and automatically extract and compare data to be verified on the basis thereof, A data verification method and a data verification apparatus are provided.
According to an aspect of the present invention, there is provided a method for validating an automatically generated Structured Query Language (SQL) syntax based on at least one of (a) source location identification information And extracting target location identification information for a location where the data is to be stored in a target server; (b) applying the source location identification information and the target location identification information to a migration logic including a syntax for transferring the data to a target server to generate mapping logic; And (c) verifying the diverted data by comparing the pre-diverted data with the post-diverted data with reference to the mapping logic after the data of the source server is transferred to the target server.
According to another aspect of the present invention, an automatically generated SQL (Structured Query Language) syntax-based data verification apparatus includes a memory for storing a program for performing a data verification method based on an automatically generated SQL statement; And a processor for executing a program stored in the memory, wherein, in accordance with the execution of the program, the processor is further configured to determine, based on the source location information for the data stored in the source server and the location Generating mapping logic by applying the source location identification information and the target location identification information to a migration logic including a syntax for extracting target location identification information and transferring the data to the target server, After the transfer to the target server, the transfer data is verified by comparing the pre-transfer data with the post-transfer data by referring to the mapping logic.
The present invention automates SQL statement generation and verification information input operations necessary for verifying data transferred from a source server to a target server, thereby improving problems caused by manual work by an operator, thereby increasing efficiency and reducing labor costs. Cost savings can be achieved. In addition, data transfer of corporate servers is usually done on holidays or weekends to reduce the impact on consumers, but it is not enough time to transfer and verify large amounts of data. At this time, it is possible to check whether there is an idle storage space that can be verified, and perform verification immediately upon completion of the transfer for each individual data (i.e., by performing escalation and verification in parallel) The total time required can be shortened remarkably.
1 is a structural diagram of a system according to an embodiment of the present invention.
FIG. 2 is a block diagram of the components of an automatically generated SQL statement-based data verification apparatus according to an embodiment of the present invention.
FIG. 3 is a flow chart for explaining a method of verifying data based on an automatically generated SQL statement according to an embodiment of the present invention.
FIG. 4 is a flowchart for explaining the verification process (S140) of FIG. 3 in detail.
Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings, which will be readily apparent to those skilled in the art. The present invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. In order to clearly illustrate the present invention, parts not related to the description are omitted, and similar parts are denoted by like reference characters throughout the specification.
Throughout the specification, when a part is referred to as being "connected" to another part, it includes not only "directly connected" but also "electrically connected" with another part in between . Also, when an element is referred to as "comprising ", it means that it can include other elements as well, without departing from the other elements unless specifically stated otherwise.
In this specification, the term " part " includes a unit realized by hardware, a unit realized by software, and a unit realized by using both. Further, one unit may be implemented using two or more hardware, or two or more units may be implemented by one hardware. On the other hand, 'to' is not limited to software or hardware, 'to' may be configured to be an addressable storage medium, and may be configured to play one or more processors. Thus, by way of example, 'parts' may refer to components such as software components, object-oriented software components, class components and task components, and processes, functions, , Subroutines, segments of program code, drivers, firmware, microcode, circuitry, data, databases, data structures, tables, arrays, and variables. The functions provided in the components and components may be further combined with a smaller number of components and components or further components and components. In addition, the components and components may be implemented to play back one or more CPUs in a device or a secure multimedia card.
Hereinafter, a system according to an embodiment of the present invention will be described in detail with reference to FIG.
The above system includes a
The
The data stored in the
At this time, the
Hereinafter, a server that is the subject of performing the data verification operation will be referred to as "
Information stored in the
Hereinafter, with reference to FIG. 2, the construction and operation of an automatically generated SQL statement-based
The
The data location identification
The automatic SQL
Specifically, the SQL syntax
The automatic SQL
On the other hand, if the mapping logic based on the generated SQL statement is in violation of the standard SQL, a warning or re-input request notification may be provided to the client terminal connected to the
The SQL syntax change
The SQL syntax change
Thereafter, when receiving a request for a change history of the mapping logic from the client terminal, the SQL syntax change
On the other hand, the
In the case of conventional validation, there was no way for the customer to verify that the validation had been done, since the developer only performed the verification and simply informed the result to the customer. Accordingly, the transfer
The manner in which the transfer
On the other hand, when a company that holds a vast amount of data (for example, a card company) wants to transfer data to a new server, it takes a very long time, at least 15-16 hours Is required. As a result, corporate data transfer is often done on weekends when it does not affect consumers. However, after all the data escapes are completed, if the verification is sequentially performed, it takes a long time as the data escapes, which can lead to a disruption to the business operation of the enterprise.
Accordingly, the idle storage
At this time, data verification can be performed on a table basis. That is, a plurality of tables including a plurality of data are stored in the
Meanwhile, when data transfer is performed by the self-transfer module of the
The verification result management and providing
Hereinafter, with reference to FIG. 3 and FIG. 4, an automatically generated SQL statement-based data verification method according to an embodiment of the present invention will be described in detail.
Since the above-described method is performed by the
First, the
Subsequently, mapping logic is generated by applying the source location identification information and the target location identification information to the migration logic (S120). The
The
Subsequently, the
Specifically, referring to FIG. 4, a verification target data designation result is received from a user using a client terminal (S141). Then, the
One embodiment of the present invention may also be embodied in the form of a recording medium including instructions executable by a computer, such as program modules, being executed by a computer. Computer readable media can be any available media that can be accessed by a computer and includes both volatile and nonvolatile media, removable and non-removable media. In addition, the computer-readable medium may include both computer storage media and communication media. Computer storage media includes both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Communication media typically includes any information delivery media, including computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave, or other transport mechanism.
While the methods and systems of the present invention have been described in connection with specific embodiments, some or all of those elements or operations may be implemented using a computer system having a general purpose hardware architecture.
It will be understood by those skilled in the art that the foregoing description of the present invention is for illustrative purposes only and that those of ordinary skill in the art can readily understand that various changes and modifications may be made without departing from the spirit or essential characteristics of the present invention. will be. It is therefore to be understood that the above-described embodiments are illustrative in all aspects and not restrictive. For example, each component described as a single entity may be distributed and implemented, and components described as being distributed may also be implemented in a combined form.
The scope of the present invention is defined by the appended claims rather than the detailed description and all changes or modifications derived from the meaning and scope of the claims and their equivalents are to be construed as being included within the scope of the present invention do.
100: source server 200: target server
300: data verification device
Claims (16)
(a) extracting source location identification information for data stored in a source server and target location identification information for a location where the data is to be stored in a target server;
(b) identifying an extracted SQL statement and a loaded SQL statement from an escape logic configured with a basic grammar for transferring the data to a target server, and storing the source location identification information and the target location identification Applying the information to generate mapping logic;
(c) verifying the transferred data by comparing the pre-transfer data with the post-transfer data by referring to the mapping logic after the data of the source server is transferred to the target server; And
(d) when receiving an electronic document representing the source location identification information, the target location identification information, and the ebb logic from the user, the previously stored electronic document and the received electronic document are compared with each other to extract change information And modifying the mapping logic based on the change information,
Wherein the change information includes source location identification information, target location identification information, time information, and user information before and after the change.
Wherein the source location identification information and the target location identification information are &
Wherein the name of the table indicating the location where the data is to be stored or stored and the column value in the table.
The mapping logic includes:
An automatically generated SQL statement-based data validation method written in SQL syntax.
The step (c)
Identifies a storage location of data to be extracted by referring to the source location identification information included in the extracted SQL syntax, identifies a storage location where the extracted data is to be loaded with reference to the target location identification information included in the load SQL statement, And transferring the data of the source server to the target server according to conditions included in the conditional statement when the extracted SQL statement includes the conditional statement.
(e) receiving a request for a change log of the mapping logic from the user after the step (d), providing the user with a list in which change items are arranged in chronological order based on the stored change information Further comprising the steps of: a) generating an automatically generated SQL statement based on the generated data;
The step (c)
The method comprising: requesting a user terminal to designate a verification target data; receiving a designation result; and performing verification on the designated data.
The method comprises:
(f) analyzing the verification result of the designated data after the step (c) and providing the analyzed result to the user terminal.
The step (c)
(c-1) extracting data stored in the source server with reference to source location identification information included in the mapping logic, extracting data transferred to the target server by referring to target location identification information included in the mapping logic, ; And
(c-2) comparing the data extracted from the source server with the data extracted from the target server and performing verification by determining whether or not the data matches the data extracted from the target server, wherein the automatically generated SQL statement-based data verification Way.
The step (c)
(c-3) determining whether there is an idle storage space of at least a predetermined size (in bytes) in the server performing the data verification method; And
(c-4) performing verification of the migration end data using the idle storage space each time migration end data is generated after the data migration starts, if it is determined that the idle storage space exists ; And an automatically generated SQL statement-based data verification method.
When a plurality of tables are stored in the source server and a plurality of data is stored for each table,
The step (c-4)
And performing verification of the migration end data on a table-by-table basis every time a table with the migration termination is generated.
The step (c-4)
If the transfer of the data is performed by an external server, checking whether transfer of each table is completed or not by confirming the transfer end status value of each table included in the meta information or log information stored in the external server, And verifying the data in the identified table. ≪ Desc / Clms Page number 21 >
The server for performing the automatically generated SQL statement-
Wherein the third server is a third server physically independent of the target server or the source server and the target server.
A memory for storing a program for performing an automatically generated SQL statement-based data verification method; And
And a processor for executing a program stored in the memory,
Wherein the processor extracts the source location identification information for the data stored in the source server and the target location identification information for the location where the data is to be stored in the target server,
Identifying the extracted SQL statement and the loaded SQL statement from the escape logic configured with a basic grammar for transferring the data to the target server, and storing the source location identification information and the target location identification information in the extracted SQL syntax and the loaded SQL syntax To generate mapping logic,
After the data of the source server is transferred to the target server, verifying the transferred data by comparing the pre-transfer data with the post-transfer data by referring to the mapping logic,
Stored electronic document and the received electronic document when the electronic document indicating the source location identification information, the target location identification information, and the escape logic is received from a user, extracts and stores the change information, Modifying the mapping logic based on the change information,
Wherein the change information includes source location identification information, target location identification information, time information, and user information before and after the change.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR20150167937 | 2015-11-27 | ||
KR1020150167937 | 2015-11-27 |
Publications (1)
Publication Number | Publication Date |
---|---|
KR101737575B1 true KR101737575B1 (en) | 2017-05-29 |
Family
ID=59053549
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020150185130A KR101737575B1 (en) | 2015-11-27 | 2015-12-23 | Method and device for verifying data based on sql sentences generated automatically |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR101737575B1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101975998B1 (en) * | 2018-11-22 | 2019-08-28 | (주)씨앤텍시스템즈 | Apparatus and Method for Data Migration Based on SQL sentences |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101440186B1 (en) | 2012-03-16 | 2014-09-12 | 주식회사 엘지유플러스 | Real Time Data Migration System and Method therefor |
KR101497067B1 (en) * | 2013-11-20 | 2015-03-09 | 대한민국(국가기록원) | Electric document transfer method and apparatus based digital forensic |
-
2015
- 2015-12-23 KR KR1020150185130A patent/KR101737575B1/en active IP Right Grant
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101440186B1 (en) | 2012-03-16 | 2014-09-12 | 주식회사 엘지유플러스 | Real Time Data Migration System and Method therefor |
KR101497067B1 (en) * | 2013-11-20 | 2015-03-09 | 대한민국(국가기록원) | Electric document transfer method and apparatus based digital forensic |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101975998B1 (en) * | 2018-11-22 | 2019-08-28 | (주)씨앤텍시스템즈 | Apparatus and Method for Data Migration Based on SQL sentences |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11922146B2 (en) | Systems and method for creating enterprise software | |
CN110968437A (en) | Method, device, equipment and medium for parallel execution of single contract based on Java intelligent contract | |
CN109284225A (en) | A kind of quality determining method and electronic equipment of multi-person synergy exploitation programming code | |
CN109032631A (en) | Application program service packs acquisition methods, device, computer equipment and storage medium | |
US11914574B2 (en) | Generation of inconsistent testing data | |
US9513997B2 (en) | Test data management | |
CN106445815A (en) | Automated testing method and device | |
KR101737578B1 (en) | Method and device for automatically tuning for sql sentences generated automatically | |
US20210026756A1 (en) | Deriving software application dependency trees for white-box testing | |
CN111143434A (en) | Intelligent data checking method, device, equipment and storage medium | |
US10656922B2 (en) | Systems and methods for providing an application transformation tool | |
CN104363112A (en) | Parameter management method and parameter management device | |
CN114116505A (en) | Code testing method and device | |
KR101737575B1 (en) | Method and device for verifying data based on sql sentences generated automatically | |
CN114138577B (en) | TPC-H test method and device, computer equipment and storage medium | |
CN113672233B (en) | Server out-of-band management method, device and equipment based on Redfish | |
KR101737576B1 (en) | Method and device for transmitting data based on sql sentences generated automatically | |
US11392371B2 (en) | Identification of a partial code to be refactored within a source code | |
CN108241607A (en) | Automatically imported method, server and the storage medium of test of heuristics case | |
CN112181407B (en) | Service realization processing method, device, system, electronic equipment and storage medium | |
CN114511314A (en) | Payment account management method and device, computer equipment and storage medium | |
US9508062B2 (en) | Problem management record profiling | |
CN111767222A (en) | Data model verification method and device, electronic equipment and storage medium | |
US8321844B2 (en) | Providing registration of a communication | |
CN112817931A (en) | Method and device for generating incremental version file |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant |