JP2013178685A - Data processing system with asynchronous backup function, front system, backup method and program therefor - Google Patents

Data processing system with asynchronous backup function, front system, backup method and program therefor Download PDF

Info

Publication number
JP2013178685A
JP2013178685A JP2012042600A JP2012042600A JP2013178685A JP 2013178685 A JP2013178685 A JP 2013178685A JP 2012042600 A JP2012042600 A JP 2012042600A JP 2012042600 A JP2012042600 A JP 2012042600A JP 2013178685 A JP2013178685 A JP 2013178685A
Authority
JP
Japan
Prior art keywords
update
update log
record
database
control unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2012042600A
Other languages
Japanese (ja)
Inventor
Yoshinobu Fujiwara
美伸 藤原
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP2012042600A priority Critical patent/JP2013178685A/en
Publication of JP2013178685A publication Critical patent/JP2013178685A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an asynchronous backup method with which cost-reduced and short-time backup can be performed in a distributed database.SOLUTION: A data processing system comprises a front system which carries out ordinary jobs and a backup system which performs data backup. In the case where a record is overlapped in an update log of a database in the front system, whether the record can be overwrite-updated or not is imparted to the update log and if it can be overwrite-updated, before transmission to the backup system, the overlapped record of the update log is overwrite-updated with the latest record, thereby reducing a transmission data amount. The similar processing is also performed after backup system reception, and the time for reflecting the database in the backup system with the update log is also shortened.

Description

本発明は、非同期バックアップ機能を有するデータ処理システム、そのシステムに使用されるフロントシステム、バックアップ方法、及びそのためのプログラムに関する。   The present invention relates to a data processing system having an asynchronous backup function, a front system used in the system, a backup method, and a program therefor.

分散配置データベースにおいて、非同期バックアップを実施する技術が知られている。この技術は、フロントシステムのデータベースが更新された場合、バックアップシステムのデータベースの更新を待たずにフロントシステムのデータベースの更新を許可するシステムである。フロントシステムのデータベースの更新不可時間が最小限に抑えられる一方、バックアップシステムへ送信する更新ログのデータサイズが大きいとバックアップシステムの更新に要する時間が長くなり、データベース間の不整合が発生しやすくなる問題がある。   A technique for performing asynchronous backup in a distributed database is known. This technology is a system that permits an update of the database of the front system without waiting for the update of the database of the backup system when the database of the front system is updated. While the non-updatable time of the front system database is minimized, if the data size of the update log sent to the backup system is large, the time required to update the backup system becomes long, and inconsistencies between databases tend to occur. There's a problem.

非同期バックアップ技術の一例が特許文献1に記載されている。特許文献1に記載された非同期バックアップ技術において、フロントシステムは、バックアップの際、更新ログであるトランザクションログ(Tログ)と、更新前イメージログ(Bログ)と、更新後イメージログ(Aログ)をバックアップシステムであるセカンダリーシステムに送付し、データの同期を保つ。これにより、ファイル全体をバックアップする場合と比べて短時間低コストでのバックアップが可能となる。   An example of the asynchronous backup technique is described in Patent Document 1. In the asynchronous backup technology described in Patent Document 1, the front system performs a transaction log (T log) that is an update log, an image log before update (B log), and an image log after update (A log) at the time of backup. To the secondary system, which is the backup system, to keep the data synchronized. As a result, the backup can be performed at a low cost for a short time compared to the case of backing up the entire file.

特開2001−356945号公報JP 2001-356945 A

しかしながら、上述した特許文献1に記載された技術は、フロントシステムの更新のたびに、トランザクションログ(Tログ)と更新前イメージログ(Bログ)と更新後イメージログ(Aログ)の3点をバックアップシステムに送付する必要がある。したがって、フロントシステムの更新がなされている間は常にフロントシステムからバックアップシステムにデータが送信されている状態となる。したがって、技術文献1に記載された技術は、フロントシステムとバックアップシステムとのバックアップデータの通信量が莫大となり、短時間でのバックアップができない。また、通信量が膨大になることにより、通信費が高くなり、低コストとは言えないという問題点がある。   However, the technique described in the above-mentioned patent document 1 has three points of a transaction log (T log), an image log before update (B log), and an image log after update (A log) every time the front system is updated. Must be sent to backup system. Therefore, while the front system is being updated, data is always transmitted from the front system to the backup system. Therefore, the technology described in the technical document 1 has an enormous amount of backup data communication between the front system and the backup system, and cannot be backed up in a short time. Further, there is a problem that the communication amount increases due to the enormous amount of communication and cannot be said to be low.

本発明の目的の一例は、上述した問題点を解決できる非同期バックアップ機能を有するデータ処理システム、バックアップ方法、及びそのためのプログラムを提供することにある。   An object of the present invention is to provide a data processing system having an asynchronous backup function, a backup method, and a program therefor that can solve the above-described problems.

本発明の一形態における第一の非同期バックアップシステムは、
通常業務を遂行するフロントシステムと、
前記フロントシステムのデータバックアップを行うバックアップシステムと、
前記フロントシステム内にて随時更新されるフロントシステムデータベースと、
前記バックアップシステム内にて、前記フロントシステムデータベースをバックアップするバックアップシステムデータベースと、
前記バックアップシステムにフロントシステムデータベースの更新ログを送る際、重複したレコードに関し後のレコードで上書き更新する対象か否かを記録した更新ログ削減対象管理表を保存管理する更新ログ削減対象管理部と、
前記フロントシステムデータベースを更新していたアプリケーションが更新をコミットするまで、前記フロントシステムデータベースの更新ログを更新ログテーブルとして記憶する更新ログテーブル記憶部と、
前記フロントシステムデータベースの更新ログをレコードキー、レコード内容に整理し、かつ前記更新ログ削減対象管理部の管理表を参照し、上書き更新対象のレコードか否かを更新ログに付加し、上書き更新対象レコードであれば重複するレコードは後のレコードで上書きし前記更新ログテーブル記憶部に出力し、前記フロントシステムデータベースを更新していたアプリケーションが更新をコミットした時点で更新ログを更新ログ送信制御部に送信するデータベース更新制御部と、
前記データベース更新制御部から送信された更新ログを、更新ログ格納表として記憶するフロントシステム更新ログ格納表記憶部と、
前記データベース更新制御部から送信された更新ログの更新があった場合、バックアップシステムへ送信する単位にまとめ、上書き更新対象レコードであれば重複するレコードは後のレコードで上書きし、あらかじめシステム管理者によって設定された送信のタイミングで前記バックアップシステムに更新ログを送信する更新ログ送信制御部と、
前記フロントシステムから送信された更新ログを更新ログ格納表として記憶するバックアップシステム更新ログ格納表記憶部と、
前記更新ログ送信制御部から送信された更新ログの更新があった場合、上書き更新対象レコードであれば重複するレコードは後のレコードで上書きし、システム管理者によって設定されたタイミングで前記バックアップシステムデータベースを更新ログ格納表の更新ログの内容で更新する更新ログ受信制御部と
を含む。
The first asynchronous backup system according to one aspect of the present invention is:
A front system that performs normal operations;
A backup system for performing data backup of the front system;
A front system database updated at any time in the front system;
A backup system database for backing up the front system database in the backup system;
When sending an update log of the front system database to the backup system, an update log reduction target management unit that stores and manages an update log reduction target management table that records whether or not it is a target to be overwritten and updated with a later record with respect to duplicate records;
An update log table storage unit that stores an update log of the front system database as an update log table until an application that has updated the front system database commits an update;
Organize the update log of the front system database into record keys and record contents, and refer to the management table of the update log reduction target management unit, add to the update log whether or not it is an overwrite update target record, and overwrite update target If it is a record, the duplicate record is overwritten with a later record and output to the update log table storage unit, and the update log is sent to the update log transmission control unit when the application that updated the front system database commits the update. A database update controller to send;
A front system update log storage table storage unit for storing an update log transmitted from the database update control unit as an update log storage table;
If there is an update of the update log sent from the database update control unit, it is put together in the unit to be sent to the backup system, and if it is an overwrite update target record, the duplicate record is overwritten with the later record, and in advance by the system administrator An update log transmission control unit that transmits an update log to the backup system at a set transmission timing;
A backup system update log storage table storage unit for storing the update log transmitted from the front system as an update log storage table;
When there is an update of the update log transmitted from the update log transmission control unit, if it is an overwrite update target record, the duplicate record is overwritten with a later record, and the backup system database is set at a timing set by the system administrator And an update log reception control unit that updates the contents of the update log in the update log storage table.

本発明の一形態における第一の分散配置データベースにおける非同期バックアップ方法は、
データベース更新制御部がフロントシステムデータベースの更新ログをレコードキー、レコード内容に整理し、
データベース更新制御部が更新ログ削減対象管理部の管理表を参照し、上書き更新対象のレコードか否かを更新ログに付加し更新ログテーブルに追加し、
上書き更新対象レコードであれば、データベース更新制御部が重複するレコードは後のレコードで上書きし前記更新ログテーブルを更新し、
前記フロントシステムデータベースを更新していたアプリケーションが更新をコミットした時点でデータベース更新制御部が前記更新ログテーブルの更新ログを更新ログ送信制御部に送信し、
更新ログ送信制御部が受信した更新ログをバックアップシステムへ送信する単位にまとめフロントシステム更新ログ格納表記憶部の更新ログ格納表に追加し、
上書き更新対象レコードであれば、前記更新ログ送信制御部が重複するレコードは後のレコードで上書きし前記更新ログ格納表を更新し、
システム管理者によって設定されたタイミングで前記バックアップシステムに更新ログ格納表の内容で更新ログを送信し、
更新ログ受信制御部が更新ログを受信し、
上書き更新対象レコードであれば、前記更新ログ受信制御部が重複するレコードは後のレコードで上書きし更新ログ格納表を更新し、
システム管理者によって設定されたタイミングで前記バックアップシステムデータベースを前記更新ログ格納表の更新ログの内容で更新する。
Asynchronous backup method in the first distributed arrangement database in one aspect of the present invention,
The database update control unit organizes the update log of the front system database into record keys and record contents,
The database update control unit refers to the management table of the update log reduction target management unit, adds to the update log whether or not it is a record for overwrite update, and adds it to the update log table.
If it is an overwrite update target record, the database update control unit overwrites the duplicate record with a later record, updates the update log table,
When the application that has updated the front system database commits the update, the database update control unit transmits the update log of the update log table to the update log transmission control unit,
The update logs received by the update log transmission control unit are grouped into units for transmission to the backup system, added to the update log storage table of the front system update log storage table storage unit,
If it is an overwrite update target record, the update log transmission control unit overwrites the duplicate record with a later record and updates the update log storage table,
Send the update log with the contents of the update log storage table to the backup system at the timing set by the system administrator,
The update log reception control unit receives the update log,
If it is an overwrite update target record, the update log reception control unit overwrites the duplicate record with a later record, updates the update log storage table,
The backup system database is updated with the contents of the update log in the update log storage table at a timing set by a system administrator.

本発明の一形態における第一の分散配置データベースにおける非同期バックアッププログラムは、コンピュータに、
データベース更新制御部がフロントシステムデータベースの更新ログをレコードキー、レコード内容に整理し、
データベース更新制御部が更新ログ削減対象管理部の管理表を参照し、上書き更新対象のレコードか否かを更新ログに付加し更新ログテーブルに追加し、
上書き更新対象レコードであれば、データベース更新制御部が重複するレコードは後のレコードで上書きし前記更新ログテーブルを更新し、
前記フロントシステムデータベースを更新していたアプリケーションが更新をコミットした時点でデータベース更新制御部が前記更新ログテーブルの更新ログを更新ログ送信制御部に送信し、
更新ログ送信制御部が受信した更新ログをバックアップシステムへ送信する単位にまとめフロントシステム更新ログ格納表記憶部の更新ログ格納表に追加し、
上書き更新対象レコードであれば、前記更新ログ送信制御部が重複するレコードは後のレコードで上書きし前記更新ログ格納表を更新し、
システム管理者によって設定されたタイミングで前記バックアップシステムに更新ログ格納表の内容で更新ログを送信し、
更新ログ受信制御部が更新ログを受信し、
上書き更新対象レコードであれば、前記更新ログ受信制御部が重複するレコードは後のレコードで上書きし更新ログ格納表を更新し、
システム管理者によって設定されたタイミングで前記バックアップシステムデータベースを前記更新ログ格納表の更新ログの内容で更新する処理
を実行させる。
An asynchronous backup program in the first distributed arrangement database according to one aspect of the present invention is stored in a computer.
The database update control unit organizes the update log of the front system database into record keys and record contents,
The database update control unit refers to the management table of the update log reduction target management unit, adds to the update log whether or not it is a record for overwrite update, and adds it to the update log table.
If it is an overwrite update target record, the database update control unit overwrites the duplicate record with a later record, updates the update log table,
When the application that has updated the front system database commits the update, the database update control unit transmits the update log of the update log table to the update log transmission control unit,
The update logs received by the update log transmission control unit are grouped into units for transmission to the backup system, added to the update log storage table of the front system update log storage table storage unit,
If it is an overwrite update target record, the update log transmission control unit overwrites the duplicate record with a later record and updates the update log storage table,
Send the update log with the contents of the update log storage table to the backup system at the timing set by the system administrator,
The update log reception control unit receives the update log,
If it is an overwrite update target record, the update log reception control unit overwrites the duplicate record with a later record, updates the update log storage table,
A process of updating the backup system database with the contents of the update log in the update log storage table at a timing set by a system administrator is executed.

本発明によれば、フロントシステムからバックアップシステムへのデータ転送量が少なくなり低コストとなる。また、転送データが小さくなることからバックアップにかかる時間が短くなり、フロントシステム−バックアップシステム間でデータの同期ができていない時間が短縮されるという効果が得られる。   According to the present invention, the amount of data transferred from the front system to the backup system is reduced and the cost is reduced. In addition, since the transfer data becomes small, the time required for backup is shortened, and the time when data cannot be synchronized between the front system and the backup system can be shortened.

図1は、本発明の第一の実施形態のデータ処理システムの構成を示すブロック図である。FIG. 1 is a block diagram showing the configuration of the data processing system according to the first embodiment of this invention. 図2は、第一の実施の形態におけるデータ処理システムをコンピュータ装置とその周辺装置で実現したハードウェア構成を示す図である。FIG. 2 is a diagram illustrating a hardware configuration in which the data processing system according to the first embodiment is realized by a computer device and its peripheral devices. 図3は、第一の実施の形態における更新ログ削減対象管理部103に格納される更新ログ削減対象管理表1030の一例を示す図である。FIG. 3 is a diagram illustrating an example of the update log reduction target management table 1030 stored in the update log reduction target management unit 103 according to the first embodiment. 図4は、第一の実施の形態における更新ログテーブル記憶部104に格納される更新ログテーブル1040、1041の一例を示す図である。FIG. 4 is a diagram illustrating an example of the update log tables 1040 and 1041 stored in the update log table storage unit 104 according to the first embodiment. 図5は、第一の実施の形態におけるフロントシステム更新ログ格納表記憶部105に格納される更新ログ格納表1050、1051の一例を示す図である。FIG. 5 is a diagram illustrating an example of the update log storage tables 1050 and 1051 stored in the front system update log storage table storage unit 105 according to the first embodiment. 図6は、第一の実施の形態におけるデータベース更新制御部101での更新ログ生成の動作を示すフローチャートである。FIG. 6 is a flowchart showing an operation of generating an update log in the database update control unit 101 in the first embodiment. 図7は、第一の実施の形態における更新ログ送信制御部102での更新ログのバックアップシステム2への送信の動作を示すフローチャートである。FIG. 7 is a flowchart showing an operation of transmitting the update log to the backup system 2 in the update log transmission control unit 102 according to the first embodiment. 図8は、第一の実施の形態における更新ログ受信制御部201での更新ログのバックアップシステムデータベース200への反映の動作を示すフローチャートである。FIG. 8 is a flowchart illustrating an operation of reflecting the update log in the backup system database 200 in the update log reception control unit 201 according to the first embodiment. 図9は、第二の実施の形態におけるデータ処理システムをコンピュータ装置とその周辺装置で実現したハードウェア構成を示す図である。FIG. 9 is a diagram illustrating a hardware configuration in which the data processing system according to the second embodiment is realized by a computer device and its peripheral devices.

次に、本発明の実施形態について図面を参照して詳細に説明する。   Next, embodiments of the present invention will be described in detail with reference to the drawings.

[第1の実施の形態]
図1は、本発明の第1の実施の形態におけるデータ処理システムの構成を示すブロック図である。図1を参照すると、データ処理システム1000は、データ処理を実行するフロントシステム1と、そのデータバックアップのためのバックアップシステム2を備える。フロントシステム1は、ネットワーク3を経由してバックアップシステム2に接続される。フロントシステム1は、フロントシステムデータベース100と、データベース更新制御部101と、更新ログ送信制御部102と、更新ログ削減対象管理部103と、更新ログテーブル記憶部104と、フロントシステム更新ログ格納表記憶部105を備える。また、バックアップシステム2は、バックアップシステムデータベース200と、更新ログ受信制御部201と、バックアップシステム更新ログ格納表記憶部202を備える。
[First Embodiment]
FIG. 1 is a block diagram showing a configuration of a data processing system according to the first embodiment of the present invention. Referring to FIG. 1, a data processing system 1000 includes a front system 1 that executes data processing and a backup system 2 for backing up the data. The front system 1 is connected to the backup system 2 via the network 3. The front system 1 includes a front system database 100, a database update control unit 101, an update log transmission control unit 102, an update log reduction target management unit 103, an update log table storage unit 104, and a front system update log storage table storage. Part 105 is provided. The backup system 2 also includes a backup system database 200, an update log reception control unit 201, and a backup system update log storage table storage unit 202.

フロントシステム1およびバックアップシステム2は、それぞれ分散配置データベースにおけるコンピュータ装置またはサーバであるが、それ以外のデータ処理システムでのコンピュータ装置でも良い。分散配置データベースは、更新対象のレコードのキーごとに更新先のデータベースが決められているシステムである。フロントシステム1の各部は、処理系列ごとに存在し、バックアップ更新ログの反映は、並列に処理できるようにしてもよい。   The front system 1 and the backup system 2 are each a computer device or a server in a distributed database, but may be a computer device in another data processing system. The distributed arrangement database is a system in which an update destination database is determined for each key of a record to be updated. Each part of the front system 1 may exist for each processing sequence, and reflection of the backup update log may be processed in parallel.

次に、フロントシステム1の構成について説明する。   Next, the configuration of the front system 1 will be described.

フロントシステムデータベース100は、様々なアプリケーションから呼び出されるデータの集合体であり、複数のユーザによって共有される。本実施形態のデータ処理システム1000は、フロントシステムデータベースのバックアップを実行する。そして、バックアップ先がバックアップシステムデータベース200である。   The front system database 100 is a collection of data called from various applications, and is shared by a plurality of users. The data processing system 1000 of the present embodiment performs backup of the front system database. The backup destination is the backup system database 200.

データベース更新制御部101は、アプリケーションの実行によってフロントシステムデータベース100におけるデータが更新されるとき、フロントシステムデータベース100の更新ログのレコードキー、レコード内容を、データ更新に応じて生成する。また、データベース更新制御部101は、更新ログ削減対象管理部103の後述する管理表を参照し、更新ログのレコードが上書き更新対象のレコードか否かを判定する。さらに、データベース更新制御部101は、判定結果の情報を更新ログに付加し、更新ログテーブル記憶部104の更新ログテーブル1040(後述)に追加登録する。この場合、レコードが上書き更新対象レコードであれば、データベース更新制御部101は、更新ログのうちの重複するレコードを後のレコードで上書きすることで、更新ログテーブル1040を更新後の更新ログテーブル1041(後述)に更新する。さらに、データベース更新制御部101は、フロントシステムデータベース100におけるデータを更新していたアプリケーションが更新をコミットした時点で、更新後の更新ログテーブル1041における更新ログを更新ログ送信制御部102に送信する。   When the data in the front system database 100 is updated by executing the application, the database update control unit 101 generates a record key and a record content of an update log of the front system database 100 according to the data update. Further, the database update control unit 101 refers to a management table (to be described later) of the update log reduction target management unit 103 and determines whether or not the update log record is a record to be overwritten. Furthermore, the database update control unit 101 adds information of the determination result to the update log, and additionally registers it in an update log table 1040 (described later) of the update log table storage unit 104. In this case, if the record is an overwrite update target record, the database update control unit 101 overwrites the duplicate record in the update log with a later record, thereby updating the update log table 1040 after the update. Update to (described later). Furthermore, the database update control unit 101 transmits the update log in the updated update log table 1041 to the update log transmission control unit 102 when the application that has updated the data in the front system database 100 commits the update.

更新ログ送信制御部102は、データベース更新制御部101から更新ログを受信し、更新ログをバックアップシステム2へ送信する単位(バックアップ先で反映できるトランザクション単位)に統合し、フロントシステム更新ログ格納表記憶部105の更新ログ格納表1050に記憶する。この場合、更新ログ送信制御部102は、受信した更新ログが上書き更新対象レコードであれば、更新ログのうちの重複するレコードを後のレコードで上書きすることで更新ログ格納表1050を更新ログ格納表1051に更新して登録する。さらに、更新ログ送信制御部102は、更新ログ格納表105から更新ログを読み出し、システム管理者によって設定されたタイミングで、バックアップシステム2の更新ログ受信制御部201に更新ログを送信する。   The update log transmission control unit 102 receives the update log from the database update control unit 101, integrates the update log into a unit (transaction unit that can be reflected at the backup destination) to be transmitted to the backup system 2, and stores the front system update log storage table. Stored in the update log storage table 1050 of the unit 105. In this case, if the received update log is an overwrite update target record, the update log transmission control unit 102 stores the update log storage table 1050 by overwriting a duplicate record in the update log with a later record. Update to table 1051 and register. Further, the update log transmission control unit 102 reads the update log from the update log storage table 105 and transmits the update log to the update log reception control unit 201 of the backup system 2 at a timing set by the system administrator.

更新ログ削減対象管理部103は、バックアップシステム2にフロントシステムデータベース100の更新ログを送る際、重複したレコードに関し後のレコードで上書き更新する対象か否かの情報を記録した更新ログ削減管理表1030を保存管理する。   When sending the update log of the front system database 100 to the backup system 2, the update log reduction target management unit 103 records an update log reduction management table 1030 that records information about whether or not duplicate records are overwritten and updated with later records. Save and manage.

更新ログテーブル記憶部104は、フロントシステムデータベース100を更新していたアプリケーションが更新をコミットするまで、フロントシステムデータベース100の更新ログを更新ログテーブル1040、1041として記憶する。   The update log table storage unit 104 stores the update logs of the front system database 100 as update log tables 1040 and 1041 until an application that has updated the front system database 100 commits the update.

フロントシステム更新ログ格納表記憶部105は、データベース更新制御部101から受信された更新ログを更新ログ格納表1050、1051として記憶する。   The front system update log storage table storage unit 105 stores the update logs received from the database update control unit 101 as update log storage tables 1050 and 1051.

次にバックアップシステム2の構成について説明する。   Next, the configuration of the backup system 2 will be described.

更新ログ受信制御部201は、更新ログ送信制御部102から更新ログを受信する。また、更新ログ受信制御部201は、受信した更新ログをバックアップシステム更新ログ格納表記憶部202の更新ログ格納表1050に追加する。この場合、更新ログ受信制御部201は、更新ログの更新があった場合、上書き更新対象レコードであれば重複するレコードは後のレコードで上書きし更新ログ格納表1051に更新し、システム管理者によって設定されたタイミングでバックアップシステムデータベース200を更新ログの内容で更新する。   The update log reception control unit 201 receives the update log from the update log transmission control unit 102. In addition, the update log reception control unit 201 adds the received update log to the update log storage table 1050 of the backup system update log storage table storage unit 202. In this case, when the update log is updated, the update log reception control unit 201 overwrites the duplicate record with the later record if it is an overwrite update target record and updates the update log storage table 1051. The backup system database 200 is updated with the contents of the update log at the set timing.

バックアップシステム更新ログ格納表記憶部202は、フロントシステム1から受信した更新ログを更新ログ格納表1050、1051として記憶する。   The backup system update log storage table storage unit 202 stores the update logs received from the front system 1 as update log storage tables 1050 and 1051.

次に、更新ログ削減対象管理部103と更新ログテーブル記憶部104とフロントシステム更新ログ格納表記憶部105とバックアップシステム更新ログ格納表記憶部202に格納されるデータについて説明する。   Next, data stored in the update log reduction target management unit 103, the update log table storage unit 104, the front system update log storage table storage unit 105, and the backup system update log storage table storage unit 202 will be described.

図3は、本実施の形態に係る更新ログ削減対象管理部103に格納される更新ログ削減対象管理表1030の一例を示す図である。   FIG. 3 is a diagram showing an example of the update log reduction target management table 1030 stored in the update log reduction target management unit 103 according to the present embodiment.

図3に示す更新ログ削減対象管理表1030は、テーブル名と更新ログ削減対象のカラムのデータからなり、更新ログのどのテーブルが削減対象(上書き対象)であるかを示した記憶データである。「対象」と示されたテーブルの更新ログは、データベース更新制御部101、更新ログ送信制御部102および更新ログ受信制御部201によって、次のように処理される。すなわち、更新ログのうち重複するレコードは後のレコードで上書きされる。この結果、上書き前の重複するレコードは削減される。以降の説明で、この削除を上書き削除ともいう。   The update log reduction target management table 1030 shown in FIG. 3 is composed of a table name and update log reduction target column data, and is storage data indicating which table of the update log is a reduction target (overwrite target). The update log of the table indicated as “target” is processed by the database update control unit 101, the update log transmission control unit 102, and the update log reception control unit 201 as follows. That is, duplicate records in the update log are overwritten by later records. As a result, duplicate records before overwriting are reduced. In the following description, this deletion is also referred to as overwrite deletion.

図4は、本実施の形態に係る更新ログテーブル記憶部104に格納される更新ログテーブル1040、1041の一例を示す図である。   FIG. 4 is a diagram illustrating an example of the update log tables 1040 and 1041 stored in the update log table storage unit 104 according to the present embodiment.

図4に示す更新ログテーブル1040、1041は、レコードキー、テーブル名、上書き更新対象とレコード内容のカラムからなる。更新ログテーブル1040は、データベース更新制御部101で更新ログがレコードキー、レコード内容ごとに整理され生成された複数のレコードを記憶する。各レコードは、データベース更新制御部101によって上書き更新対象のレコードか否かの情報(上書き更新対象)も付加されている。この更新ログテーブル1040に対し、データベース更新制御部101は上書き更新対象レコードであれば重複するレコードは後のレコードで上書き削減し、更新ログテーブル1041を出力する。   The update log tables 1040 and 1041 shown in FIG. 4 include columns of record keys, table names, overwrite update targets, and record contents. The update log table 1040 stores a plurality of records generated by the database update control unit 101 in which the update log is organized by record key and record content. Each record is also added with information (overwrite update target) as to whether or not each record is a record to be overwritten by the database update control unit 101. In contrast to the update log table 1040, the database update control unit 101 outputs the update log table 1041 by overwriting and reducing the duplicate records in the later records if they are overwrite update target records.

図5は、本実施の形態に係るフロントシステム更新ログ格納表記憶部105に格納される更新ログ格納表1050、1051の一例を示す図である。   FIG. 5 is a diagram showing an example of the update log storage tables 1050 and 1051 stored in the front system update log storage table storage unit 105 according to the present embodiment.

図5に示す更新ログ格納表1050、1051は、通番、更新通番、レコードキー、上書き更新対象とレコード内容のカラムのデータからなる。更新ログ格納表1050は、データベース更新制御部101が新たな更新ログを受信するたびに更新通番を新たに付加されたデータである。この更新ログ格納表1050に対し、更新ログ送信制御部102は、更新ログの更新があった場合、バックアップシステム2へ送信する単位に統合し、上書き更新対象レコードであれば重複するレコードは後のレコードで上書き削減する。更新ログ格納表1051は、上書き削除後の更新ログ格納表を示す。   The update log storage tables 1050 and 1051 shown in FIG. 5 include data of serial numbers, update serial numbers, record keys, overwrite update targets, and record content columns. The update log storage table 1050 is data in which an update sequence number is newly added each time the database update control unit 101 receives a new update log. For the update log storage table 1050, the update log transmission control unit 102 integrates the update log into a unit to be transmitted to the backup system 2 when the update log is updated. Reduce overwriting with records. The update log storage table 1051 shows the update log storage table after overwriting deletion.

図2は、本発明の第一の実施の形態におけるフロントシステム1およびバックアップシステム2をコンピュータおよびその周辺装置で実現したハードウェア構成を示す図である。図2に示されるように、フロントシステム1およびバックアップシステム2は、それぞれCPU11、21、出力装置12、22、入力装置13、23、主記憶装置14、24、二次記憶装置15、25を含む。また、フロントシステム1およびバックアップシステム2は、それぞれネットワークインタフェース10、20を介してネットワーク3に接続されている。   FIG. 2 is a diagram showing a hardware configuration in which the front system 1 and the backup system 2 in the first embodiment of the present invention are realized by a computer and its peripheral devices. As shown in FIG. 2, the front system 1 and the backup system 2 include CPUs 11 and 21, output devices 12 and 22, input devices 13 and 23, main storage devices 14 and 24, and secondary storage devices 15 and 25, respectively. . Further, the front system 1 and the backup system 2 are connected to the network 3 via network interfaces 10 and 20, respectively.

CPU11、21は、オペレーティングシステムを動作させて本発明の第一の実施の形態に係るそれぞれフロントシステム1およびバックアップシステム2の全体を制御する。また、CPU11、21は、例えば二次記憶装置15、25から主記憶装置14、24にプログラムやデータを読み出し、第一の実施の形態におけるデータベース更新制御部101、更新ログ送信制御部102、および更新ログ受信制御部201として各種の処理を実行する。   The CPUs 11 and 21 operate the operating system to control the entire front system 1 and backup system 2 according to the first embodiment of the present invention. Further, the CPUs 11 and 21 read programs and data from the secondary storage devices 15 and 25 to the main storage devices 14 and 24, for example, and the database update control unit 101, the update log transmission control unit 102 in the first embodiment, and The update log reception control unit 201 executes various processes.

二次記憶装置15、25は、例えば光ディスク、フレキシブルディスク、磁気光ディスク、外付けハードディスク、または半導体メモリ等であって、コンピュータプログラムをコンピュータ読み取り可能に記録する。また、コンピュータプログラムは、通信網に接続されている図示しない外部コンピュータからダウンロードされてもよい。   The secondary storage devices 15 and 25 are, for example, an optical disk, a flexible disk, a magnetic optical disk, an external hard disk, or a semiconductor memory, and record a computer program so that the computer program can be read. The computer program may be downloaded from an external computer (not shown) connected to the communication network.

入力装置13、23は、例えばマウスやキーボード、内蔵のキーボタンなどで実現され、入力操作に用いられる。入力装置13、23は、マウスやキーボード、内蔵のキーボタンに限らず、例えばタッチパネルでもよい。   The input devices 13 and 23 are realized by, for example, a mouse, a keyboard, a built-in key button, and the like, and are used for input operations. The input devices 13 and 23 are not limited to a mouse, a keyboard, and built-in key buttons, but may be a touch panel, for example.

出力装置12、22は、例えばディスプレイで実現され、出力を確認するために用いられる。   The output devices 12 and 22 are realized by a display, for example, and are used to check the output.

なお、第一の実施の形態の説明において利用されるブロック図(図1)には、ハードウェア単位の構成ではなく、機能単位のブロックが示されている。これらの機能ブロックは図2に示されるハードウェア構成によって実現される。ただし、フロントシステム1およびバックアップシステム2が備える各部の実現手段は特に限定されない。すなわち、フロントシステム1およびバックアップシステム2は、物理的に結合した一つの装置により実現されてもよいし、物理的に分離した二つ以上の装置を有線または無線で接続し、これら複数の装置により実現されてもよい。   Note that the block diagram (FIG. 1) used in the description of the first embodiment shows functional unit blocks, not hardware unit configurations. These functional blocks are realized by the hardware configuration shown in FIG. However, the means for realizing each unit included in the front system 1 and the backup system 2 is not particularly limited. That is, the front system 1 and the backup system 2 may be realized by one physically coupled device, or two or more physically separated devices are connected by wire or wirelessly, and these plural devices are used. It may be realized.

また、CPU11、21は、二次記憶装置15、25に記録されているコンピュータプログラムを読み込み、そのプログラムにしたがって、データベース更新制御部101、更新ログ送信制御部102、および更新ログ受信制御部201として動作してもよい。   The CPUs 11 and 21 read computer programs recorded in the secondary storage devices 15 and 25, and as the database update control unit 101, update log transmission control unit 102, and update log reception control unit 201 according to the programs. It may work.

また、前述のプログラムのコードを記録した記録媒体(または記憶媒体)が、フロントシステム1およびバックアップシステム2に供給され、フロントシステム1およびバックアップシステム2が記録媒体に格納されたプログラムのコードを読み出し実行してもよい。すなわち、本発明は、第一の実施の形態におけるフロントシステム1およびバックアップシステム2が実行するためのソフトウェア(分散配置データベースにおける非同期バックアッププログラム)を一時的に記憶するまたは非一時的に記憶する二次記憶装置15、25も含む。   A recording medium (or storage medium) in which the program code is recorded is supplied to the front system 1 and the backup system 2, and the front system 1 and the backup system 2 read and execute the program code stored in the recording medium. May be. That is, the present invention temporarily stores the software (asynchronous backup program in the distributed arrangement database) to be executed by the front system 1 and the backup system 2 in the first embodiment, or the secondary that stores the software temporarily. Storage devices 15 and 25 are also included.

以上のように構成されたフロントシステム1およびバックアップシステム2の動作について、図6、図7、図8のフローチャートを参照して説明する。   Operations of the front system 1 and the backup system 2 configured as described above will be described with reference to the flowcharts of FIGS. 6, 7, and 8.

図6は、第一の実施の形態におけるデータベース更新制御部101での更新ログ生成の動作の概要を示すフローチャートである。尚、このフローチャートによる処理は、前述したCPUによるプログラム制御に基づいて、実行されても良い。   FIG. 6 is a flowchart showing an outline of an operation of generating an update log in the database update control unit 101 in the first embodiment. Note that the processing according to this flowchart may be executed based on the above-described program control by the CPU.

図6に示すように、まず、データベース更新制御部101は、フロントシステムデータベース100を監視し、更新されているかを確認する(ステップS101)。更新されていなければ監視を継続する。   As shown in FIG. 6, first, the database update control unit 101 monitors the front system database 100 to confirm whether it has been updated (step S101). If not updated, continue monitoring.

フロントシステムデータベース100が更新された場合、フロントシステムデータベース100の更新ログを入手(読み出すことをいう)する(ステップS102)。   When the front system database 100 is updated, an update log of the front system database 100 is obtained (referred to as reading) (step S102).

次に、データベース更新制御部101は、更新ログ削減対象管理部103から更新ログ削減対象管理表1030を入手する(ステップS103)。   Next, the database update control unit 101 obtains the update log reduction target management table 1030 from the update log reduction target management unit 103 (step S103).

次に、データベース更新制御部101は、更新ログ削減対象管理表1030の情報を元にしてフロントシステムデータベース100の更新ログに上書き更新対象のレコードか否かの情報(対象、対象外)を付加し、更新ログテーブル記憶部104の更新ログテーブル1040に追加する(ステップS104)。   Next, the database update control unit 101 adds information (target / non-target) indicating whether or not the record is an overwrite update target record to the update log of the front system database 100 based on the information in the update log reduction target management table 1030. Then, it is added to the update log table 1040 of the update log table storage unit 104 (step S104).

更に、重複する上書き更新対象レコードがあれば、データベース更新制御部101は、最新のレコードで上書きし、更新ログテーブル1041として更新する(ステップS104)。   Furthermore, if there is a duplicate overwrite update target record, the database update control unit 101 overwrites it with the latest record and updates it as the update log table 1041 (step S104).

フロントシステムデータベース100が更新中のアプリケーションによってコミットされていない場合(ステップS106)、データベース更新制御部101は、再度フロントシステムデータベース100を監視し、コミットされたか(ステップS106)もしくは更なる更新があるか(ステップS107)を確認する。更なる更新やコミットがされていなければ監視を継続する。更なる更新があれば、データベース更新制御部101は、ステップS102に戻って処理を実行する。コミットされた場合、最後にデータベース更新制御部101は更新ログテーブル1041の更新ログを更新ログ送信制御部102に送信する(ステップS108)。   When the front system database 100 has not been committed by the application being updated (step S106), the database update control unit 101 monitors the front system database 100 again and has been committed (step S106) or whether there is further update. Confirm (Step S107). Continue monitoring if no further updates or commits have been made. If there is further update, the database update control unit 101 returns to step S102 to execute the process. If committed, finally, the database update control unit 101 transmits the update log of the update log table 1041 to the update log transmission control unit 102 (step S108).

以上で、データベース更新制御部101は、更新ログ生成の動作を終了する。   As described above, the database update control unit 101 ends the update log generation operation.

図7は、第一の実施の形態における更新ログ送信制御部102での更新ログのバックアップシステム2への送信の動作の概要を示すフローチャートである。尚、このフローチャートによる処理は、前述したCPUによるプログラム制御に基づいて、実行されても良い。   FIG. 7 is a flowchart showing an outline of an operation of transmitting the update log to the backup system 2 in the update log transmission control unit 102 according to the first embodiment. Note that the processing according to this flowchart may be executed based on the above-described program control by the CPU.

図7に示すように、まず、更新ログ送信制御部102は、データベース更新制御部101から更新ログを受信しているかを確認する(ステップS201)。受信していなければ受信するまで待機する。   As illustrated in FIG. 7, first, the update log transmission control unit 102 confirms whether an update log is received from the database update control unit 101 (step S201). If not, wait until it is received.

更新ログを受信した場合、更新ログ送信制御部102は、バックアップシステム2へ送信する単位に統合し、フロントシステム更新ログ格納表記憶部105の更新ログ格納表1050に追加する(ステップS202)。   When the update log is received, the update log transmission control unit 102 integrates it into a unit to be transmitted to the backup system 2 and adds it to the update log storage table 1050 of the front system update log storage table storage unit 105 (step S202).

更に、重複する上書き更新対象レコードがあれば、更新ログ送信制御部102は、最新のレコードで上書きし、更新ログ格納表1051として更新する(ステップS203)。   Furthermore, if there is a duplicate overwrite update target record, the update log transmission control unit 102 overwrites it with the latest record and updates it as the update log storage table 1051 (step S203).

システム管理者によって設定された送信のタイミングに至っていない場合(ステップS204)、更新ログ送信制御部102は、再度データベース更新制御部101から更に更新ログを受信しているか(ステップS205)もしくは送信のタイミングに至ったか(ステップS204)を確認する。更なる更新ログ受信や送信のタイミングに至っていなければ監視を継続する。更なる更新ログ受信があればステップS202に戻って処理を実行する。送信のタイミングに至った場合、最後に更新ログ送信制御部102は更新ログ格納表1051の更新ログをバックアップシステム2の更新ログ受信制御部201に送信する(ステップS206)。   If the transmission timing set by the system administrator has not been reached (step S204), the update log transmission control unit 102 has received another update log from the database update control unit 101 again (step S205) or the transmission timing. (Step S204) is confirmed. Monitoring is continued if the timing of further update log reception or transmission has not been reached. If there is further update log reception, the process returns to step S202 to execute processing. When the transmission timing is reached, finally, the update log transmission control unit 102 transmits the update log in the update log storage table 1051 to the update log reception control unit 201 of the backup system 2 (step S206).

以上で、更新ログ送信制御部102は、更新ログのバックアップシステム2への送信の動作を終了する。   Thus, the update log transmission control unit 102 ends the operation of transmitting the update log to the backup system 2.

図8は、第一の実施の形態における更新ログ受信制御部201での更新ログのバックアップシステムデータベース200への反映の動作の概要を示すフローチャートである。尚、このフローチャートによる処理は、前述したCPUによるプログラム制御に基づいて、実行されても良い。   FIG. 8 is a flowchart showing an outline of the operation of reflecting the update log in the backup system database 200 in the update log reception control unit 201 in the first embodiment. Note that the processing according to this flowchart may be executed based on the above-described program control by the CPU.

図8に示すように、まず、更新ログ受信制御部201は、フロントシステム1の更新ログ送信制御部102から更新ログを受信しているかを確認する(ステップS301)。受信していなければ受信するまで待機する。   As shown in FIG. 8, first, the update log reception control unit 201 confirms whether an update log is received from the update log transmission control unit 102 of the front system 1 (step S301). If not, wait until it is received.

更新ログを受信した場合、更新ログ受信制御部201は、バックアップシステム更新ログ格納表記憶部202の更新ログ格納表1050に追加する(ステップS302)。   When the update log is received, the update log reception control unit 201 adds the update log to the update log storage table 1050 of the backup system update log storage table storage unit 202 (step S302).

更に、重複する上書き更新対象レコードがあれば最新のレコードで上書きし、更新ログ格納表1051として更新する(ステップS303)。   Furthermore, if there is a duplicate overwrite update target record, it is overwritten with the latest record and updated as the update log storage table 1051 (step S303).

システム管理者によって設定されたバックアップシステムデータベース更新のタイミングに至っていない場合(ステップS204)、更新ログ受信制御部201は、再度フロントシステム1の更新ログ送信制御部102から更に更新ログを受信しているか(ステップS305)もしくはデータベース更新のタイミングに至ったか(ステップS304)を確認する。更なる更新ログ受信やデータベース更新のタイミングに至っていなければ監視を継続する。更なる更新ログ受信があればステップS302に戻って処理を実行する。データベース更新のタイミングに至った場合、最後に更新ログ受信制御部201はバックアップシステムデータベース200を更新ログ格納表1051の更新ログの内容で更新する(ステップS306)。   If the backup system database update timing set by the system administrator has not been reached (step S204), has the update log reception control unit 201 received another update log from the update log transmission control unit 102 of the front system 1 again? It is confirmed whether (Step S305) or database update timing has come (Step S304). Monitoring is continued if the timing of further update log reception or database update has not been reached. If there is further update log reception, the process returns to step S302 to execute the process. When the database update timing is reached, finally, the update log reception control unit 201 updates the backup system database 200 with the contents of the update log in the update log storage table 1051 (step S306).

以上で、更新ログ受信制御部201は、更新ログのバックアップシステムデータベース200への反映の動作を終了する。   As described above, the update log reception control unit 201 ends the operation of reflecting the update log in the backup system database 200.

次に、本発明の第1の実施の形態の効果について説明する。   Next, effects of the first exemplary embodiment of the present invention will be described.

上述した本実施形態におけるフロントシステムおよびバックアップシステムは、短時間低コストでの非同期バックアップができる。   The front system and backup system in the present embodiment described above can perform asynchronous backup for a short time at low cost.

その理由は、以下のような構成を含むからである。即ち、第1に更新ログ削減対象管理部は、更新ログのどのテーブルが削減対象(上書き対象)であるかを管理表として記憶する。第2に、データベース更新制御部、更新ログ送信制御部、更新ログ受信制御部は、更新ログ削減対象管理部の管理表の指示に沿って、重複する上書き更新対象レコードがあれば最新のレコードで上書きする。これにより、更新ログは常に冗長なデータが削減されてバックアップシステムデータベースに送られるので、フロントシステムからバックアップシステムへのデータ転送量が少なくなり低コストとなる。また、転送データが小さくなることからバックアップにかかる時間が短くなり、フロントシステム−バックアップシステム間でデータの同期ができていない時間が短縮されるという効果が得られる。
This is because the following configuration is included. That is, first, the update log reduction target management unit stores as a management table which table of the update log is the reduction target (overwrite target). Second, the database update control unit, the update log transmission control unit, and the update log reception control unit, in accordance with the instructions in the management table of the update log reduction target management unit, if there are duplicate overwrite update target records, Overwrite. As a result, since the redundant data is always sent to the backup system database after reducing redundant data, the amount of data transferred from the front system to the backup system is reduced and the cost is reduced. In addition, since the transfer data becomes small, the time required for backup is shortened, and the time when data cannot be synchronized between the front system and the backup system can be shortened.

[第2の実施の形態]
第1の実施の形態では単一CPUによるデータベースシステムの非同期バックアップの方法を示した。本実施形態では複数のCPUが並行処理を行う分散配置データベースシステムの場合を考えてみる。なお、第1の実施の形態と同様となる説明は省略する。
[Second Embodiment]
In the first embodiment, a method of asynchronous backup of a database system using a single CPU has been described. In this embodiment, consider the case of a distributed database system in which a plurality of CPUs perform parallel processing. Note that a description similar to that of the first embodiment is omitted.

図9は、本発明の第2の実施の形態におけるフロントシステム1およびバックアップシステム2をコンピュータおよびその周辺装置で実現したハードウェア構成を示す図である。なお、説明に関与しない周辺機器に関しては図2と同等であるため記載を省略している。   FIG. 9 is a diagram showing a hardware configuration in which the front system 1 and the backup system 2 according to the second embodiment of the present invention are realized by a computer and its peripheral devices. Note that peripheral devices that are not involved in the explanation are omitted because they are the same as those in FIG.

フロントシステム1ではデータベースである二次記憶装置15に複数のCPU11a〜11dが接続されている。図9では4台接続しているが接続数は任意である。それぞれのCPU11a〜11dに対してネットワークインタフェース10a〜10dが接続されている。バックアップシステム2についても同様のハードウェア構成である。図2同様、フロントシステム1とバックアップシステム2とはネットワーク3にて接続されている。その他に関しては第1の実施の形態と同様とする。また、本発明の第2の実施の形態におけるフロントシステム1およびバックアップシステム2の機能的構成は、図1に示す各構成要素を含む。したがって、以下の説明では、図1の各構成要素と図9、さらに図7、図8を併用して説明する。   In the front system 1, a plurality of CPUs 11a to 11d are connected to a secondary storage device 15 that is a database. Although four units are connected in FIG. 9, the number of connections is arbitrary. Network interfaces 10a to 10d are connected to the respective CPUs 11a to 11d. The backup system 2 has the same hardware configuration. As in FIG. 2, the front system 1 and the backup system 2 are connected by a network 3. Others are the same as those in the first embodiment. Further, the functional configuration of the front system 1 and the backup system 2 in the second embodiment of the present invention includes each component shown in FIG. Therefore, in the following description, each component in FIG. 1 will be described in combination with FIG. 9, and further with reference to FIGS.

第2の実施の形態における更新ログ送信制御部102での更新ログのバックアップシステム2への送信の動作において、更新ログ送信制御部102は更新ログを受信した場合、バックアップシステム2へ送信する単位に統合し、フロントシステム更新ログ格納表記憶部105の更新ログ格納表1050に追加する(図7のステップS202)。更に、重複する上書き更新対象レコードがあれば、最新のレコードで上書きし、更新ログ格納表1051として更新する(ステップS203)。この際に更新ログ内の更新されたレコードのキーに対してそれぞれ別のCPU11a〜11dが割り当てられる。これはステップS203においてレコードの上書き更新は同じキーのレコードに対してのみ行われるためであり、異なるキー間の上書き更新処理は互いに干渉しない。そのため更新ログ送信制御部102は、キーごとにCPUを割り当てることで、複数のCPUによる並列処理が可能となるためである。   In the operation of transmitting the update log to the backup system 2 in the update log transmission control unit 102 in the second embodiment, when the update log transmission control unit 102 receives the update log, the update log transmission control unit 102 transmits the update log to the backup system 2 in units. They are integrated and added to the update log storage table 1050 of the front system update log storage table storage unit 105 (step S202 in FIG. 7). Furthermore, if there is a duplicate overwrite update target record, it is overwritten with the latest record and updated as the update log storage table 1051 (step S203). At this time, different CPUs 11a to 11d are assigned to the keys of the updated records in the update log. This is because the record overwrite update is performed only for the record with the same key in step S203, and the overwrite update process between different keys does not interfere with each other. For this reason, the update log transmission control unit 102 can perform parallel processing by a plurality of CPUs by assigning a CPU to each key.

次に更新ログ送信制御部102は更新ログ格納表1051の更新ログをそれぞれのCPU11a〜11dに接続されたネットワークインタフェース10a〜10dによりバックアップシステム2の更新ログ受信制御部201に送信する(ステップS206)。   Next, the update log transmission control unit 102 transmits the update log in the update log storage table 1051 to the update log reception control unit 201 of the backup system 2 through the network interfaces 10a to 10d connected to the CPUs 11a to 11d (step S206). .

受信するバックアップシステム2側でもフロントシステム1と同様のハードウェア構成になっており、それぞれのキーに対して処理を行うCPU21a〜21dとネットワークインタフェース20a〜20dが決定されている。フロントシステム1が送信した更新ログはキーごとにネットワークインタフェース20a〜20dを介してバックアップシステム2が受信する。受信した更新ログに対してフロントシステム1同様、CPU21a〜21dは更新レコードのキーごとにステップS302〜S306を実行し更新ログの上書き更新とバックアップシステムデータベース200への反映を行う。   The receiving backup system 2 side has the same hardware configuration as that of the front system 1, and the CPUs 21a to 21d and the network interfaces 20a to 20d that perform processing for each key are determined. The update log transmitted by the front system 1 is received by the backup system 2 via the network interfaces 20a to 20d for each key. As with the front system 1, the CPUs 21 a to 21 d execute steps S 302 to S 306 for each key of the update record for the received update log, and overwrite the update log and reflect it in the backup system database 200.

上述した本実施形態におけるフロントシステムおよびバックアップシステムは、処理の分散化によって更に非同期バックアップを短時間で行うことができる。   The front system and backup system in the present embodiment described above can further perform asynchronous backup in a short time by distributing processing.

以上説明した、本発明の各実施形態における各構成要素は、その機能をハードウェア的に実現することはもちろん、プログラム制御に基づくコンピュータ装置、ファームウェアで実現することができる。プログラムは、磁気ディスクや半導体メモリなどのコンピュータ可読記録媒体に記録されて提供され、コンピュータの立ち上げ時などにコンピュータに読み取られる。この読み取られたプログラムは、そのコンピュータの動作を制御することにより、そのコンピュータを前述した各実施の形態における構成要素として機能させる。   Each component in each embodiment of the present invention described above can be realized by a computer apparatus and firmware based on program control as well as by realizing the function in hardware. The program is provided by being recorded on a computer-readable recording medium such as a magnetic disk or a semiconductor memory, and is read by the computer when the computer is started up. The read program causes the computer to function as a component in each of the embodiments described above by controlling the operation of the computer.

以上、各実施の形態を参照して本発明を説明したが、本発明は上記実施の形態に限定されるものではない。本発明の構成や詳細には、本発明のスコープ内で当業者が理解しえる様々な変更をすることができる。   Although the present invention has been described with reference to each embodiment, the present invention is not limited to the above embodiment. Various changes that can be understood by those skilled in the art can be made to the configuration and details of the present invention within the scope of the present invention.

たとえば、以上の各実施形態で説明した各構成要素は、必ずしも個々に独立した存在である必要はない。例えば、各構成要素は、複数の構成要素が1個のモジュールとして実現されたり、一つの構成要素が複数のモジュールで実現されたりしてもよい。また、各構成要素は、ある構成要素が他の構成要素の一部であったり、ある構成要素の一部と他の構成要素の一部とが重複していたり、といったような構成であってもよい。   For example, each component described in each of the above embodiments does not necessarily have to be individually independent. For example, for each component, a plurality of components may be realized as one module, or one component may be realized as a plurality of modules. Each component is configured such that a component is a part of another component, or a part of a component overlaps a part of another component. Also good.

また、以上説明した各実施形態では、複数の動作をフローチャートの形式で順番に記載してあるが、その記載の順番は複数の動作を実行する順番を限定するものではない。このため、各実施形態を実施するときには、その複数の動作の順番は内容的に支障しない範囲で変更することができる。   Further, in each of the embodiments described above, a plurality of operations are described in order in the form of a flowchart, but the described order does not limit the order in which the plurality of operations are executed. For this reason, when each embodiment is implemented, the order of the plurality of operations can be changed within a range that does not hinder the contents.

さらに、以上説明した各実施形態では、複数の動作は個々に相違するタイミングで実行されることに限定されない。例えば、ある動作の実行中に他の動作が発生したり、ある動作と他の動作との実行タイミングが部分的に乃至全部において重複していたりしていてもよい。   Furthermore, in each embodiment described above, a plurality of operations are not limited to being executed at different timings. For example, another operation may occur during the execution of a certain operation, or the execution timing of a certain operation and another operation may partially or entirely overlap.

さらに、以上説明した各実施形態では、ある動作が他の動作の契機になるように記載しているが、その記載はある動作と他の動作の全ての関係を限定するものではない。このため、各実施形態を実施するときには、その複数の動作の関係は内容的に支障のない範囲で変更することができる。また各構成要素の各動作の具体的な記載は、各構成要素の各動作を限定するものではない。このため、各構成要素の具体的な各動作は、各実施形態を実施する上で機能的、性能的、その他の特性に対して支障をきたさない範囲内で変更されて良い。   Furthermore, in each of the embodiments described above, a certain operation is described as a trigger for another operation, but the description does not limit all relationships between the certain operation and the other operations. For this reason, when each embodiment is implemented, the relationship between the plurality of operations can be changed within a range that does not hinder the contents. The specific description of each operation of each component does not limit each operation of each component. For this reason, each specific operation | movement of each component may be changed in the range which does not cause trouble with respect to a functional, performance, and other characteristic in implementing each embodiment.

1 フロントシステム
2 バックアップシステム
3 ネットワーク
10、20、10a、10b、10c、10d、20a、20b、20c、20d ネットワークインタフェース
11、21、11a、11b、11c、11d、21a、21b、21c、21d CPU
12、22 出力装置
13、23 入力装置
14、24 主記憶装置
15、25 二次記憶装置
100 フロントシステムデータベース
101 データベース更新制御部
102 更新ログ送信制御部
103 更新ログ削減対象管理部
104 更新ログテーブル記憶部
105 フロントシステム更新ログ格納表記憶部
200 バックアップシステムデータベース
201 更新ログ受信制御部
202 バックアップシステム更新ログ格納表記憶部
DESCRIPTION OF SYMBOLS 1 Front system 2 Backup system 3 Network 10, 20, 10a, 10b, 10c, 10d, 20a, 20b, 20c, 20d Network interface 11, 21, 11a, 11b, 11c, 11d, 21a, 21b, 21c, 21d CPU
12, 22 Output device 13, 23 Input device 14, 24 Main storage device 15, 25 Secondary storage device 100 Front system database 101 Database update control unit 102 Update log transmission control unit 103 Update log reduction target management unit 104 Update log table storage Unit 105 front system update log storage table storage unit 200 backup system database 201 update log reception control unit 202 backup system update log storage table storage unit

Claims (5)

データ処理を実行するフロントシステムと、
前記フロントシステムのデータバックアップを行うバックアップシステムと、
を含み、
前記フロントシステムは、
前記フロントシステム内にて随時更新されるフロントシステムデータベースと、
前記バックアップシステム内にて、前記フロントシステムデータベースをバックアップするバックアップシステムデータベースと、
前記バックアップシステムにフロントシステムデータベースの更新ログを送る際、重複したレコードに関し後のレコードで上書き更新する対象か否かを記録した更新ログ削減対象管理表を保存管理する更新ログ削減対象管理部と、
前記フロントシステムデータベースの更新ログを更新ログテーブルとして記憶する更新ログテーブル記憶部と、
前記フロントシステムデータベースの更新ログをレコードキー、レコード内容に整理し、かつ前記更新ログ削減対象管理部の管理表を参照し、上書き更新対象のレコードか否かを更新ログに付加し、上書き更新対象レコードであれば重複するレコードは後のレコードで上書きし前記更新ログテーブル記憶部に出力し、前記フロントシステムデータベースを更新していたアプリケーションが更新をコミットした時点で更新ログを更新ログ送信制御部に送信するデータベース更新制御部と、
前記データベース更新制御部から送信された更新ログを、更新ログ格納表として記憶するフロントシステム更新ログ格納表記憶部と、
前記データベース更新制御部から送信された更新ログの更新があった場合、バックアップシステムへ送信する単位にまとめ、上書き更新対象レコードであれば重複するレコードは後のレコードで上書きし、前記バックアップシステムに更新ログを送信する更新ログ送信制御部と、
を含み、
前記バックアップシステムは、
前記フロントシステムから送信された更新ログを更新ログ格納表として記憶するバックアップシステム更新ログ格納表記憶部と、
前記更新ログ送信制御部から送信された更新ログの更新があった場合、上書き更新対象レコードであれば重複するレコードは後のレコードで上書きし、システム管理者によって設定されたタイミングで前記バックアップシステムデータベースを更新ログ格納表の更新ログの内容で更新する更新ログ受信制御部と
を含む非同期バックアップシステム。
A front system that performs data processing;
A backup system for performing data backup of the front system;
Including
The front system is
A front system database updated at any time in the front system;
A backup system database for backing up the front system database in the backup system;
When sending an update log of the front system database to the backup system, an update log reduction target management unit that stores and manages an update log reduction target management table that records whether or not it is a target to be overwritten and updated with a later record with respect to duplicate records;
An update log table storage unit for storing an update log of the front system database as an update log table;
Organize the update log of the front system database into record keys and record contents, and refer to the management table of the update log reduction target management unit, add to the update log whether or not it is an overwrite update target record, and overwrite update target If it is a record, the duplicate record is overwritten with a later record and output to the update log table storage unit, and the update log is sent to the update log transmission control unit when the application that updated the front system database commits the update. A database update controller to send;
A front system update log storage table storage unit for storing an update log transmitted from the database update control unit as an update log storage table;
When the update log sent from the database update control unit is updated, it is collected in the unit to be sent to the backup system, and if it is an overwrite update target record, the duplicate record is overwritten with the later record and updated to the backup system An update log transmission control unit for transmitting logs;
Including
The backup system is
A backup system update log storage table storage unit for storing the update log transmitted from the front system as an update log storage table;
When there is an update of the update log transmitted from the update log transmission control unit, if it is an overwrite update target record, the duplicate record is overwritten with a later record, and the backup system database is set at a timing set by the system administrator An asynchronous backup system that includes an update log reception control unit that updates the file with the update log contents of the update log storage table.
前記フロントシステムと前記バックアップシステムが分散配置データベースで構成され、前記更新ログのレコードキーによって並列処理を行う請求項1記載の非同期バックアップシステム。   The asynchronous backup system according to claim 1, wherein the front system and the backup system are configured by a distributed database, and perform parallel processing using a record key of the update log. データ処理を実行するフロントシステムと、
前記フロントシステムのデータバックアップを行うバックアップシステムと、
を含むデータ処理システムにおける前記フロントシステムであって、
前記フロントシステム内にて随時更新されるフロントシステムデータベースと、
前記バックアップシステムにフロントシステムデータベースの更新ログを送る際、重複したレコードに関し後のレコードで上書き更新する対象か否かを記録した更新ログ削減対象管理表を保存管理する更新ログ削減対象管理部と、
前記フロントシステムデータベースの更新ログを更新ログテーブルとして記憶する更新ログテーブル記憶部と、
前記フロントシステムデータベースの更新ログをレコードキー、レコード内容に整理し、かつ前記更新ログ削減対象管理部の管理表を参照し、上書き更新対象のレコードか否かを更新ログに付加し、上書き更新対象レコードであれば重複するレコードは後のレコードで上書きし前記更新ログテーブル記憶部に出力し、前記フロントシステムデータベースを更新していたアプリケーションが更新をコミットした時点で更新ログを更新ログ送信制御部に送信するデータベース更新制御部と、
前記データベース更新制御部から送信された更新ログを、更新ログ格納表として記憶するフロントシステム更新ログ格納表記憶部と、
前記データベース更新制御部から送信された更新ログの更新があった場合、バックアップシステムへ送信する単位にまとめ、上書き更新対象レコードであれば重複するレコードは後のレコードで上書きし、前記バックアップシステムに更新ログを送信する更新ログ送信制御部と、
を含むフロントシステム。
A front system that performs data processing;
A backup system for performing data backup of the front system;
The front system in a data processing system comprising:
A front system database updated at any time in the front system;
When sending an update log of the front system database to the backup system, an update log reduction target management unit that stores and manages an update log reduction target management table that records whether or not it is a target to be overwritten and updated with a later record with respect to duplicate records;
An update log table storage unit for storing an update log of the front system database as an update log table;
Organize the update log of the front system database into record keys and record contents, and refer to the management table of the update log reduction target management unit, add to the update log whether or not it is an overwrite update target record, and overwrite update target If it is a record, the duplicate record is overwritten with a later record and output to the update log table storage unit, and the update log is sent to the update log transmission control unit when the application that updated the front system database commits the update. A database update controller to send;
A front system update log storage table storage unit for storing an update log transmitted from the database update control unit as an update log storage table;
When the update log sent from the database update control unit is updated, it is collected in the unit to be sent to the backup system, and if it is an overwrite update target record, the duplicate record is overwritten with the later record and updated to the backup system An update log transmission control unit for transmitting logs;
Including front system.
データベース更新制御部がフロントシステムデータベースの更新ログをレコードキー、レコード内容に整理し、
前記データベース更新制御部が更新ログ削減対象管理部の管理表を参照し、上書き更新対象のレコードか否かを前記更新ログに付加し更新ログテーブルに追加し、
上書き更新対象レコードであれば、前記データベース更新制御部が重複するレコードは後のレコードで上書きし前記更新ログテーブルを更新し、
前記フロントシステムデータベースを更新していたアプリケーションが更新をコミットした時点で前記データベース更新制御部が前記更新ログテーブルの更新ログを更新ログ送信制御部に送信し、
前記更新ログ送信制御部が受信した更新ログをバックアップシステムへ送信する単位にまとめフロントシステム更新ログ格納表記憶部の更新ログ格納表に追加し、
上書き更新対象レコードであれば、前記更新ログ送信制御部が重複するレコードは後のレコードで上書きし前記更新ログ格納表を更新し、
前記バックアップシステムに更新ログ格納表の内容で前記更新ログを送信し、
更新ログ受信制御部が前記更新ログを受信し、バックアップシステム更新ログ格納表記憶部の更新ログ格納表に追加し、
上書き更新対象レコードであれば、前記更新ログ受信制御部が重複するレコードは後のレコードで上書きし前記バックアップシステム更新ログ格納表記憶部の更新ログ格納表を更新し、
前記バックアップシステムデータベースを前記更新ログ格納表の更新ログの内容で更新する
非同期バックアップ方法。
The database update control unit organizes the update log of the front system database into record keys and record contents,
The database update control unit refers to the management table of the update log reduction target management unit, adds to the update log whether or not the record is an overwrite update target record,
If it is an overwrite update target record, the database update control unit overwrites the duplicate record with a later record, updates the update log table,
When the application that has updated the front system database commits the update, the database update control unit sends the update log of the update log table to the update log transmission control unit,
The update log received by the update log transmission control unit is added to the update log storage table of the front system update log storage table storage unit in a unit to be transmitted to the backup system,
If it is an overwrite update target record, the update log transmission control unit overwrites the duplicate record with a later record and updates the update log storage table,
Sending the update log with the contents of the update log storage table to the backup system;
The update log reception control unit receives the update log, adds it to the update log storage table of the backup system update log storage table storage unit,
If it is an overwrite update target record, the update log reception control unit duplicates the record that is duplicated with a later record and updates the update log storage table of the backup system update log storage table storage unit,
An asynchronous backup method for updating the backup system database with the contents of the update log in the update log storage table.
データベース更新制御部がフロントシステムデータベースの更新ログをレコードキー、レコード内容に整理し、
前記データベース更新制御部が更新ログ削減対象管理部の管理表を参照し、上書き更新対象のレコードか否かを前記更新ログに付加し更新ログテーブルに追加し、
上書き更新対象レコードであれば、前記データベース更新制御部が重複するレコードは後のレコードで上書きし前記更新ログテーブルを更新し、
前記フロントシステムデータベースを更新していたアプリケーションが更新をコミットした時点で前記データベース更新制御部が前記更新ログテーブルの更新ログを更新ログ送信制御部に送信し、
前記更新ログ送信制御部が受信した更新ログをバックアップシステムへ送信する単位にまとめフロントシステム更新ログ格納表記憶部の更新ログ格納表に追加し、
上書き更新対象レコードであれば、前記更新ログ送信制御部が重複するレコードは後のレコードで上書きし前記更新ログ格納表を更新し、
前記バックアップシステムに更新ログ格納表の内容で前記更新ログを送信し、
更新ログ受信制御部が前記更新ログを受信し、バックアップシステム更新ログ格納表記憶部の更新ログ格納表に追加し、
上書き更新対象レコードであれば、前記更新ログ受信制御部が重複するレコードは後のレコードで上書きし前記バックアップシステム更新ログ格納表記憶部の更新ログ格納表を更新し、
前記バックアップシステムデータベースを前記更新ログ格納表の更新ログの内容で更新する処理
をコンピュータに実行させるプログラム。
The database update control unit organizes the update log of the front system database into record keys and record contents,
The database update control unit refers to the management table of the update log reduction target management unit, adds to the update log whether or not the record is an overwrite update target record,
If it is an overwrite update target record, the database update control unit overwrites the duplicate record with a later record, updates the update log table,
When the application that has updated the front system database commits the update, the database update control unit sends the update log of the update log table to the update log transmission control unit,
The update log received by the update log transmission control unit is added to the update log storage table of the front system update log storage table storage unit in a unit to be transmitted to the backup system,
If it is an overwrite update target record, the update log transmission control unit overwrites the duplicate record with a later record and updates the update log storage table,
Sending the update log with the contents of the update log storage table to the backup system;
The update log reception control unit receives the update log, adds it to the update log storage table of the backup system update log storage table storage unit,
If it is an overwrite update target record, the update log reception control unit duplicates the record that is duplicated with a later record and updates the update log storage table of the backup system update log storage table storage unit,
A program that causes a computer to execute processing for updating the backup system database with the contents of the update log in the update log storage table.
JP2012042600A 2012-02-29 2012-02-29 Data processing system with asynchronous backup function, front system, backup method and program therefor Pending JP2013178685A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012042600A JP2013178685A (en) 2012-02-29 2012-02-29 Data processing system with asynchronous backup function, front system, backup method and program therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012042600A JP2013178685A (en) 2012-02-29 2012-02-29 Data processing system with asynchronous backup function, front system, backup method and program therefor

Publications (1)

Publication Number Publication Date
JP2013178685A true JP2013178685A (en) 2013-09-09

Family

ID=49270257

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012042600A Pending JP2013178685A (en) 2012-02-29 2012-02-29 Data processing system with asynchronous backup function, front system, backup method and program therefor

Country Status (1)

Country Link
JP (1) JP2013178685A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015064850A (en) * 2013-09-26 2015-04-09 日本電気株式会社 Database monitoring device, database monitoring method, and computer program
JP2018128881A (en) * 2017-02-09 2018-08-16 富士通株式会社 Difference log application program, difference log application device, and difference log application method
JP2018181042A (en) * 2017-04-17 2018-11-15 富士通株式会社 Record reflecting program, record reflecting device and record reflecting method
JP2019527883A (en) * 2016-07-04 2019-10-03 アリババ グループ ホウルディング リミテッド Database data change request processing method and apparatus
JP2021513168A (en) * 2018-02-27 2021-05-20 ベリタス テクノロジーズ エルエルシー Systems and methods for performing database backups for repairless restores

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01173230A (en) * 1987-12-28 1989-07-07 Nippon Telegr & Teleph Corp <Ntt> Merge processing system
JPH10214215A (en) * 1997-01-30 1998-08-11 Matsushita Electric Ind Co Ltd Title multiple management system
JP2001125815A (en) * 1999-10-26 2001-05-11 Hitachi Ltd Back-up data management system
JP2005510796A (en) * 2001-11-26 2005-04-21 コグニマ リミテッド Method for replicating data between computer devices each using a local clock
JP2007200029A (en) * 2006-01-26 2007-08-09 Mitsubishi Electric Corp File copying system
JP2008305352A (en) * 2007-06-11 2008-12-18 Tatsuya Shindo Full text search system
JP2010033467A (en) * 2008-07-30 2010-02-12 Fujitsu Ltd Information management system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01173230A (en) * 1987-12-28 1989-07-07 Nippon Telegr & Teleph Corp <Ntt> Merge processing system
JPH10214215A (en) * 1997-01-30 1998-08-11 Matsushita Electric Ind Co Ltd Title multiple management system
JP2001125815A (en) * 1999-10-26 2001-05-11 Hitachi Ltd Back-up data management system
JP2005510796A (en) * 2001-11-26 2005-04-21 コグニマ リミテッド Method for replicating data between computer devices each using a local clock
JP2007200029A (en) * 2006-01-26 2007-08-09 Mitsubishi Electric Corp File copying system
JP2008305352A (en) * 2007-06-11 2008-12-18 Tatsuya Shindo Full text search system
JP2010033467A (en) * 2008-07-30 2010-02-12 Fujitsu Ltd Information management system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015064850A (en) * 2013-09-26 2015-04-09 日本電気株式会社 Database monitoring device, database monitoring method, and computer program
JP2019527883A (en) * 2016-07-04 2019-10-03 アリババ グループ ホウルディング リミテッド Database data change request processing method and apparatus
US11106695B2 (en) 2016-07-04 2021-08-31 Ant Financial (Hang Zhou) Network Technology Co., Ltd. Database data modification request processing
US11132379B2 (en) 2016-07-04 2021-09-28 Ant Financial (Hang Zhou) Network Technology Co., Ltd. Database data modification request processing
JP2018128881A (en) * 2017-02-09 2018-08-16 富士通株式会社 Difference log application program, difference log application device, and difference log application method
JP2018181042A (en) * 2017-04-17 2018-11-15 富士通株式会社 Record reflecting program, record reflecting device and record reflecting method
JP2021513168A (en) * 2018-02-27 2021-05-20 ベリタス テクノロジーズ エルエルシー Systems and methods for performing database backups for repairless restores

Similar Documents

Publication Publication Date Title
CN112099918B (en) Live migration of clusters in a containerized environment
KR101602312B1 (en) Data sending method, data receiving method, and storage device
EP2731013B1 (en) Backing up method, device, and system for virtual machine
US5649092A (en) Fault tolerant apparatus and method for maintaining one or more queues that are shared by multiple processors
US9250818B2 (en) Transferring learning metadata between storage servers having clusters via copy services operations on a shared virtual logical unit that stores the learning metadata
US8086810B2 (en) Rapid defragmentation of storage volumes
US6922763B2 (en) Method and apparatus for storage system
CN102741820A (en) Background migration of virtual storage
KR20170133866A (en) Apparatus and method for data migration
JP6987340B2 (en) Database data change request processing method and equipment
JP2011164704A (en) Client program, terminal, server device, system, and method
JP2013178685A (en) Data processing system with asynchronous backup function, front system, backup method and program therefor
US20160019247A1 (en) Building a metadata index from source metadata records when creating a target volume for subsequent metadata access from the target volume
JP2004054916A (en) Method of executing hardware support communication between processors
US8447940B2 (en) Backup copy enhancements to reduce primary version access
WO2020060620A1 (en) Storage segment server covered cache
US8738873B2 (en) Interfacing with a point-in-time copy service architecture
JP2007323657A (en) Method and system for storing transient state information, and computer program
KR20220011066A (en) Backup management method and system, electronic device and medium
JP2012089049A (en) Computer system and server
US20100235549A1 (en) Computer and input/output control method
JP4548037B2 (en) Cache memory management method, storage device or computer system
CN116049142A (en) Data processing method, device, electronic equipment and storage medium
US10089198B1 (en) Data storage system with active-standby system management
CN112711527A (en) Debugging method and device of real-time process, target machine and storage medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150119

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20151023

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20151104

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20160308