JP3287077B2 - Automatic alignment method for distributed data - Google Patents
Automatic alignment method for distributed dataInfo
- Publication number
- JP3287077B2 JP3287077B2 JP23027993A JP23027993A JP3287077B2 JP 3287077 B2 JP3287077 B2 JP 3287077B2 JP 23027993 A JP23027993 A JP 23027993A JP 23027993 A JP23027993 A JP 23027993A JP 3287077 B2 JP3287077 B2 JP 3287077B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- local
- local data
- processing
- master
- 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.)
- Expired - Fee Related
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Description
【0001】[0001]
【産業上の利用分野】本発明は、たとえば生産工場など
で使用されている工程管理のコンピュータシステムに適
用すると有効な分散データの自動整合方法に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an automatic distributed data matching method which is effective when applied to a computer system for process management used in, for example, a production factory.
【0002】[0002]
【従来の技術】従来から自動車などの生産工場では、各
販売会社などから収集された注文状況に応じて生産計画
を立て、この生産計画に基づいて工場に設けられている
各種の生産機械の動作を制御している。2. Description of the Related Art Conventionally, in a production factory for automobiles and the like, a production plan is established according to order status collected from each sales company and the like, and the operation of various production machines provided in the factory based on this production plan. Is controlling.
【0003】このような制御を行うために、コンピュー
タシステムが設けられている。このコンピュータシステ
ムの一例として図8に示すようなシステムが例示でき
る。[0003] A computer system is provided to perform such control. As an example of this computer system, a system as shown in FIG. 8 can be exemplified.
【0004】このコンピュータシステムは分散式のもの
であり、メインのコンピュータ10はデータベースとし
て機能するマスターデータ12を有している。サブシス
テム14は、例えば工場などの生産ラインの制御を受け
持つコンピュータである。このコンピュータは、主とし
てこのコンピュータのためのデータを記憶しているデー
タベースとして機能するローカルデータ16を有してい
る。一方、コンピュータ20は、たとえば全工場の生産
指示を作成するものであり、このコンピュータ20も、
主としてこのコンピュータのためのデータを記憶してい
るデータベースとして機能するローカルデータ22を有
している。ローカルデータ16およびローカルデータ2
2は、コンピュータ10から送られてくるマスターデー
タ12からのデータをそのまま記憶し、サブシステム1
4あるいはコンピュータ20によって独自に生成された
データも記憶している。This computer system is of a distributed type, and a main computer 10 has master data 12 functioning as a database. The subsystem 14 is a computer that controls a production line such as a factory. The computer has local data 16 which mainly functions as a database storing data for the computer. On the other hand, the computer 20 creates, for example, production instructions for all factories.
It has local data 22 which mainly functions as a database storing data for the computer. Local data 16 and local data 2
2 stores the data from the master data 12 sent from the computer 10 as it is,
4 or data independently generated by the computer 20.
【0005】したがって、ローカルデータ16、22に
はマスターデータ12と同一のデータが存在しており、
サブシステム14、コンピュータ20はこのデータに基
づいて種々の演算を行っている。Accordingly, the same data as the master data 12 exists in the local data 16 and 22.
The subsystem 14 and the computer 20 perform various calculations based on the data.
【0006】[0006]
【発明が解決しようとする課題】しかしながら、上記の
ような従来のシステムにおいては、マスターデータ12
が有しているデータと同一のデータが各ローカルデータ
16、22に分散して存在することになるので、この分
散されているデータがいずれかのコンピュータで改変さ
れたような場合には、他のコンピュータとのデータの整
合がとれないために、システムが立ち上がらないなどの
不具合が生じる。このため、これと同一のデータについ
てすべてのコンピュータにおいて同様に改変する必要が
ある。この改変の作業は非常に工数がかかり、改変後の
データの信頼性にも問題があった。However, in the above conventional system, the master data 12
Will be present in the local data 16 and 22 in a distributed manner. If the distributed data is altered by any computer, Since the data cannot be matched with the computer, problems such as the system not starting up occur. Therefore, the same data needs to be similarly modified in all computers. This modification requires a lot of man-hours, and there is also a problem in the reliability of the data after the modification.
【0007】たとえば、生産ラインの制御をしているサ
ブシステム14でライン異常が発生したためにローカル
データ16のデータの一部を変更した場合には、マスタ
ーデータ12やローカルデータ22の内、ローカルデー
タ16で変更したデータと同一のデータを変更後のデー
タと同一にする必要があるが、その作業は、人間が変更
前のデータと変更後のデータとを記載したリストを元に
手入力によって行う必要がある。このためその作業には
多くの時間を要し、また、入力ミスを内在していること
から変更後のデータの信頼性にも問題があることにな
る。For example, when a part of the local data 16 is changed due to a line abnormality in the subsystem 14 controlling the production line, the local data 16 in the master data 12 or the local data 22 is changed. It is necessary to make the same data as the data changed in step 16 the same as the data after the change, but this operation is manually performed by a human based on a list in which the data before the change and the data after the change are described. There is a need. For this reason, the operation requires a lot of time, and since there is an input error, there is a problem in the reliability of the changed data.
【0008】[0008]
【課題を解決するための手段】上記目的を達成するため
の本発明は、マスターデータを有するホストコンピュー
タと、当該マスターデータと同一内容のローカルデータ
を有し、当該ホストコンピュータに接続されるローカル
コンピュータとから構成されるコンピュータシステムに
使用される分散データの自動整合方法であって、前記ホ
ストコンピュータまたは前記ローカルコンピュータは、
前記ローカルデータの内容が変更された場合には、変更
前のローカルデータと同一内容のローカルデータおよび
マスターデータを、前記ローカルコンピュータおよび前
記ホストコンピュータの中から検索し、検索されたロー
カルデータに変更後のローカルデータと同一の加工処理
が施されている場合には、検索されたローカルデータを
変更後のローカルデータに書替えるよう処理を行い、一
方、検索されたローカルデータに変更後のローカルデー
タとは異なる加工処理が施されている場合には、前記検
索されたローカルデータを加工処理前のローカルデータ
に逆変換し、検索されたマスターデータを逆変換後のロ
ーカルデータにしたがって書替えるよう処理を行い、前
記書替え後のマスターデータに対し、検索されたローカ
ルデータに施したのと同じ加工処理を施し、前記検索さ
れたローカルデータを前記加工後のローカルデータに書
替えるよう処理を行うことを特徴とするものである。According to the present invention, there is provided a host computer having master data, and a local computer having local data having the same contents as the master data and connected to the host computer. An automatic matching method for distributed data used in a computer system comprising: the host computer or the local computer,
When the content of the local data is changed, local data and master data having the same content as the local data before the change are searched from the local computer and the host computer, and the changed local data is changed to the searched local data. If the same processing as that of the local data is performed, a process is performed to rewrite the searched local data with the changed local data.
On the other hand, the local data after the change
If processing different from that of the
Local data before processing the searched local data
And convert the searched master data to the
Process to rewrite according to local data
The retrieved local data is compared to the rewritten master data.
The same processing as that performed on the local data is performed, and processing is performed to rewrite the retrieved local data with the processed local data.
【0009】[0009]
【作用】このように構成した本発明によれば、ホストコ
ンピュータまたはローカルコンピュータは、前記ローカ
ルデータの内容が変更された場合には、変更前のローカ
ルデータと同一内容のローカルデータおよびマスターデ
ータを、前記ローカルコンピュータおよび前記ホストコ
ンピュータの中から検索し、検索されたローカルデータ
に変更後のローカルデータと同一の加工処理が施されて
いる場合には、検索されたローカルデータを変更後のロ
ーカルデータに書替えるよう処理を行い、一方、検索さ
れたローカルデータに変更後のローカルデータとは異な
る加工処理が施されている場合には、前記検索されたロ
ーカルデータを加工処理前のローカルデータに逆変換
し、検索されたマスターデータを逆変換後のローカルデ
ータにしたがって書替えるよう処理を行い、前記書替え
後のマスターデータに対し、検索されたローカルデータ
に施したのと同じ加工処理を施し、前記検索されたロー
カルデータを前記加工後のローカルデータに書替えるよ
う処理を行うこととしてあるので、入力作業が不要とな
るばかりでなく、データの誤入力の要素も全くなくなる
ことになる。According to the present invention thus configured, when the content of the local data is changed, the host computer or the local computer transmits the local data and the master data having the same content as the local data before the change. Searching from the local computer and the host computer, when the same processing as the changed local data is performed on the searched local data, the searched local data is converted into the changed local data. Process to rewrite, while
Is different from the changed local data.
If any processing has been performed,
Invert local data to local data before processing
And converts the searched master data to local data after inverse conversion.
Data is rewritten according to the data
Local data searched for later master data
The same processing as that described above is performed, and processing is performed so that the searched local data is rewritten to the processed local data. Therefore, not only is the input operation unnecessary, but also erroneous data input is performed. Will be completely eliminated.
【0010】[0010]
【実施例】以下、本発明の一実施例を図面に基づいて説
明する。図1は、本発明にかかる分散データの自動整合
方法を実行する装置の一例を示したものである。生産ラ
インに配設されている装置の制御管理を行う工程管理用
ホストコンピュータ30にはデータベース32が接続さ
れているが、このデータベース32にはその日に生産さ
れるべき車種に関する一日分のデータAおよび後述する
データリレーショナルテーブルなどのマスターデータが
記憶されている。ライン管理オンライン処理部35およ
びライン管理バッチ処理部36は、工程管理用ホストコ
ンピュータ30からの制御情報にオンライン処理あるい
はバッチ処理を施すものである。このライン管理オンラ
イン処理部35にはローカルデータベース38が接続さ
れているが、このローカルデータベース38にはデータ
ベース32に記憶されているデータAに加工が施された
データがデータA′として1タクト分すなわち半日分記
憶されている。PLC39は直接設備40の制御を行う
いわゆるシーケンサーであって、これにはローカルデー
タベース42が接続されている。このローカルデータベ
ース42にはローカルデータベース38に記憶されてい
るデータA′に加工が施されたデータがデータA″とし
て30分分だけ記憶されている。なお、これらローカル
データベース38、42に記憶されているデータはロー
カルデータである。An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 shows an example of an apparatus for executing the distributed data automatic matching method according to the present invention. A database 32 is connected to the process management host computer 30 for controlling and controlling the devices arranged on the production line. The database 32 stores one day's data A regarding the types of vehicles to be produced on that day. Also, master data such as a data relational table described later is stored. The line management online processing unit 35 and the line management batch processing unit 36 perform online processing or batch processing on control information from the process management host computer 30. A local database 38 is connected to the line management online processing unit 35. In this local database 38, data obtained by processing data A stored in the database 32 is referred to as data A 'for one tact, that is, data A'. It is stored for half a day. The PLC 39 is a so-called sequencer for directly controlling the equipment 40, and a local database 42 is connected to the PLC 39. In the local database 42, data obtained by processing data A 'stored in the local database 38 is stored as data A "for 30 minutes. The data A' is stored in these local databases 38 and 42. The existing data is local data.
【0011】図2は、本発明にかかる分散データの自動
整合方法を説明するための概略構成図であり、図1の構
成のうち、本発明方法の実行に必要とされる部分のみを
抽出して概念的に記載したものである。ホストコンピュ
ータ45は、上述の工程管理用ホストコンピュータ30
の一部を構成するものであり、このホストコンピュータ
45にはデータベース32を構成するデータベース32
A、32Bがそれぞれ接続されている。データベース3
2Aは後述するデータリレーショナルテーブルを記憶し
ているものであり、データベース32BはデータAを記
憶しているものである。データA′加工処理部47は、
ライン管理オンライン処理部35に設けられているもの
であって、データAをデータA′に加工処理する部分で
ある。データA′逆算処理部49は、接続されている入
力データおよび出力データのデータベース50A、50
Bに基づいてデータA′をデータAに逆算(逆変換)す
るものである。FIG. 2 is a schematic block diagram for explaining a method of automatically aligning distributed data according to the present invention. Only parts required for executing the method of the present invention are extracted from the configuration of FIG. It is described conceptually. The host computer 45 is the host computer 30 for process management described above.
The host computer 45 has a database 32 that constitutes the database 32.
A and 32B are connected respectively. Database 3
2A stores a data relational table to be described later, and the database 32B stores data A. The data A ′ processing unit 47
It is provided in the line management online processing unit 35 and is a part for processing data A into data A '. The data A 'back calculation processing unit 49 is connected to databases 50A and 50 of input data and output data.
Data A 'is inversely calculated (reversely converted) to data A based on B.
【0012】本発明の分散データの自動整合方法を実行
する装置の概略の構成は以上のとおりであるが、次に、
この方法によってどのようにデータの整合性がとられる
のかを図3以降に示すフローチャートなどによって説明
する。The schematic configuration of the apparatus for executing the distributed data automatic matching method of the present invention is as described above.
How data consistency is achieved by this method will be described with reference to flowcharts shown in FIG.
【0013】図3は、データリレーショナルテーブルの
一例を示したものであって、このテーブルは、どのプロ
グラムあるいはデータがどこに記憶されているのかを示
しているものである。たとえば、マスターデータである
ScheduleAは、工程管理用ホストコンピュータ30に記
憶されているものであり、リレーショナルデータ(ロー
カルデータ)であるScheduleA′は工程管理用ホストコ
ンピュータ30の下位のコンピュータであるサポートホ
ストコンピュータや組み立て指示ホストコンピュータや
PLC#1にそれぞれ記憶されており、ScheduleA″は
PLC#2に記憶されているということを示している。FIG. 3 shows an example of a data relational table, which shows which program or data is stored and where. For example, master data
ScheduleA is stored in the process management host computer 30, and ScheduleA ', which is relational data (local data), is a subordinate computer of the process management host computer 30, such as a support host computer, an assembly instruction host computer, or the like. PLC # 1 is stored, and Schedule A "is stored in PLC # 2.
【0014】図4に示してあるフローチャートは、マス
ターデータが変更された場合にローカルデータをマスタ
ーデータに合わせるための処理を示したものである。こ
の処理はホストコンピュータ45によって行われるもの
である。The flowchart shown in FIG. 4 shows a process for adjusting the local data to the master data when the master data is changed. This processing is performed by the host computer 45.
【0015】マスターデータの変更が行われると、ホス
トコンピュータ45はデータベース32Aのデータリレ
ーショナルテーブル(RT)を参照して、変更されたマ
スターデータと同一リレーショナルデータがどの場所に
あるのか、また、そのリレーショナルデータに加工や切
り分けなどの加工処理が行なわれていないかなどを把握
する(S1、S2)。もし、把握されたリレーショナル
データに加工処理が行われていれば、変更されたマスタ
ーデータに、そのリレーショナルデータに対して行われ
た加工処理と同一の加工処理を行う。そして、その加工
処理後のマスターデータを把握されたリレーショナルデ
ータと置き換えるため、データリレーショナルテーブル
により、置き換えるリレーショナルデータの所在を把握
する(S3〜S5)。つぎに、すべてのリレーショナル
データの切り分けをおこなって、すべてのリレーショナ
ルデータの再転送をすべてのデータが完了するまで行う
(S6、S7)この処理によってマスターデータが変更
された場合には、その変更の対象となるデータが変更後
のデータに自動的に変更されることになる。このとき、
変更後のデータに加工処理が施されていたとしても、そ
の変更の対象となるデータにその加工処理が施されて変
更されることになる。When the master data is changed, the host computer 45 refers to the data relational table (RT) of the database 32A to determine where the same relational data as the changed master data is located, and the relational data thereof. It is grasped whether or not the data has been subjected to any processing such as processing or cutting (S1, S2). If processing has been performed on the grasped relational data, the same processing as processing performed on the relational data is performed on the changed master data. Then, in order to replace the master data after the processing with the grasped relational data, the location of the relational data to be replaced is grasped by a data relational table (S3 to S5). Next, all the relational data are separated, and all the relational data are retransmitted until all the data are completed (S6, S7). When the master data is changed by this processing, the change of the master data is performed. The target data is automatically changed to the changed data. At this time,
Even if the data after the change is processed, the data to be changed is subjected to the processing and changed.
【0016】次に、図5に示してあるフローチャート
は、変更されたデータと変更前のデータとの照合を行う
処理を示したものである。Next, the flowchart shown in FIG. 5 shows a process for comparing the changed data with the data before the change.
【0017】マスターデータが変更されると、この変更
されたマスターデータに対応するデータがどこに存在す
るかを把握するために、データリレーショナルテーブル
を検索し、対応するリレーショナルデータの所在を把握
する。たとえば、マスターデータがScheduleAである場
合には、そのリレーショナルデータScheduleA′がどこ
に存在しているのかをデータリレーショナルテーブルを
参照して検索することになる。この場合には、リレーシ
ョナルデータはサポートホストコンピュータ、組み立て
指示ホストコンピュータPLC#1にそれぞれ存在して
いることがわかる(S11、S12)。次に、この検索
されたすべてのリレーショナルデータを取り込んで、こ
の取り込んだデータに加工処理が施されている場合に
は、変更後のマスターデータにそれぞれに施されたと同
様の加工処理を施して、データの照合を行う。この照合
結果は画面上に表示され、照合結果を確認することがで
きるようになっている(S13〜S17)。以上の照合
は、すべてのデータについて完了するまで行われるよう
になっている(S18)。When the master data is changed, a data relational table is searched to determine where the data corresponding to the changed master data exists, and the location of the corresponding relational data is determined. For example, when the master data is Schedule A, the relational data Schedule A 'is searched for by referring to the data relational table. In this case, it is understood that the relational data exists in the support host computer and the assembly instruction host computer PLC # 1, respectively (S11, S12). Next, all the retrieved relational data is fetched, and if the fetched data is processed, the same processing as that performed on each of the changed master data is performed. Performs data collation. The collation result is displayed on the screen so that the collation result can be confirmed (S13 to S17). The above collation is performed until all data is completed (S18).
【0018】さらに、図6に示されているフローチャー
トはリレーショナルデータが強制的に変更された場合
に、対応するマスターデータやリレーショナルデータを
この変更後のデータに合わせるための処理を示したもの
である。Further, the flowchart shown in FIG. 6 shows a process for adjusting the corresponding master data and relational data to the changed data when the relational data is forcibly changed. .
【0019】まず、ホストコンピュータ45は、データ
リレーショナルテーブルを参照して、該当のリレーショ
ナルデータ、すなわち、変更前のリレーショナルデータ
がマスターデータとされていないかを検索する。たとえ
ば、変更前のリレーショナルデータがScheduleA′であ
る場合には、このScheduleA′がマスターデータの欄に
存在しているかどうかの検索を行うことになる(S3
1)。この検索が終了したら、その検索されたマスター
データ下に位置されるリレーショナルデータを変更する
処理を行う。(S32)。First, the host computer 45 refers to the data relational table and searches for the relevant relational data, that is, whether the relational data before change is not master data. For example, if the relational data before the change is Schedule A ', a search is performed to determine whether this Schedule A' exists in the master data column (S3).
1). When this search is completed, a process of changing the relational data located under the searched master data is performed. (S32).
【0020】つまり、リレーショナルデータがSchedule
A′からSchedulea′に強制的に変更されたときには、
まず、この変更前のScheduleA′がマスターデータの欄
に存在しているかどうかの検索を行い、このマスターデ
ータScheduleA′の下に位置されるリレーショナルデー
タScheduleA′を変更前のリレーショナルデータSchedu
leA′から変更後のリレーショナルデータSchedulea′
に変更する処理を行う。That is, the relational data is stored in the Schedule
When A 'is forcibly changed to Schedulea',
First, a search is performed to determine whether or not the schedule A 'before the change exists in the column of the master data.
Relational data Schedulea 'changed from leA'
Is performed.
【0021】つぎに、このリレーショナルデータSchedu
leA′と同一のリレーショナルデータScheduleA′が存
在していないかをデータリレーショナルテーブルを参照
しながら検索し、その検索されたリレーショナルデータ
ScheduleA′は強制的に変更されたリレーショナルデー
タSchedulea′と同一の加工処理が施されたものである
か否かの判断がされる(S33、S34)。同一の加工
処理が行われているものである場合には、その検索され
たリレーショナルデータScheduleA′を強制的に変更さ
れたリレーショナルデータSchedulea′に置き換えれば
良いのであるから、変更前のリレーショナルデータSche
duleA′を変更後のリレーショナルデータSchedulea′
に置き換える処理を行う(S35)。一方、同一の加工
処理が施されていないものである場合には、まず、マス
ターデータの変更をするため、図7に示してあるフロー
チャートが実行されることになる(S36)。Next, the relational data Schedu
leA 'is searched for the same relational data Schedule A' with reference to the data relational table, and the searched relational data is searched.
It is determined whether or not ScheduleA 'has been subjected to the same processing as the relational data Schedulea' which has been forcibly changed (S33, S34). If the same processing has been performed, the relational data ScheduleA ′ that has been retrieved can be replaced with the relational data Schedulea ′ that has been forcibly changed.
Relational data Schedulea 'after changing duleA'
(S35). On the other hand, if the same processing has not been performed, first, the flowchart shown in FIG. 7 is executed to change the master data (S36).
【0022】このフローチャートはマスターデータを変
更する処理を示したものであり、この処理は図2に示し
たデータA′逆算処理部49において行なわれるもので
ある。強制的に変更されたリレーショナルデータSchedu
leA′とは異なる加工処理が施されているリレーショナ
ルデータ、たとえばScheduleA″を強制的に変更された
後のリレーショナルデータSchedulea′に合わせるに
は、いったんリレーショナルデータScheduleA″を加工
前のデータScheduleA′に逆変換する必要がある。この
逆変換を行うため、加工処理の入出力照合を入力データ
50Aおよび入力データ50Bに基づいて行う(S4
1)。この入出力の照合に基づいて加工処理データを把
握し、加工処理が成されていれば、すなわち、入力が出
力と同一でなければ、入力と出力とが同一となるように
逆算処理を施して、マスターデータの該当項目を変更す
る。つまり、リレーショナルデータScheduleA″をSche
duleA′に変更した後に、Schedulea″に変更する。一
方、加工処理が成されていなければ、逆算処理の必要が
ないことから、マスターデータの該当項目を変更する処
理を行う。つまり、マスターデータScheduleA′から、
Schedulea′に変更する(S43〜S45)。以上の処
理は、すべての該当マスターデータの項目が変更される
まで行なわれる。This flowchart shows a process for changing the master data. This process is performed in the data A 'back calculation processing section 49 shown in FIG. Forced relational data Schedu
In order to match relational data that has been subjected to processing different from leA ′, for example, Schedule A ″ to the relational data Schedulea ′ after being forcibly changed, the relational data Schedule A ″ is once inverted to the data before processing A Need to convert. In order to perform this reverse conversion, input / output collation of the processing is performed based on the input data 50A and the input data 50B (S4).
1). The processing data is grasped based on this input / output collation, and if the processing is performed, that is, if the input is not the same as the output, the back calculation is performed so that the input and the output are the same. , Change the corresponding item of the master data. In other words, the relational data Schedule A "
After the change to duleA ', the process is changed to Schedulea ". On the other hand, if the processing has not been performed, there is no need for the back calculation, so that the process of changing the corresponding item of the master data is performed. ′,
Change to Schedulea '(S43-S45). The above processing is performed until all the corresponding master data items are changed.
【0023】以上の処理が終了すると、該当マスターデ
ータは加工前の元のデータに戻されるので、該当の加工
処理が再実行され、その実行後のデータがデータリレー
ショナルテーブルにより把握された所定の位置のデータ
と置き換えられる。つまり、リレーショナルデータに加
工処理が施されていなければリレーショナルデータSche
duleA′をSchedulea′に置き換える処理をし、リレー
ショナルデータに加工処理が施されていれば、Schedule
a′をSchedulea″に加工する(S37、S38)。以
上の処理は検索されたリレーショナルデータのすべてに
対して行なわれる(S39)。When the above processing is completed, the corresponding master data is returned to the original data before the processing, so that the relevant processing is re-executed, and the data after the execution is stored in the predetermined position ascertained by the data relational table. Is replaced with the data of In other words, if the relational data has not been processed, the relational data Schema
Replace duleA 'with Schedulea', and if the relational data has been processed, schedule
a 'is processed into Schedulea "(S37, S38). The above processing is performed for all the retrieved relational data (S39).
【0024】以上の様に、本発明の実施例によれば、マ
スターデータが変更などされた場合には、変更前のマス
ターデータと同一のすべてのデータが変更後のマスター
データと同様のデータに合わせられることになる。一
方、ローカルデータが変更などされた場合には、変更前
のローカルデータと同一のすべてのローカルデータおよ
びマスターデータが変更後のデータに書き替えられるこ
とになる。したがって、従来のように変更されたデータ
に合わせるための作業が不必要となり、作業ミスなどの
ためにコンピュータの立ち上げをすることができなくな
るなどというような不具合を完全に解消できるようにな
る。As described above, according to the embodiment of the present invention, when the master data is changed, all the same data as the master data before the change are converted into the same data as the master data after the change. Will be matched. On the other hand, when the local data is changed, all the same local data and master data as the local data before the change are rewritten with the data after the change. Therefore, it is not necessary to perform the operation for adjusting to the changed data as in the related art, and it is possible to completely solve the problem that the computer cannot be started due to an operation error or the like.
【0025】[0025]
【発明の効果】以上述べたように本発明によれば、ホス
トコンピュータまたはローカルコンピュータは、前記ロ
ーカルデータの内容が変更された場合には、変更前のロ
ーカルデータと同一内容のローカルデータおよびマスタ
ーデータを、前記ローカルコンピュータおよび前記ホス
トコンピュータの中から検索し、検索されたローカルデ
ータに変更後のローカルデータと同一の加工処理が施さ
れている場合には、検索されたローカルデータを変更後
のローカルデータに書替えるよう処理を行い、一方、検
索されたローカルデータに変更後のローカルデータとは
異なる加工処理が施されている場合には、前記検索され
たローカルデータを加工処理前のローカルデータに逆変
換し、検索されたマスターデータを逆変換後のローカル
データにしたがって書替えるよう処理を行い、前記書替
え後のマスターデータに対し、検索されたローカルデー
タに施したのと同じ加工処理を施し、前記検索されたロ
ーカルデータを前記加工後のローカルデータに書替える
よう処理を行うので、ローカルデータおよびマスターデ
ータを変更するための入力作業が不要となるばかりでな
く、データの誤入力の要素もまったくなくなり、加工処
理が混在しているローカルデータまたはマスターデータ
であっても自動的に整合性を持たせることができるよう
になる。As described above, according to the present invention, when the contents of the local data are changed, the host computer or the local computer can control the local data and the master data having the same contents as the local data before the change. Is searched from the local computer and the host computer, and if the same processing is performed on the searched local data as the changed local data, the searched local data is replaced with the changed local data. It performs a process to replace written to the data, on the other hand, Ken
What is the local data after changing to the searched local data?
If different processing is performed,
Of local data before processing to local data before processing
Local data after the reverse conversion of the searched master data.
Perform rewriting according to the data,
Local data searched against the master data
Since the same processing as that performed on the local data is performed and the searched local data is rewritten to the processed local data, an input operation for changing local data and master data is not required. In addition, there is no element of erroneous input of data, and even if the data is local data or master data in which processing is mixed, consistency can be automatically provided.
【図1】本発明方法を実現する装置の一例を示す図であ
る。FIG. 1 is a diagram showing an example of an apparatus for realizing the method of the present invention.
【図2】本発明方法を実現する装置の一例を示す図であ
る。FIG. 2 is a diagram showing an example of an apparatus for implementing the method of the present invention.
【図3】本発明方法を実現するためのデータリレーショ
ナルテーブルの一例を示す図である。FIG. 3 is a diagram showing an example of a data relational table for realizing the method of the present invention.
【図4】本発明方法の手順を示すフローチャートであ
る。FIG. 4 is a flowchart showing the procedure of the method of the present invention.
【図5】本発明方法の手順を示すフローチャートであ
る。FIG. 5 is a flowchart showing the procedure of the method of the present invention.
【図6】本発明方法の手順を示すフローチャートであ
る。FIG. 6 is a flowchart showing the procedure of the method of the present invention.
【図7】本発明方法の手順を示すフローチャートであ
る。FIG. 7 is a flowchart showing the procedure of the method of the present invention.
【図8】従来の方法を実施していた装置の一例を示す図
である。FIG. 8 is a diagram illustrating an example of an apparatus that has performed a conventional method.
30…工程管理用ホストコンピュータ、32…データベ
ース、39…PLC、42…ローカルデータベース、4
5…ホストコンピュータ。Reference numeral 30: process control host computer, 32: database, 39: PLC, 42: local database, 4
5. Host computer.
Claims (1)
ータと、当該マスターデータと同一内容のローカルデー
タを有し、当該ホストコンピュータに接続されるローカ
ルコンピュータとから構成されるコンピュータシステム
に使用される分散データの自動整合方法であって、 前記ホストコンピュータまたは前記ローカルコンピュー
タは、 前記ローカルデータの内容が変更された場合には、変更
前のローカルデータと同一内容のローカルデータおよび
マスターデータを、前記ローカルコンピュータおよび前
記ホストコンピュータの中から検索し、 検索されたローカルデータに変更後のローカルデータと
同一の加工処理が施されている場合には、検索されたロ
ーカルデータを変更後のローカルデータに書替えるよう
処理を行い、一方、検索されたローカルデータに変更後のローカルデ
ータとは異なる加工処理が施されている場合には、前記
検索されたローカルデータを加工処理前のローカルデー
タに逆変換し、検索されたマスターデータを逆変換後の
ローカルデータにしたがって書替えるよう処理を行い、 前記書替え後のマスターデータに対し、検索されたロー
カルデータに施したのと同じ加工処理を施し、 前記検索
されたローカルデータを前記加工後のローカルデータに
書替えるよう処理を行うことを特徴とする分散データの
自動整合方法。An automatic distribution system for distributed data used in a computer system including a host computer having master data and a local computer connected to the host computer and having local data of the same content as the master data. In the matching method, when the content of the local data is changed, the host computer or the local computer transmits the local data and the master data having the same content as the local data before the change to the local computer and the host. If a search is performed from the computer and the same processing is performed on the searched local data as the changed local data, a process is performed to rewrite the searched local data with the changed local data. , On the other hand, searched Local data after changing to local data
If processing different from the data
The searched local data is converted to the local data before processing.
Data is converted back to the master data
Performs processing to rewrite according to the local data , and searches the retrieved master data for the rewritten master data.
An automatic matching method of distributed data , wherein the same processing as performed on the cull data is performed, and the searched local data is rewritten to the processed local data.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP23027993A JP3287077B2 (en) | 1993-09-16 | 1993-09-16 | Automatic alignment method for distributed data |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP23027993A JP3287077B2 (en) | 1993-09-16 | 1993-09-16 | Automatic alignment method for distributed data |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0785094A JPH0785094A (en) | 1995-03-31 |
| JP3287077B2 true JP3287077B2 (en) | 2002-05-27 |
Family
ID=16905320
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP23027993A Expired - Fee Related JP3287077B2 (en) | 1993-09-16 | 1993-09-16 | Automatic alignment method for distributed data |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3287077B2 (en) |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0498434A (en) * | 1990-08-13 | 1992-03-31 | Nec Corp | Distributed file management system |
| JPH0498546A (en) * | 1990-08-17 | 1992-03-31 | Nec Corp | Duplicate data updating system |
| JPH04290138A (en) * | 1991-03-19 | 1992-10-14 | Fujitsu Ltd | Software maintenance system for decentralized information communication system |
| JPH0566985A (en) * | 1991-09-09 | 1993-03-19 | Hitachi Ltd | Updating system for data base |
-
1993
- 1993-09-16 JP JP23027993A patent/JP3287077B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH0785094A (en) | 1995-03-31 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5513348A (en) | System for relational database retrieval through a link file built to access components of relational tables | |
| US4827399A (en) | Common file system for a plurality of data processors | |
| JPH06282516A (en) | Client / server system and control method thereof | |
| JP3287077B2 (en) | Automatic alignment method for distributed data | |
| US7353221B1 (en) | Method for the automatic retrieval of engineering data of systems | |
| JP2002517031A (en) | Method and apparatus for sequence creation of numerically controlled machine tools | |
| JPH0667907A (en) | Computer control device | |
| JPS61141071A (en) | Manufacturing process quality control information data creation method | |
| JP2005316778A (en) | Plant monitoring and control device | |
| US20040210867A1 (en) | Sequence program editing apparatus | |
| JPH07121599A (en) | Design information presentation device | |
| JPH11272526A (en) | Data processing device and storage medium | |
| JP3018674B2 (en) | Parts development processing equipment | |
| JP3328665B2 (en) | Information retrieval system | |
| JPH01120621A (en) | Retrieving/updating system for data base | |
| JPH0414107A (en) | Parts allocation processing system for parts control system | |
| JP2774434B2 (en) | Data processing device | |
| JPH0619650B2 (en) | Sequence control method and apparatus | |
| JPH0482640A (en) | Numerical control device | |
| JPH0212563A (en) | Information managing system | |
| JPS63269224A (en) | Data base access system | |
| JP3243911B2 (en) | Normally open switching switch automatic judgment method | |
| JP2006331262A (en) | Material requirement planning device | |
| JPH02171836A (en) | Large quantity data processing system | |
| JPH02231604A (en) | Program producing device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |