Method and device for performing change data capture in database management system

By categorizing transactions as normal or express based on size and using appropriate communication sessions, the method efficiently reflects transactions in the target database, addressing the inefficiency of existing systems in handling large transactions.

WO2024190986A1PCT designated stage expired Publication Date: 2024-09-19SILCROAD SOFT INC
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/KR2023/015291
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-14
Filing Date
2023-10-05
Publication Date
2024-09-19

AI Technical Summary

Technical Problem

Existing change data capture methods in database management systems take a long time to reflect large transactions in the target database, as they only reflect transactions after a commit transaction is extracted, leading to inefficiencies in data replication.

Method used

A method that determines the type of transaction based on its size, with smaller transactions (normal) loaded into memory and reflected through a normal session, and larger transactions (express) stored in a file and reflected through an express-only session, allowing for real-time reflection regardless of commit transactions.

Benefits of technology

This approach significantly reduces the time it takes to reflect large transactions in the target database by utilizing separate communication sessions for normal and express transactions, improving data replication efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure KR2023015291_19092024_PF_FP_ABST
    Figure KR2023015291_19092024_PF_FP_ABST
Patent Text Reader

Abstract

A method by which a computing device performs change data capture, according to one embodiment of the present disclosure, comprises the steps of: acquiring change data from at least one redo log of a source database; generating a transaction on the basis of the change data; determining the type of transaction on the basis of the size of the transaction; and reflecting the transaction in a target database on the basis of the type of transaction, wherein the ways by which the transaction is reflected in the target database can differ according to the type of transaction.
Need to check novelty before this filing date? Find Prior Art

Description

Method and device for performing change data capture in a database management system

[0001] The present invention relates to a database management system (DBMS), and more particularly, to change data capture (CDC).

[0002] Corporate businesses are rapidly expanding due to the explosive growth of data and the emergence of diverse environments and platforms. With the advent of this new business environment, there is a growing need for more efficient and flexible data services, information processing, and data management capabilities. To accommodate these changes, research is ongoing on databases to address the high performance, high availability, and scalability that underpin corporate business implementation.

[0003] Data managed within an enterprise often needs to be migrated or replicated from a source location to a target location for management. For example, a database system for implementing banking operations can be categorized into a database accessible simultaneously by multiple external customers and a database accessible only to internal employees, depending on the characteristics of the accessing clients. A solution that transfers change data from a source database system to a target database system is called change data capture (CDC). Change data capture can be implemented, for example, by reading and interpreting log files from the source database system and replaying the change data from the source database system to the target database system.

[0004] However, existing change data capture can only reflect transactions to the target database when a commit transaction is extracted. Therefore, large transactions can take a relatively long time to be reflected in the target database. To address this issue, research is needed to reduce the time required for large transactions to be reflected in the target database. In this regard, Korean Patent No. 10-1888131 (registered on August 7, 2018) has been published.

[0005] In response to the aforementioned background technology of the present disclosure, a method and device according to one embodiment of the present disclosure can efficiently implement change data capture for large-capacity transactions.

[0006] The technical problems of the present disclosure are not limited to the technical problems mentioned above, and other technical problems not mentioned will be clearly understood by those skilled in the art from the description below.

[0007] According to one embodiment of the present disclosure for solving the above-described problem, a method for performing change data capture in a computing device includes: obtaining change data from at least one redo log of a source database; generating a transaction based on the change data; determining a type of the transaction based on a size of the transaction; and reflecting the transaction to a target database based on the type of the transaction; wherein a method for reflecting the transaction to the target database may differ depending on the type of the transaction.

[0008] Alternatively, the method by which the transaction is reflected in the target database may include the storage location of the transaction stored in the process of reflecting the transaction in the target database; the method of processing the rollback when a rollback of the transaction occurs; and the type of communication session used in the process of reflecting the transaction in the target database.

[0009] Alternatively, the step of generating the transaction based on the change data may include the step of generating the transaction through hashing of a transaction ID included in the change data.

[0010] Alternatively, the step of determining the type of the transaction based on the size of the transaction may include: determining the type of the transaction as normal if the size of the transaction is less than a predetermined threshold; and determining the type of the transaction as express if the size of the transaction is greater than or equal to the predetermined threshold.

[0011] Alternatively, the predetermined threshold value may correspond to the capacity of the memory of the computing device.

[0012] Alternatively, the step of reflecting the transaction to the target database based on the type of the transaction may include: when the type of the transaction is determined to be normal, loading the transaction into the memory of the computing device; and when a first commit transaction related to the commit of the transaction is loaded into the memory, reflecting the transaction loaded into the memory into the target database through a normal session.

[0013] Alternatively, the method may further include, after the step of loading the transaction into the memory of the computing device, a step of obtaining a rollback transaction requesting a rollback of the transaction; and a step of removing the transaction from the memory of the computing device based on the rollback transaction before reflecting the transaction in the target database.

[0014] Alternatively, the step of reflecting the transaction to the target database based on the type of the transaction may include, when the type of the transaction is determined to be the express, the step of storing the transaction in a file format in a permanent storage medium; the step of reflecting the transaction stored in the file format in the permanent storage medium to the target database through at least one express-only session that is a separate session rather than a normal session; and the step of completing reflection of the transaction when a second commit transaction related to the commit of the transaction is loaded into the memory of the computing device.

[0015] Alternatively, the method may further include a step of reflecting, in the target database, transactions determined as express, which are generated in excess of the number of at least one express-only session, in a manner corresponding to the manner in which transactions determined as normal are reflected in the target database.

[0016] Alternatively, if processing of an existing transaction is completed in at least one express-only session, the method may further include a step of reflecting a transaction determined as express generated in excess of the number of express-only sessions to the target database through the express-only session in which processing of the existing transaction is completed.

[0017] Alternatively, the method may further include, after the step of reflecting the transaction to the target database, the step of obtaining a rollback transaction requesting a rollback for the transaction; the step of removing the transaction reflected in the target database from the target database through at least one express-only session based on the rollback transaction, thereby rolling back the target database; the step of removing at least one first sub-transaction corresponding to the rollback transaction from among a plurality of sub-transactions included in the transaction; and the step of loading a second sub-transaction, which is a sub-transaction remaining from among the plurality of sub-transactions except for the at least one first sub-transaction, into a memory of the computing device; and, if a second commit transaction related to a commit of the transaction is loaded into the memory of the computing device, the step of completing the reflection of the transaction may include, if a third commit transaction related to a commit of the second sub-transaction is loaded into the memory of the computing device, the step of reflecting the second sub-transaction loaded into the memory to the target database through a normal session.

[0018] Alternatively, a computer program stored in a computer-readable storage medium, the computer program including instructions for causing a processor of a computing device for performing change data capture to perform the following steps, the steps including: obtaining change data from at least one redo log of a source database; generating a transaction based on the change data; determining a type of the transaction based on a size of the transaction; and reflecting the transaction to a target database based on the type of the transaction; wherein a method of reflecting the transaction to the target database may differ depending on the type of the transaction.

[0019] Alternatively, a computing device for performing change data capture comprises: a processor including at least one core; a memory storing a computer program executable by the processor; and a network unit; wherein the processor obtains change data from at least one redo log of a source database, creates a transaction based on the change data, determines a type of the transaction based on a size of the transaction, and reflects the transaction to a target database based on the type of the transaction, and a method in which the transaction is reflected to the target database may differ depending on the type of the transaction.

[0020] A method and device according to one embodiment of the present disclosure can efficiently implement change data capture for large-volume transactions.

[0021] The effects that can be obtained from the present disclosure are not limited to the effects mentioned above, and other effects that are not mentioned will be clearly understood by a person having ordinary skill in the art to which the present disclosure pertains from the description below.

[0022] Various aspects are now described with reference to the drawings, wherein like reference numerals are used to refer to similar components. In the following examples, for purposes of explanation, numerous specific details are set forth to provide a comprehensive understanding of one or more aspects. However, it will be apparent that such aspects may be practiced without these specific details.

[0023] FIG. 1 illustrates an example of a database system according to one embodiment of the present disclosure.

[0024] FIG. 2 illustrates a source database server and a target database server in a database system according to one embodiment of the present disclosure.

[0025] FIG. 3 is a flowchart exemplarily illustrating a method of change data capture performed in a source database server (or agent server) according to one embodiment of the present disclosure.

[0026] FIG. 4a schematically illustrates operations of change data capture performed in a database system according to one embodiment of the present disclosure.

[0027] FIG. 4b schematically illustrates operations of change data capture performed in a database system according to another embodiment of the present disclosure.

[0028] FIG. 5 illustrates a block diagram of an exemplary computing device for performing change data capture according to one embodiment of the present disclosure.

[0029] Various embodiments and / or aspects are now disclosed with reference to the drawings. In the following description, for purposes of explanation, numerous specific details are set forth to provide a thorough understanding of one or more aspects. However, it will be apparent to one skilled in the art that such aspects may be practiced without these specific details. The following description and the accompanying drawings detail specific exemplary aspects of one or more aspects. However, these aspects are exemplary, and it is to be understood that any of the various methods within the principles of the various aspects may be utilized, and the description is intended to encompass all such aspects and their equivalents.

[0030] Additionally, various aspects and features will be presented by systems that may include a number of devices, components, and / or modules. It is also to be understood and appreciated that various systems may include additional devices, components, and / or modules, and / or may not include all of the devices, components, and modules discussed in connection with the drawings.

[0031] The terms "embodiment," "example," "aspect," and "example" used in this disclosure may not be construed as implying that any aspect or design described is better or advantageous than other aspects or designs. The terms "component," "module," "system," and "interface," as used below, generally refer to computer-related entities, and may refer to, for example, hardware, a combination of hardware and software, and software.

[0032] Furthermore, the term "or" is intended to mean an inclusive "or" rather than an exclusive "or." That is, unless otherwise specified or clear from context, "X employs A or B" is intended to mean either of the natural inclusive permutations. That is, if X employs A; X employs B; or X employs both A and B, "X employs A or B" can apply to any of these cases. Furthermore, the term "and / or" as used herein should be understood to refer to and include all possible combinations of one or more of the associated items listed.

[0033] Additionally, it should be understood that the terms "comprises" and / or "comprising" imply the presence of a given feature and / or component, but do not preclude the presence or addition of one or more other features, components, and / or groups thereof. Furthermore, unless otherwise specified or clear from context to refer to the singular form, the singular form in the specification and claims should generally be construed to mean "one or more."

[0034] The computer-readable medium in the present disclosure may include any type of storage medium that stores programs and data so that they can be read by a computer system. According to one embodiment of the present invention, such media may include Read Only Memory (ROM), Random Access Memory (RAM), Compact Disc (CD)-ROM, Digital Video Disc (DVD)-ROM, magnetic tape, floppy disk, optical data storage, etc. Additionally, such media may be distributed over a network-connected system to store computer-readable codes and / or instructions in a distributed manner.

[0035] Before describing the specific details for implementing the present disclosure, it should be noted that components not directly related to the technical spirit of the present disclosure have been omitted to the extent that they do not obscure the technical spirit of the present disclosure. Furthermore, terms or words used in this specification and claims should be interpreted with meanings and concepts consistent with the technical spirit of the present disclosure, based on the principle that inventors can define appropriate terminological concepts to best describe their inventions.

[0036] FIG. 1 illustrates an example of a database system according to one embodiment of the present disclosure.

[0037] As illustrated in FIG. 1, the database system (100) may include at least one of a source database server (110), a target database server (120), and / or an agent server (130).

[0038] Although not illustrated in FIG. 1, the database system (100) may further include a client. A client may refer to any type of node(s) in the system that has a mechanism for communicating with database servers. For example, such a client may include a personal computer, a laptop computer, a workstation, a terminal, and / or any electronic device with network connectivity. Additionally, a client may include any server implemented by at least one of an agent, an Application Programming Interface (API), and a plug-in.

[0039] In one embodiment of the present disclosure, the following operations of the source database server (110), the target database server (120), and / or the agent server (130) may be performed according to a query issued from a client.

[0040] The database servers (110 and 120) may include any type of computer system or computing device (computer device), such as, for example, a microprocessor, a mainframe computer, a digital single processor, a portable device, and a device controller. Each of these database servers (110 and 120) may include a database management system (DBMS) and / or persistent storage, although not shown.

[0041] The source database server (110) and target database server (120) in the present disclosure may refer to any type of node in the database system (100). As a further embodiment, the source database server (110) and target database server (120) may be integrated into a single database server and managed and / or clustered. The source database server (110) and target database server (120) may be integrated into a single database server to form multiple databases that are linked to each other.

[0042] In one embodiment of the present disclosure, the source database server (110) and the target database server (120) may refer to heterogeneous database servers located remotely from each other. Furthermore, while FIG. 1 illustrates two database servers, more database servers may also be included within the scope of the present disclosure.

[0043] Although not illustrated in FIG. 1, the database servers (110 and 120) may include one or more memories including a buffer cache. Furthermore, although not illustrated in FIG. 1, the database servers (110 and 120) may include one or more processors. Accordingly, the DBMS within the database server may be operated by the processors on the memory.

[0044] Here, memory may refer to a volatile storage device, such as a random access memory (RAM) such as dynamic random access memory (DRAM) or static random access memory (SRAM), that is directly accessed by the processor, and in which stored information is instantly erased when the power is turned off, but is not limited thereto. Such memory may be operated by the processor. The memory may store a data table containing data values ​​and / or log records according to a transaction. For example, the log records may be stored in a separate component in charge of storing a separate transaction log in the memory. A transaction in the present disclosure may typically refer to a continuous processing unit for a series of tasks such as information exchange or database update. Such a transaction represents a basic unit of work for completing a requested task while ensuring the integrity of the database.

[0045] In the present disclosure, a log record refers to a record for a redo log, and may include a data record that can identify changes to the structure and organization of data within a database (e.g., changes related to tables, columns, rows, data types, indexes, etc.). The redo log may refer to information for uniquely identifying a transaction or operation and / or information for identifying a data record changed according to a transaction or operation.

[0046] In one embodiment of the present disclosure, data values ​​and / or log records of a data table may be written from memory to a persistent storage medium. In a further aspect, the memory includes a buffer cache, and blocks of the buffer cache may store such data and / or log records. The data and / or log records may be written to the persistent storage medium by a background process.

[0047] Persistent storage media within the database server refer to non-volatile storage media capable of persistently storing arbitrary data, such as magnetic disks, optical disks, and magneto-optical storage devices, as well as storage devices based on flash memory and / or battery-backed memory. Such persistent storage media may communicate with the processors and memories of the database servers (110 and 120) via various communication means. In additional embodiments, such persistent storage media may be located external to the database servers (110 and 120) and may be capable of communicating with the database servers (110 and 120).

[0048] The DBMS is a program that allows the database server (110 and 120) to perform operations such as searching, inserting, modifying, deleting, and / or managing log records for necessary data, and as described above, can be implemented by a processor in the memory of the database server (110 and 120).

[0049] The client and database servers (110 and 120) or the database servers (110 and 120) can communicate with each other via a network (not shown). The network according to one embodiment of the present disclosure can be configured regardless of the communication mode, such as wired or wireless, and can be configured as various communication networks, such as a personal area network (PAN) and a wide area network (WAN). In addition, the network can operate based on the World Wide Web (WWW), and can also utilize a wireless transmission technology used for short-distance communication, such as infrared (IrDA) or Bluetooth.

[0050] As a further embodiment, the network of the present disclosure may include a database link (dblink), whereby the database servers (110, 120) may communicate with each other via this database link to retrieve data / log records from this or other database servers. The techniques described in the present disclosure may be used in other networks as well as the networks mentioned above.

[0051] As illustrated in FIG. 1, the source database server (110) may be located remotely from the target database server (120). In addition, the source database server (110) and the target database server (120) may be servers of the same type or may be heterogeneous database servers that are not compatible with each other.

[0052] Additionally, the source database server (110) may include, but is not limited to, a device including a processor and memory for executing and storing commands as any type of database. That is, the source database may include software, firmware, and hardware, or a combination thereof. The software may include application(s) for creating, deleting, and modifying database tables, schemas, indexes, and / or data. The source database server (110) may receive transactions from clients or other computing devices, and exemplary transactions may include retrieving, adding, modifying, and / or deleting data, tables, and / or indexes in the source database server (110). The source database server (110) may include a source database.

[0053] The target database server (120) refers to a database server to which data changes occurring in the source database server (110) are replicated or synchronized, and may include at least some of the characteristics of the source database server (110) described above. For example, the target database server (120) may store copies of data, data types, tables, indexes, and / or log records of the source database server (110). The target database server (120) may include a target database.

[0054] A log record in the present disclosure may refer to a data record that can identify changes to the structure or organization of data within a database and / or changes related to tables, columns, data types, indexes, data, etc. Such a log record may refer to information for uniquely identifying a transaction or operation and / or information for identifying a data record that has been changed according to the transaction or operation.

[0055] In one embodiment of the present disclosure, the agent server (130) may refer to a separate entity for implementing change data capture (CDC) between the source database server (110) and the target database server (120). Accordingly, the agent server (130) may perform any operations for implementing change data capture. For example, the agent server (130) may receive and process data from the source database server (110) in the present disclosure, and then transmit the data to the target database server (120), thereby allowing the change data to be applied at the target database server (120).

[0056] The agent server (130) may be any type of server, including but not limited to a device comprising a processor and memory for executing and storing commands. The agent server (130) may also include software, firmware, and hardware, or a combination thereof. For example, software implementing the operations of the agent server (130) may be installed in the source database (110) and / or the target database (120). For example, the agent server (130) may operate as any type of change data capture module. In this example, the change data capture module may be installed in the source database server (120) and / or the target database server (130) to allow change data capture to be implemented between the source database server (120) and the target database server (130).

[0057] The functions of the agent server (130) illustrated in FIG. 1 may be partially integrated into the source database server (110) and / or the target database server (120). For example, the change data capture function of the agent server (130) may be replaced by the target database server (120).

[0058] FIG. 2 illustrates a source database server (110) and a target database server (120) in a database system (100) according to one embodiment of the present disclosure.

[0059] The components of the database servers (110 and 120) illustrated in FIG. 2 are exemplary, and additional components may exist, or some of the components may be omitted or integrated.

[0060] As illustrated in FIG. 2, the source database server (110) may include an extraction module (210), a recording module (220), a reading module (230), a transmission / reception module (240), and a storage module (250). The aforementioned modules may represent a collection of functions performed by one or more processors of the source database server (110). Additionally, the operations and functions performed by the aforementioned modules may be performed by one or more threads or processes.

[0061] The extraction module (210) can obtain log records containing information about transactions processed in the source database server (110). The extraction module (210) can receive redo logs from the source database server (110) or access the redo logs of the source database server (110). When changes occur to data, tables, and / or indexes in the source database server (110) according to a transaction initiated by a client, log records for the corresponding transactions can be recorded in the source database server (110). In this case, the extraction module (210) can obtain log records for changed data by checking and analyzing the redo logs for the transactions recorded in the log buffer and / or log files in the source database server (110). In this case, the extraction module (210) can extract only changed data by analyzing the redo logs. The extraction module (210) can analyze the extracted log records based on one or more rules or on any type of deep learning algorithm. The extraction module (210) can obtain change data from at least one redo log of the source database of the source database server (110).

[0062] The log module (220) can sort log records based on the order in which they were generated. For example, the log module (220) can sort log records based on the System Change Number (SCN). That is, the log module (220) can sort log records of the source database server (110) chronologically. Accordingly, log records with an earlier SCN can be recorded before log records with a later SCN.

[0063] The reading module (230) may transmit the read transaction or information recorded in the transaction to the transmission / reception module (240) to allow the transaction to be transmitted to the target database server. The reading module (230) may also convert the transaction or information recorded in the transaction into a format suitable for the target database server (120). The reading module (230) may generate a transaction based on the change data. For example, the reading module (230) may generate a transaction by hashing the transaction ID included in the change data.

[0064] The reading module (230) can determine the type of transaction based on the change data. For example, if the size of the transaction is less than a predetermined threshold, the reading module (230) can determine the type of the transaction as normal. If the size of the transaction is greater than or equal to a predetermined threshold, the reading module (230) can determine the type of the transaction as express. The predetermined threshold may correspond to the memory capacity of a computing device (e.g., a source database server (110), a target database server (120), an agent server (130), etc.).

[0065] If the transaction type is determined to be normal, the reading module (230) can load the transaction into the memory of the computing device. If the first commit transaction related to the transaction's commit is loaded into the memory, the reading module (230) can reflect the transaction loaded into the memory to the target database through a normal session.

[0066] After loading a transaction into the memory of a computing device, the reading module (230) may obtain a rollback transaction requesting a rollback of the transaction. Based on the rollback transaction, the reading module (230) may remove the transaction from the memory of the computing device before reflecting the transaction in the target database.

[0067] If the transaction type is determined to be Express, the reading module (230) can store the transaction in file form on a permanent storage medium. The reading module (230) can reflect the transaction stored in file form on the permanent storage medium to the target database through at least one Express-only session, which is a separate session rather than a normal session. The reading module (230) can complete the reflection of the transaction when a second commit transaction related to the transaction's commit is loaded into the memory of the computing device.

[0068] The reading module (230) can reflect transactions determined as express generated in excess of the number of at least one express-only session to the target database in a manner corresponding to the manner in which transactions determined as normal are reflected to the target database.

[0069] The reading module (230) can reflect transactions determined as Express generated in excess of the number of Express-only sessions, when processing of existing transactions is completed in at least one Express-only session, to the target database through the Express-only session in which processing of existing transactions is completed.

[0070] The reading module (230) can obtain a rollback transaction requesting a rollback of the transaction after the step of reflecting the transaction to the target database. The reading module (230) can roll back the target database by removing the transaction reflected in the target database through at least one express-only session based on the rollback transaction. For example, the reading module (230) can request the target database server (120) to remove the transaction from the target database through the transmission / reception module (240). The target database server (120) can receive the request for removal of the transaction through the transmission / reception module (310). The target database server (120) can remove the corresponding transaction from the target database according to the request for removal of the transaction.

[0071] The reading module (230) can remove at least one first sub-transaction corresponding to the rollback transaction among the multiple sub-transactions included in the transaction.

[0072] The reading module (230) can load the second sub-transaction, which is the remaining sub-transactions excluding at least one first sub-transaction among the plurality of sub-transactions, into the memory of the computing device.

[0073] When a third commit transaction related to the commit of a second sub-transaction is loaded into the memory of a computing device, the reading module (230) can reflect the second sub-transaction loaded into the memory to the target database through a normal session. When a second commit transaction related to the commit of a transaction is loaded into the memory of a computing device, the reading module (230) can perform the above-described process in the step of completing the reflection of the transaction.

[0074] The reading module (230) can transmit the read transaction or information recorded in the transaction to the transmission / reception module (240) to reflect the transaction in the target database based on the type of transaction.

[0075] Depending on the transaction type, the method by which a transaction is reflected in the target database may vary. This method may include the storage location of the transaction during the transaction reflection process, the method by which the transaction is processed if a rollback occurs, and / or the type of communication session used during the transaction reflection process.

[0076]

[0077] The transmission / reception module (240) may provide communication functions between the database servers (110 and 120) and / or communication functions with clients. For example, if the transmission / reception module (240) is located outside the source database server (110), it may receive extracted log records from the source database server (110). The transmission / reception module (240) may allow communication between the database servers (110 and 120) using any network and / or database link. The transmission / reception module (240) may receive input from clients. For example, the transmission / reception module (240) may receive requests related to data storage, modification, and retrieval, and index building, modification, and retrieval from clients. Additionally, the transmission / reception module (240) may allow information transfer between the database servers by invoking a procedure on the database server. Additionally, the transmission / reception module (240) may provide a function for transmitting and receiving arbitrary data / information transmitted between database servers in relation to database replication.

[0078] The transmission / reception module (240) can transmit the received transaction or information recorded in the transaction to the target database server (120). The transmission / reception module (240) can also convert the transaction or information recorded in the transaction into a format suitable for the target database server (120) and transmit the converted format to the target database server (120).

[0079] The transmission / reception module (240) may include a normal session and / or at least one express-only session. The transmission / reception module (240) may transmit a transaction determined as normal to the target database server (120) through the normal session. The transmission / reception module (240) may transmit a transaction determined as express to the target database server (120) through the express-only session. If a transaction determined as express is rolled back, the transmission / reception module (240) may clean up the express-only session to which the transaction determined as express is transmitted. The transmission / reception module (240) may transmit the remaining second sub-transactions, excluding the first sub-transaction that is rolled back from the transaction determined as express, to the target database server (120) through the normal session.

[0080] The storage module (250) may store any data associated with performing change data capture according to embodiments of the present disclosure, such as storing extracted log records. The storage module (250) may be included in a DBMS and / or a persistent storage medium. Additionally, the storage module (250) may perform storage related to update requests. The storage module (250) may determine whether to store data tables, index tables, etc. The storage module (250) may also determine a storage location on the data table and a storage location on the persistent storage medium for the data.

[0081] As illustrated in FIG. 2, the target database server (120) may include a transmission / reception module (310), a recording module (320), a reading module (330), a change and reflection module (340), and a storage module (350).

[0082] The transmission / reception module (310) can receive a transaction or information stored in a transaction from the source database server (110) or agent server (130). The transmission / reception module (310) can provide the same type of communication function as the transmission / reception module (240) of the source database server (110) described above.

[0083] The recording module (320) can record a transaction received from the source database server (110) or information stored in the transaction in the transaction of the target database server (120). For example, the recording module (320) can decide to use the same file as the transaction received from the source database server (110). In another example, the recording module (320) can record the same information about the transaction in the transaction. In a further embodiment, when the transaction received from the source database server (110) is used as is, the recording module (320) in the target database server (120) can be replaced with the transmission / reception module (310).

[0084] The reading module (330) can read transactions existing in the target database server (120). The reading module (330) can transmit the read transactions to the change and reflection module (340). The reading module (330) can also modify the transactions to conform to the format of the target database server (120) and transmit them to the change and reflection module (340). The reading module (330) can read transactions in the order recorded by the source database server (110).

[0085] In one embodiment according to the present disclosure, the reading module (330) may correspondingly perform a process performed in the reading module (230) of the database server (110). For example, the reading module (330) may determine the type of transaction based on the change data. For example, if the size of the transaction is less than a predetermined threshold, the reading module (330) may determine the type of transaction as normal. If the size of the transaction is greater than or equal to the predetermined threshold, the reading module (330) may determine the type of transaction as express. The predetermined threshold may correspond to the memory capacity of a computing device (e.g., a source database server (110), a target database server (120), an agent server (130), etc.).

[0086] If the transaction type is determined to be normal, the reading module (330) can load the transaction into the memory of the computing device. If the first commit transaction related to the transaction's commit is loaded into the memory, the reading module (330) can reflect the transaction loaded into the memory to the target database through a normal session.

[0087] After loading a transaction into the memory of a computing device, the reading module (330) may obtain a rollback transaction requesting a rollback of the transaction. Based on the rollback transaction, the reading module (330) may remove the transaction from the memory of the computing device before reflecting the transaction in the target database.

[0088] If the transaction type is determined to be Express, the reading module (330) can store the transaction in file form on a permanent storage medium. The reading module (330) can reflect the transaction stored in file form on the permanent storage medium to the target database through at least one Express-only session, which is a separate session from the normal session. The reading module (330) can complete the reflection of the transaction when a second commit transaction related to the transaction's commit is loaded into the memory of the computing device.

[0089] The reading module (330) can reflect transactions determined as express generated in excess of the number of at least one express-only session to the target database in a manner corresponding to the manner in which transactions determined as normal are reflected to the target database.

[0090] The reading module (330) can reflect transactions determined as Express generated in excess of the number of Express-only sessions, when processing of existing transactions is completed in at least one Express-only session, to the target database through the Express-only session in which processing of existing transactions is completed.

[0091] After reflecting a transaction to the target database, the reading module (330) can obtain a rollback transaction requesting a rollback of the transaction. Based on the rollback transaction, the reading module (330) can roll back the target database by removing the transaction reflected to the target database through at least one express-only session. For example, the reading module (330) can request the removal of a transaction from the target database. The target database server (120) can remove the corresponding transaction from the target database in response to the request for removal of the transaction.

[0092] The reading module (330) can remove at least one first sub-transaction corresponding to the rollback transaction among the multiple sub-transactions included in the transaction.

[0093] The reading module (330) can load the second sub-transaction, which is the remaining sub-transactions excluding at least one first sub-transaction among the plurality of sub-transactions, into the memory of the computing device.

[0094] When a third commit transaction related to the commit of a second sub-transaction is loaded into the memory of a computing device, the reading module (330) can reflect the second sub-transaction loaded into the memory to the target database through a normal session. When a second commit transaction related to the commit of a transaction is loaded into the memory of a computing device, the reading module (330) can perform the above-described process in the step of completing the reflection of the transaction.

[0095] The change and reflection module (340) can allow the change data in the source database server (110) to be finally reflected in the target database server (120) by applying the transaction received from the source database server (110) to the target database server (120). The change and reflection module (340) can roll back the target database by removing the transaction from the target database in response to a request to remove the transaction.

[0096] FIG. 3 is a flowchart exemplarily illustrating a method of change data capture performed in a source database server (or agent server) according to one embodiment of the present disclosure.

[0097] The steps illustrated in FIG. 3 are exemplary, and additional steps may exist or some of the steps may be omitted. The steps illustrated in FIG. 3 may be performed in the source database server (110) or the agent server (130). Specifically, the steps illustrated in FIG. 3 may be performed by the processor of the source database server (110) or the processor of the agent server (130). For convenience of explanation, the following description will assume that the steps are performed in a computing device including the source database server (110) or the agent server (130).

[0098] The computing device can obtain change data from at least one redo log of a source database (S110).

[0099] A computing device can receive redo logs from a source database. Furthermore, the computing device can access the redo logs present in the source database. By checking and analyzing the redo logs, the computing device can obtain change data. The computing device can check and analyze the redo logs based on one or more rules. Furthermore, the computing device can analyze the redo logs based on any form of deep learning algorithm.

[0100] A computing device can generate a transaction based on the change data (S120). For example, the computing device can generate a transaction by hashing a transaction ID included in the change data. The computing device can generate a transaction including the change data according to a predetermined rule. The change data may include a transaction ID, an opcode, a value, etc. However, the change data is not limited thereto and may include various types of data. The predetermined rule may include a transaction generation rule for converting the change data into a format suitable for the target database server (120). The predetermined rule may be set differently depending on the type, status, specifications, etc. of the source database server (110) or the target database server (120).

[0101] The computing device can determine the type of transaction based on the transaction size (S130). The computing device can reflect the transaction in the target database based on the transaction type (S140).

[0102] For example, a computing device may determine the type of transaction as normal if the size of the transaction is below a predetermined threshold.

[0103] A normal transaction can be one that falls below a predetermined threshold. A normal transaction can be one whose size can be processed directly in memory. For example, a normal transaction can be smaller than or equal to the memory capacity, so it can be stored in memory without requiring separate file processing and then reflected in the target database when a committed transaction is extracted.

[0104] The predetermined threshold value may correspond to the memory capacity of the computing device. In one embodiment of the present disclosure, the predetermined threshold value may be determined by the user. For example, the computing device may determine the threshold value within the memory capacity of the computing device based on user input.

[0105] In one embodiment of the present disclosure, if the type of transaction is determined to be normal, the computing device can load the transaction into the memory of the computing device. If the first commit transaction related to the transaction's commit is loaded into the memory, the computing device (100) can reflect the transaction loaded into the memory to the target database through a normal session. If the type of transaction is normal, the computing device may not immediately reflect the transaction to the target database but may wait in the memory of the computing device. In addition, if the commit transaction of the transaction is loaded into the memory, the computing device can determine that the transaction is completed and reflect the transaction to the target database.

[0106] After loading a transaction into its memory, the computing device can obtain a rollback transaction requesting a rollback of the transaction. Based on the rollback transaction, the computing device can remove the transaction from its memory before applying it to the target database. As described above, if the transaction type is normal, the computing device may not immediately apply the transaction to the target database but may instead wait in the memory of the computing device until a commit transaction is loaded into the memory. Accordingly, if the computing device obtains the rollback transaction before the commit transaction, the computing device can perform a rollback by removing the transaction from its memory.

[0107] Meanwhile, in one embodiment of the present disclosure, the computing device may determine the type of transaction as express if the size of the transaction is greater than a predetermined threshold value.

[0108] Express transactions may be transactions exceeding a predetermined threshold. Express transactions may be transactions that cannot be processed directly in memory. For example, express transactions may require separate file processing due to their size exceeding the memory capacity. Therefore, if the transaction type is determined to be express, the computing device may store the transaction in file form on a persistent storage medium. Express transactions may be large transactions that are difficult to process simultaneously in the memory of the computing device. Therefore, the computing device may reflect the transaction stored in file form on the persistent storage medium to the target database through at least one express-only session, which is a separate session rather than a normal session. For example, the computing device may load at least a portion of the transaction stored in file form on the persistent storage medium into the memory of the computing device. The computing device may then reflect at least a portion of the transaction loaded into memory to the target database. If a large transaction (e.g., a transaction determined to be express) waits for a commit transaction to be obtained, it may take a long time for the transaction to be reflected to the target database, which may be inefficient. Accordingly, a computing device according to one embodiment of the present disclosure can reflect a transaction, the type of which is determined to be express, to a target database regardless of whether a commit transaction is obtained. The computing device can reflect an express transaction to a target database regardless of whether a commit transaction is obtained by separating the communication sessions used by normal transactions and express transactions. At least one express-only session can be created in a predetermined number. For example, the computing device can create a predetermined number of express-only sessions determined based on the type, status, specifications, etc. of the computing device.

[0109] The computing device can complete the transaction's reflection when a second commit transaction related to the transaction's commit is loaded into the computing device's memory. The computing device can improve the speed of reflecting large transactions to the target database by reflecting them in real time, regardless of whether the commit transaction has been acquired.

[0110] A computing device can generate multiple transactions whose transaction type is determined as Express. For example, the computing device can obtain multiple change data from multiple redo logs. The computing device can generate multiple transactions based on the multiple change data. The computing device can generate multiple transactions whose type is determined as Express based on the size of each of the multiple transactions.

[0111] The computing device can reflect transactions determined as Express, generated in excess of the number of Express-only sessions, to the target database in a manner corresponding to the manner in which transactions determined as Normal are reflected to the target database. For example, the computing device can load Express-determined transactions, generated in excess of the number of Express-only sessions, into the memory of the computing device. For example, if the size of the Express-determined transactions is larger than the memory capacity of the computing device, the computing device can load only a portion of the Express-determined transactions into the memory of the computing device. If a commit transaction related to the commit of the Express-determined transactions is loaded into the memory, the computing device can reflect the transactions loaded into the memory to the target database through the Normal session.

[0112] When the processing of an existing transaction is completed in at least one Express-only session, the computing device can reflect transactions determined by Express, which are generated in excess of the number of Express-only sessions, to the target database through the Express-only session in which the processing of the existing transaction is completed. Accordingly, when at least one Express-only session becomes idle, the computing device can improve the reflection speed of a large transaction by processing a large transaction that was being processed through a normal session through at least one idle Express-only session.

[0113] After a computing device reflects a transaction (e.g., a large transaction) to a target database, the computing device can obtain a rollback transaction requesting a rollback of the transaction.

[0114] Regardless of the committed transaction, the transaction may still be reflected in the target database through at least one Express-only session. Accordingly, the computing device can roll back the target database by removing the transaction reflected in the target database through at least one Express-only session based on the rollback transaction.

[0115] A transaction (e.g., a transaction determined by Express) may include multiple sub-transactions. At least some of the sub-transactions may have queries that correspond to each other. However, this is not limited to the above, and the queries of the sub-transactions may not correspond to each other.

[0116] A computing device may need to reflect a second sub-transaction, excluding a first sub-transaction corresponding to a rollback transaction, among a plurality of sub-transactions, to a target database. Accordingly, the computing device may remove at least one first sub-transaction corresponding to a rollback transaction from among the plurality of sub-transactions included in the transaction. The computing device may load a second sub-transaction, which is a sub-transaction remaining from among the plurality of sub-transactions, excluding at least one first sub-transaction, into the memory of the computing device.

[0117] When a third commit transaction related to the commit of a second sub-transaction is loaded into the memory of the computing device, the computing device can reflect the second sub-transaction loaded into the memory to the target database through a normal session. Here, the process described above may be included in the process of completing the reflection of the transaction when the second commit transaction related to the commit of the transaction is loaded into the memory of the computing device.

[0118] In one embodiment of the present disclosure, the way a transaction is reflected in a target database may differ depending on the type of transaction.

[0119] The way a transaction is reflected in the target database may include at least one of the following: storage location, handling of rollbacks, and / or type of communication session.

[0120] The storage location may be the location where transactions are stored during the process of being reflected in the target database. Depending on the type of transaction, the storage location stored in the target database may vary through different communication sessions.

[0121] Rollbacks can be handled in the event of a transaction rollback. For example, if the transaction type is normal, the rollback can be performed by removing the transaction from the computing device's memory. If the transaction type is express, the rollback can be performed by removing the transaction reflected in the target database from the target database.

[0122] A communication session can be used during the process of reflecting data to the target database. The communication session type can include a normal session and / or an express session. For example, if the transaction type is normal, the communication session can be a normal session. If the transaction type is express, the communication session can be an express session.

[0123] FIG. 4a schematically illustrates operations of change data capture performed in a database system according to one embodiment of the present disclosure. FIG. 4b schematically illustrates operations of change data capture performed in a database system according to another embodiment of the present disclosure.

[0124] Referring to FIGS. 4A and 4B, the database servers (110 and 120) may include a program that allows operations such as retrieving, inserting, modifying, and / or deleting necessary data from the database servers (110 and 120). The program may be implemented by the processor (620, 720) in the memory of the database servers (110 and 120).

[0125] The source database server (110) can create, manage, and store redo logs for transactions occurring in the source database server (110).

[0126] In one embodiment of the present disclosure, a source processor (420) of a source database server (110) can extract and analyze at least one redo log (450) of a source database (410) to obtain change data (430).

[0127] The source processor (420) can generate a transaction based on the change data and reflect the transaction to the target database based on the type of the transaction (440). For example, if the size of the transaction is less than a predetermined threshold, the source processor (420) can determine the type of the transaction as normal and transmit the transaction to the target database server (120) through the normal session (10). As another example, if the size of the transaction is greater than or equal to a predetermined threshold, the source processor (420) can determine the type of the transaction as express and transmit the transaction to the target database server (120) through the express-only session (20) to reflect it to the target database (510). The source processor (420) can store the transaction (460) determined as express in the form of a file. For example, the source processor (420) can store the transaction (460) determined as express in the form of a file on a permanent storage medium. When reflecting a transaction (460) determined by Express to a target database (510), the source processor (420) can load the transaction (460) determined by Express into the memory of the source database server (110). The source processor (420) can transmit the transaction (460) loaded into the memory to the target database server (120) through an Express-only session (20) to reflect it in the target database (510).

[0128] In one embodiment of the present disclosure, the above-described process (440) may be performed in the target processor (520). For example, if the size of the transaction received from the source database server (110) is less than a predetermined threshold, the target processor (520) may determine the type of the transaction as normal, and determine that the transaction is to be reflected in the target database (510) of the target database server (120) through the normal session (10). For another example, if the size of the transaction received from the source database server (110) is greater than or equal to a predetermined threshold, the target processor (520) may determine the type of the transaction as express, and determine that the transaction is to be reflected in the target database (510) of the target database server (120) through the express-only session (20). The target processor (520) may store the transaction (460) determined as express in the form of a file. For example, the target processor (520) can store the transaction (460) determined by Express in the form of a file on a permanent storage medium. When the target processor (520) reflects the transaction (460) determined by Express to the target database (510), the target processor (520) can load the transaction (460) determined by Express into the memory of the target database server (120). The target processor (520) can transmit the transaction (460) loaded into the memory to the target database server (120) through the Express-only session (20) to reflect it in the target database (510).

[0129] The target processor (520) of the target database server (120) can reflect the transaction received from the source database server (110) to the target database (510) (530). In the process of reflecting the transaction received from the source database server (110) to the target database (510), the target processor (520) can perform operations such as recording, reading, and modifying.

[0130] The configurations illustrated in FIGS. 4A and 4B are exemplary configurations. Therefore, it will be apparent to those skilled in the art that some of the configurations illustrated in FIGS. 4A and 4B may be omitted or additional configurations may be present without departing from the scope of the present disclosure. Furthermore, specific details regarding the configurations illustrated in FIGS. 4A and 4B (e.g., the source database server (110), the target database server (120), etc.) may be replaced with those described above with reference to FIGS. 1 through 3.

[0131] As described above with reference to FIGS. 1 to 4b, a computing device (e.g., a source database server, a target database server, an agent server, etc.) according to the present disclosure can improve the speed at which a transaction is reflected in the target database by differently setting the method by which a transaction is reflected in the target database depending on the type of transaction. Specifically, the computing device can reflect a transaction determined as express (e.g., a large-capacity transaction) in real time in the target database regardless of whether a commit transaction is obtained, thereby reflecting a transaction determined as express faster than a conventional method of reflecting a transaction after a commit transaction is obtained.

[0132] FIG. 5 illustrates a block diagram of an exemplary computing device for performing change data capture according to one embodiment of the present disclosure.

[0133] Although the present disclosure has been described above generally in the context of computer-executable instructions that may be executed on one or more computers, those skilled in the art will appreciate that the present disclosure may be implemented in combination with other program modules and / or as a combination of hardware and software.

[0134] Generally, program modules include routines, procedures, programs, components, data structures, and the like that perform particular tasks or implement particular abstract data types. Furthermore, those skilled in the art will appreciate that the methods of the present invention can be implemented with other computer system configurations, including single-processor or multiprocessor computer systems, minicomputers, mainframe computers, as well as personal computers, handheld computing devices, microprocessor-based or programmable consumer electronics, and the like, each of which may be operatively connected to one or more associated devices.

[0135] The described embodiments of the present invention can also be practiced in distributed computing environments, where certain tasks are performed by remote processing devices that are connected through a communications network. In a distributed computing environment, program modules may be located in both local and remote memory storage devices.

[0136] Computers typically include a variety of computer-readable media. Any computer-accessible media can be a computer-readable medium, and computer-readable media can include computer-readable storage media and computer-readable transmission media. Such computer-readable storage media include volatile and nonvolatile media, removable and non-removable media. Computer-readable storage media includes volatile and nonvolatile media, removable and non-removable media implemented in any method or technology for storing information such as computer-readable instructions, data structures, program modules, or other data. Computer-readable storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROMs, digital video disks (DVDs) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium that can be accessed by a computer and which can be used to store the desired information.

[0137] Computer-readable transmission media typically include information delivery media that embody computer-readable instructions, data structures, program modules, or other data in a modulated data signal, such as a carrier wave or other transport mechanism. The term modulated data signal means a signal that has one or more of its characteristics set or changed so as to encode information in the signal. By way of example, and not limitation, computer-readable transmission media includes wired media, such as a wired network or direct-wired connection, and wireless media, such as acoustic, RF, infrared, or other wireless media. Combinations of any of the above are also intended to be included within the scope of computer-readable transmission media.

[0138] An exemplary environment (1100) implementing various aspects of the present invention is illustrated, including a computer (1102) comprising a processing unit (1104), system memory (1106), and a system bus (1108). The system bus (1108) connects system components, including but not limited to the system memory (1106), to the processing unit (1104). The processing unit (1104) may be any of a variety of commercially available processors. Dual processors and other multiprocessor architectures may also be utilized as the processing unit (1104).

[0139] The system bus (1108) may be any of several types of bus structures that may be further interconnected to a memory bus, a peripheral bus, and a local bus using any of a variety of commercial bus architectures. The system memory (1106) includes read-only memory (ROM) (1110) and random access memory (RAM) (1112). A basic input / output system (BIOS) is stored in non-volatile memory (1110), such as ROM, EPROM, or EEPROM, and includes basic routines that help transfer information between components within the computer (1102), such as during start-up. The RAM (1112) may also include high-speed RAM, such as static RAM, for caching data.

[0140] The computer (1102) also includes an internal hard disk drive (HDD) (1114) (e.g., EIDE, SATA)—which may also be configured for external use within a suitable chassis (not shown), a magnetic floppy disk drive (FDD) (1116) (e.g., for reading from or writing to a removable diskette (1118)), and an optical disk drive (1120) (e.g., for reading from or writing to a CD-ROM disk (1122) or other high-capacity optical media such as a DVD). The hard disk drive (1114), the magnetic disk drive (1116), and the optical disk drive (1120) may be connected to the system bus (1108) by a hard disk drive interface (1124), a magnetic disk drive interface (1126), and an optical drive interface (1128), respectively. The interface (1124) for implementing an external drive includes at least one or both of Universal Serial Bus (USB) and IEEE 1394 interface technologies.

[0141] These drives and their associated computer-readable media provide non-volatile storage of data, data structures, computer-executable instructions, and the like. In the case of the computer (1102), the drives and media correspond to storing any data in a suitable digital format. While the description of computer-readable media above refers to HDDs, removable magnetic disks, and removable optical media such as CDs or DVDs, those skilled in the art will appreciate that other types of media readable by a computer, such as zip drives, magnetic cassettes, flash memory cards, cartridges, and the like, may also be used in the exemplary operating environment, and that any such media may contain computer-executable instructions for performing the methods of the present invention.

[0142] A number of program modules, including an operating system (1130), one or more application programs (1132), other program modules (1134), and program data (1136), may be stored in the drive and RAM (1112). All or portions of the operating system, applications, modules, and / or data may also be cached in RAM (1112). It will be appreciated that the present invention may be implemented in various commercially available operating systems or combinations of operating systems.

[0143] A user may enter commands and information into the computer (1102) via one or more wired / wireless input devices, such as a keyboard (1138) and a pointing device such as a mouse (1140). Other input devices (not shown) may include a microphone, an IR remote control, a joystick, a game pad, a stylus pen, a touch screen, and the like. These and other input devices are often connected to the processing unit (1104) via an input device interface (1142) that is connected to the system bus (1108), but may be connected by other interfaces such as a parallel port, an IEEE 1394 serial port, a game port, a USB port, an IR interface, and the like.

[0144] A monitor (1144) or other type of display device is also connected to the system bus (1108) via an interface, such as a video adapter (1146). In addition to the monitor (1144), the computer typically includes other peripheral output devices (not shown), such as speakers, a printer, and so on.

[0145] The computer (1102) may operate in a networked environment using logical connections to one or more remote computers, such as remote computer(s) (1148), via wired and / or wireless communications. The remote computer(s) (1148) may be a workstation, a server computer, a router, a personal computer, a portable computer, a microprocessor-based entertainment device, a peer device, or other conventional network node, and generally include many or all of the components described for the computer (1102), although for simplicity, only the memory storage device (1150) is shown. The logical connections shown include wired / wireless connections to a local area network (LAN) (1152) and / or a larger network, such as a wide area network (WAN) (1154). Such LAN and WAN networking environments are common in offices and companies and facilitate enterprise-wide computer networks, such as intranets, all of which may be connected to a worldwide computer network, such as the Internet.

[0146] When used in a LAN networking environment, the computer (1102) is connected to a local network (1152) via a wired and / or wireless communication network interface or adapter (1156). The adapter (1156) may facilitate wired or wireless communications to the LAN (1152), which may also include a wireless access point installed therein for communicating with the wireless adapter (1156). When used in a WAN networking environment, the computer (1102) may include a modem (1158), be connected to a communications server on the WAN (1154), or have other means of establishing communications over the WAN (1154), such as via the Internet. The modem (1158), which may be internal or external and wired or wireless, is connected to the system bus (1108) via a serial port interface (1142). In a networked environment, program modules or portions thereof described for the computer (1102) may be stored in a remote memory / storage device (1150). It will be appreciated that the network connections depicted are exemplary and other means of establishing a communications link between the computers may be used.

[0147] The computer (1102) operates to communicate with any wireless device or object that is arranged and operates via wireless communication, such as a printer, a scanner, a desktop and / or portable computer, a portable data assistant (PDA), a communication satellite, any equipment or location associated with a radio-detectable tag, and a telephone. This includes at least Wi-Fi and Bluetooth wireless technologies. Accordingly, the communication may be a predefined structure as in a conventional network, or may simply be an ad hoc communication between at least two devices.

