KR101737576B1 - Method and device for transmitting data based on sql sentences generated automatically - Google Patents
Method and device for transmitting data based on sql sentences generated automatically Download PDFInfo
- Publication number
- KR101737576B1 KR101737576B1 KR1020150185160A KR20150185160A KR101737576B1 KR 101737576 B1 KR101737576 B1 KR 101737576B1 KR 1020150185160 A KR1020150185160 A KR 1020150185160A KR 20150185160 A KR20150185160 A KR 20150185160A KR 101737576 B1 KR101737576 B1 KR 101737576B1
- Authority
- KR
- South Korea
- Prior art keywords
- data
- server
- identification information
- location identification
- source
- Prior art date
Links
Images
Classifications
-
- G06F17/303—
-
- G06F17/271—
-
- G06F17/30289—
-
- G06F17/30339—
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
An automatically generated Structured Query Language (SQL) syntax-based data migration method according to an embodiment of the present invention includes: (a) source location identification information for data stored in a source server; Extracting target location identification information; (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) directing the data to be migrated to the target server according to the mapping logic.
Description
More particularly, the present invention relates to a method and an apparatus for data transfer based on automatically generated SQL statements in order to increase efficiency and reduce labor costs in data transfer 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, in the case of a conventional tool for performing data migration based on a mapping logic created manually, it is necessary to manually register a table value for data stored in a source server and to connect to a table of a target server. Which is very inefficient and requires a long development period.
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 provide a data transfer method and data transfer method for automating data transfer by automatically generating an SQL statement for data transfer, In order to solve the problem.
According to an aspect of the present invention, there is provided an automatic generated Structured Query Language (SQL) syntax-based data migration method according to an embodiment of the present invention includes: (a) 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) directing the data to be migrated to the target server according to the mapping logic.
According to another embodiment of the present invention, an automatically generated SQL (Structured Query Language) syntax based data eviction apparatus includes a memory for storing a program for performing an automatically generated SQL syntax based data eviction method; 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, And directs the data to be transferred to the target server.
The present invention automates SQL syntax generation and data migration operations required to transfer data from a source server to a target server, thereby improving problems caused by manual work by a worker, thereby increasing efficiency and reducing labor costs. Can be achieved. In addition, in the case of data escape technology, the development cost and the development period can be drastically reduced considering that about 60% or more of the data is transferred from the source server to the target server at a ratio of 1: 1.
1 is a structural diagram of a system according to an embodiment of the present invention.
2 is a block diagram of the components of an automatically generated SQL statement-based data transfer device in accordance with an embodiment of the present invention.
FIGS. 3A and 3B are diagrams for explaining a type of an automatically generated SQL statement-based data transfer method according to an embodiment of the present invention.
FIG. 4 is a flow chart for explaining an automatic generated SQL statement-based data transfer method according to an embodiment of the present invention.
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 transfer work will be referred to as "
Information stored in the
Hereinafter, the construction and operation of the automatically generated SQL statement-based
The
The data location identification information extraction unit 310 extracts the source location identification information for the data stored in the
The automatic SQL
Specifically, the SQL syntax
The automatic SQL
On the other hand, if the mapping logic based on the generated SQL statement violates standard SQL, it may provide a warning or re-input request notification 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
Here, the
First, when an Open Data Base Connectivity (ODBC) connection is allowed between the
2, when an Open Data Base Connectivity (ODBC) connection is not allowed between the
3B, the
At this time, the 'preset format' may be a format different from the format of the data stored in the
On the other hand, the
Also, the
Hereinafter, an automatically generated SQL statement-based data transfer method according to an embodiment of the present invention will be described in detail with reference to FIG.
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
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 transfer device
Claims (15)
(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) directing the data to be migrated to the target server according to the mapping logic; 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 &
A name of a table indicating a location where each data is stored or to be stored, and a column value in the table.
The mapping logic includes:
An automatically generated SQL statement-based data transfer 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 a condition included in the conditional statement when the extracted SQL statement includes a 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: < RTI ID = 0.0 > a < / RTI >
The step (c)
And loading the data stored in the source server on the target server based on the mapping logic according to an Open Data Base Connectivity (ODBC) standard defined between the source server and the target server. Based data transfer method.
The method comprises:
(f) if an Open Data Base Connectivity (ODBC) connection is not allowed between the source server and the target server before the step (a), the data stored in the source server and the source location identification information are stored in advance in the target server Further comprising the step of instructing the destination server to transmit data and source location identification information of the source server to be stored in a file of a predetermined format,
The step (a)
Extracting the source location identification information from a file transmitted to the target server and extracting the target location identification information stored in the target server,
The step (c)
And loading the data contained in the file stored in the target server at a location corresponding to the target location identification information according to the mapping logic.
Wherein the predetermined format includes:
Wherein the format of the data stored in the source server is different from the format of the data stored in the source server.
The step (f)
(f-1) storing the data stored in the source server and the source location identification information in a file of a predetermined format in the source server, and then transmitting the file to the target server; or
(f-2) transmitting the data stored in the source server and the source location identification information to the target server when the source server has the access right to the target server, The method comprising the steps of: storing the data in a database;
Wherein the step (f-1)
And sending the file to the target server in an FTP (File Transfer Protocol) manner.
The server for performing the automatically generated SQL statement-based data transfer method comprises:
Wherein the third server is the target server or a third server physically independent of the source server and the target server.
A memory for storing a program for performing an automatically generated SQL statement-based data migration 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,
Extracting from the escape logic configured with a basic grammar for transferring the data to the target server, extracting SQL: syntax and a loaded SQL statement, and adding the source location identification information and the target location identification information to the extracted SQL syntax and the loading SQL syntax, To generate the mapping logic,
Command to transfer the data to the target server according 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 |
---|---|---|---|
KR20150167942 | 2015-11-27 | ||
KR1020150167942 | 2015-11-27 |
Publications (1)
Publication Number | Publication Date |
---|---|
KR101737576B1 true KR101737576B1 (en) | 2017-05-29 |
Family
ID=59053242
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020150185160A KR101737576B1 (en) | 2015-11-27 | 2015-12-23 | Method and device for transmitting data based on sql sentences generated automatically |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR101737576B1 (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 (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007108952A (en) | 2005-10-12 | 2007-04-26 | Vision Arts Kk | Content movement system and content movement program |
-
2015
- 2015-12-23 KR KR1020150185160A patent/KR101737576B1/en active IP Right Grant
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007108952A (en) | 2005-10-12 | 2007-04-26 | Vision Arts Kk | Content movement system and content movement program |
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 |
---|---|---|
US9552214B2 (en) | Tool for automated extraction and loading of configuration settings | |
US20200356624A1 (en) | Collaborative document editing system and method | |
US8630969B2 (en) | Systems and methods for implementing business rules designed with cloud computing | |
US11922146B2 (en) | Systems and method for creating enterprise software | |
CN104102489A (en) | Third-party database APP (Application) construction system and construction method | |
US10922307B2 (en) | Automated transaction engine | |
KR101737578B1 (en) | Method and device for automatically tuning for sql sentences generated automatically | |
CN109062925A (en) | Automatically generate the method, apparatus, computer equipment and storage medium of insert sentence | |
CN112181854B (en) | Method, device, equipment and storage medium for generating process automation script | |
CN109032631A (en) | Application program service packs acquisition methods, device, computer equipment and storage medium | |
CN109598427B (en) | Robot management method and device and electronic equipment | |
CN106021566A (en) | Method, device and system for improving concurrent processing capacity of single database | |
CN112486946A (en) | Version confirmation method, version confirmation system, electronic equipment and storage medium | |
CN112363938A (en) | Data processing method and device, electronic equipment and storage medium | |
CN111143434A (en) | Intelligent data checking method, device, equipment and storage medium | |
KR101737576B1 (en) | Method and device for transmitting data based on sql sentences generated automatically | |
CN117130941A (en) | Interface automation method, system, equipment and medium based on browser plug-in | |
CN117271584A (en) | Data processing method and device, computer readable storage medium and electronic equipment | |
CN116841653A (en) | Execution method and device of operation and maintenance job, processor and electronic equipment | |
KR101737575B1 (en) | Method and device for verifying data based on sql sentences generated automatically | |
CN115599361A (en) | Software development method, device, equipment and medium | |
CN112181407B (en) | Service realization processing method, device, system, electronic equipment and storage medium | |
CN113568869A (en) | File management method, management platform and computer readable storage medium | |
CN112887352A (en) | Image file uploading method and device for Docker container | |
CN106301819B (en) | Parameter checking method and checking system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant |