JP2001273175A - Method and system for processing database - Google Patents
Method and system for processing databaseInfo
- Publication number
- JP2001273175A JP2001273175A JP2000085976A JP2000085976A JP2001273175A JP 2001273175 A JP2001273175 A JP 2001273175A JP 2000085976 A JP2000085976 A JP 2000085976A JP 2000085976 A JP2000085976 A JP 2000085976A JP 2001273175 A JP2001273175 A JP 2001273175A
- Authority
- JP
- Japan
- Prior art keywords
- database
- data
- physical storage
- information
- storage 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
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明は、データベース処理
システムに係り、詳しくは、異なるデータベース間での
データ連動において、連動元データベースと連動先デー
タベースの間のデータマッピング技術に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a database processing system, and more particularly, to a data mapping technique between a link source database and a link destination database when data is linked between different databases.
【0002】[0002]
【従来の技術】デーテ連動は、同一のデータを異なるデ
ータベースに格納し、一方のデータベース(連動元デー
タベース)をユーザプログラムなどにより更新した時
に、更新情報をデータセット等に取得して、別のデータ
ベース(連動先データベース)へ反映し、両データベー
スの内容を常に同一にする機能である。このデータ連動
では、連動元データベースから連動先データベースへ更
新情報を反映する場合、更新対象データを一意に対応付
けする、すなわち、データマッピングするための情報
(データマッピング情報)を必要とする。2. Description of the Related Art Data linkage involves storing the same data in different databases and, when one database (linking source database) is updated by a user program or the like, acquires update information in a data set or the like and updates the database. This is a function that reflects the data in (link destination database) and always makes the contents of both databases the same. In this data linkage, when the update information is reflected from the linkage source database to the linkage destination database, information (data mapping information) for uniquely associating the update target data, that is, data mapping, is required.
【0003】従来、このような異なるデータベース間で
のデータ連動では、データマッピングを行うために、各
データを一意に特定できる本来データベースに必要のな
い情報をデータベース内(データ内)に格納する必要が
あった。また、一般的には、データの一意性を保証する
ためにインデクスを構成するキー値がすべてのデータで
異なっているユニークインデクスの定義も必要であっ
た。Conventionally, in such data linkage between different databases, in order to perform data mapping, it is necessary to store in the database (data) information which is uniquely required and can uniquely identify each data. there were. Also, in general, in order to guarantee the uniqueness of data, it is necessary to define a unique index in which key values constituting the index are different for all data.
【0004】[0004]
【発明が解決しようとする課題】上記従来技術において
は、データ連動のためだけに必要となるデータマッピン
グ情報をデータベース内に格納し、ユニークインデクス
を定義することにより、データベース格納容量が拡大す
る問題があった。また、ユニークインデクスが定義され
ることにより、連動元データベースのアクセス(追加、
削除)でインデクスメンテナンス処理が必要となり、連
動元データベース側のアクセス性能を劣化させる問題も
あった。一般に連動元データベースはオンラインで利用
されることが多く、アクセス性能の劣化は極力さける必
要がある。In the above-mentioned prior art, there is a problem that the database storage capacity is expanded by storing data mapping information necessary only for data linkage in a database and defining a unique index. there were. In addition, by defining a unique index, access (addition,
Index) requires index maintenance processing, and there is a problem that the access performance of the linked source database is degraded. Generally, the link source database is often used online, and it is necessary to minimize the deterioration of access performance.
【0005】本発明の目的は、異なるデータベース間で
のデータ連動において、各データを一意に特定するマッ
ピング情報のデータベースへの格納およびユニークイン
デクス定義を不要として、データベースの格納容量を削
減し、また、連動元データベースのアクセス性能を向上
させることにある。An object of the present invention is to reduce the storage capacity of a database by eliminating the need to store mapping information for uniquely specifying each data in the database and defining a unique index in data linkage between different databases. The object is to improve the access performance of the interlocking source database.
【0006】[0006]
【課題を解決するための手段】本発明は、データマッピ
ング情報として、データベースのデータ物理格納情報を
利用する。該データマッピング情報は、連動元データベ
ースから連動先データベースを作成する際に、連動元デ
ータベースのデータの物理格納情報と連動先データベー
スの該当データの物理格納情報とを組み合わせて作成
し、データマッピングファイルとして保持しておく。According to the present invention, data physical storage information of a database is used as data mapping information. The data mapping information is created by combining the physical storage information of the data of the linked database and the physical storage information of the corresponding data of the linked database when creating the linked database from the linked database. Keep it.
【0007】連動元データベースを更新した際には、更
新データに連動元データベースの当該データの物理格納
情報を付加した更新情報を取得し、該物理格納情報に対
応する連動先データベースの物理格納情報をデータマッ
ピングファイルから求め、該物理格納情報をもとに連動
先データベースをアクセスして当該データを更新する。When the linked database is updated, update information obtained by adding the physical storage information of the data of the linked database to the updated data is acquired, and the physical storage information of the linked database corresponding to the physical storage information is obtained. The data is obtained from the data mapping file, and the data is updated by accessing the linked database based on the physical storage information.
【0008】更に、本発明では、連動元や連動先のデー
タベース再編成の際には、新たな物理格納情報を取得し
てデータマッピングファイルのデータマッピング情報を
再作成する。Further, according to the present invention, at the time of reorganizing the database of the interlocking source or the interlocking destination, new physical storage information is obtained and the data mapping information of the data mapping file is recreated.
【0009】これにより、異なるデータベース間でのデ
ータ連動において、従来のように各データを一意に特定
するための情報をデータベース内に格納する必要がな
く、また、その結果、ユニークインデクスの定義も不要
になり、データベースの格納容量の削減、連動元データ
ベースのアクセス性能の向上が可能になる。As a result, in data linkage between different databases, it is not necessary to store information for uniquely specifying each data in the database as in the related art, and as a result, it is not necessary to define a unique index. As a result, the storage capacity of the database can be reduced, and the access performance of the interlocking source database can be improved.
【0010】[0010]
【発明の実施の形態】以下、本発明の一実施例を図面を
用いて具体的に説明する。図1は本発明の一実施例のシ
ステム構成図を示す。図1において、100は更新情報
ファイル、110、120はデータベース処理系であ
る。便宜上、110を連動元データベース処理系、12
0を連動先データベース処理系とするが、この関係は逆
になってもよい。一般にオンライン処理システムなどで
は、障害の発生やデータベース再編集などに伴い、それ
まで連動先だった処理系が連動元に、連動元だった処理
系が連動先に切り替わる形態をとることが多い。連動元
データベース処理系110はデータベースシステム11
1、連動元データベース112からなる。一方、連動先
データベースシステム処理系120はデータベースシス
テム121、連動先データベース122およびデータマ
ッピングファイル123からなる。連動元データベース
112と連動先データベース122は同一のデータを格
納している。データマッピングファイル123は、デー
タマッピング情報として、各データの連動元データベー
ス112上の物理格納情報と連動先データベース122
上の物理格納情報とを対応付けて格納している。なお、
連動元と連動先が切り替わる場合のため、連動元データ
ベース処理系110もデータマッピングファイルを持っ
ている方がよいが、図1では省略してある。DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be specifically described below with reference to the drawings. FIG. 1 shows a system configuration diagram of an embodiment of the present invention. In FIG. 1, 100 is an update information file, and 110 and 120 are database processing systems. For convenience, reference numeral 110 denotes an interlocking source database processing system;
Although 0 is used as the interlocking destination database processing system, this relationship may be reversed. In general, an online processing system or the like often takes a form in which a processing system that has been a linked destination is switched to a linked source and a processing system that was a linked source is switched to a linked destination due to the occurrence of a failure or database reediting. The link source database processing system 110 is the database system 11
1. Consists of an interlocking source database 112. On the other hand, the linkage destination database system processing system 120 includes a database system 121, a linkage destination database 122, and a data mapping file 123. The link source database 112 and the link destination database 122 store the same data. The data mapping file 123 includes, as data mapping information, physical storage information of each data on the linkage source database 112 and the linkage destination database 122.
The above physical storage information is stored in association with the physical storage information. In addition,
It is preferable that the linkage source database processing system 110 also has a data mapping file for the case where the linkage source and the linkage destination are switched, but is omitted in FIG.
【0011】データマッピングファイル123は、連動
元データベース112から連動先データベース122を
作成(コピー)する際に、各データベースの物理格納情
報により作成する。データ連動処理では、連動元データ
ベースシステム111がユーザプログラムなどによりデ
ータベース112を更新した時に該更新データのデータ
ベース112上の物理格納情報を付加した更新情報を更
新情報ファイル100に取得する。一方、連動先データ
ベースシステム121は、該更新情報ファイル100の
更新データに付加されている連動元データベース112
上の物理格納情報をもとにデータマッピングファイル1
23を検索して、連動先データベース122上の対応す
る物理格納情報を得、該データベース122上の当該デ
ータを更新情報ファイル100に取得された更新データ
で更新する。また、データの追加・削除処理では、デー
タマッピングファイル123の該当する情報を追加・削
除する。連動元や連動先データベースの再編成を行った
場合には、新たな物理格納情報によりデータマッピング
ファイル123を再作成する。The data mapping file 123 is created based on the physical storage information of each database when creating (copying) the linked database 122 from the linked database 112. In the data linkage process, when the linkage source database system 111 updates the database 112 by a user program or the like, the update information file 100 acquires update information to which physical storage information of the update data on the database 112 is added. On the other hand, the linkage destination database system 121 stores the linkage source database 112 added to the update data of the update information file 100.
Data mapping file 1 based on the above physical storage information
23, the corresponding physical storage information on the link destination database 122 is obtained, and the data on the database 122 is updated with the update data obtained in the update information file 100. In addition, in the data addition / deletion processing, the corresponding information in the data mapping file 123 is added / deleted. When the reorganization of the interlocking source or interlocking destination database is performed, the data mapping file 123 is recreated with the new physical storage information.
【0012】図2は物理格納情報とその取得の仕方の具
体例を示した図である。物理格納情報は、図2(a)に
示すように、データベース200上の該当データが物理
的に格納されているデータセット内の物理ページ番号2
01とページ内のデータ格納オフセット情報202から
構成されるのが一般的である。例えば、データ「CCC
…」の物理格納情報は「00020020」で表わされ
る。このような物理格納情報はROWIDと呼ばれるこ
とが多いので、ここでもそれに従うことにする。FIG. 2 is a diagram showing a specific example of physical storage information and a method of obtaining the physical storage information. The physical storage information is, as shown in FIG. 2A, a physical page number 2 in a data set where the corresponding data on the database 200 is physically stored.
Generally, it is composed of 01 and data storage offset information 202 in the page. For example, the data "CCC
.. Are represented by “00020020”. Such physical storage information is often referred to as ROWID, and will be followed here.
【0013】図2(b)は物理格納情報の取得の仕方を
説明したものである。ただし、物理格納情報の取得の仕
方はこれに限らない。図2(b)では、検索SQL(S
ELECT)時の検索対象列名として、物理格納情報を
示す特別な列名称(ここでは「ROWID」としてい
る)210を記述することにより、検索列情報とともに
物理格納情報(ROWID)を取得することを示してい
る。ここでは、検索結果として、物理格納情報「000
20020」および検索列データ「CCC…」が返却さ
れたことを示している。なお、以下の具体例では、物理
格納情報は簡単にページのみとし、ページ内オフセット
情報は省略することにする。FIG. 2B illustrates how to acquire the physical storage information. However, the method of acquiring the physical storage information is not limited to this. In FIG. 2B, the search SQL (S
By describing a special column name (here, “ROWID”) 210 indicating physical storage information as a search target column name at the time of ELECT), it is possible to acquire physical storage information (ROWID) together with search column information. Is shown. Here, as the search result, the physical storage information “000”
20020 "and the search string data" CCC ... "have been returned. In the following specific example, the physical storage information is simply the page only, and the offset information within the page is omitted.
【0014】図3は、データマッピングファイル123
の作成処理を説明する図であ。データマッピングファイ
ル123の作成は、連動元データベース112から連動
先データベースシステム122を作成する際に同時に行
われる。FIG. 3 shows a data mapping file 123.
FIG. 9 is a diagram for explaining the creation processing of the spelling. The creation of the data mapping file 123 is performed simultaneously with the creation of the linked destination database system 122 from the linked source database 112.
【0015】連動元データベースシステム111では、
連動元データベース112からデータを読み出し、読出
しデータファイル300に出力する(処理301)。こ
の際に、該連動元データの物理格納情報311を同時に
取得して読出しデータファイル300に出力する(処理
301)。連動先データベースシステム121では、読
出しデータファイル300をもとに、連動先データベー
ス122へデータを格納する(処理302)。この際、
連動先データの物理格納情報321を取得する。そし
て、この取得した連動先データの物理格納情報321と
読出しデータファイル300の該当連動元データの物理
格納情報311とを組み合わせ、データマッピングファ
イル123に登録する(処理303)。連動先データベ
ースシステム121では、これを読出しデータファイル
300の各データについて繰り返すことにより、データ
マッピングファイル123が完成する。In the linkage source database system 111,
Data is read from the interlocking source database 112 and output to the read data file 300 (process 301). At this time, the physical storage information 311 of the interlocking source data is simultaneously acquired and output to the read data file 300 (process 301). The link destination database system 121 stores data in the link destination database 122 based on the read data file 300 (process 302). On this occasion,
The physical storage information 321 of the link destination data is acquired. Then, the acquired physical storage information 321 of the interlocking destination data and the physical storage information 311 of the corresponding interlocking source data of the read data file 300 are combined and registered in the data mapping file 123 (process 303). In the linkage destination database system 121, the data mapping file 123 is completed by repeating this for each data of the read data file 300.
【0016】図4は、データマッピングファイル123
をもとにしたデータ連動処理を説明する図である。連動
元データベースシステム111では、連動元データベー
ス112の更新時に、更新データに当該更新データの物
理格納情報を付加した更新情報を更新情報ファイル10
0に取得する(処理401)。例では、連動元データベ
ース112のデータ「AAA…」を「XXX…」に更新
すると、該更新データ「XXX…」とその物理格納情報
「0001」が更新情報ファイル100に取得されたこ
とを示している。連動先データベースシステム121で
は、まず、データマッピングファイル123をもとに、
更新情報ファイル100の更新データに付加された連動
元物理格納情報から連動先データベース122の該当デ
ータの物理格納情報を求める(処理402)。次に、こ
の求めた物理格納情報および更新データをもとに、連動
先データベース122を更新する(処理403)。例で
は、データマッピングファイル123をもとに、連動元
物理格納情報「0001」に対応する連動先物理格納情
報「0002」を得、連動先データベース122の該当
領域のデータ「AAA…」を更新データ「XXX…」に
書き替えることを示している。FIG. 4 shows a data mapping file 123.
FIG. 9 is a diagram for explaining data link processing based on the. In the linkage source database system 111, when the linkage source database 112 is updated, the update information obtained by adding the physical storage information of the update data to the update data is updated in the update information file 10.
0 (process 401). In the example, when the data “AAA...” Of the interlocking source database 112 is updated to “XXX...”, This indicates that the updated data “XXX...” And its physical storage information “0001” have been acquired in the update information file 100. I have. In the linkage destination database system 121, first, based on the data mapping file 123,
The physical storage information of the corresponding data in the linkage destination database 122 is obtained from the linkage source physical storage information added to the update data in the update information file 100 (process 402). Next, the link destination database 122 is updated based on the obtained physical storage information and update data (process 403). In the example, the link destination physical storage information “0002” corresponding to the link source physical storage information “0001” is obtained based on the data mapping file 123, and the data “AAA... "XXX ...".
【0017】図5は、データ連動の際のデータマッピン
グファイル123のメンテナンス処理を示したフローチ
ャートである。データマッピングファイル123のメン
テナンス処理は連動元/連動先データベース112、1
22上のデータを追加あるいは削除した際に必要とな
る。FIG. 5 is a flowchart showing a maintenance process of the data mapping file 123 at the time of data linkage. The maintenance process of the data mapping file 123 is performed on the link source / link destination database 112, 1
It becomes necessary when data on 22 is added or deleted.
【0018】連動先データベースシステム121では、
更新情報ファイル100から更新情報を取得し(ステッ
プ501)、追加情報かどうか判定する(ステップ50
2)。追加情報の場合は、更新情報ファイル100のデ
ータを連動先データベース122へ追加し(ステップ5
03)、該追加したデータの連動先データベース122
上の物理格納情報を取得する(ステップ504)。そし
て、ステップ501で取得した更新情報ファイル100
の更新情報(追加データ)の連動元物理格納情報と、ス
テップ504で取得した連動先物理格納情報とを組み合
わせ、データマッピングファイル123に当該マッピン
グ情報を追加する(ステップ505)。In the link destination database system 121,
Update information is acquired from the update information file 100 (step 501), and it is determined whether the information is additional information (step 50).
2). In the case of additional information, the data of the update information file 100 is added to the link destination database 122 (step 5).
03), the linked database 122 of the added data
The above physical storage information is obtained (step 504). Then, the update information file 100 acquired in step 501
The combination of the linkage source physical storage information of the update information (additional data) and the linkage destination physical storage information acquired in step 504 is added to the data mapping file 123 (step 505).
【0019】一方、更新情報ファイル100の更新情報
が追加情報以外の場合には、該更新情報から連動元の物
理格納情報を取得し(ステップ506)、データマッピ
ングファイル123から、該連動元の物理格納情報に対
応する連動先の物理格納情報を求め(ステップ50
7)、該求めた物理格納情報をもとに、連動先データベ
ース122へ所定の処理を行う(ステップ508)。す
なわち、更新処理の場合には、図4で説明したように、
連動データベース122の該当データを書き替え、削除
処理の場合には、該当データを削除する。その後、削除
処理の実行か判定し(ステップ509)、削除情報の場
合は、データマッピングファイル123から、ステップ
506、507で取得した連動元と連動先の物理格納情
報のマッピング情報を削除する(ステップ510)。On the other hand, if the update information of the update information file 100 is other than the additional information, the physical storage information of the link source is obtained from the update information (step 506), and the physical information of the link source is obtained from the data mapping file 123. The physical storage information of the link destination corresponding to the storage information is obtained (step 50).
7) Based on the obtained physical storage information, predetermined processing is performed on the link destination database 122 (step 508). That is, in the case of the update process, as described in FIG.
The relevant data in the linked database 122 is rewritten, and in the case of a deletion process, the relevant data is deleted. Thereafter, it is determined whether or not the deletion process is to be executed (step 509). In the case of the deletion information, the mapping information of the physical storage information of the link source and the link destination acquired in steps 506 and 507 is deleted from the data mapping file 123 (step 509). 510).
【0020】図6はデータベースの再編成を行った場合
のデータマッピングファイルのメンテナンス処理を示し
た図である。データベースの再編成は、データベースへ
の追加や削除により生じるデータ配置の乱れをデータの
引き上げおよび再登録によって適切な配置にする処理で
ある。データベースの再編成を行うと、格納データの物
理格納情報が変更される。従って、連動元または連動先
データベースの再編成を行った場合にはデータマッピン
グファイルを再作成する必要がある。図6では、連動先
データベース122の再編成に伴うデータマッピングフ
ァイル123の再作成を説明するが、連動元データベー
ス112の再編成時も、基本的に同様である。FIG. 6 is a diagram showing the maintenance processing of the data mapping file when the database is reorganized. The reorganization of the database is a process in which a disorder in the data arrangement caused by addition or deletion to the database is adjusted to an appropriate arrangement by raising and re-registering the data. When the database is reorganized, the physical storage information of the stored data is changed. Therefore, when the interlocking source or interlocking destination database is reorganized, it is necessary to recreate the data mapping file. FIG. 6 illustrates the re-creation of the data mapping file 123 accompanying the reorganization of the interlocking destination database 122, but the same applies to the reorganization of the interlocking source database 112.
【0021】連動先データベースシステム121では、
データベースの再編成を行う場合、まず、再編成対象デ
ータベース600(再編成前データベース122)か
ら、物理格納情報を付加したアンロードファイル610
を作成する(処理601)。次に、アンロードファイル
610からデータをリロードし、再編成後データベース
620(同データベース122)を作成する(処理60
2)。このリロード処理で、データベース再編成前後の
新旧物理格納情報の対応関係を示す新旧物理格納情報フ
ァイル630を作成する(処理603)。最後に、デー
タマッピングファイル123について、新旧物理格納情
報ファイル630の旧物理格納情報と一致する連動先の
物理格納情報を、新旧物理格納情報ファイル630の当
該旧物理格納情報と組の新物理格納情報に変更する(処
理604)。In the link destination database system 121,
When performing the reorganization of the database, first, the unload file 610 to which the physical storage information is added is obtained from the reorganization target database 600 (the pre-reorganization database 122).
Is created (process 601). Next, the data is reloaded from the unload file 610 to create the reorganized database 620 (the same database 122) (process 60).
2). In this reloading process, a new and old physical storage information file 630 indicating the correspondence between the new and old physical storage information before and after the database reorganization is created (process 603). Lastly, for the data mapping file 123, the linked physical storage information that matches the old physical storage information of the new and old physical storage information file 630 is stored in the new physical storage information paired with the old physical storage information of the new and old physical storage information file 630. (Process 604).
【0022】図7は、データベースの再編成を行った場
合のデータマッピングファイルのメンテナンス処理のフ
ローチャートを示したものである。以下に、図6の連動
先データベースの再編成の例について説明する。FIG. 7 shows a flowchart of the maintenance processing of the data mapping file when the database is reorganized. Hereinafter, an example of the reorganization of the link destination database in FIG. 6 will be described.
【0023】まず、連動先データベース122の再編成
(アンロード)時に旧物理格納情報を取得し、アンロー
ドファイル610に出力する(ステップ701)。次
に、再編成(リロード)時に、新物理格納情報を取得す
る(ステップ702)。次に、アンロードファイル61
0内の旧物理格納情報とステップ702で求めた新物理
格納情報をもとに新旧物理格納情報の組を作成し、新旧
物理格納情報ファイル630に出力する(ステップ70
3)。First, when reorganizing (unloading) the linked destination database 122, the old physical storage information is obtained and output to the unload file 610 (step 701). Next, at the time of reorganization (reload), new physical storage information is obtained (step 702). Next, unload file 61
A pair of new and old physical storage information is created based on the old physical storage information in 0 and the new physical storage information obtained in step 702, and output to the new and old physical storage information file 630 (step 70).
3).
【0024】次に、データマッピングファイル123か
らマッピング情報を入力する(ステップ704)。この
マッピング情報の連動先物理格納情報と一致する旧物理
格納情報を持つ情報を新旧物理格納情報ファイル630
から求め(ステップ705)、この求めた情報中の新物
理格納情報をあらたに連動先物理格納情報として変更す
る(ステップ706)。以下、データマッピングファイ
ル123の全マッピング情報分、ステップ704〜70
6を繰り返す(ステップ707)。Next, mapping information is input from the data mapping file 123 (step 704). The information having the old physical storage information that matches the linkage destination physical storage information of this mapping information is stored in the new and old physical storage information file 630.
(Step 705), and the new physical storage information in the obtained information is newly changed as the linked physical storage information (step 706). Hereinafter, steps 704 to 70 for all mapping information in the data mapping file 123
6 is repeated (step 707).
【0025】以上、本発明の一実施例について説明した
が、本発明はこれに限定されないことは云うまでもな
い。例えば、実施例では、連動元データベースシステム
と連動先データベースシステムシステムの間で、読出し
データファイルや更新情報ファイルを通して情報を送受
信するとしたが、直接データ転送することでもよい。ま
た、先にも触れたが、データマッピングファイルは連動
元と連動先の両方の処理系で持ってもよい。Although the embodiment of the present invention has been described above, it is needless to say that the present invention is not limited to this. For example, in the embodiment, information is transmitted and received between the linkage source database system and the linkage destination database system through the read data file and the update information file. However, the data may be directly transferred. Also, as mentioned earlier, the data mapping file may be held by both the processing system of the link source and the link destination.
【0026】[0026]
【発明の効果】以上の説明から明らかなように、本発明
によれば、以下のような効果が得られる。 (1)データ連動の目的のためだけに、本来は不要な一
意性を保証するためのデータをデータベースに格納する
必要がなくなり、データ格納時のユニークデータ付加制
御が不要となる。 (2)インデクスキー情報長と物理格納情報長が同等の
場合は、マッピング情報容量とユニークインデクス容量
がほぼ同容量となるが、一意性を保証するデータの格納
が不要となる分、データベース格納容量が削減される。
通常は、インデクスキー情報長の方が物理格納情報長よ
り長く、全体の格納容量は削減される。 (3)ユニークインデクスの定義を行う必要がなくな
り、連動元データベースへの更新系アクセス時のインデ
クスメンテナンス処理が不要となり、処理性能が向上す
る。 (4)連動先データベースの更新処理などにおいて、処
理対象データを物理格納情報で並び替える(ソート)こ
とで、処理が物理格納順に行われ、連動先データベース
の処理性能の向上も図れる。As is apparent from the above description, according to the present invention, the following effects can be obtained. (1) It is not necessary to store data for guaranteeing unnecessary uniqueness in a database solely for the purpose of data linkage, and it is not necessary to perform unique data addition control when storing data. (2) When the index key information length is equal to the physical storage information length, the mapping information capacity and the unique index capacity are almost the same, but the storage capacity of the database is not necessary because the storage of the data for guaranteeing the uniqueness becomes unnecessary. Is reduced.
Normally, the index key information length is longer than the physical storage information length, and the overall storage capacity is reduced. (3) It is not necessary to define a unique index, so that index maintenance processing at the time of updating access to the interlocking source database becomes unnecessary, and processing performance is improved. (4) In the update processing of the link destination database, by rearranging (sorting) the data to be processed by the physical storage information, the processing is performed in the physical storage order, and the processing performance of the link destination database can be improved.
【図1】本発明の一実施例を示すシステム構成図であ
る。FIG. 1 is a system configuration diagram showing an embodiment of the present invention.
【図2】本発明の一実施例の物理格納情報とその取得法
の具体例の説明図である。FIG. 2 is an explanatory diagram of a specific example of physical storage information and an acquisition method thereof according to an embodiment of the present invention.
【図3】本発明の一実施例のデータマッピング情報作成
処理の説明図である。FIG. 3 is an explanatory diagram of data mapping information creation processing according to one embodiment of the present invention.
【図4】本発明の一実施例のデータ連動処理の説明図で
ある。FIG. 4 is an explanatory diagram of a data linkage process according to an embodiment of the present invention.
【図5】本発明の一実施例のデータ追加・削除時のデー
タマッピング情報のメンテナンス処理のフローチャート
である。FIG. 5 is a flowchart of maintenance processing of data mapping information at the time of data addition / deletion according to an embodiment of the present invention.
【図6】本発明の一実施例のデータベース再編成時のデ
ータマッピング情報のメンテナンス処理の説明図であ
る。FIG. 6 is an explanatory diagram of a maintenance process of data mapping information at the time of database reorganization according to one embodiment of the present invention.
【図7】本発明の一実施例のデータベース再編成時のデ
ータマッピング情報のメンテナンス処理のフローチャー
トである。FIG. 7 is a flowchart of maintenance processing of data mapping information at the time of database reorganization according to one embodiment of the present invention.
110 連動元データベース処理系 111 連動元データベースシステム 112 連動元データベース 120 連動先データベース処理系 121 連動先データベースシステム 122 連動先データベース 123 データマッピングファイル 110 linkage source database processing system 111 linkage source database system 112 linkage source database 120 linkage destination database processing system 121 linkage destination database system 122 linkage destination database 123 data mapping file
Claims (4)
納し、一方のデータベース(以下、連動元データベース
という)の更新情報を別のデータベース(以下、連動先
データベースという)へ反映し、両データベースの内容
を同一にするデータベース処理方法において、 連動元データベースのデータの物理格納情報と連動先デ
ータベースの該当データの物理格納情報との対応を示す
データマッピング情報を用意し、 連動元データベースを更新した際に、更新データに連動
元データベースにおける当該データの物理格納情報を付
加した更新情報を取得し、該更新情報の物理格納情報を
もとにデータマッピング情報から連動先データベースの
当該更新データの物理格納情報を求め、連動先データベ
ースをアクセスする、ことを特徴とするデータベース処
理方法。1. The same data is stored in different databases, update information of one database (hereinafter referred to as a linked database) is reflected in another database (hereinafter referred to as a linked database), and the contents of both databases are reflected. In the same database processing method, prepare data mapping information that indicates the correspondence between the physical storage information of the data in the linkage source database and the physical storage information of the data in the linkage destination database, and update when the linkage source database is updated Obtain update information obtained by adding the physical storage information of the data in the linkage source database to the data, and obtain the physical storage information of the update data in the linkage destination database from the data mapping information based on the physical storage information of the update information, Accessing the linked database; Scan processing method.
おいて、連動元データベースから連動先データベースを
作成する際に、連動元データベースのデータの物理格納
情報と連動先データベースの該当データの物理格納情報
とを組み合わせてデータマッピング情報を作成すること
を特徴とするデータベース処理方法。2. A database processing method according to claim 1, wherein, when creating the linked database from the linked database, the physical storage information of the data of the linked database and the physical storage information of the data of the linked database are created. A database processing method characterized by creating data mapping information in combination.
法において、データベース再編成の際に、新たな物理格
納情報によりデータマッピング情報を再作成することを
特徴とするデータベース処理方法。3. The database processing method according to claim 1, wherein at the time of database reorganization, data mapping information is re-created with new physical storage information.
タベースという)を具備する第1のデータベースシステ
ム(以下、連動元データベースシステムという)と、連
動元データベースと同一のデータを格納する第2のデー
タベース(以下、連動先データベースという)を具備す
る第2のデータベースシステム(以下、連動先データベ
ースシステムという)とからなるデータベース処理シス
テムにおいて、 連動元データベースシステムは、連動元データベースを
更新した際に、更新データに連動元データベースの当該
データの物理格納情報を付加した更新情報を出力する手
段を有し、 連動先データベースシステムは、連動元データベースの
データの物理格納情報と連動先データベースの該当デー
タの物理格納情報との対応を示すデータマッピング情報
を保持する手段と、連動元データベースシステムが出力
する更新情報を取得し、該更新情報の物理格納情報をも
とにデータマッピング情報から連動先データベースの当
該更新データの物理格納情報を求め、連動先データベー
スをアクセスする手段とを有する、ことを特徴とするデ
ータベース処理システム。4. A first database system (hereinafter, referred to as an interlocking source database system) including a first database (hereinafter, referred to as an interlocking source database), and a second database storing the same data as the interlocking source database. In a database processing system including a second database system (hereinafter, referred to as a linked database system) having a linked database (hereinafter, referred to as a linked database), the linked database system updates data when the linked database is updated. Means for outputting update information to which the physical storage information of the data of the linkage source database is added. The linkage destination database system stores the physical storage information of the data of the linkage source database and the physical storage information of the corresponding data of the linkage destination database. Data map showing correspondence with Means for holding the update information, acquiring the update information output by the interlocking source database system, obtaining the physical storage information of the update data of the interlocking destination database from the data mapping information based on the physical storage information of the update information, Means for accessing an interlocking destination database.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2000085976A JP3698947B2 (en) | 2000-03-27 | 2000-03-27 | Database processing method and database processing system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2000085976A JP3698947B2 (en) | 2000-03-27 | 2000-03-27 | Database processing method and database processing system |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2001273175A true JP2001273175A (en) | 2001-10-05 |
JP3698947B2 JP3698947B2 (en) | 2005-09-21 |
Family
ID=18602216
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2000085976A Expired - Lifetime JP3698947B2 (en) | 2000-03-27 | 2000-03-27 | Database processing method and database processing system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3698947B2 (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPWO2004036432A1 (en) * | 2002-10-21 | 2006-02-16 | 玉津 雅晴 | Database accelerator |
JP2007157119A (en) * | 2005-11-30 | 2007-06-21 | Internatl Business Mach Corp <Ibm> | Apparatus and method for file-level replication between two or more non-symmetric storage sites |
CN102314457A (en) * | 2010-06-30 | 2012-01-11 | 百度在线网络技术(北京)有限公司 | Automatic information auditing method and system |
US9002796B2 (en) | 2009-11-18 | 2015-04-07 | Hitachi, Ltd. | Database management method, database management system and database management program |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102866663B (en) * | 2012-09-28 | 2014-06-11 | 朗利维(北京)科技有限公司 | Method for automatically storing and calling production process parameters |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0566985A (en) * | 1991-09-09 | 1993-03-19 | Hitachi Ltd | Updating system for data base |
JPH0877053A (en) * | 1994-09-08 | 1996-03-22 | Nippon Telegr & Teleph Corp <Ntt> | Device and method for reflecting duplicated data base |
JPH10143583A (en) * | 1996-11-15 | 1998-05-29 | Hitachi Ltd | Work flow management system |
-
2000
- 2000-03-27 JP JP2000085976A patent/JP3698947B2/en not_active Expired - Lifetime
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0566985A (en) * | 1991-09-09 | 1993-03-19 | Hitachi Ltd | Updating system for data base |
JPH0877053A (en) * | 1994-09-08 | 1996-03-22 | Nippon Telegr & Teleph Corp <Ntt> | Device and method for reflecting duplicated data base |
JPH10143583A (en) * | 1996-11-15 | 1998-05-29 | Hitachi Ltd | Work flow management system |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPWO2004036432A1 (en) * | 2002-10-21 | 2006-02-16 | 玉津 雅晴 | Database accelerator |
JP2007157119A (en) * | 2005-11-30 | 2007-06-21 | Internatl Business Mach Corp <Ibm> | Apparatus and method for file-level replication between two or more non-symmetric storage sites |
US9002796B2 (en) | 2009-11-18 | 2015-04-07 | Hitachi, Ltd. | Database management method, database management system and database management program |
CN102314457A (en) * | 2010-06-30 | 2012-01-11 | 百度在线网络技术(北京)有限公司 | Automatic information auditing method and system |
Also Published As
Publication number | Publication date |
---|---|
JP3698947B2 (en) | 2005-09-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2324440B1 (en) | Providing data structures for determining whether keys of an index are present in a storage system | |
US8335889B2 (en) | Content addressable storage systems and methods employing searchable blocks | |
CN109189852B (en) | Data synchronization method and device for data synchronization | |
CN104092726A (en) | Automatic replacing method and apparatus of same-name file | |
US7769719B2 (en) | File system dump/restore by node numbering | |
JP2001273175A (en) | Method and system for processing database | |
CN114996240A (en) | Data table verification method, device, equipment, storage medium and program | |
JP3636773B2 (en) | Information processing device for database check | |
JPH1166095A (en) | Data managing device | |
JPH0394377A (en) | Map file updating system | |
JP2005234945A (en) | Concurrent execution control method and device | |
AU2021248108A1 (en) | Data migration | |
CA2675915C (en) | Content addressable storage systems and methods employing searchable blocks | |
JPH0934758A (en) | Relational data base access control system | |
JPH0764843A (en) | Distributed data base update method | |
JP2828354B2 (en) | Database management device | |
CN111831231B (en) | Partition merging and partition splitting method and device | |
JPH0512087A (en) | System for outputting pre-updating journal | |
CN117874025A (en) | Data lake-based table structure changing method, system, equipment and storage medium | |
JPS62287350A (en) | Index integrally updating system | |
JP2004302919A (en) | Replication system and program therefor | |
JPH05242176A (en) | Generation control system for drawing | |
CN111078197A (en) | Method and device for generating executable file | |
JPH0378043A (en) | Data update system for direct-read-after-write draw) type medium | |
JPH05120340A (en) | Routing address managing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20050621 |
|
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: 20050705 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20050706 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 3698947 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080715 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080715 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080715 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110715 Year of fee payment: 6 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140715 Year of fee payment: 9 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
EXPY | Cancellation because of completion of term |