[0148] Wi-Fi (Wireless Fidelity) enables connections to the Internet and other devices without wires. Wi-Fi is a wireless technology that allows devices, such as computers, to send and receive data anywhere within the coverage area of ​​a base station, both indoors and outdoors, similar to cell phones. Wi-Fi networks use wireless technologies called IEEE 802.11 (a, b, g, etc.) to provide secure, reliable, and high-speed wireless connections. Wi-Fi can be used to connect computers to each other, to the Internet, and to wired networks (using IEEE 802.3 or Ethernet). Wi-Fi networks can operate in the unlicensed 2.4 and 5 GHz radio bands, at data rates of, for example, 11 Mbps (802.11a) or 54 Mbps (802.11b), or in products that include both bands (dual-band).

[0149] Those skilled in the art will appreciate that the various illustrative logical blocks, modules, processors, means, circuits, and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, various forms of programs or design code (referred to herein, for convenience, as “software”), or a combination of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the overall system. Those skilled in the art may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.

[0150] The various embodiments presented herein can be implemented as a method, apparatus, or article of manufacture using standard programming and / or engineering techniques. The term "article of manufacture" includes a computer program, carrier, or media accessible from any computer-readable device. For example, computer-readable media include, but are not limited to, magnetic storage devices (e.g., hard disks, floppy disks, magnetic strips, etc.), optical disks (e.g., CDs, DVDs, etc.), smart cards, and flash memory devices (e.g., EEPROMs, cards, sticks, key drives, etc.). Furthermore, the various storage media presented herein include one or more devices and / or other machine-readable media for storing information. The term "machine-readable medium" includes, but is not limited to, wireless channels and various other media capable of storing, retaining, and / or carrying instructions and / or data.

[0151] It should be understood that the specific order or hierarchy of steps in the presented processes is merely an example of exemplary approaches. It should be understood that the specific order or hierarchy of steps in the processes may be rearranged within the scope of the present invention based on design priorities. The appended method claims provide elements of various steps in a sample order, but are not intended to be limited to the specific order or hierarchy presented.

[0152] The description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other embodiments without departing from the scope of the present invention. Therefore, the present invention is not intended to be limited to the embodiments disclosed herein, but is to be construed in the broadest scope consistent with the principles and novel features disclosed herein.

[0153] As described above, the relevant contents have been described in the best form for carrying out the invention.

[0154] It can be used in database management systems, devices, etc. to perform change data capture.

Claims

1. A method for performing change data capture on a computing device, A step of obtaining change data from at least one redo log of a source database; A step of generating a transaction based on the above change data; A step of determining the type of the transaction based on the size of the transaction; and A step of reflecting the transaction in a target database based on the type of the transaction; Includes, Depending on the type of the transaction, the method by which the transaction is reflected in the target database is different. method.

2. In paragraph 1, The way the above transaction is reflected in the target database is as follows: The storage location of the transaction stored in the process of the transaction being reflected in the target database; If a rollback of the above transaction occurs, how the rollback is handled; and The type of communication session used in the process of reflecting the above transaction in the target database; including, method.

3. In paragraph 1, The step of generating the transaction based on the above change data is: A step of generating the transaction by hashing the transaction ID included in the above change data; including, method.

4. In paragraph 1, The step of determining the type of the transaction based on the size of the transaction is as follows: If the size of the transaction is less than a predetermined threshold, a step of determining the type of the transaction as normal; and A step of determining the type of the transaction as express when the size of the transaction is greater than or equal to the predetermined threshold value; including, method.

5. In paragraph 4, The above predetermined threshold value is, Corresponding to the capacity of the memory of the above computing device, method.

6. In paragraph 4, The step of reflecting the transaction to the target database based on the type of the transaction is as follows: If the type of the transaction is determined to be normal, a step of loading the transaction into the memory of the computing device; and A step of reflecting the transaction loaded into the memory to the target database through a normal session when a first commit transaction related to the commit of the transaction is loaded into the memory; including, method.

7. In paragraph 6, After the step of loading the transaction into the memory of the computing device, the step of obtaining a rollback transaction requesting a rollback for the transaction; and A step of removing the transaction from the memory of the computing device based on the rollback transaction before reflecting the transaction to the target database; including more, method.

8. In paragraph 4, The step of reflecting the transaction to the target database based on the type of the transaction is as follows: If the type of the above transaction is determined as the above express, a step of storing the transaction in a permanent storage medium in the form of a file; A step of reflecting the transaction stored in the form of a file on the permanent storage medium to the target database through at least one express-only session, which is a separate session other than a normal session; and A step of completing reflection of the transaction when a second commit transaction related to the commit of the transaction is loaded into the memory of the computing device; including, method.

9. In paragraph 8, A step of reflecting, in the target database, transactions determined as express generated in excess of the number of at least one express-only session in a manner corresponding to the manner of reflecting transactions determined as normal in the target database; including more, method.

10. In paragraph 8, When processing of an existing transaction is completed in at least one of the above express-only sessions, a step of reflecting a transaction determined by express, which is generated in excess of the number of the above express-only sessions, to the target database through the express-only session in which processing of the existing transaction is completed; including more, method.

11. In paragraph 8, A step of obtaining a rollback transaction requesting a rollback for the transaction after the step of reflecting the transaction to the target database; A step of rolling back the target database by removing the transaction reflected in the target database through at least one express-only session based on the rollback transaction; A step of removing at least one first sub-transaction corresponding to the rollback transaction among a plurality of sub-transactions included in the transaction; and A step of loading a second sub-transaction, which is a sub-transaction remaining from among a plurality of sub-transactions excluding at least one first sub-transaction, into the memory of the computing device; Including more, When a second commit transaction related to the commit of the above transaction is loaded into the memory of the computing device, the step of completing the reflection of the transaction is: When a third commit transaction related to the commit of the second sub-transaction is loaded into the memory of the computing device, a step of reflecting the second sub-transaction loaded into the memory to the target database through a normal session; including, method.

12. A computer program stored in a computer-readable storage medium, wherein the computer program includes instructions for causing a processor of a computing device to perform change data capture to perform the following steps, wherein the steps are: A step of obtaining change data from at least one redo log of a source database; A step of generating a transaction based on the above change data; A step of determining the type of the transaction based on the size of the transaction; and A step of reflecting the transaction in a target database based on the type of the transaction; Includes, Depending on the type of the transaction, the method by which the transaction is reflected in the target database is different. A computer program stored on a computer-readable storage medium.

13. In a computing device for performing change data capture, A processor comprising at least one core; a memory storing a computer program executable by the processor; and Network Department; Including, The above processor, Obtain change data from at least one redo log of the source database, Create a transaction based on the above change data, Determine the type of the transaction based on the size of the transaction, and Based on the type of the above transaction, the above transaction is reflected in the target database, Depending on the type of the transaction, the method by which the transaction is reflected in the target database is different. Computing device.

Citation Information

Patent Citations

  • Method and system for realizing database data synchronization

    CN115481196A

  • Apparatus and method for replicating changed data in a source database management system to a target database management system in real time

    KR1020180101941A

  • Method for untact lodge guidance and apparatus for using the method

    KR1020210135148A

  • Chip on film package and display device including the same

    KR1020220040578A

  • Method for data synchronization between a source database system and target database system

    US20200364241A1