JP2003242014A - Database system and duplicating method - Google Patents

Database system and duplicating method

Info

Publication number
JP2003242014A
JP2003242014A JP2002040395A JP2002040395A JP2003242014A JP 2003242014 A JP2003242014 A JP 2003242014A JP 2002040395 A JP2002040395 A JP 2002040395A JP 2002040395 A JP2002040395 A JP 2002040395A JP 2003242014 A JP2003242014 A JP 2003242014A
Authority
JP
Japan
Prior art keywords
transaction
database
dbms
database system
information
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.)
Granted
Application number
JP2002040395A
Other languages
Japanese (ja)
Other versions
JP4138329B2 (en
Inventor
Shigeki Tsuchiya
繁樹 土屋
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.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP2002040395A priority Critical patent/JP4138329B2/en
Publication of JP2003242014A publication Critical patent/JP2003242014A/en
Application granted granted Critical
Publication of JP4138329B2 publication Critical patent/JP4138329B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To enable the update for a plurality of databases of DB at a remote location to synchronize with global transaction. <P>SOLUTION: A client terminal, not shown in the figure, in a DB system conducts business with a server machine 1, and, if any trouble occurs in the server machine 1, requests a server machine 14 to process the business. According to the business request from a client terminal, DB 5 managed by DBMS 15 and DB 6 managed by DBMS 16 in the global transaction 3 are updated. DBMS 15 and DBMS 16 updates the contents of their corresponding DB 8 and DB 10 for duplication, by their duplication function, to the contents of DB 5 and DB 6 respectively via a network 7. TM 2 then transfers the management information 13 of the transaction to acquire synchronization between DB 8 and DB 10, to TM 12 at a remote location. <P>COPYRIGHT: (C)2003,JPO

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、データベース(D
B)システム及びデュプリケート方法に係り、特に、複
数のDBを1つのグローバルトランザクションとして処
理し、遠隔地のDBの状態をこのグローバルトランザク
ションの結果に同期させることを可能にしたDBシステ
ム及びデュプリケート方法に関する。
TECHNICAL FIELD The present invention relates to a database (D
B) The present invention relates to a system and a duplication method, and more particularly, to a DB system and a duplication method capable of processing a plurality of DBs as one global transaction and synchronizing the state of a remote DB with the result of this global transaction.

【0002】[0002]

【従来の技術】一般に、DBの管理を行っているRM
(リソースマネージャ、具体的にはDBMS等である。
以下、DBMSという)は、独自にDBのデュプリケー
ト機能を持っており、これを用いることにより、遠隔地
のデータベースの内容との同期を取ることが可能であ
る。
2. Description of the Related Art Generally, an RM that manages a DB.
(A resource manager, specifically, a DBMS or the like.
(Hereinafter, referred to as DBMS) has its own DB duplication function, and by using this, it is possible to synchronize with the contents of a database at a remote place.

【0003】図5は従来技術によるDBのデュプリケー
トを説明するDBシステムの構成を示すブロック図であ
る。図5において、1、14はサーバ、35、36はD
BMS、43はユーザアプリケーション(UAP)、4
4、45はDB、46はネットワーク、47は通信手段
である。
FIG. 5 is a block diagram showing the structure of a DB system for explaining DB duplication according to the prior art. In FIG. 5, 1 and 14 are servers, and 35 and 36 are D.
BMS, 43 is a user application (UAP), 4
Reference numerals 4 and 45 are DBs, 46 is a network, and 47 is a communication means.

【0004】図5に示すDBシステムは、DB装置を構
成する2台のサーバマシン1と14とがネットワーク4
6を介して接続されて構成されている。そして、本番シ
ステムとしてのDB装置が構成されるサーバマシン1内
には、UAP43と、このUAP43により更新される
DB44と、DB44を管理するDBMS35が構成さ
れている。また、遠隔地に設置さるバックアップシステ
ムとしてのDB装置が構成されるサーバマシン14内に
は、DB45と、このDB45を管理するDBMSとが
構成されている。
In the DB system shown in FIG. 5, two server machines 1 and 14 constituting a DB device are connected to a network 4
It is configured to be connected via 6. Then, in the server machine 1 in which a DB device as a production system is configured, a UAP 43, a DB 44 updated by this UAP 43, and a DBMS 35 that manages the DB 44 are configured. In addition, a DB 45 and a DBMS that manages the DB 45 are configured in the server machine 14 that configures a DB device as a backup system installed in a remote place.

【0005】サーバマシン1上のDBMS35は、DB
MS35が管理するUAP43が更新するDB44を管
理しており、独自の通信手段47を用いて、ネットワー
ク46を通じて、遠隔地にあるサーバマシン14のDB
MS36に更新のための情報を転送する。この情報を受
け取ったDBMS36は、これにより、自DBMS36
が管理するデータベース45を更新すること、すなわ
ち、サーバマシン1、14内のDBの内容を一致させて
同期をとることが可能である。
The DBMS 35 on the server machine 1 is a DB
The DB 44 updated by the UAP 43 managed by the MS 35 is managed, and the DB of the server machine 14 at a remote location is managed through the network 46 using the unique communication means 47.
Transfer information for update to MS 36. The DBMS 36 that has received this information is
It is possible to update the database 45 managed by, that is, to synchronize the contents of the DBs in the server machines 1 and 14 with each other.

【0006】[0006]

【発明が解決しようとする課題】前述した従来技術は、
更新に遅延があるとしても、遠隔地のシステムのデータ
ベースを更新することが可能である。しかし、前述の従
来技術は、単体のDB装置相互間の内容の更新を行うこ
とができるものであり、この更新は、DBMS独自の機
能によって行われるものである。このため、DBとDB
MSとにより構成されるDB装置を複数有し、これらの
複数のDBを1つのグローバルトランザクションとして
処理するような大規模なシステムに、前述したような従
来技術を適用した場合、遠隔地のデータベースの状態を
前述のグローバルトランザクションの結果に同期させる
ことが不可能になってしまう。
DISCLOSURE OF THE INVENTION Problems to be Solved by the Invention
Even if there is a delay in updating, it is possible to update the database of the remote system. However, the above-mentioned conventional technique is capable of updating the contents between the single DB devices, and this updating is performed by the function unique to the DBMS. Therefore, DB and DB
When a conventional system as described above is applied to a large-scale system that has a plurality of DB devices configured by MS and processes these plurality of DBs as one global transaction, It would be impossible to synchronize the state with the outcome of the global transaction described above.

【0007】グローバルトランザクションとは、複数の
トランザクション(これらをトランザクションブランチ
と呼ぶ)を束ねて制御できる単位である。このグローバ
ルトランザクションの中には、複数のDB装置を含むこ
とが可能であり、この場合、複数のDBMS、複数のト
ランザクションブランチの決着を制御する機能が必要と
なる。この機能が、TM(トランザクションマネージ
ャ)と呼ばれるプログラムの基本機能である。TMは、
複数の決着のための情報を制御し、複数のトランザクシ
ョンブランチを1つのグローバルトランザクションとし
て制御する。1つのグローバルトランザクションの制御
下にあるトランザクションブランチ内のDBの更新結果
は、TMが制御するグローバルトランザクションの決着
に従って一意に決まる。
A global transaction is a unit that can control a plurality of transactions (these are called transaction branches) in a bundle. A plurality of DB devices can be included in this global transaction, and in this case, a function of controlling the settlement of a plurality of DBMSs and a plurality of transaction branches is required. This function is the basic function of a program called TM (transaction manager). TM is
It controls information for multiple settlements and controls multiple transaction branches as one global transaction. The update result of the DB in the transaction branch under the control of one global transaction is uniquely determined according to the settlement of the global transaction controlled by TM.

【0008】図4はグローバルトランザクションによる
DBの更新について説明するDBシステムの構成を示す
ブロック図である。図4において、22、27はTM、
23、30はUAP、26は連絡手段、31、32はD
B、33、34はDBMSである。図4に示すシステム
は、TM22、27を含むそれぞれのDBシステムが、
本番システム及びバックアップシステムとして動作する
ものとしている。
FIG. 4 is a block diagram showing the configuration of the DB system for explaining the DB update by the global transaction. In FIG. 4, 22 and 27 are TM,
23 and 30 are UAPs, 26 are communication means, 31 and 32 are D
B, 33, and 34 are DBMS. In the system shown in FIG. 4, each DB system including TM22 and 27 is
It is supposed to operate as a production system and a backup system.

【0009】図4において、各TMと各DBMSとの間
には、X/OPENで定められたXA連係機能という連
係機能28が備えられており、TMは、この連係機能2
8を使用してDBMSに対してトランザクション制御を
行う。UAP23は、DB更新機能24、すなわち、S
QLを使用してデータベース31を更新する機能を有
し、また、TM22が提供する通信手段29を使用して
別のUAP30に対して処理要求を行うことが可能であ
る。このとき、UAP30は、UAP23のトランザク
ションに対するトランザクションブランチとなる。そし
て、UAP30のDB更新機能24によるデータベース
32に対する更新は、UAP23のトランザクションと
含めて1つのグローバルトランザクションとしてTM2
2、TM27によって管理される。
In FIG. 4, a link function 28 called an XA link function defined by X / OPEN is provided between each TM and each DBMS, and TM has this link function 2
8 for transaction control to the DBMS. The UAP 23 uses the DB update function 24, that is, S
It has a function of updating the database 31 by using QL, and can make a processing request to another UAP 30 by using the communication means 29 provided by the TM 22. At this time, the UAP 30 becomes a transaction branch for the UAP 23 transaction. Then, the update of the database 32 by the DB update function 24 of the UAP 30 is performed as one global transaction including the transaction of the UAP 23 as TM2.
2, managed by TM27.

【0010】UAP23は、TM22のトランザクショ
ン制御機能25を呼び出してトランザクションを決着さ
せることができる。このとき、TM22は、TM27が
管理するUAP30のトランザクションも決着させるた
めに、連絡手段26を用いてTM27にそのトランザク
ションの決着を指示する。
The UAP 23 can call the transaction control function 25 of the TM 22 to settle the transaction. At this time, the TM 22 uses the contact means 26 to instruct the TM 27 to settle the transaction so that the transaction of the UAP 30 managed by the TM 27 is also settled.

【0011】前述したように、TM22とTM27とに
よって管理されるグローバルトランザクション内でのU
AP23によるDB31の更新と、UAP30によるD
B32の更新とは同期を取って行われるため、一方のD
Bだけが更新されているという状態にはならない。すな
わち、TMの制御によってグローバルトランザクション
内の複数のトランザクションブランチの結果は一意に保
たれることになる。
As described above, U within the global transaction managed by TM22 and TM27.
Update of DB31 by AP23 and D by UAP30
Since it is performed in synchronization with the update of B32, one of D
Only B is not updated. That is, the result of a plurality of transaction branches in the global transaction is kept unique under the control of TM.

【0012】現在のDBMSのデュプリケート機能は、
例えば、図4により説明した例で言えば、DBMS31
とDBMS32とが互いに独立したタイミングで遠隔地
のDBMSで管理されているDBを更新する。このた
め、UAP23がDB31を更新した結果は、遠隔地に
おけるDB32に反映されているが、UAP30がDB
32を更新した結果は、まだ、DB31に反映されてい
ないというようなタイミングが存在し得る。
The current DBMS duplicate function is
For example, referring to the example described with reference to FIG.
And the DBMS 32 update the DB managed by the remote DBMS at a timing independent of each other. Therefore, the result of the UAP23 updating the DB31 is reflected in the DB32 at the remote location, but the UAP30 updates the DB31.
There may be a timing at which the result of updating 32 is not yet reflected in the DB 31.

【0013】このため、グローバルトランザクション内
で複数のデータベースを更新する必要がある大規模シス
テムであって、災害対策システムのような遠隔地のDB
に更新結果を反映させる必要があるシステムにおいて
は、ユーザ自身の工夫で同期を取る手段を講じる必要が
あった。例えば、複数のDBに依存しないようにする、
トランザクションブランチを作らないようにする等の業
務アプリケーションの構成を制約したり、トランザクシ
ョンを発生させた元データを転送し、同様のトランザク
ションを発生させる等の手段を用いる等により、並列処
理を業務アプリケーションで実現する必要があった。
Therefore, it is a large-scale system that needs to update a plurality of databases in a global transaction, and is a DB in a remote place such as a disaster countermeasure system.
In the system where it is necessary to reflect the update result in, it was necessary to devise a means for synchronizing by devising the user himself. For example, do not depend on multiple DBs,
Parallel processing can be performed by a business application by restricting the configuration of the business application such as not creating a transaction branch, or by using a means of transferring the original data that generated the transaction and generating a similar transaction. Had to come true.

【0014】本発明の目的は、前述したような必要を回
避し、グローバルトランザクションを管理するTMによ
り、遠隔地における複数DBの同期更新手段を提供し、
遠隔地における複数のDBのデータベースの更新をグロ
ーバルトランザクションに同期させることを可能にした
DBシステム及びデュプリケート方法を提供することに
ある。
An object of the present invention is to provide a means for synchronizing and updating a plurality of DBs at a remote location by using TM that manages global transactions while avoiding the above need.
It is an object of the present invention to provide a DB system and a duplication method capable of synchronizing database updates of a plurality of DBs at remote locations with a global transaction.

【0015】[0015]

【課題を解決するための手段】本発明によれば前記目的
は、複数のデータベースを有し、それぞれがトランザク
ションマネージャを備える少なくとも2台のデータベー
スシステムを通信手段により接続して構成されるデータ
ベースシステムにおいて、一方のデータベースシステム
のトランザクションマネージャが、自データベースシス
テムのグローバルトランザクション内で更新された複数
のデータベースの更新結果を他方データベースシステム
内のデータベースに反映させるためのトランザクション
の決着情報を含むトランザクション管理情報を、他方の
データベースシステムのトランザクションマネージャに
転送する手段を備え、他方のデータベースシステムのト
ランザクションマネージャが、受け取ったトランザクシ
ョン管理情報に基づいて、自システム内のデータベース
の更新を行う手段を備えることにより達成される。
According to the present invention, the object is to provide a database system comprising a plurality of databases, each database system having at least two transaction managers connected by communication means. , The transaction manager of one database system includes transaction management information including transaction settlement information for reflecting the update results of the multiple databases updated in the global transaction of the own database system to the database in the other database system, A means for transferring to the transaction manager of the other database system is provided, and the transaction manager of the other database system is based on the received transaction management information. There are, is achieved by providing a means for updating the database in its own system.

【0016】[0016]

【発明の実施の形態】以下、本発明によるグローバルト
ランザクション制御システム及び制御方法の実施形態を
図面により詳細に説明する。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of a global transaction control system and control method according to the present invention will be described below in detail with reference to the drawings.

【0017】図1は本発明の一実施形態によるグローバ
ルトランザクション制御を使用するDBシステムの構成
を示すブロック図、図2は遠隔地側のDBシステムでの
回復処理を説明する遠隔地側DBシステムの構成を示す
ブロック図、図3はトランザクション管理情報13につ
いて説明する図である。図1〜図3において、2、12
はTM、3はグローバルトランザクション、4はUA
P、5、6、8、10はDB、9、11は回復情報、1
3はトランザクション管理情報、15、16、37、3
8はDBMSであり、他の符号は図5の場合と同一であ
る。
FIG. 1 is a block diagram showing the configuration of a DB system that uses global transaction control according to an embodiment of the present invention, and FIG. 2 is a diagram showing a remote side DB system for explaining recovery processing in the remote side DB system. FIG. 3 is a block diagram showing the configuration, and FIG. 3 is a diagram for explaining the transaction management information 13. 1 to 3, 2, 12
Is TM, 3 is global transaction, 4 is UA
P, 5, 6, 8, 10 is DB, 9 and 11 is recovery information, 1
3 is transaction management information, 15, 16, 37, 3
Reference numeral 8 is a DBMS, and other reference numerals are the same as those in FIG.

【0018】図1に示すDBシステムは、DBシステム
を構成する2台のサーバマシン1と14とがネットワー
ク46を介して接続されて構成されている。そして、本
番システムとしてのDBシステムが構成されるサーバマ
シン1内には、TM2と、UAP4と、このUAP4に
より更新されるDB5及びDB5を管理するDBMS1
5によるDB装置と、UAP4により更新されるDB6
及びDB6を管理するDBMS16によるDB装置とが
構成されている。そして、UAP4と、前述の2つのD
B装置とによりグローバルトランザクションが構成され
ている。
The DB system shown in FIG. 1 is constructed by connecting two server machines 1 and 14 constituting the DB system via a network 46. Then, in the server machine 1 in which the DB system as the production system is configured, TM2, UAP4, DB5 updated by this UAP4 and DBMS1 for managing DB5
DB device by 5 and DB6 updated by UAP4
And a DB device by the DBMS 16 that manages the DB 6. And UAP4 and the above two D
A global transaction is constituted by the B device.

【0019】また、遠隔地に設置さる災害対策用のバッ
クアップシステムとしてのDBシステムが構成されるサ
ーバマシン14内には、TM12と、DB8及びDB8
を管理するDBMS37によるDB装置と、DB10及
びDB10を管理するDBMS38によるDB装置とが
構成され、TM2から転送されるトランザクションを管
理するトランザクション管理情報13が格納されてい
る。
In addition, TM12, DB8, and DB8 are installed in the server machine 14 in which a DB system as a backup system for disaster countermeasures, which is installed in a remote place, is formed.
A DB device by the DBMS 37 that manages the DB and a DB device by the DBMS 38 that manages the DB 10 and the DB 10 are configured, and the transaction management information 13 that manages the transaction transferred from the TM 2 is stored.

【0020】通常、図1に示すDBシステムの図示しな
いクライアント端末は、サーバマシン1を相手に業務を
行っているが、サーバマシン1が存在する地域に何らか
の障害が発生し、サーバマシン1での業務が続行困難に
なった場合、サーバマシン14に対して業務の処理を要
求をする。いま、クライアントからのある業務が、グロ
ーバルトランザクション3であるとする。通常、クライ
アント端末からトランザクションを発生させることはな
い。従って、以下では、サーバマシン内の動作について
説明する。
Normally, the client terminal (not shown) of the DB system shown in FIG. 1 is performing business with the server machine 1 as a partner, but some failure occurs in the area where the server machine 1 exists and the server machine 1 When the business becomes difficult to continue, the server machine 14 is requested to process the business. Now, it is assumed that a certain task from the client is the global transaction 3. Normally, a transaction is not generated from the client terminal. Therefore, the operation in the server machine will be described below.

【0021】クライアント端末からの業務の要求によ
り、グローバルトランザクション3内でDBMS15が
管理するDB5、DBMS16が管理するDB6が更新
され、グローバルトランザクション3をコミットする。
DB5とDB6とは、TM2の機能によって同期を取っ
てデータベースの内容を更新するため、DB5とDB6
との更新内容は同期が正しく取れている。クライアント
からはさまざまな業務要求が図示システムに投入されて
おり、DB5、DB6にその結果が反映される。
In response to a business request from the client terminal, the DB 5 managed by the DBMS 15 and the DB 6 managed by the DBMS 16 are updated in the global transaction 3, and the global transaction 3 is committed.
Since DB5 and DB6 update the contents of the database in synchronization with the function of TM2, DB5 and DB6
The update contents of and are synchronized correctly. Various work requests are input from the client to the illustrated system, and the results are reflected in DB5 and DB6.

【0022】DBMS15、DBMS16のそれぞれ
は、従来のデータベースのデュプリケート機能により、
遠隔地のそれぞれに対応する複製用DBであるDBMS
37が管理するDB8、DBMS38が管理するDB1
0をネットワーク7を通じてDB5、DB6の内容に更
新することができる。この場合の転送処理は、DBMS
15、16によって実行されるが、その転送間隔は、D
BMS15とDBMS16とで同期しているわけではな
い。本発明の実施形態は、前述したようなDBMSのデ
ュプリケート機能による遠隔地DBへの複製に加え、D
B8とDB10との間の同期をとるためのトランザクシ
ョンの管理情報13を、TM2がトランザクションの管
理情報を転送する機能17を用いて遠隔地のTM12に
対して転送することとしている。
Each of the DBMS 15 and the DBMS 16 has a conventional database duplication function.
DBMS that is a replication DB corresponding to each remote location
DB8 managed by 37 and DB1 managed by DBMS38
0 can be updated to the contents of DB5 and DB6 through the network 7. In this case, the transfer process is DBMS
15 and 16, the transfer interval is D
The BMS 15 and the DBMS 16 are not synchronized. The embodiment of the present invention, in addition to the replication to the remote DB by the duplicate function of the DBMS as described above,
The transaction management information 13 for synchronizing between B8 and DB10 is to be transferred to the remote TM12 using the function 17 for transferring the transaction management information by TM2.

【0023】トランザクションの管理情報13は、図3
に示すように、複数のトランザクション情報42を含ん
で構成されている。1つのトランザクション情報42に
は、トランザクション識別子39、トランザクションの
コミット/ロールバック等の決着情報40、このトラン
ザクションに参加していたDBMS41の情報等が含ま
れている。
The transaction management information 13 is shown in FIG.
As shown in FIG. 5, it is configured to include a plurality of transaction information 42. One piece of transaction information 42 includes a transaction identifier 39, settlement information 40 such as transaction commit / rollback, and information on the DBMS 41 participating in this transaction.

【0024】次に、図2を参照して、遠隔地側のサーバ
マシン14における回復処理について説明する。
Next, the recovery process in the server machine 14 on the remote side will be described with reference to FIG.

【0025】DBMS15、DBMS16により転送さ
れてきているDB5、DB6の更新内容は、それぞれ、
図2に示す回復情報9、11として、DBMS37とD
BMS38との中に一旦保持されている。一方、遠隔地
に設置されるサーバマシン14内のTM12は、転送さ
れてきた転送元TM2でのトランザクションの管理情報
13に基づき、参加していたDBMSの情報41によっ
てDBMS37、DBMS38に対し、トランザクショ
ンの決着情報40のトランザクションの情報に従い、ト
ランザクション決着準備指示を行う機能20を用いてD
BMS37、38にトランザクション決着準備指示を行
う。この指示には、トランザクション識別子39を使用
する。
The updated contents of DB5 and DB6 transferred by the DBMS15 and DBMS16 are respectively
DBMS 37 and D as the recovery information 9 and 11 shown in FIG.
It is once held in the BMS38. On the other hand, the TM 12 in the server machine 14 installed in the remote place sends the transaction information to the DBMS 37 and the DBMS 38 by the information 41 of the participating DBMS based on the transaction management information 13 of the transferred transfer source TM 2. D using the function 20 for issuing a transaction settlement preparation instruction according to the transaction information in the settlement information 40
A transaction settlement preparation instruction is issued to the BMS 37, 38. The transaction identifier 39 is used for this instruction.

【0026】トランザクションの決着準備指示を受けた
DBMS37、DBMS38は、それぞれ、指示のあっ
たトランザクション識別子39に対応するデータベース
更新のための情報が回復情報9、回復情報11に存在す
るか否かをチェックし、存在していれば、準備ができて
いる旨を回答する。TM12は、DBMS37、DBM
S38からの回答を受け、更新可能な状態であると判断
することができた場合、トランザクションの決着指示を
行う機能21を用いて、DBMS37、DBMS38に
対して更新を行うように指示する。更新指示を受けたD
BMS37、DBMS38は、それぞれ、回復情報9、
回復情報11を用いてデータベース8、データベース1
0を更新する。
The DBMS 37 and the DBMS 38 that have received the transaction settlement preparation instruction check whether or not the information for updating the database corresponding to the instructed transaction identifier 39 exists in the recovery information 9 and the recovery information 11, respectively. If so, then reply that it is ready. TM12 is DBMS37, DBM
When it is possible to determine that the state is updatable in response to the response from S38, the function to issue a transaction settlement instruction 21 is used to instruct the DBMS 37 and the DBMS 38 to perform the update. D who received the update instruction
The BMS 37 and the DBMS 38 have recovery information 9 and
Database 8 and database 1 using recovery information 11
Update 0.

【0027】図6は前述した遠隔地側のDBシステムで
の回復処理の動作を説明するフローチャートであり、次
に、これについ説明する。
FIG. 6 is a flow chart for explaining the operation of the recovery process in the above-mentioned remote side DB system. Next, this will be explained.

【0028】(1)トランザクションの管理情報13の
読み出しを行い、トランザクションの管理情報があれ
ば、トランザクション識別子、トランザクションのコミ
ットかロールバックか等の決着情報、参加していたDB
MSの情報を取得する(ステップ100)。
(1) The transaction management information 13 is read out, and if there is transaction management information, the transaction identifier, the settlement information such as whether the transaction is committed or rolled back, and the DB that has participated.
The MS information is acquired (step 100).

【0029】(2)ステップ100で取得した情報に基
づいて、まず、情報内のトランザクションに参加してい
た1つのDBMSに対して決着準備の指示を行い、その
指示に対する回答が決着してもよいという回答であるか
否かをチェックする(ステップ101、102)。
(2) Based on the information obtained in step 100, first, a settlement preparation instruction may be issued to one DBMS participating in the transaction in the information, and the answer to the instruction may be settled. Is checked (steps 101 and 102).

【0030】(3)ステップ102で、決着してもよい
という回答が得られていれば、次のDB、すなわち、D
BMSが存在するか確認し、他にDBがあるか否かをチ
ェックする。もし、他にDBがあれば、ステップ101
からの処理に戻って、他のDBMSに対して決着準備指
示を行う(ステップ104、ステップ105)。
(3) In step 102, if the answer is that the decision may be made, the next DB, that is, D
Confirm whether BMS exists and check whether there is another DB. If there is another DB, step 101
Returning to the processing from, the settlement preparation instruction is given to the other DBMS (step 104, step 105).

【0031】(4)ステップ102のチェックで、決着
してもよいという回答が得られなかった場合、一定時間
保留した後、ステップ101からの処理に戻って、再度
実行する(ステップ103)。
(4) If the answer at step 102 is that the decision may not be made, then after holding for a certain period of time, the process returns to step 101 and is executed again (step 103).

【0032】(5)ステップ105のチェックで、他に
DBがなかった場合、すなわち、全てのDBMSから準
備ができているという回答をもらった場合、それら全て
のトランザクションに参加しているDBMSに対して決
着の指示を行う(ステップ106)。
(5) When there is no other DB in the check in step 105, that is, when all the DBMSs reply that they are ready, the DBMSs participating in all the transactions are And an instruction for settlement is given (step 106).

【0033】(6)その後、まだトランザクション情報
があるか否かをチェックし、存在していれば、ステップ
100からの処理に戻って、次に、その情報に基づいて
そのトランザクションの処理を行い、また、トランザク
ション情報がなければ、情報が転送されくるのを待つ
(ステップ107、108)。
(6) After that, it is checked whether or not transaction information still exists, and if it exists, the process returns to step 100, and then the transaction is processed based on that information. If there is no transaction information, it waits for the information to be transferred (steps 107 and 108).

【0034】前述した本発明の実施形態による各処理
は、処理プログラムとして構成することができ、この処
理プログラムは、HD、DAT、FD、MO、DVD−
ROM、CD−ROM等の記録媒体に格納して提供する
ことができる。
Each processing according to the above-described embodiment of the present invention can be configured as a processing program, and the processing program is HD, DAT, FD, MO, DVD-.
It can be provided by being stored in a recording medium such as a ROM or a CD-ROM.

【0035】前述した本発明の実施形態によれば、転送
元であるサーバマシン1でグローバルトランザクション
3として更新されたDB5、DB6の更新内容を、遠隔
地のサーバマシン14内のDB15、DB16に、同期
を取って正しく更新することができ、災害対策システム
のような遠隔地に冗長なシステムを構築して災害に備え
るDBシステムの高信頼化を実現することができる。
According to the above-described embodiment of the present invention, the updated contents of DB5 and DB6 updated as the global transaction 3 in the transfer source server machine 1 are transferred to DB15 and DB16 in the remote server machine 14, respectively. It is possible to update them synchronously and correctly, and it is possible to build a redundant system such as a disaster countermeasure system in a remote place to realize high reliability of a DB system prepared for a disaster.

【0036】[0036]

【発明の効果】以上説明したように本発明によれば、複
数のデータベースをグローバルトランザクションで更新
する大規模なシステムにおいて、遠隔地でその更新情報
を正しく同期を取って反映させることが可能になる。こ
の結果、遠隔地に冗長なシステムを構築した災害対策シ
ステムの高信頼化を図ることができる。
As described above, according to the present invention, in a large-scale system for updating a plurality of databases by a global transaction, it is possible to reflect the update information in a remote place in a correct synchronization. . As a result, it is possible to improve the reliability of the disaster countermeasure system in which a redundant system is constructed in a remote place.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の一実施形態によるグローバルトランザ
クション制御を使用するDBシステムの構成を示すブロ
ック図である。
FIG. 1 is a block diagram showing a configuration of a DB system using global transaction control according to an embodiment of the present invention.

【図2】遠隔地側のDBシステムでの回復処理を説明す
る遠隔地側DBシステムの構成を示すブロック図であ
る。
FIG. 2 is a block diagram showing a configuration of a remote side DB system for explaining recovery processing in the remote side DB system.

【図3】トランザクション管理情報13について説明す
る図である。
FIG. 3 is a diagram illustrating transaction management information 13.

【図4】グローバルトランザクションによるDBの更新
について説明するDBシステムの構成を示すブロック図
である。
FIG. 4 is a block diagram showing a configuration of a DB system for explaining DB updating by a global transaction.

【図5】従来技術によるDBのデュプリケートを説明す
るDBシステムの構成を示すブロック図である。
FIG. 5 is a block diagram showing a configuration of a DB system for explaining DB duplication according to a conventional technique.

【図6】遠隔地側のDBシステムでの回復処理の動作を
説明するフローチャートである。
FIG. 6 is a flowchart illustrating an operation of a recovery process in the DB system on the remote side.

【符号の説明】[Explanation of symbols]

1、14 サーバマシン 2、12、22、27 TM 3 グローバルトランザクション 4、23、30、43 ユーザアプリケーション(UA
P) 5、6、8、10、31、32、44、45 DB 9、10 回復情報 13 トランザクション管理情報 15、16、、33〜38 DBMS 26 連絡手段 46 ネットワーク 47 通信手段
1, 14 Server machine 2, 12, 22, 27 TM 3 Global transaction 4, 23, 30, 43 User application (UA
P) 5, 6, 8, 10, 31, 32, 44, 45 DB 9, 10 Recovery information 13 Transaction management information 15, 16, 33-38 DBMS 26 Contact means 46 Network 47 Communication means

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 複数のデータベースを有し、それぞれが
トランザクションマネージャを備える少なくとも2台の
データベースシステムを通信手段により接続して構成さ
れるデータベースシステムにおいて、一方のデータベー
スシステムのトランザクションマネージャは、自データ
ベースシステムのグローバルトランザクション内で更新
された複数のデータベースの更新結果を他方データベー
スシステム内のデータベースに反映させるためのトラン
ザクション管理情報を、他方のデータベースシステムの
トランザクションマネージャに転送する手段を備えるこ
とを特徴とするデータベースシステム。
1. A database system having a plurality of databases, each of which is provided with a transaction manager and is configured by connecting at least two database systems by communication means, wherein the transaction manager of one database system is its own database system. Database that includes transaction management information for reflecting the update results of a plurality of databases updated in the other global transaction to the database in the other database system to the transaction manager of the other database system. system.
【請求項2】 前記他方のデータベースシステムのトラ
ンザクションマネージャは、受け取ったトランザクショ
ン管理情報に基づいて、自システム内のデータベースの
更新を行う手段を備えることを特徴とする請求項1記載
のデータベースシステム。
2. The database system according to claim 1, wherein the transaction manager of the other database system comprises means for updating the database in the own system based on the received transaction management information.
【請求項3】 複数のデータベースを有し、それぞれが
トランザクションマネージャを備える少なくとも2台の
データベースシステムを通信手段により接続して構成さ
れるデータベースシステムにおけるデュプリケート方法
において、一方のデータベースシステムのトランザクシ
ョンマネージャは、自データベースシステムのグローバ
ルトランザクション内で更新された複数のデータベース
の更新結果を他方データベースシステム内のデータベー
スに反映させるためのトランザクション管理情報を、他
方のデータベースシステムのトランザクションマネージ
ャに転送することを特徴とするデュプリケート方法。
3. A duplication method in a database system having a plurality of databases, each of which is provided with a transaction manager and is connected by communication means, wherein the transaction manager of one database system comprises: Duplicate characterized by transferring transaction management information for reflecting the update results of multiple databases updated in the global transaction of the own database system to the database in the other database system to the transaction manager of the other database system Method.
【請求項4】 前記他方のデータベースシステムのトラ
ンザクションマネージャは、受け取ったトランザクショ
ン管理情報に基づいて、自システム内のデータベースの
更新を行うことを特徴とする請求項3記載のデュプリケ
ート方法。
4. The duplicate method according to claim 3, wherein the transaction manager of the other database system updates the database in its own system based on the received transaction management information.
【請求項5】 請求項3記載のデュプリケート方法を実
現する処理プログラムであって、データベースシステム
のグローバルトランザクション内で更新された複数のデ
ータベースの更新結果を他方データベースシステム内の
データベースに反映させるためのトランザクション管理
情報を、他方のデータベースシステムのトランザクショ
ンマネージャに転送する処理プログラム。
5. A processing program for realizing the duplicate method according to claim 3, wherein the transaction is for reflecting the update results of a plurality of databases updated in the global transaction of the database system in the database in the other database system. A processing program that transfers management information to the transaction manager of the other database system.
JP2002040395A 2002-02-18 2002-02-18 Data processing system and data processing method Expired - Fee Related JP4138329B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002040395A JP4138329B2 (en) 2002-02-18 2002-02-18 Data processing system and data processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002040395A JP4138329B2 (en) 2002-02-18 2002-02-18 Data processing system and data processing method

Publications (2)

Publication Number Publication Date
JP2003242014A true JP2003242014A (en) 2003-08-29
JP4138329B2 JP4138329B2 (en) 2008-08-27

Family

ID=27781143

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002040395A Expired - Fee Related JP4138329B2 (en) 2002-02-18 2002-02-18 Data processing system and data processing method

Country Status (1)

Country Link
JP (1) JP4138329B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006092005A (en) * 2004-09-21 2006-04-06 Hitachi Ltd Data processing method, database system, and storage device
KR100694161B1 (en) * 2006-02-10 2007-03-12 삼성전자주식회사 Method of managing distributed contents and apparatus therefor

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006092005A (en) * 2004-09-21 2006-04-06 Hitachi Ltd Data processing method, database system, and storage device
JP4549793B2 (en) * 2004-09-21 2010-09-22 株式会社日立製作所 Data processing method, database system, and storage device
KR100694161B1 (en) * 2006-02-10 2007-03-12 삼성전자주식회사 Method of managing distributed contents and apparatus therefor

Also Published As

Publication number Publication date
JP4138329B2 (en) 2008-08-27

Similar Documents

Publication Publication Date Title
EP2281240B1 (en) Maintaining data integrity in data servers across data centers
US9984140B1 (en) Lease based leader election system
US7523110B2 (en) High availability designated winner data replication
US7882079B2 (en) Database system configured for automatic failover with user-limited data loss
KR102441997B1 (en) Apparatus for controlling synchronization of metadata on network and method for the same
EP1349085A2 (en) Collision avoidance in database replication systems
EP1704480B1 (en) Cluster database with remote data mirroring
JPH07319748A (en) System and method for maintenance of copy data consistency at inside of data processing system
JP2003076592A (en) Data storage system
CN102640108A (en) Monitoring of replicated data instances
CN102656565A (en) Failover and recovery for replicated data instances
US8504873B1 (en) Method and apparatus for providing in-memory checkpoint services within a distributed transaction
JP2000137694A (en) System and method for supplying continuous data base access by using common use redundant copy
JPH11327982A (en) Fault restoration method for distributed data base system
JPH04229333A (en) Apparatus and method for asynchronous re-synchronization execution in commiting procedure
JPH11345130A (en) Method for achieving data matching by synchronization with plural data stores
TW201824030A (en) Main database/backup database management method and system and equipment thereof
CN110830582B (en) Cluster owner selection method and device based on server
US8522069B2 (en) Process for secure backspacing to a first data center after failover through a second data center and a network architecture working accordingly
KR101605455B1 (en) Method for Replicationing of Redo Log without Data Loss and System Thereof
JP2013206072A (en) Data matching system, data matching method, and data matching program
US20090106781A1 (en) Remote call handling methods and systems
CA2619778C (en) Method and apparatus for sequencing transactions globally in a distributed database cluster with collision monitoring
JP2003242014A (en) Database system and duplicating method
JP5480046B2 (en) Distributed transaction processing system, apparatus, method and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040730

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20071120

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080121

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080219

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080418

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20080513

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20080605

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110613

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110613

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120613

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120613

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130613

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees