JPH09146804A - Data matching device - Google Patents
Data matching deviceInfo
- Publication number
- JPH09146804A JPH09146804A JP7309059A JP30905995A JPH09146804A JP H09146804 A JPH09146804 A JP H09146804A JP 7309059 A JP7309059 A JP 7309059A JP 30905995 A JP30905995 A JP 30905995A JP H09146804 A JPH09146804 A JP H09146804A
- Authority
- JP
- Japan
- Prior art keywords
- data
- sql statement
- conversion
- attribute
- relational database
- 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.)
- Withdrawn
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
(57)【要約】
【目的】 複数のRDBMS間で互いのDBテーブルの
レコードデータの整合性を保ちつつデータのやり取りを
行う。
【構成】このデータ整合装置は、予め複数のRDBMS
11、21の属性と、それぞれに対するSQL 文の変換規
則が定義されているSQL 文変換定義ファイル23と、R
DBMS11側のデータをファイル転送などによりRD
BMS21側に送信するトランザクション監視機能部1
4と、RDBMS11側からのデータを受信し、SQL 文
変換定義ファイル23の変換規則を基に、受信したデー
タのSQL 文をRDBMS21に対応するSQL 文に変換
し、そのSQL 文と属性とを対応させてRDBMS21の
中へローディングし、このSQL 文のローディングが正常
に完了した時点で、RDBMS11側のトランザクショ
ン監視機能部14に対して正常終了のメッセージを返信
するSQL 文ローディング機能部22とを具備する。
(57) [Summary] [Purpose] Data is exchanged between a plurality of RDBMS while maintaining the consistency of the record data of the DB table. [Structure] This data matching device has a plurality of RDBMS in advance.
The SQL statement conversion definition file 23 in which the attributes 11 and 21 and the conversion rules of the SQL statement for each are defined, and R
RD of the data of DBMS11 side by file transfer etc.
Transaction monitoring function unit 1 to send to the BMS 21 side
4 and the data from the RDBMS11 side are received, and based on the conversion rule of the SQL statement conversion definition file 23, the SQL statement of the received data is converted into the SQL statement corresponding to RDBMS21, and the SQL statement and the attribute are corresponded. And a SQL statement loading function unit 22 for returning a normal termination message to the transaction monitoring function unit 14 on the RDBMS 11 side when the loading of the SQL statement is completed normally. .
Description
【0001】[0001]
【産業上の利用分野】本発明は、例えば異なるリレーシ
ョナルデータベース管理システム(RDBMS)間にお
いてデータ整合を行うデータ整合装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data matching device for matching data between different relational database management systems (RDBMS).
【0002】[0002]
【従来の技術】従来から、異種RDBMS間では、互い
に内部構造が異なることからデータのやり取りが困難で
あり改善が望まれている。2. Description of the Related Art Conventionally, since different RDBMSs have different internal structures from each other, it is difficult to exchange data, and improvement is desired.
【0003】従来、複数のリレーショナルデータベース
管理システム(RDBMS)間において、互いのデータ
ベース間でデータのやり取りを行う場合、一方のRDB
MSから他方に対してトランザクションを起こし、互い
のデータベースのテーブル構造が同じであれば、一方の
データベースのデータを他方にレコードすることが可能
であり、この場合に限り他方のRDBMSのテーブルの
内容が更新される。Conventionally, when a plurality of relational database management systems (RDBMS) exchange data between databases, one RDB
It is possible to record data of one database in the other if the table structure of each database is the same when the transaction from the MS is made to the other and only in this case, the contents of the table of the other RDBMS can be recorded. Will be updated.
【0004】ところで、互いのテーブル構造が同じであ
ったとしても、それぞれのRDBMSが独自に持ってい
る属性が異なる場合がある。Even if the RDBMSs have the same table structure, the RDBMSs may have different attributes.
【0005】この場合、両者のテーブルのレコードデー
タの整合性が保てなくなるため、データのやり取りがで
きない。In this case, the consistency of the record data in both tables cannot be maintained, and data cannot be exchanged.
【0006】[0006]
【発明が解決しようとする課題】このように従来の複数
のリレーショナルデータベース管理システム間におい
て、データのやり取りを行う場合、互いのテーブル構造
が同じであっても、それぞれの属性が異なる場合は、両
者のテーブルのレコードデータの整合性が保てなくなる
ためデータのやり取りができないという問題があった。As described above, when data is exchanged between a plurality of conventional relational database management systems, if the respective table structures are the same but the respective attributes are different, the two There was a problem that the data could not be exchanged because the consistency of the record data of the table could not be maintained.
【0007】本発明はこのような課題を解決するために
なされたもので、異種リレーショナルデータベース管理
システム間において、データのやり取りを行うことので
きるデータ整合装置を提供することを目的としている。The present invention has been made to solve the above problems, and an object thereof is to provide a data matching device capable of exchanging data between heterogeneous relational database management systems.
【0008】[0008]
【課題を解決するための手段】上記した目的を達成する
ために、請求項1記載のデータ整合装置は、複数のリレ
ーショナルデータベース管理システム間のデータ通信を
取り持つデータ整合装置において、前記複数のリレーシ
ョナルデータベース管理システムの属性と、その属性に
応じた通信データの変換規則を予め定義した変換規則定
義手段と、一方のリレーショナルデータベース管理シス
テム側から他方に通信データを送信する送信手段と、前
記送信手段からの通信データを受信手段と、前記受信手
段により受信された通信データを、前記変換規則定義手
段の変換規則を基に送信元の属性に対応する通信データ
に変換する変換手段と、前記変換手段により変換された
通信データとその属性とを対応させて保存するデータ保
存手段と、前記データ保存手段に通信データが正常に保
存された時点で、前記送信手段に対して正常終了を示す
情報を返信する返信手段とを具備している。In order to achieve the above-mentioned object, a data matching device according to claim 1 is a data matching device which handles data communication between a plurality of relational database management systems. An attribute of the management system and a conversion rule defining unit that predefines a conversion rule of communication data according to the attribute, a transmitting unit that transmits communication data from one relational database management system side to the other, and a transmitting unit from the transmitting unit. Receiving means for receiving communication data, converting means for converting the communication data received by the receiving means into communication data corresponding to the attribute of the transmission source based on the conversion rule of the conversion rule defining means, and converting by the converting means A data storage unit that stores the communication data that has been transmitted and its attributes in association with each other; When the communication data storage means data was successfully saved, and a returning means for returning information indicating success to the transmitting means.
【0009】また請求項2記載のデータ整合装置は、複
数のリレーショナルデータベース管理システム間のデー
タ通信を取り持つデータ整合装置において、前記複数の
リレーショナルデータベース管理システムの属性と、そ
れぞれに対するSQL 文の変換規則を予め定義したSQL 文
変換定義ファイルと、一方のリレーショナルデータベー
ス管理システム側から他方にデータを送信するトランザ
クション監視機能部と、前記トランザクション監視機能
部からのデータを受信し、前記SQL 文変換定義ファイル
の変換規則を基に、受信したデータのSQL 文を送信元の
属性に対応するSQL 文に変換し、そのSQL 文と属性とを
対応させて自身のデータベースへローディングし、この
SQL 文のローディングが正常に完了した時点で、前記ト
ランザクション監視機能部に対して正常終了のメッセー
ジを返信するSQL 文ローディング機能部とを具備してい
る。According to a second aspect of the present invention, there is provided a data matching device which handles data communication between a plurality of relational database management systems, wherein attributes of the plurality of relational database management systems and conversion rules of SQL statements for the respective relations are set. A predefined SQL statement conversion definition file, a transaction monitoring function unit that sends data from one relational database management system side to the other, and data from the transaction monitoring function unit, and converts the SQL statement conversion definition file Based on the rules, the SQL statement of the received data is converted into the SQL statement corresponding to the attribute of the sender, and the SQL statement and the attribute are matched and loaded into the own database.
An SQL statement loading function unit that returns a normal termination message to the transaction monitoring function unit when the SQL statement loading is completed normally.
【0010】なお互いに整合性を取ろうとしている複数
のリレーショナルデータベース管理システムそれぞれの
内部のテーブル構造は同じであることが前提である。Note that it is premised that the internal table structures of the plurality of relational database management systems that are trying to achieve consistency with each other are the same.
【0011】[0011]
【作用】請求項1記載の発明では、送信手段からの通信
データを受信手段が受信すると、その通信データは、変
換規則定義手段の変換規則を基に送信元の属性に対応す
る通信データに変換され、その通信データと属性とが対
応されてデータ保存手段に保存される。そしてその通信
データが正常に保存された時点で送信手段に正常終了を
示す情報が返信される。According to the first aspect of the invention, when the receiving means receives the communication data from the transmitting means, the communication data is converted into communication data corresponding to the attribute of the transmission source based on the conversion rule of the conversion rule defining means. Then, the communication data and the attribute are associated with each other and stored in the data storage means. Then, when the communication data is normally stored, the information indicating the normal end is returned to the transmitting means.
【0012】したがって、異なるリレーショナルデータ
ベース管理システム間において、両者のテーブルのレコ
ードデータの整合性が保てるようになり、異種リレーシ
ョナルデータベース管理システム間において、データの
やり取りを行えるようになる。 また請求項2記載の発
明では、一方のリレーショナルデータベース管理システ
ムのトランザクション監視機能部から他方に対してトラ
ンザクションが発生し、他方でデータを受信すると、SQ
L 文ローディング機能部は、SQL 文変換定義ファイルの
変換規則を基に、受信したデータのSQL 文を送信元の属
性に対応するSQL 文に変換し、そのSQL 文と属性とを対
応させて自身のデータベースへローディングし、このSQ
L 文のローディングが正常に完了した時点で、トランザ
クション監視機能部に対して正常終了のメッセージを返
信する。Therefore, the consistency of the record data of both tables can be maintained between different relational database management systems, and data can be exchanged between different types of relational database management systems. Further, in the invention according to claim 2, when a transaction occurs from the transaction monitoring function unit of one relational database management system to the other and data is received by the other, SQ
The L statement loading function unit converts the SQL statement of the received data into the SQL statement corresponding to the attribute of the sender based on the conversion rules of the SQL statement conversion definition file, and associates the SQL statement with the attribute and This SQ
When loading of the L statement is completed normally, a normal termination message is returned to the transaction monitoring function part.
【0013】したがって、異なるリレーショナルデータ
ベース管理システム間において、両者のテーブルのレコ
ードデータの整合性が保てるようになり、異種リレーシ
ョナルデータベース管理システム間においてデータのや
り取りを行えるようになる。Therefore, the consistency of the record data of the tables of both relational database management systems can be maintained, and data can be exchanged between different types of relational database management systems.
【0014】[0014]
【実施例】以下、本発明の実施例を図面を参照して詳細
に説明する。Embodiments of the present invention will be described below in detail with reference to the drawings.
【0015】図1は本発明に係る一実施例のデータ整合
装置の構成を示す図、図2はコンピュータ間で転送され
るデータ構造を示す図である。FIG. 1 is a diagram showing a configuration of a data matching apparatus according to an embodiment of the present invention, and FIG. 2 is a diagram showing a data structure transferred between computers.
【0016】同図において、1、2はそれぞれ異なる種
類のコンピュータであり、図示しない共有メモリを有し
ている。コンピュータ1は、リレーショナルデータベー
ス管理システム(以下RDBMSと称す)11、DB更
新アプリケーション群12、トランザクションログ機能
部13、トランザクション監視機能部14、同期処理用
の外部ファイル15などを有している。RDBMS11
は、ユーザ定義テーブル16と、トランザクション管理
テーブル17とが設けられている。In the figure, reference numerals 1 and 2 denote computers of different types, each having a shared memory (not shown). The computer 1 has a relational database management system (hereinafter referred to as RDBMS) 11, a DB update application group 12, a transaction log function unit 13, a transaction monitoring function unit 14, an external file 15 for synchronization processing, and the like. RDBMS11
Is provided with a user definition table 16 and a transaction management table 17.
【0017】図2に示すように、このトランザクション
管理テーブル17は、登録時間30、SQLLOG31および
転送フラグ32などのカラムから構成されている。As shown in FIG. 2, the transaction management table 17 is composed of columns such as registration time 30, SQLLOG 31, and transfer flag 32.
【0018】ここで、登録時間30は、トランザクショ
ン管理テーブル1にレコードがINSERTされた時間を記録
するためのカラムであり、本テーブルにてユニークキー
となるようにINSERT時のシステム時刻が秒の小数点以下
6桁まで記録される。SQLLOG31は、SQL 文そのものを
INSERTするカラムであり、RDBMS内で発生したトラ
ンザクション中でINSERT、UPDATE、DELETEのSQL 文が記
録される。転送フラグ32は、他方のRDBMSへレコ
ードが反映されたかどうかを示すフラグカラムであり、
“転送済”かどちらかのステータスが記録される。Here, the registration time 30 is a column for recording the time when a record is INSERTED in the transaction management table 1, and the system time at the time of INSERT is a decimal point of seconds so as to be a unique key in this table. Less than
Records up to 6 digits. SQLLOG31 is the SQL statement itself
This is a column for INSERT, and SQL statements of INSERT, UPDATE, and DELETE are recorded in the transaction that occurred in RDBMS. The transfer flag 32 is a flag column indicating whether or not the record is reflected in the other RDBMS,
The status of "transferred" or either is recorded.
【0019】すなわち、このトランザクション管理テー
ブル17は、そのRDBMS11内で発生したトランザ
クションの中でテーブル内のレコードが更新されるINSE
RT、UPDATE、DELETE処理のSQL 文そのものをテーブル上
でログとして管理するためのテーブルである。That is, the transaction management table 17 is INSE in which the record in the table is updated in the transaction generated in the RDBMS 11.
This is a table for managing the SQL statements of RT, UPDATE, and DELETE processing as logs on the table.
【0020】トランザクションログ機能部13は、一方
のRDBMS11において各ユーザ定義テーブル16に
対するトランザクションのうち、INSERT、UPDATE、DELE
TEについてはそのSQL 文そのものをトランザクション管
理テーブル17へINSERTするものである。なおこのとき
登録時間のカラム30には、システム時刻を記録し、転
送フラグのカラム32には、デフォルト値として“未転
送”のデータをセットする。トランザクション監視機能
部14は、トランザクション管理テーブル17内の中
を、常に転送フラグが“未転送”、かつ登録時刻が現在
時刻以前という条件で、SQLLOGのカラム31をSELECTし
て外部ファイル15に記録する。他方のRDBMS21
に正常にデータがセットされた段階で転送フラグを“転
送済み”にUPDATEする。The transaction log function unit 13 uses INSERT, UPDATE, and DELE among transactions for each user-defined table 16 in one RDBMS 11.
Regarding TE, the SQL statement itself is inserted into the transaction management table 17. At this time, the system time is recorded in the registration time column 30 and the "untransferred" data is set in the transfer flag column 32 as a default value. The transaction monitoring function unit 14 selects the column 31 of SQLLOG and records it in the external file 15 in the transaction management table 17 under the condition that the transfer flag is “not transferred” and the registration time is before the current time. . The other RDBMS21
UPDATE the transfer flag to "transferred" when the data has been set normally.
【0021】一方のコンピュータ2は、上記RDBMS
11とは異なる種類のRDBMS21、SQL 文ローディ
ング機能部22、SQL 文変換定義ファイル23などを有
している。RDBMS21内には、ユーザ定義テーブル
24が設けられている。SQL文ローディング機能部22
は、トランザクション監視機能部14により作成された
外部ファイル15の内容(INSERT、UPDATE、DELETEのSQ
L 文)を基に、他方のRDBMS21内の該当テーブル
23に対してSQL 文を発行するものである。またこのSQ
L 文ローディング機能部22は、SQL 文の発行が正常に
完了し、レコードがコミットした時点で、発行元のトラ
ンザクション監視機能部14に正常終了のメッセージを
返信するものである。SQL 文変換定義ファイル23に
は、予め複数のRDBMS11、21…の属性とそれぞ
れに対するSQL 文の変換規則が定義されている。One of the computers 2 is the above RDBMS.
The RDBMS 21, the SQL statement loading function unit 22, the SQL statement conversion definition file 23, and the like, which are different in type from 11, are included. A user definition table 24 is provided in the RDBMS 21. SQL statement loading function unit 22
Is the contents of the external file 15 created by the transaction monitoring function unit 14 (SQ of INSERT, UPDATE, DELETE
The SQL statement is issued to the corresponding table 23 in the other RDBMS 21 based on the (L statement). Also this SQ
The L statement loading function unit 22 returns a normal termination message to the transaction monitoring function unit 14 of the issuer when the SQL statement is normally issued and the record is committed. In the SQL statement conversion definition file 23, the attributes of the plurality of RDBMSs 11, 21, ... And the conversion rules of the SQL statement for each are defined in advance.
【0022】次に、図3を参照してこのデータ整合装置
の動作を説明する。Next, the operation of the data matching device will be described with reference to FIG.
【0023】このデータ整合装置では、まず、一方のコ
ンピュータ1などのDB更新アプリケーション群12か
ら他方のコンピュータ2のRDBMS21へのデータ更
新処理がなされると(図3のステップ101 )、一方のR
DBMS11において、のログ装置であるトランザクシ
ョンログ機能部13が、内部の各テーブル(ユーザ定義
テーブル16、トランザクション管理テーブル17な
ど)に対して、レコードのINSERT、UPDATE、DELETEなど
のSQL 文を発行する(ステップ102 )。In this data coordinating apparatus, first, when the data updating process from the DB updating application group 12 such as one computer 1 to the RDBMS 21 of the other computer 2 is performed (step 101 in FIG. 3), one R
In the DBMS 11, the transaction log function unit 13, which is a log device of, issues SQL statements such as INSERT, UPDATE, and DELETE of records to each internal table (user-defined table 16, transaction management table 17, etc.) ( Step 102).
【0024】この場合、そのSQL 文をそのままトランザ
クション管理テーブル17へINSERTする。このとき、登
録時刻と転送フラグのデータもセットされる。In this case, the SQL statement is directly inserted into the transaction management table 17. At this time, the registration time and transfer flag data are also set.
【0025】続いて、トランザクション監視機能部14
は、トランザクション管理テーブル17の中に対して、
常に登録時刻が現在時刻以前でフラグのデータが“未転
送”という条件にて検索を行い、ヒットしたレコードを
データ整合用の外部ファイル15へ書き込む(ステップ
103 )。Next, the transaction monitoring function unit 14
In the transaction management table 17,
The search is always performed under the condition that the registration time is before the current time and the flag data is “not transferred”, and the hit record is written to the external file 15 for data matching (step
103).
【0026】そしてこの外部ファイル15をSQL 文ロー
ディング機能部22へ転送する。Then, the external file 15 is transferred to the SQL statement loading function unit 22.
【0027】次に、SQL 文ローディング機能部22は、
ファイル転送などにより外部ファイル15を図示しない
共有メモリで受け取り、SQL 文変換定義ファイル23か
ら変換規則を読み出す(ステップ104 )。Next, the SQL statement loading function unit 22
The external file 15 is received by a shared memory (not shown) by file transfer or the like, and the conversion rule is read from the SQL statement conversion definition file 23 (step 104).
【0028】そして共有メモリから外部ファイル15の
SQL 文を読み出して、そのSQL 文を属性が定義されてい
る1番目のRDBMSの変換規則に従って変換し、新た
なSQL 文を作成する(ステップ105 )。From the shared memory, the external file 15
The SQL statement is read, the SQL statement is converted according to the conversion rule of the first RDBMS in which the attribute is defined, and a new SQL statement is created (step 105).
【0029】そして、SQL 文ローディング機能部22
は、作成したSQL 文と、送信元のRDBMS11のSQL
文とが一致したとき、その属性とSQL 文とを対応させて
RDBMS21の中へローディングする。The SQL statement loading function unit 22
Is the created SQL statement and the SQL of the sender RDBMS11
When the sentences match, the attribute and the SQL sentence are associated with each other and loaded into the RDBMS 21.
【0030】正常にSQL 文のローディングが完了した時
点で、コンピュータ1のトランザクション監視機能部1
4に対して正常終了のメッセージを返信する。When the SQL statement is loaded normally, the transaction monitoring function unit 1 of the computer 1
A normal termination message is returned to 4.
【0031】この正常終了のメッセージを受け取ったコ
ンピュータ1のトランザクション監視機能部14は、ト
ランザクション管理テーブル17内の該当レコードの転
送フラグのステータスを“転送済”へUPDATAする。The transaction monitoring function unit 14 of the computer 1, which has received the normal termination message, updates the status of the transfer flag of the corresponding record in the transaction management table 17 to "transferred".
【0032】以下、ステップ106 からのFORループに
よって、定義個数分の処理が終わるまで上記した処理を
サイクリックに繰り返す(ステップ106 〜ステップ109
)。すなわち、コンピュータ1上で稼働しているRD
BMS11のユーザ定義テーブル16のデータを、コン
ピュータ2上で稼働するRDBMS21へ一定間隔にダ
ウンロードし、これにより、メインフレームによるデー
タベースの集中管理型から分散管理型へ移行し、コンピ
ュータ1の負荷分散と、端末からのレスポンスの向上を
図っている。Subsequently, the above process is cyclically repeated by the FOR loop from step 106 until the defined number of processes are completed (steps 106 to 109).
). That is, the RD running on the computer 1
The data of the user definition table 16 of the BMS 11 is downloaded to the RDBMS 21 running on the computer 2 at regular intervals, whereby the mainframe database is switched from the centralized management type to the distributed management type, and the load balancing of the computer 1 is performed. We are trying to improve the response from the terminal.
【0033】例えば図1のブロック図で上記動作を説明
すると、コンピュータ1上にてDB更新アプリケーショ
ン群12がRDBMS11に対してユーザ定義テーブル
16への更新処理を行うと、そのSQL 文がトランザクシ
ョン管理テーブル17にINSERTされる()。For example, the above operation will be described with reference to the block diagram of FIG. 1. When the DB update application group 12 on the computer 1 updates the RDBMS 11 to the user-defined table 16, the SQL statement is used as the transaction management table. Inserted in 17 ().
【0034】すると、トランザクション管理テーブル1
7から更新SQL が検索され、その結果が同期処理用の外
部ファイル15に記録される(、)。Then, the transaction management table 1
The updated SQL is searched from 7 and the result is recorded in the external file 15 for the synchronization processing (,).
【0035】この外部ファイル15は、コンピュータ1
からコンピュータ2へファイル転送される。This external file 15 is stored in the computer 1
From the computer to the computer 2.
【0036】コンピュータ2側では、外部ファイル15
を共有メモリで受け取ると()、その外部ファイル1
5は、サーバ側、つまりコンピュータ2側のRDBMS
21のSQL 文のフォーマットに変換された後、RDBM
S21へローディングされる(、)。On the computer 2 side, the external file 15
Received in shared memory (), its external file 1
5 is an RDBMS on the server side, that is, the computer 2 side
After being converted to 21 SQL statement format, RDBM
It is loaded into S21 (,).
【0037】このように本実施例のデータ整合装置によ
れば、複数のRDBMSの属性に対するSQL 文の変換規
則を定義したSQL 文変換定義ファイル23を備えている
ので、互いに異なるRDBMS11、21間でも内部テ
ーブルのレコードの整合性を保ちつつデータのやり取り
を行うことができる。As described above, according to the data matching apparatus of the present embodiment, since the SQL statement conversion definition file 23 defining the conversion rules of the SQL statement for a plurality of RDBMS attributes is provided, even between different RDBMSs 11 and 21. Data can be exchanged while maintaining the consistency of records in the internal table.
【0038】また異なるコンピュータ(マシン)上にR
DBMS11、21が存在する場合でも、各マシン間で
共有メモリを利用して外部ファイル15を転送すること
により同期処理が可能となる。R on a different computer (machine)
Even when the DBMS 11 and 21 exist, the synchronous processing can be performed by transferring the external file 15 between the machines by using the shared memory.
【0039】[0039]
【発明の効果】以上説明したように請求項1記載の発明
によれば、送信手段から送信した通信データが相手側に
正常に保存された時点で、正常終了を示す情報が送信手
段に返信されてくるので、異なるリレーショナルデータ
ベース管理システム間において、両者のテーブルのレコ
ードデータの整合性が保てるようになる。As described above, according to the invention described in claim 1, when the communication data transmitted from the transmitting means is normally stored in the other party, the information indicating the normal end is returned to the transmitting means. Therefore, the consistency of the record data of both tables can be maintained between different relational database management systems.
【0040】また請求項2記載の発明によれば、トラン
ザクション監視機能部によりデータが送信されると、相
手側のデータベースに正常にローディングが完了した時
点で、正常終了のメッセージが必ずトランザクション監
視機能部に返信されてくるので、 両者のテーブルのレ
コードデータの整合性が保てるようになる。According to the second aspect of the present invention, when data is transmitted by the transaction monitoring function unit, a normal termination message is always issued when the data is normally loaded into the other party's database. The record data in both tables will be kept consistent.
【0041】上記した結果、異種リレーショナルデータ
ベース管理システム間において、レコードデータの整合
性を保ちつつデータのやり取りを行えるようになる。As a result of the above, data can be exchanged between different types of relational database management systems while maintaining the consistency of record data.
【図1】本発明に係る一実施例のデータ整合装置の構成
を示す図である。FIG. 1 is a diagram showing a configuration of a data matching device according to an embodiment of the present invention.
【図2】異なるRDBMS間で転送されるデータ構造を
示す図である。FIG. 2 is a diagram showing a data structure transferred between different RDBMSs.
【図3】このデータ整合装置の動作を示すフローチャー
トである。FIG. 3 is a flowchart showing the operation of this data matching device.
1、2…コンピュータ、11、21…リレーショナルデ
ータベース管理システム(RDBMS)、12…DB更
新アプリケーション群、13…トランザクションログ機
能部、14…トランザクション監視機能部、15…外部
ファイル、16、24…ユーザ定義テーブル、17…ト
ランザクション管理テーブル、22…SQL 文ローディン
グ機能部、23…SQL 文変換定義ファイル。1, 2 ... Computer, 11, 21 ... Relational database management system (RDBMS), 12 ... DB update application group, 13 ... Transaction log function unit, 14 ... Transaction monitoring function unit, 15 ... External file, 16, 24 ... User definition Table, 17 ... Transaction management table, 22 ... SQL statement loading function section, 23 ... SQL statement conversion definition file.
Claims (2)
システム間のデータ通信を取り持つデータ整合装置にお
いて、 前記複数のリレーショナルデータベース管理システムの
属性と、その属性に応じた通信データの変換規則を予め
定義した変換規則定義手段と、 一方のリレーショナルデータベース管理システム側から
他方に通信データを送信する送信手段と、 前記送信手段からの通信データを受信手段と、 前記受信手段により受信された通信データを、前記変換
規則定義手段の変換規則を基に送信元の属性に対応する
通信データに変換する変換手段と、 前記変換手段により変換された通信データとその属性と
を対応させて保存するデータ保存手段と、 前記データ保存手段に通信データが正常に保存された時
点で、前記送信手段に対して正常終了を示す情報を返信
する返信手段とを具備したことを特徴とするデータ整合
装置。1. A data matching device that handles data communication between a plurality of relational database management systems, wherein a conversion rule definition that defines in advance an attribute of the plurality of relational database management systems and a conversion rule of communication data according to the attribute. Means, a transmitting means for transmitting communication data from one relational database management system side to the other, a receiving means for receiving the communication data from the transmitting means, and a conversion rule defining means for the communication data received by the receiving means. A conversion unit that converts the communication data corresponding to the attribute of the transmission source based on the conversion rule of 1., a data storage unit that stores the communication data converted by the conversion unit and the attribute in association with each other, and the data storage unit. When the communication data is normally stored in the A data matching apparatus comprising: a reply unit that returns information indicating the end.
システム間のデータ通信を取り持つデータ整合装置にお
いて、 前記複数のリレーショナルデータベース管理システムの
属性と、それぞれに対するSQL 文の変換規則を予め定義
したSQL 文変換定義ファイルと、 一方のリレーショナルデータベース管理システム側から
他方にデータを送信するトランザクション監視機能部
と、 前記トランザクション監視機能部からのデータを受信
し、前記SQL 文変換定義ファイルの変換規則を基に、受
信したデータのSQL 文を送信元の属性に対応するSQL 文
に変換し、そのSQL 文と属性とを対応させて自身のデー
タベースへローディングし、このSQL 文のローディング
が正常に完了した時点で、前記トランザクション監視機
能部に対して正常終了のメッセージを返信するSQL 文ロ
ーディング機能部とを具備したことを特徴とするデータ
整合装置。2. A data matching device that handles data communication between a plurality of relational database management systems, comprising: an attribute of the plurality of relational database management systems; and an SQL statement conversion definition file that defines in advance the SQL statement conversion rules for each. , A transaction monitoring function unit that transmits data from one relational database management system side to the other, and receives data from the transaction monitoring function unit, and based on the conversion rules of the SQL statement conversion definition file, The SQL statement is converted into the SQL statement corresponding to the attribute of the sender, the SQL statement is associated with the attribute and loaded into its own database, and when the loading of this SQL statement is completed normally, the transaction monitoring function Reply message of normal end to department Data matching apparatus being characterized in that comprising a SQL statement loading function unit that.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP7309059A JPH09146804A (en) | 1995-11-28 | 1995-11-28 | Data matching device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP7309059A JPH09146804A (en) | 1995-11-28 | 1995-11-28 | Data matching device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH09146804A true JPH09146804A (en) | 1997-06-06 |
Family
ID=17988389
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP7309059A Withdrawn JPH09146804A (en) | 1995-11-28 | 1995-11-28 | Data matching device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH09146804A (en) |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2000112807A (en) * | 1998-10-02 | 2000-04-21 | Nec Corp | Local data base delay updating system and its method |
| JP2001034518A (en) * | 1999-07-27 | 2001-02-09 | Nec Software Chugoku Ltd | Master-slave relation information synchronization system in decentralized database |
| JP2002132562A (en) * | 2000-10-20 | 2002-05-10 | Aantsusha:Kk | Database update system |
| JP2002175209A (en) * | 2000-12-06 | 2002-06-21 | Plus Alpha:Kk | Method and system for updating data in information server automatically |
| WO2004063928A1 (en) * | 2003-01-14 | 2004-07-29 | Accelia, Inc. | Database load reducing system and load reducing program |
| JP2011053891A (en) * | 2009-09-01 | 2011-03-17 | Toshiba Corp | Method and program for storing communication data in relational database |
| JP2014505925A (en) * | 2010-12-20 | 2014-03-06 | セールスフォース ドット コム インコーポレイティッド | Method and system for performing cross store coupling in a multi-tenant store |
-
1995
- 1995-11-28 JP JP7309059A patent/JPH09146804A/en not_active Withdrawn
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2000112807A (en) * | 1998-10-02 | 2000-04-21 | Nec Corp | Local data base delay updating system and its method |
| JP2001034518A (en) * | 1999-07-27 | 2001-02-09 | Nec Software Chugoku Ltd | Master-slave relation information synchronization system in decentralized database |
| JP2002132562A (en) * | 2000-10-20 | 2002-05-10 | Aantsusha:Kk | Database update system |
| JP2002175209A (en) * | 2000-12-06 | 2002-06-21 | Plus Alpha:Kk | Method and system for updating data in information server automatically |
| WO2004063928A1 (en) * | 2003-01-14 | 2004-07-29 | Accelia, Inc. | Database load reducing system and load reducing program |
| JP2011053891A (en) * | 2009-09-01 | 2011-03-17 | Toshiba Corp | Method and program for storing communication data in relational database |
| JP2014505925A (en) * | 2010-12-20 | 2014-03-06 | セールスフォース ドット コム インコーポレイティッド | Method and system for performing cross store coupling in a multi-tenant store |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0226734B1 (en) | Method and apparatus for managing obsolescence of data objects | |
| US8122040B2 (en) | Method of integrating remote databases by automated client scoping of update requests over a communications network | |
| US6996583B2 (en) | Real-time database update transaction with disconnected relational database clients | |
| US6374262B1 (en) | Relational database synchronization method and a recording medium storing a program therefore | |
| US6604117B2 (en) | Method of maintaining a network of partially replicated database system | |
| US6178425B1 (en) | Method of determining the visibility to a remote database client of a plurality of database transactions using simplified visibility rules | |
| US7690000B2 (en) | Metadata journal for information technology systems | |
| CN111522631B (en) | Distributed transaction processing method, device, server and medium | |
| US20030135523A1 (en) | Method of using cache to determine the visibility to a remote database client of a plurality of database transactions | |
| US20130173544A1 (en) | Materialized query table journaling in a computer database system | |
| US7613741B2 (en) | Utilizing rules in a distributed information sharing system | |
| KR100521742B1 (en) | Xml database duplicating apparatus for copying xml document to remote server without loss of structure and attribute information of xml document and method therefor | |
| WO2023083237A1 (en) | Graph data management | |
| US20040034619A1 (en) | Preventing change cycling using rules and redo tags in a redo log | |
| JPH09146804A (en) | Data matching device | |
| JPH08179980A (en) | Distributed database system | |
| US20040030707A1 (en) | Partial evaluation of rule sets | |
| US20040181510A1 (en) | System and method for cooperative database acceleration | |
| US7624376B1 (en) | Integration of COTS software data stores into integrated data access layer | |
| US8554722B2 (en) | Method for transferring data into database systems | |
| CN118170760A (en) | Efficient data storage and retrieval method for SaaS system | |
| US20030131009A1 (en) | Transaction method and system | |
| CN112395294A (en) | Database data management method and system and database | |
| JP4137366B2 (en) | Database management method and database management apparatus | |
| CN119513091A (en) | A SQL-based object storage metadata management method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A300 | Application deemed to be withdrawn because no request for examination was validly filed |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20030204 |