JPH0863381A - Data base management method for distributed data processing system - Google Patents

Data base management method for distributed data processing system

Info

Publication number
JPH0863381A
JPH0863381A JP6220880A JP22088094A JPH0863381A JP H0863381 A JPH0863381 A JP H0863381A JP 6220880 A JP6220880 A JP 6220880A JP 22088094 A JP22088094 A JP 22088094A JP H0863381 A JPH0863381 A JP H0863381A
Authority
JP
Japan
Prior art keywords
database
data
local
workstation
write
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP6220880A
Other languages
Japanese (ja)
Inventor
Kiyoshi Yamazaki
潔 山崎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP6220880A priority Critical patent/JPH0863381A/en
Publication of JPH0863381A publication Critical patent/JPH0863381A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE: To prevent the increase of loads of the system while holding the data consistency by surely writing data of the data base when write of data in a local data base is performed. CONSTITUTION: A data base management table 10 preserves an updating flag for each local data base as an index whether or not it is already written in a data base 7 when there is a writing and when writing is performed for each local data base as an index of whether or not the data base is changed for each table of a data base 4. When writing of data is performed by a data base 7 of local computer 2, writing of data of a data base 4 in a work station 1 is always performed. Thus, the contents of the data base 4 and that of the data base 7 become the same. When reading out the data base 7 of the computer 2, the local data base are read out after writing the local data base by the data base 4 only when the data base 7 and the data base 4 are different.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、複数の計算機により分
散してデータ処理する分散データ処理システムのデータ
ベースの管理に好適な分散データ処理システムのデータ
ベース管理方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a database management method of a distributed data processing system suitable for managing a database of a distributed data processing system in which data is distributed and processed by a plurality of computers.

【0002】[0002]

【従来の技術】最近パソコンの普及に伴って、パソコン
等をローカル計算機として利用した分散データ処理シス
テムが普及している。
2. Description of the Related Art Recently, along with the widespread use of personal computers, distributed data processing systems using personal computers or the like as local computers have become widespread.

【0003】図17は、従来の分散データ処理システム
の構成図である。
FIG. 17 is a block diagram of a conventional distributed data processing system.

【0004】図中、1はホスト計算機としてのワークス
テーション、2は端末計算機としてのパソコン等のロー
カル計算機、3はワークステーション1とローカル計算
機2とを接続するネットワークで、ネットワーク3は、
例えば、ローカルエリアネットワーク(LAN)が用い
られている。
In the figure, 1 is a workstation as a host computer, 2 is a local computer such as a personal computer as a terminal computer, 3 is a network connecting the workstation 1 and the local computer 2, and the network 3 is
For example, a local area network (LAN) is used.

【0005】ワークステーション1には、データベース
4とデータベース管理処理部5と伝送手段6とが設けら
れている。また、複数のローカル計算機2のそれぞれ
は、ローカルデータベース7とローカルデータベース管
理処理部8と伝送手段9とが設けられている。
The workstation 1 is provided with a database 4, a database management processing section 5, and a transmission means 6. Further, each of the plurality of local computers 2 is provided with a local database 7, a local database management processing unit 8 and a transmission means 9.

【0006】以上の構成で、処理システムの立上げのと
き、それぞれのローカル計算機2−Nのローカルデータ
ベース管理処理部8が必要なデータベースの伝送を伝送
手段9を介してワークステーション1へ要求する。
With the above configuration, when the processing system is started up, the local database management processing unit 8 of each local computer 2-N requests the workstation 1 via the transmission means 9 to transmit the required database.

【0007】ワークステーション1では、伝送手段6の
要求を受信してデータベース管理処理部5がデータベー
ス4から要求されたデータベースを取り出して伝送手段
6を介してローカル計算機2−Nへ送信する。
In the workstation 1, the database management processor 5 receives the request from the transmission means 6 and retrieves the requested database from the database 4 and sends it to the local computer 2-N via the transmission means 6.

【0008】ローカル計算機2−Nでは、伝送手段9を
介してデータベースを受信してローカルデータベース管
理処理部8によってローカルデータベース7へ必要なデ
ータベースを格納する。
In the local computer 2-N, the database is received via the transmission means 9, and the local database management processing unit 8 stores the required database in the local database 7.

【0009】ここで、データベース4と各ローカルデー
タベース7との関係を簡単な例をもって説明する。例え
ば、図18に示すようにワークステーション1のデータ
ベース4にある製品の一部であるAユニットの製作費の
データベース4があるとする。データベース4は、内訳
として1)機械部品、2)購入部品、3)加工費等があ
り、n)Aユニット合計の製作費がある。
Here, the relationship between the database 4 and each local database 7 will be described with a simple example. For example, as shown in FIG. 18, it is assumed that there is a database 4 of production costs of the A unit which is a part of the product in the database 4 of the workstation 1. The database 4 has 1) mechanical parts, 2) purchased parts, 3) processing cost, etc., and n) total manufacturing cost of A unit.

【0010】これに対してローカル計算機2−1〜ロー
カル計算機2−3のローカルデータベース7には、上記
したデータベース4と同様のデータ領域があり、ローカ
ル計算機2−1は主に自社機械部品の処理を担当し、ロ
ーカル計算機2−2は主に購入部品の処理を担当し、ロ
ーカル計算機2−3は主に加工費の処理を担当し、ロー
カル計算機2−Nは主に製品全体の製作費の計算を担当
している。なお、Aユニットのデータベース4の他にB
ユニット、Cユニット等についても同様のデータベース
4がある。
On the other hand, the local database 7 of each of the local computers 2-1 to 2-3 has the same data area as the above-mentioned database 4, and the local computer 2-1 mainly processes its own machine parts. The local computer 2-2 is mainly in charge of processing of purchased parts, the local computer 2-3 is mainly in charge of processing cost, and the local computer 2-N is mainly in charge of manufacturing cost of the whole product. In charge of calculation. In addition to the A unit database 4, B
There is a similar database 4 for units, C units, etc.

【0011】システム立ち上がり時、図18のデータベ
ース4が必要なローカル計算機2のローカルデータベー
ス7へダウンロードされ、図18のデータベース4のデ
ータと対応するローカルデータベース7のデータ、例え
ば、ローカル計算機2−1〜ローカル計算機2−3のロ
ーカルデータベース7のデータは一致している。
When the system starts up, the database 4 of FIG. 18 is downloaded to the local database 7 of the required local computer 2, and the data of the local database 7 corresponding to the data of the database 4 of FIG. 18, for example, the local computers 2-1 to 2-1. The data in the local database 7 of the local computer 2-3 match.

【0012】このように、ワークステーション1からそ
れぞれのローカル計算機2−Nのローカルデータベース
7のダウンロードが行われると、各ローカル計算機2−
Nは、それぞれ自己のローカルデータベース7へアクセ
スして各種データの処理をする。
When the local database 7 of each local computer 2-N is downloaded from the workstation 1 in this way, each local computer 2-N is downloaded.
Each N accesses its own local database 7 to process various data.

【0013】これにより、各ローカル計算機2−Nが分
担してデータ処理を実行することにより負荷を分散して
システム全体の効率等の向上が図られる。
As a result, the local computers 2-N share the data processing and execute the data processing to distribute the load and improve the efficiency of the entire system.

【0014】[0014]

【発明が解決しようとする課題】しかしながら、図17
および図18で説明した分散データ処理システムのデー
タベース管理方法では、ローカル計算機2−Nのいずれ
かでローカルデータベース7を書き込んだ場合、他のロ
ーカル計算機2−Nのローカルデータベース7との間に
データが異なり、システム全体の一貫性が保持出来ない
という問題がある。
However, as shown in FIG.
In the database management method of the distributed data processing system described with reference to FIG. 18, when the local database 7 is written in any one of the local computers 2-N, the data is exchanged with the local database 7 of another local computer 2-N. Differently, there is a problem that the consistency of the entire system cannot be maintained.

【0015】すなわち、これを図18で説明した例に適
用すると、当初、図18のデータベース4のデータと各
ローカルデータベース7の対応するデータは一致してい
るが、例えば、図19に示すようにローカル計算機2−
1は機械製品の製作費を計算した最終結果、¥a1にな
ったとするとローカルデータベース7の対応する領域の
aをa1に書込み、合計を¥d1に書き込む。
That is, when this is applied to the example described in FIG. 18, initially, the data in the database 4 in FIG. 18 and the corresponding data in each local database 7 match, but, for example, as shown in FIG. Local computer 2-
If 1 is calculated as the final result of calculating the manufacturing cost of the mechanical product, and it becomes \ a1, the corresponding area a of the local database 7 is written in a1, and the total is written in \ d1.

【0016】また、ローカル計算機2−2は図19に示
すように購入部品を値引きして¥bが¥b2になったと
すると合計¥d2を書込み、同様にローカル計算機2−
3は加工費が変更して¥cを¥c3とすると合計d3と
なり、データベース4の合計¥dとローカル計算機2間
のデータが異なってしまう。このため、Aユニットの製
作費が正確さを欠き、Bユニット、Cユニットも同様と
なると全体の製作費も不正確で信頼性に欠ける原因とも
なる。
Further, if the local computer 2-2 discounts the purchased parts as shown in FIG. 19 and \ b becomes \ b2, the total \ d2 is written, and similarly, the local computer 2-
If the processing cost is changed and \ c is changed to \ c3, the total of 3 becomes d3, and the total \ d of the database 4 and the data between the local computer 2 are different. Therefore, the manufacturing cost of the A unit is not accurate, and if the B unit and the C unit are the same, the manufacturing cost of the entire unit is also inaccurate and unreliable.

【0017】これを解決するためにローカル計算機2−
Nがローカルデータベース7にデータを書き込んだと
き、ワークステーション1にも同じデータを書込み、ロ
ーカル計算機2−Nが自己ローカルデータベース7から
データを読み出すとき、ワークステーション1からデー
タベースをダウンロードして自己のローカルデータベー
ス7へ保存してから読み出すことが考えられる。
To solve this, the local computer 2-
When N writes the data to the local database 7, the same data is written to the workstation 1, and when the local computer 2-N reads the data from its own local database 7, it downloads the database from the workstation 1 to download its own local data. It is conceivable to store the data in the database 7 and then read it.

【0018】ところが、自己のローカルデータベース7
からデータを読み出す毎にワークステーション1からダ
ウンロードするのでは、ローカル計算機2−Nやネット
ワーク3の負荷が増大し、システム全体の処理効率が低
下するという問題がある。
However, own local database 7
If the data is downloaded from the workstation 1 every time the data is read from the workstation 1, the load on the local computer 2-N and the network 3 increases, and the processing efficiency of the entire system decreases.

【0019】そこで、本発明は、システムの負荷を増大
させることなく分散データ処理システムのデータベース
の一貫性を保持する分散データ処理システムのデータベ
ース管理方法を提供することを目的とする。
Therefore, an object of the present invention is to provide a database management method for a distributed data processing system that maintains the consistency of the database of the distributed data processing system without increasing the load on the system.

【0020】[0020]

【課題を解決するための手段】請求項1の発明は、デー
タベースを実装するワークステーションとローカルデー
タベースを実装する複数のローカル計算機とがネットワ
ークによって接続され、起動時にワークステーションの
データベースを各ローカル計算機のローカルデータベー
スへダウンロードし、各ローカル計算機は、自己のロー
カルデータベースのデータを読出してデータ処理をする
分散データ処理システムのデータベース管理方法におい
て、ワークステーションは、ローカル計算機毎にデータ
ベースのデータとローカルデータベースの対応するデー
タとの両者の異同状態を設定するデータベース管理テー
ブルを有し、各ローカル計算機は、自己のローカルデー
タベースにデータを書き込む毎に、ワークステーション
へデータを送信し、ワークステーションはデータを受信
してデータをデータベースへ書き込む毎に、データベー
ス管理テーブルの異同状態をデータベースへデ−タを書
込んだローカル計算機のみ同じと設定し、各ローカル計
算機は、自己のローカルデータベースのデータを読出す
毎に、ワ−クステーションへデータベースの対応するデ
ータの読出要求を送信し、ワークステーションは、デー
タベース読出要求を受信し、データベース管理テーブル
の異同状態を判定して、異なるときのみ対応するデータ
を送信すると共に、異同状態を同じと設定変更し、ロー
カル計算機はデータを受信してローカルデータベースへ
書き込むようにしたものである。
According to a first aspect of the present invention, a workstation for mounting a database and a plurality of local computers for mounting a local database are connected via a network, and the database of the workstation is stored in each local computer at startup. In the database management method of the distributed data processing system in which the data is downloaded to the local database, and each local computer reads the data in its own local database and processes the data, the workstation manages the correspondence between the database data and the local database for each local computer. The local computer has a database management table that sets the same status as the data to be stored.Each time the local computer writes the data to its own local database, it sends the data to the workstation. Every time the workstation receives the data and writes the data to the database, the different state of the database management table is set to be the same only for the local computer that has written the data to the database. Every time the data is read, a request for reading the corresponding data from the database is sent to the work station, and the workstation receives the database read request, determines the different status of the database management table, and responds only when the data is different. Data is transmitted, the different state is changed to the same, and the local computer receives the data and writes it in the local database.

【0021】請求項2の発明は、データベースを実装す
るワークステーションとローカルデータベースを実装す
る複数のローカル計算機とがネットワークによって接続
され、起動時にワークステーションのデータベースを各
ローカル計算機のローカルデータベースへダウンロード
し、各ローカル計算機は、自己のローカルデータベース
のデータを読出してデータ処理をする分散データ処理シ
ステムのデータベース管理方法において、ワークステー
ションは、データベースのデータへの書込を許可する書
込許可フラグとローカル計算機毎にデータベースのデー
タとローカルデータベースの対応するデータとの両者の
異同状態とを設定する書込管理テーブルを有し、各ロー
カル計算機は、ローカルデータベースにデータを書き込
む毎に、ワークステーションへデータの書込要求を送信
し、ワークステーションはデータの書込要求を受信する
と、書込管理テーブルの書込許可フラグが無いとき、書
込可を通知し、書込管理テーブルの書込許可フラグの無
を有に設定変更して他のローカル計算機からのデ−タの
書込みを禁止し、データの書込が終了すると書込管理テ
ーブルの書込許可フラグの有を無に設定変更し、さら
に、異同状態をデータベースへデ−タを書込んだローカ
ル計算機のみ同じと設定し、各ローカル計算機は、自己
のローカルデータベースのデータを読出す毎に、ワ−ク
ステーションへデータベースの対応するデータの読出要
求を送信し、ワークステーションは、データベース読出
要求を受信し、書込管理テーブルの異同状態を判定し
て、異なるときのみ対応するデータを送信すると共に、
異同状態を同じと設定変更し、ローカル計算機はデータ
を受信してローカルデータベースへ書き込むようにした
ものである。
According to a second aspect of the present invention, a workstation mounting a database and a plurality of local computers mounting the local database are connected by a network, and the database of the workstation is downloaded to the local database of each local computer at the time of startup, In a database management method of a distributed data processing system in which each local computer reads data from its own local database and processes the data, in a distributed data processing system, a workstation has a write permission flag for permitting writing to the data in the database and a local computer. Has a write management table for setting the different state of both the data in the database and the corresponding data in the local database, and each local computer writes work data every time it writes data to the local database. When the workstation receives a data write request and the data write request is received, the workstation notifies the write permission and writes the write management table when there is no write permission flag in the write management table. Change the setting of the permission flag to Yes to prohibit writing of data from other local computers, and change the setting of the write permission flag to Yes in the write management table when data writing is complete. Furthermore, the different state is set to be the same only for the local computer that has written the data in the database, and each time each local computer reads the data in its own local database, the corresponding data in the database is sent to the workstation. , The workstation receives the database read request, determines whether the write management table is in the same state, and sends the corresponding data only when they are different. As well as,
The difference state is changed to the same setting, and the local computer receives the data and writes it in the local database.

【0022】請求項3の発明は、データベースを実装す
るワークステーションとローカルデータベースを実装す
る複数のローカル計算機とがネットワークによって接続
され、起動時にワークステーションのデータベースを各
ローカル計算機のローカルデータベースへダウンロード
し、各ローカル計算機は、自己のローカルデータベース
のデータを読出してデータ処理をする分散データ処理シ
ステムのデータベース管理方法において、ワークステー
ションは、特定のローカル計算機に限りデータベースの
特定のデータに対応する書込を許可する書込許可の設定
とローカル計算機毎にデータベースのデータとローカル
データベースの対応するデータとの両者の異同状態とを
設定する端末管理テーブルを有し、各ローカル計算機
は、ローカルデータベースにデータを書き込む毎に、ワ
ークステーションへデータの書込要求を送信し、ワーク
ステーションはデータの書込要求を受信すると、端末管
理テーブルが書込許可のとき書込可を通知し、データの
書込が終了すると端末管理テーブルの異同状態をデータ
ベースへデ−タを書込んだローカル計算機のみ同じと設
定し、各ローカル計算機は、自己のローカルデータベー
スのデータを読出す毎に、ワ−クステーションへデータ
ベースの対応するデータの読出要求を送信し、ワークス
テーションは、データベース読出要求を受信し、端末管
理テーブルの異同状態を判定して、異なるときのみ対応
するデータを送信すると共に、異同状態を同じと設定変
更し、ローカル計算機はデータを受信してローカルデー
タベースへ書き込むようにしたものである。
According to a third aspect of the present invention, a workstation that mounts a database and a plurality of local computers that mount the local database are connected by a network, and the database of the workstation is downloaded to the local database of each local computer at startup, In a database management method of a distributed data processing system in which each local computer reads data from its own local database and processes the data, a workstation permits writing corresponding to specific data in the database only to a specific local computer. The local computer has a terminal management table for setting the write permission setting and the different states of both the database data and the corresponding data in the local database for each local computer. Each time data is written to the workstation, a data write request is sent to the workstation, and when the workstation receives the data write request, the workstation notifies the write enable when the terminal management table is write enabled and When the writing of the data is completed, the same state of the terminal management table is set to be the same only for the local computer that has written the data to the database, and each local computer reads the work every time it reads the data of its own local database. The workstation sends a request to read the corresponding data from the database, the workstation receives the request to read the database, determines the different status of the terminal management table, sends the corresponding data only when they are different, and sends the different status. I changed the setting to the same and the local computer received the data and wrote it to the local database. That.

【0023】[0023]

【作用】請求項1の発明の構成によれば、ローカル計算
機のローカルデータベースでデータの書込みが行われた
とき、ワークステーションのデータベースのデータの書
込みが必ず実行される。これによって、データベースと
全てのローカルデータベースの内容を同じものとするこ
とができる。その上、ローカル計算機のローカルデータ
ベースを読み出すとき、ローカルデータベースとワーク
ステーションのデータベースとが異なっている場合のみ
ワークステーションのデータベースによってローカルデ
ータベースを書き込んだ後にローカルデータベースを読
出しすることができる。従って、ローカルデータベース
を読出す必要のある全てのときワークステーションのデ
ータベースを読出す必要がなくなり、データの一貫性を
保持しつつシステム全体の負荷の増加を回避できる。
According to the first aspect of the invention, when the data is written in the local database of the local computer, the writing of the data in the database of the workstation is always executed. This allows the contents of the database and all local databases to be the same. Moreover, when reading the local database of the local computer, the local database can be read after being written by the database of the workstation only if the local database and the database of the workstation are different. Therefore, it is not necessary to read the database of the workstation at all times when it is necessary to read the local database, and it is possible to avoid an increase in the load on the entire system while maintaining data consistency.

【0024】請求項2の発明の構成によれば、ローカル
計算機のローカルデータベースでデータの書込みがされ
たとき、ワークステーションのデータベースのデータ書
込みがされ、データの一貫性を保持しつつシステムの負
荷の増加を回避し、その上、相先後して複数の書込要求
があると、先の書込みが終了した後に、後の書込みが実
行される。これによって、複数のローカルデータベース
のデータを一緒にデータベースへ書込み、デ−タに矛盾
が生じることを回避することができる。
According to the second aspect of the present invention, when data is written in the local database of the local computer, the data in the database of the workstation is written, and the system load is maintained while maintaining the consistency of the data. In addition, avoiding the increase, and further, if there are a plurality of write requests subsequent to each other, the subsequent write is executed after the previous write is completed. This makes it possible to write data in a plurality of local databases to the database together and avoid inconsistency in data.

【0025】請求項3の発明の構成によれば、データの
一貫性を保持しつつシステムの負荷の増加を回避し、ロ
ーカル計算機のローカルデータベースの内でワークステ
ーションのデータベースへ書込可、書込不可を予め定め
ておき、書込不可のローカルデータベースの書込みを禁
止し、書込可のローカルデータベースのみデータベース
へ書き込ができる。従って、不用意に故意にデータベー
スに書き込まれデータが破壊されることを防止すること
ができる。
According to the third aspect of the present invention, it is possible to write to the database of the workstation within the local database of the local computer while avoiding an increase in the load of the system while maintaining the consistency of the data. It is possible to set the prohibition in advance, prohibit writing to the unwritable local database, and write to the writable local database only. Therefore, it is possible to prevent the data from being intentionally written in the database and destroyed.

【0026】[0026]

【実施例】以下、本発明の実施例について図面を参照し
て説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0027】図1は、本発明の第1実施例を示す分散デ
ータ処理システムの全体構成図である。
FIG. 1 is an overall configuration diagram of a distributed data processing system showing a first embodiment of the present invention.

【0028】従来例を示す図17と同一符号は、同一部
分または相当部分を示し、図1は、図17のワークステ
ーション1にデータベース管理テーブル10を追設し、
データベース管理処理部5の構成を異にしデータベース
管理処理部11とし、さらに、ローカル計算機2−Nの
ローカルデータベース管理処理部8の構成を異にしロー
カルデータベース管理処理部12としたことである。
The same reference numerals as those in FIG. 17 showing the conventional example indicate the same or corresponding portions. In FIG. 1, a database management table 10 is additionally provided in the workstation 1 of FIG.
The configuration of the database management processing unit 5 is different from that of the database management processing unit 11, and the configuration of the local database management processing unit 8 of the local computer 2-N is different from that of the local database management processing unit 12.

【0029】ここで、データベース管理テーブル10
は、データベースのテーブル毎にそのデータベースが変
更したか否かの指標として書込の有無とローカルデータ
ベース毎に書込有りの場合にローカルデータベースに既
に読込まれているか否かの指標として更新フラグを保存
したテーブルである。
Here, the database management table 10
Saves the update flag as an indicator of whether or not the database has been changed for each database table and as an indicator of whether or not it has already been read in the local database when writing is made for each local database. It is a table.

【0030】データベース管理処理部11は、ローカル
計算機2からのデータを受信してデータベースへ書込む
ときにデータベース管理テーブル10の書込みの有無を
1と設定し、更新フラグを書込んだローカル計算機2の
み1にセットする一方、読出しの要求があると、要求の
あるローカル計算機2に対応する更新フラグが0のとき
のみに限りデータベースのデータを送信し更新フラグを
1にセットするものである。
The database management processing unit 11 sets the presence / absence of writing in the database management table 10 to 1 when receiving data from the local computer 2 and writing the data in the database, and only the local computer 2 that has written the update flag. On the other hand, when the read request is made, the database data is transmitted and the update flag is set to 1 only when the update flag corresponding to the requesting local computer 2 is 0.

【0031】ローカルデータベース管理処理部12は、
自己のローカルデータベース7へデータを書込む毎にデ
ータベース4へ書込要求をしてデータを送信する一方、
自己のローカルデータベース7からデータを読出すと
き、データベース4からのデータを読出要求し、データ
ベースのデータと異なるとしてデータを受信したときの
みローカルデータベース7へ書込むものである。
The local database management processing unit 12 is
Every time data is written to its own local database 7, a write request is sent to the database 4 and the data is transmitted.
When reading data from its own local database 7, a read request is issued for the data from the database 4, and the data is written to the local database 7 only when the data is received because it is different from the data in the database.

【0032】以上の構成で、図2と図3とに示す処理手
順を参照して説明すると、まず、処理システムの立上げ
のとき、それぞれのローカル計算機2−Nのローカルデ
ータベース管理処理部12が必要なデータベースの伝送
を伝送手段9を介してワークステーション1へ要求す
る。
With the above configuration, the processing procedure shown in FIG. 2 and FIG. 3 will be described. First, when the processing system is started up, the local database management processing unit 12 of each local computer 2-N The transmission of the required database is requested to the workstation 1 via the transmission means 9.

【0033】ワークステーション1では、データベース
管理処理部11が要求されたデータベースを取り出して
伝送手段6を介してデータベース4からローカル計算機
2−Nへ送信する(201)。
In the workstation 1, the database management processing unit 11 takes out the requested database and sends it from the database 4 to the local computer 2-N via the transmission means 6 (201).

【0034】ローカル計算機2−Nでは、伝送手段9を
介してデータベースを受信してローカルデータベース管
理処理部12によってローカルデータベース7へ必要な
データベースを格納する(101)。
In the local computer 2-N, the database is received via the transmission means 9 and the local database management processing unit 12 stores the required database in the local database 7 (101).

【0035】このように、ワークステーション1からロ
ーカル計算機2−Nのローカルデータベース7へダウン
ロードが行われると、各ローカル計算機2−Nは、それ
ぞれ自己のローカルデータベース7をアクセスして各種
データの処理をする。
In this way, when the workstation 1 downloads to the local database 7 of the local computer 2-N, each local computer 2-N accesses its own local database 7 to process various data. To do.

【0036】その後、ローカルデータベース管理処理部
12では、図2に示す処理がされる。まず、自己のロー
カルデータベース7へ書込みがされたとき、データを伝
送手段9を介してワークステーション1へ送信する(1
02,103,104)。
Thereafter, the local database management processing unit 12 performs the processing shown in FIG. First, when data is written in its own local database 7, the data is transmitted to the workstation 1 via the transmission means 9 (1
02, 103, 104).

【0037】これに対して、ワークステーション1は、
ローカル計算機2−Nからのデータを伝送手段6を介し
て受信して図3に示す処理がデータベース管理処理部1
1によって行われる。
On the other hand, the workstation 1 is
The data management processing unit 1 receives the data from the local computer 2-N via the transmission means 6 and performs the processing shown in FIG.
Done by 1.

【0038】今、ローカル計算機2−Nの内でローカル
計算機2−2のデータベーステーブル名「000100
00」においてデータベース4へ書込みがされると、例
えば、図4に示すデータベース管理テーブル10のデー
タベーステーブル名「00010000」の書込みの有
無のフラグに「1」がセットされる(201,202,
203)。
Now, in the local computer 2-N, the database table name "000100" of the local computer 2-2.
When the data is written to the database 4 in "00", for example, "1" is set to the flag indicating the presence or absence of the writing of the database table name "00010000" in the database management table 10 shown in FIG. 4 (201, 202,
203).

【0039】さらに、自己のローカル計算機2−2の更
新フラグを1にセットする一方、他のローカル計算機2
−Nの更新フラグを0にリセットする(204,20
5)。
Further, the update flag of its own local computer 2-2 is set to 1, while the other local computer 2-2 is set.
Reset the update flag of -N to 0 (204, 20)
5).

【0040】この結果、データベース管理テーブル10
では、図4に示すように、データベース名、No.2
「00010000」の書込みのフラグ「1」、ローカ
ル計算機2−2に対応する更新フラグ「1」となり、他
の更新フラグが0にリセットされる。
As a result, the database management table 10
Then, as shown in FIG. Two
The write flag "1" of "00010000" becomes the update flag "1" corresponding to the local computer 2-2, and the other update flags are reset to 0.

【0041】次に、ローカル計算機2−Nのいずれかが
ローカルデータベース7をアクセスするとき、例えば、
ローカル計算機2−3がローカルデータベース7のデー
タベーステーブル名「00010000」をアクセスす
るとき、ローカル計算機2−3がデータベース読出要求
をワークステーション1へする(105)。
Next, when any of the local computers 2-N accesses the local database 7, for example,
When the local computer 2-3 accesses the database table name "00010000" of the local database 7, the local computer 2-3 sends a database read request to the workstation 1 (105).

【0042】これに対して、ワークステーション1のデ
ータベース管理処理部11は、データベース管理テーブ
ル10を参照して書込フラグが1でローカル計算機2−
3の更新フラグが0のとき、更新フラグを1にセットし
た後にデータベーステーブル名「00010000」の
データベースをダウンロード送信する(206〜21
0)。
On the other hand, the database management processor 11 of the workstation 1 refers to the database management table 10 and the write flag is 1 and the local computer 2-
When the update flag of 3 is 0, the update flag is set to 1 and then the database with the database table name “00010000” is downloaded and transmitted (206 to 21).
0).

【0043】これにより、ローカル計算機2−3がワー
クステーション1からダウンロードを受信して自己のロ
ーカルデータベース7へ読込む(106,107,10
8)。
As a result, the local computer 2-3 receives the download from the workstation 1 and reads it into its own local database 7 (106, 107, 10).
8).

【0044】一方、書込フラグが0のとき、対応するデ
ータベース不変の通知がされ、さらに、対応するローカ
ル計算機2−Nの更新フラグが1のとき、既に同じデー
タベースが読出された旨通知がされる(211,21
2)。
On the other hand, when the write flag is 0, the corresponding database invariant is notified, and when the update flag of the corresponding local computer 2-N is 1, it is notified that the same database has already been read. (21,21
2).

【0045】これに伴って、ローカル計算機2−3がデ
ータベース不変通知またはデータベース読出済通知を受
信して自己のローカルデータベース7をアクセスするこ
とができる(106,107,109,110)。
Along with this, the local computer 2-3 can receive the database unchanged notification or the database read completion notification to access its own local database 7 (106, 107, 109, 110).

【0046】また、例えば、ローカル計算機2−3が再
度自己のローカルデータベース7を読出すとき、ワーク
ステーション1に読出要求がされる。この場合、図5に
示すデータベース管理テーブル10では、データベース
テーブル名「00010000」の書込みフラグが1
で、ローカル計算機2−3の更新フラグが1である。
Further, for example, when the local computer 2-3 reads the local database 7 of itself again, the workstation 1 is requested to read it. In this case, in the database management table 10 shown in FIG. 5, the write flag of the database table name “00010000” is 1
The update flag of the local computer 2-3 is 1.

【0047】この場合、ローカル計算機2−3のローカ
ルデータベース7とワークステーション1のデータベー
ス4との対応するテーブルの内容が一致しているために
再度読出要求がされても既に読出済が通知される。従っ
て、再度のダウンロードの必要がなくなる。
In this case, since the contents of the corresponding tables of the local database 7 of the local computer 2-3 and the database 4 of the workstation 1 are the same, even if a read request is made again, the read completion is already notified. . Therefore, there is no need to download again.

【0048】このように、第1実施例によれば、ローカ
ル計算機のローカルデータベースでデータの書込みが行
われたとき、ワークステーションのデータベースのデー
タの書込みが必ず実行される。これによって、データベ
ースと全てのローカルデータベース7の内容を同じもの
とすることができる。その上、ローカル計算機のローカ
ルデータベースを読み出すとき、ローカルデータベース
とワークステーションのデータベースとが異なっている
場合のみワークステーションのデータベースによってロ
ーカルデータベースを書き込んだ後にローカルデータベ
ースを読出しすることができる。従って、ローカルデー
タベースを読出す必要のある全てのときワークステーシ
ョンのデータベースを読出す必要がなくなり、データの
一貫性を保持しつつ負荷の増加を回避することができ
る。
As described above, according to the first embodiment, when the data is written in the local database of the local computer, the writing of the data in the database of the workstation is always executed. As a result, the contents of the database and all local databases 7 can be made the same. Moreover, when reading the local database of the local computer, the local database can be read after being written by the database of the workstation only if the local database and the database of the workstation are different. Therefore, it is not necessary to read the database of the workstation at all times when it is necessary to read the local database, and it is possible to avoid an increase in load while maintaining data consistency.

【0049】図6は、本発明の第2実施例を示す分散デ
ータ処理システムの全体構成図である。
FIG. 6 is an overall configuration diagram of a distributed data processing system showing a second embodiment of the present invention.

【0050】従来例を示す図17と同一符号は、同一部
分または相当部分を示し、図6は、図17に示すローカ
ルデータベース7に書込管理テーブル15を追設し、デ
ータベース管理処理部5の代わりにデータベース管理処
理部16を設け、さらに、ローカルデータベース管理処
理部8の代わりにローカルデータベース管理処理部17
を設けている。
The same reference numerals as those in FIG. 17 showing the conventional example indicate the same or corresponding portions. In FIG. 6, a writing management table 15 is additionally provided in the local database 7 shown in FIG. Instead, a database management processing unit 16 is provided, and further, instead of the local database management processing unit 8, a local database management processing unit 17 is provided.
Is provided.

【0051】ここで、書込管理テーブル15は、データ
ベース4へデータの書込を許可(0)、不許可(1)と
する書込許可フラグと書込がされると1にセットされる
書込フラグとデータベースのデータと同じデータのロー
カル計算機2を1にセットする読出フラグからなってい
る。
Here, the write management table 15 is set to 1 when the write permission flag for permitting (0) and disabling (1) the writing of data to the database 4 is written. It includes a built-in flag and a read flag for setting the local computer 2 of the same data as the data in the database to 1.

【0052】データベース管理処理部16は、ローカル
計算機2からデータの書込要求があったときデータベー
ス4を書込み、書込管理テーブル15の書込許可フラグ
と書込フラグとを1にセットし、書込んだローカル計算
機2に対応する読出フラグのみ1にセットし、データが
データベース4へ書込まれると書込許可フラグを0にリ
セットする一方、読出要求があると読出要求のローカル
計算機2の読出フラグが0のときのみデータベースのデ
ータを送信し、読出フラグを1にセットするものであ
る。
The database management processing unit 16 writes the database 4 when a data write request is issued from the local computer 2, sets the write permission flag and the write flag of the write management table 15 to 1, and writes the data. Only the read flag corresponding to the loaded local computer 2 is set to 1, and when the data is written to the database 4, the write enable flag is reset to 0, while when there is a read request, the read flag of the local computer 2 which is the read request. Only when 0 is 0, the data in the database is transmitted and the read flag is set to 1.

【0053】ローカルデータベース管理処理部17は、
ローカルデータベース7にデータを書込むとき、データ
ベース4へ書込要求し書込可の通知を受信したとき、デ
ータを送信しローカルデータベース7のデータを読出す
とき読出要求をして、データベースのデータと異なると
してデータを受信したときのみデータをローカルデータ
ベース7へ書込むものである。
The local database management processor 17
When writing data to the local database 7, when a write request is made to the database 4 and a write enable notification is received, a read request is made when transmitting data and reading the data of the local database 7 The data is written to the local database 7 only when the data is received as different.

【0054】以上の構成で、図7および図8を参照して
説明すると、まず、システムの立上げのとき、それぞれ
のローカル計算機2−Nのローカルデータベース管理処
理部17が必要なデータベースの伝送を伝送手段9を介
してワークステーション1へ要求する。
With the above configuration, referring to FIG. 7 and FIG. 8, first, when the system is started up, the local database management processing unit 17 of each local computer 2-N transmits the required database. A request is made to the workstation 1 via the transmission means 9.

【0055】ワークステーション1では、データベース
管理処理部16が要求されたデータベース4を取り出し
て伝送手段6を介してローカル計算機2−Nへ送信する
(401)。
In the workstation 1, the database management processing unit 16 takes out the requested database 4 and sends it to the local computer 2-N via the transmission means 6 (401).

【0056】ローカル計算機2−Nでは、伝送手段9を
介してデータを受信してローカルデータベース管理処理
部17によってローカルデータベース7へ必要なデータ
を格納する(301)。
In the local computer 2-N, the data is received via the transmission means 9 and the required data is stored in the local database 7 by the local database management processing unit 17 (301).

【0057】その後、ローカルデータベース管理処理部
17では、図7に示す処理がされる。まず、自己のロー
カルデータベース7へ書込みがされたとき、ローカルデ
ータベースのデータの書込要求がされる(302,30
3)。
Thereafter, the local database management processing section 17 carries out the processing shown in FIG. First, when data is written in its own local database 7, a request for writing data in the local database is made (302, 30).
3).

【0058】これに対して、ワークステーション1のデ
ータベース管理処理部16では、ローカル計算機2−N
からのデータの書込要求を伝送手段6を介して受信して
図8に示す処理がデータベース管理処理部16によって
行われる。
On the other hand, in the database management processing unit 16 of the workstation 1, the local computer 2-N
A data write request from the server is received via the transmission means 6, and the processing shown in FIG.

【0059】今、データベース4への書込要求に対して
書込管理テーブル15が参照され、書込許可フラグが1
か0か判定される。例えば、図9に示す書込管理テーブ
ル15のデータベーステーブル名「10010000」
の書込許可フラグに0がセットされている。この場合に
は、書込許可通知が対応するローカル計算機2−Nへさ
れる(402,403,404)。
Now, the write management table 15 is referred to for the write request to the database 4, and the write permission flag is set to 1.
It is determined whether it is 0 or not. For example, the database table name “10010000” of the writing management table 15 shown in FIG.
0 is set in the write permission flag of. In this case, the write permission notification is sent to the corresponding local computer 2-N (402, 403, 404).

【0060】さらに、書込許可フラグを1にセットし、
書込フラグを1にセットする一方、読出フラグを0にリ
セットする(405,406,407)。
Further, the write permission flag is set to 1 and
The write flag is set to 1 while the read flag is reset to 0 (405, 406, 407).

【0061】この結果、書込管理テーブル15は、図1
0に示すようにデータベース名、No.12「1001
0000」の書込許可フラグ1、書込フラグ1となり読
出フラグが全て0にリセットされる。
As a result, the write management table 15 is shown in FIG.
0, the database name, No. 12 "1001
The write enable flag 1 and the write flag 1 of "0000" are set, and the read flags are all reset to 0.

【0062】その後、データベース4に対してローカル
データベース7の書込みが終了すると、書込許可フラグ
を0にセットする(304,305)(408,40
9)。
After that, when the writing of the local database 7 to the database 4 is completed, the write permission flag is set to 0 (304, 305) (408, 40).
9).

【0063】一方、判断403で書込許可フラグが1の
とき、書込不可通知がされる(403,410)。これ
により、図10に示す書込管理テーブル15の状態のと
き先行するローカルデータベースが書込み終了するまで
後のローカルデータベースの書込みが禁止される。
On the other hand, when the writing permission flag is 1 in the judgment 403, the writing prohibition is notified (403, 410). As a result, in the state of the write management table 15 shown in FIG. 10, the writing of the subsequent local database is prohibited until the writing of the preceding local database is completed.

【0064】次に、ローカル計算機2−Nのいずれかが
自己のローカルデータベース7を読出しするとき、例え
ば、ローカル計算機2−1がデータベーステーブル名
「10010000」のローカルデータベース7を読出
しするときローカル計算機2−1がデータベース読出要
求をする(306)。
Next, when any of the local computers 2-N reads its own local database 7, for example, when the local computer 2-1 reads the local database 7 having the database table name "10010000", the local computer 2 -1 makes a database read request (306).

【0065】これに対して、ワークステーション1の書
込管理テーブル15の書込フラグが1でローカル計算機
2−1の読出フラグが0のとき読出フラグを1にセット
し、ダウンロードされる(411,412,413,4
14,415)。
On the other hand, when the write flag of the write management table 15 of the workstation 1 is 1 and the read flag of the local computer 2-1 is 0, the read flag is set to 1 and downloaded (411, 412, 413, 4
14, 415).

【0066】ローカル計算機2−1では、ダウンロード
を入力する(306,307,308,309)。すな
わち、図11に示すフラグの状態となる。
In the local computer 2-1, the download is input (306, 307, 308, 309). That is, the state of the flag shown in FIG. 11 is set.

【0067】一方、書込管理テーブル15の書込フラグ
が0のとき、データベース不変の通知がされ、さらに、
書込フラグが1でも読出フラグが1のとき、既に同じデ
ータベースが読出された旨通知がされる(416,41
7)。
On the other hand, when the write flag of the write management table 15 is 0, the database invariant is notified, and further,
Even if the write flag is 1 and the read flag is 1, it is notified that the same database has already been read (416, 41).
7).

【0068】これに伴って、例えば、ローカル計算機2
−1が再度続出したとき、データベース不変通知、デー
タベース読出済通知がされアクセス可能となる(30
7,308,310,311)。
Along with this, for example, the local computer 2
When -1 continues again, the database invariant notification and the database read completion notification are given and access becomes possible (30
7, 308, 310, 311).

【0069】第2実施例によれば、ローカル計算機のロ
ーカルデータベース7でデータの書込みがされたとき、
ワークステーションのデータベースのデータ書込みがさ
れる。このとき、相先後して複数の書込要求があると、
先の書込みが終了した後に、後の書込みが実行される。
これによって、複数のローカルデータベースのデータを
一緒にデータベースへ書込み、データに矛盾が生じるこ
とを回避することができる。
According to the second embodiment, when data is written in the local database 7 of the local computer,
Data is written to the workstation database. At this time, if there are multiple write requests after the other party,
After the previous writing is completed, the later writing is executed.
This makes it possible to write data in a plurality of local databases to the database together and avoid data inconsistency.

【0070】図12は、本発明の第3実施例を示す分散
データ処理システムの全体構成図である。
FIG. 12 is an overall configuration diagram of a distributed data processing system showing a third embodiment of the present invention.

【0071】従来例を示す図17と同一符号は、同一部
分または相当部分を示し、図12は、端末管理テーブル
18を追設しデータベース管理処理部5の代わりにデー
タベース管理処理部19として、ローカルデータベース
管理処理部8の代わりにローカルデータベース管理処理
部20を設けている。
In the conventional example, the same reference numerals as those in FIG. 17 indicate the same or corresponding portions. In FIG. 12, a terminal management table 18 is additionally provided, and instead of the database management processing unit 5, the database management processing unit 19 is used as a local management unit. A local database management processing unit 20 is provided instead of the database management processing unit 8.

【0072】ここで、端末管理テーブル18は、データ
ベース4へデータの書込を端末IDに対応するローカル
計算機2のみ許可する端末IDと書込がされると1にセ
ットされる書込フラグとデータベースのデータと同じデ
ータのローカル計算機2を1にセットする読出フラグと
からなっている。
Here, the terminal management table 18 has a writing flag and a database which are set to 1 when the writing is made to the database 4 and the terminal ID which permits only the local computer 2 corresponding to the terminal ID to write the data. And a read flag for setting the local computer 2 of the same data to 1.

【0073】データベース管理処理部19は、ローカル
計算機2からデータの書込要求があったとき端末管理テ
ーブル18の端末IDからの書込要求のときデータベー
ス4へデータを書込み、書込フラグとを1にセットし、
書込んだローカル計算機2に対応する読出フラグのみ1
にセットし、読出要求があると読出要求のローカル計算
機2の読出フラグが0のときのみデータベースのデータ
を送信し、読出フラグを1にセットするものである。
The database management processor 19 writes data to the database 4 when a write request is made from the terminal ID of the terminal management table 18 when a data write request is made from the local computer 2, and sets the write flag to 1 Set to
Only the read flag corresponding to the written local computer 2 is 1
When there is a read request, the data in the database is transmitted and the read flag is set to 1 only when the read flag of the local computer 2 of the read request is 0.

【0074】ローカルデータベース管理処理部20は、
ローカルデータベース7にデータを書込むとき、データ
ベース4の書込要求をし書込可の通知を受信したとき、
データを送信し、データベース4へ書込みローカルデー
タベース7のデータを読出すとき読出要求をして、デー
タベースのデータと異なるとしてデータを受信したとき
のみデータをローカルデータベース7へ書込むものであ
る。
The local database management processor 20
When writing data to the local database 7, when a write request for the database 4 is made, and when a write enable notification is received,
The data is transmitted, written to the database 4, a read request is made when reading the data in the local database 7, and the data is written to the local database 7 only when the data is received because it is different from the data in the database.

【0075】以上の構成で、図13および図14を参照
してその作用を説明すると、システムの立上げのとき、
それぞれのローカル計算機2−Nのローカルデータベー
ス管理処理部20が必要なデータベースを伝送手段9を
介してワークステーション1へ要求する。
The operation of the above configuration will be described with reference to FIGS. 13 and 14.
The local database management processor 20 of each local computer 2-N requests the workstation 1 via the transmission means 9 for the required database.

【0076】ワークステーション1では、データベース
管理処理部19が要求されたデータベースを取り出して
伝送手段6を介してローカル計算機2−Nへ送信する
(601)。
In the workstation 1, the database management processing section 19 takes out the requested database and sends it to the local computer 2-N via the transmission means 6 (601).

【0077】ローカル計算機2−Nでは、伝送手段9を
介してデータベースを受信してローカルデータベース管
理処理部20によってローカルデータベース7へ必要な
データベースを格納する(501)。
In the local computer 2-N, the database is received via the transmission means 9 and the local database management processing unit 20 stores the required database in the local database 7 (501).

【0078】その後、ローカルデータベース管理処理部
20では、図13に示す処理がされる。まず、自己のロ
ーカルデータベース7へ書込みがされたとき、ローカル
データベース4へのデータの書込要求がされる(50
2,503)。
Thereafter, the local database management processing section 20 performs the processing shown in FIG. First, when data is written to its own local database 7, a request for writing data to the local database 4 is made (50
2, 503).

【0079】これに対して、ワークステーション1のデ
ータベース管理処理部19では、ローカル計算機2−N
からのデータベースのデータの書込要求を伝送手段6を
介して受信して図14に示す処理が行われる。
On the other hand, in the database management processing unit 19 of the workstation 1, the local computer 2-N
The data write request from the database is received via the transmission means 6 and the processing shown in FIG. 14 is performed.

【0080】まず、データベース4への書込要求がある
と、データベース管理処理部19が、図15に示す如く
の端末管理テーブル18を参照してデータベーステーブ
ル名に対応する端末IDがあるか否かの判定がされる
(602,603)。
First, when there is a write request to the database 4, the database management processing unit 19 refers to the terminal management table 18 as shown in FIG. 15 and determines whether or not there is a terminal ID corresponding to the database table name. Is determined (602, 603).

【0081】例えば、今、ローカル計算機2−1がデー
タベース4のテーブル名「20010000」に対して
データの書込要求をしたとすると端末管理テーブル18
では、端末ID2−2と予め設定されている。従って、
この場合、書込不可通知される(604)。これによ
り、予め設定された端末ID以外からの書込みが禁止さ
れる。
For example, if the local computer 2-1 requests writing of data to the table name "20010000" of the database 4, the terminal management table 18
Then, the terminal ID 2-2 is preset. Therefore,
In this case, a write disable notification is given (604). This prohibits writing from other than the preset terminal ID.

【0082】一方、例えば、上記の場合、ローカル計算
機2−2がデータベース4のテーブル名「200100
00」の書込要求をすると、図15に示す端末管理テー
ブル18のデータベーステーブル名「2001000
0」の端末IDが2−2となっている。従って、書込可
通知がされ、書込フラグ1にセットし、読出フラグ1に
セットし、データベース4への書込みを待つ(605,
606,607,608)。
On the other hand, for example, in the above case, the local computer 2-2 makes the table name “200100” of the database 4
When a write request of "00" is issued, the database table name "2001000" of the terminal management table 18 shown in FIG.
The terminal ID of "0" is 2-2. Therefore, a write enable notification is given, the write flag 1 is set, the read flag 1 is set, and writing to the database 4 is waited (605,
606, 607, 608).

【0083】これに伴い、ローカル計算機2−2のロー
カルデータベース管理処理部20では、書込可通知によ
りアップロードがされる(504,505)。
Along with this, the local database management processing unit 20 of the local computer 2-2 uploads by writing notification (504, 505).

【0084】その後、ローカル計算機2−Nのいずれか
が、ローカルデータベース7へ読出す。例えば、ローカ
ル計算機2−1がデータベーステーブル名「20010
000」のローカルデータベース7を読出すとき、デー
タベース読出要求をする(609)。
After that, one of the local computers 2-N reads it out to the local database 7. For example, if the local computer 2-1 uses the database table name “20010”
When the local database 7 of "000" is read, a database read request is made (609).

【0085】これに対して、ワークステーション1のデ
ータベース管理処理部19が端末管理テーブル18を参
照する。この場合、図16に示すように、書込フラグ1
で、かつ、読出フラグ0のとき読出フラグを1にセット
し、ダウンロードされる(610〜613)。これに応
じてローカル計算機2−1では、ダウンロードを入力す
る(507,508,509)。
On the other hand, the database management processor 19 of the workstation 1 refers to the terminal management table 18. In this case, as shown in FIG. 16, the write flag 1
When the read flag is 0, the read flag is set to 1 and downloaded (610 to 613). In response to this, the local computer 2-1 inputs the download (507, 508, 509).

【0086】例えば、図15に示す端末管理テーブル1
8のようにローカル計算機2−1からデータベーステー
ブル名「20010000」のデータベース読出要求が
されたとき、書込フラグ1で、かつ、読出フラグ0であ
る。従って、データベース4が変更され、ローカル計算
機2−1のローカルデータベースとデータベース4とが
異なる。
For example, the terminal management table 1 shown in FIG.
When the database read request for the database table name “20010000” is issued from the local computer 2-1 as in No. 8, the write flag is 1 and the read flag is 0. Therefore, the database 4 is changed, and the local database of the local computer 2-1 and the database 4 are different.

【0087】そこで、ローカル計算機2−1のローカル
データベースとデータベース4のデータを同じものとす
るためにデータベース4を読出してダウンロードする。
この結果、ローカル計算機2−1の読出フラグが1にセ
ットされる。
Therefore, in order to make the data in the local database of the local computer 2-1 and the data in the database 4 the same, the database 4 is read and downloaded.
As a result, the read flag of the local computer 2-1 is set to 1.

【0088】一方、書込フラグが0のとき、データベー
ス不変の通知がされ、さらに、書込フラグ1でも読出フ
ラグが1のとき、既に同じデータベースが読出された旨
通知がされる(614,615)。
On the other hand, when the write flag is 0, the database invariant is notified, and when the write flag 1 and the read flag are 1, it is notified that the same database has already been read (614, 615). ).

【0089】第3実施例によれば、ローカル計算機のロ
ーカルデータベースの内でワークステーションのデータ
ベースへ書込可、書込不可を予め設定しておき、書込不
可のローカルデータベースの書込みを禁止し、書込可の
ローカルデータベースのみデータベースへ書き込ができ
る。従って、不用意に故意にデータベースに書き込まれ
データが破壊されることを防止することができる。
According to the third embodiment, in the local database of the local computer, writing is possible or not possible is set in advance in the database of the workstation, and writing in the writing-disabled local database is prohibited. Only the writable local database can be written to the database. Therefore, it is possible to prevent the data from being intentionally written in the database and destroyed.

【0090】[0090]

【発明の効果】以上説明したように請求項1の発明によ
れば、ローカルデータベースへデータの書込みが行われ
たとき、データベースのデータの書込みが必ず実行され
るからデータベースと全てのローカルデータベースの内
容を同じものとすることができ、ローカルデータベース
とデータベースとが異なっている場合のみデータベース
によって書き込んだ後にローカルデータベースを読出し
することができる。従って、ローカルデータベースを読
出す必要のある全てのときデータベースを読出す必要が
なくなり、データの一貫性を保持しつつシステムの負荷
の増加を回避できる。
As described above, according to the invention of claim 1, when data is written to the local database, the data of the database is always written, so that the contents of the database and all the local databases are written. Can be the same and the local database can be read after being written by the database only if the local database and the database are different. Therefore, it is not necessary to read the database at all times when it is necessary to read the local database, and it is possible to avoid an increase in system load while maintaining data consistency.

【0091】請求項2の発明によれば、ローカルデータ
ベースでデータの書込みがされたとき、データベースの
データ書込みがされるが相先後して複数の書込要求があ
ると、先の書込みが終了した後に、後の書込みが実行さ
れる。これによって、複数のローカルデータベースのデ
ータを一緒にデータベースへ書込み、デ−タに矛盾が生
じることを回避することができる。
According to the second aspect of the invention, when the data is written in the local database, the data in the database is written. However, if a plurality of write requests are issued subsequently, the previous write is completed. Later writing is performed later. This makes it possible to write data in a plurality of local databases to the database together and avoid inconsistency in data.

【0092】請求項3の発明によれば、ローカルデータ
ベースの内でデータベースへ書込許可されたローカルデ
ータベースのみデータベースへ書き込ができる。従っ
て、不用意に故意にデータベースに書き込まれデータが
破壊されることを防止することができる。
According to the third aspect of the present invention, only the local database which is permitted to be written in the local database can be written in the database. Therefore, it is possible to prevent the data from being intentionally written in the database and destroyed.

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

【図1】本発明の第1実施例を示す分散データ処理シス
テムの全体構成図である。
FIG. 1 is an overall configuration diagram of a distributed data processing system showing a first embodiment of the present invention.

【図2】図1のローカル計算機に備えるローカルデータ
ベース管理処理部の処理手順を示すフローチャートであ
る。
FIG. 2 is a flowchart showing a processing procedure of a local database management processing unit provided in the local computer of FIG.

【図3】図1のワークステーションに備えるデータベー
ス管理処理部の処理手順を示すフローチャートである。
FIG. 3 is a flowchart showing a processing procedure of a database management processing unit provided in the workstation of FIG.

【図4】図1のデータベース管理テーブルの一例を示す
説明図である。
FIG. 4 is an explanatory diagram showing an example of a database management table of FIG.

【図5】図1のデータベース管理テーブルの他の例を示
す説明図である。
5 is an explanatory diagram showing another example of the database management table of FIG. 1. FIG.

【図6】本発明の第2実施例を示す分散データ処理シス
テムの全体構成図である。
FIG. 6 is an overall configuration diagram of a distributed data processing system showing a second embodiment of the present invention.

【図7】図6のローカル計算機に備えるローカルデータ
ベース管理処理部の処理手順を示すフローチャートであ
る。
7 is a flowchart showing a processing procedure of a local database management processing unit provided in the local computer of FIG.

【図8】図6のワークステーションに備えるデータベー
ス管理処理部の処理手順を示すフローチャートである。
8 is a flowchart showing a processing procedure of a database management processing unit provided in the workstation of FIG.

【図9】図6の書込管理テーブルの第1の例を示す説明
図である。
9 is an explanatory diagram showing a first example of a write management table of FIG.

【図10】図6の書込管理テーブルの第2の例を示す説
明図である。
10 is an explanatory diagram showing a second example of the writing management table of FIG.

【図11】図6の書込管理テーブルの第3の例を示す説
明図である。
FIG. 11 is an explanatory diagram showing a third example of the writing management table of FIG.

【図12】本発明の第3実施例を示す分散データ処理シ
ステムの全体構成図である。
FIG. 12 is an overall configuration diagram of a distributed data processing system showing a third embodiment of the present invention.

【図13】図12のローカル計算機に備えるローカルデ
ータベース管理処理部の処理手順を示すフローチャート
である。
13 is a flowchart showing a processing procedure of a local database management processing unit provided in the local computer of FIG.

【図14】図12のワークステーションに備えるデータ
ベース管理処理部の処理手順を示すフローチャートであ
る。
FIG. 14 is a flowchart showing a processing procedure of a database management processing unit included in the workstation of FIG.

【図15】図12の端末管理テーブルの一例を示す説明
図である。
15 is an explanatory diagram showing an example of a terminal management table of FIG.

【図16】図12の端末管理テーブルの他の例を示す説
明図である。
16 is an explanatory diagram showing another example of the terminal management table of FIG.

【図17】従来例を示す分散データ処理システムの全体
構成図である。
FIG. 17 is an overall configuration diagram of a distributed data processing system showing a conventional example.

【図18】データベースの管理方法を示す第1の説明図
である。
FIG. 18 is a first explanatory diagram showing a database management method.

【図19】データベースの管理方法を示す第2の説明図
である。
FIG. 19 is a second explanatory diagram showing a database management method.

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

1 ワークステーション 2−N ローカル計算機 3 ネットワーク 4 データベース 5 データベース管理処理部 6 伝送手段 7 ローカルデータベース 8 ローカルデータベース管理処理手段 9 伝送手段 10 データベース管理テーブル 11 データベース管理処理部 12 ローカルデータベース管理処理部 15 書込管理テーブル 16 データベース管理処理部 17 ローカルデータベース管理処理部 18 端末管理テーブル 19 データベース管理処理部 20 ローカルデータベース管理処理部 1 Workstation 2-N Local Computer 3 Network 4 Database 5 Database Management Processing Unit 6 Transmission Means 7 Local Database 8 Local Database Management Processing Means 9 Transmission Means 10 Database Management Table 11 Database Management Processing Unit 12 Local Database Management Processing Unit 15 Writing Management table 16 Database management processing unit 17 Local database management processing unit 18 Terminal management table 19 Database management processing unit 20 Local database management processing unit

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 データベースを実装するワークステーシ
ョンとローカルデータベースを実装する複数のローカル
計算機とがネットワークによって接続され、起動時に前
記ワークステーションのデータベースを前記各ローカル
計算機のローカルデータベースへダウンロードし、前記
各ローカル計算機は、自己のローカルデータベースのデ
ータを読出してデータ処理をする分散データ処理システ
ムのデータベース管理方法において、 前記ワークステーションは、ローカル計算機毎に前記デ
ータベースのデータと前記ローカルデータベースの対応
するデータとの両者の異同状態を設定するデータベース
管理テーブルを有し、 前記各ローカル計算機は、自己のローカルデータベース
にデータを書き込む毎に、前記ワークステーションへ前
記データを送信し、 前記ワークステーションは前記データを受信して前記デ
ータをデータベースへ書き込む毎に、前記データベース
管理テーブルの前記異同状態を前記データベースへデ−
タを書込んだローカル計算機のみ同じと設定し、 前記各ローカル計算機は、自己のローカルデータベース
のデータを読出す毎に、ワ−クステーションへデータベ
ースの対応するデータの読出要求を送信し、 前記ワークステーションは、データベース読出要求を受
信し、前記データベース管理テーブルの前記異同状態を
判定して、異なるときのみ対応するデータを送信すると
共に、前記異同状態を同じと設定変更し、 前記ローカル計算機は前記データを受信してローカルデ
ータベースへ書き込むことを特徴とする分散データ処理
システムのデータベース管理方法。
1. A workstation that implements a database and a plurality of local computers that implement a local database are connected by a network, and the database of the workstation is downloaded to the local database of each of the local computers at startup, and each of the local computers is downloaded. In a database management method of a distributed data processing system, wherein a computer reads data in its own local database and processes the data, the workstation stores both the data in the database and the corresponding data in the local database for each local computer. Each of the local computers sends the data to the workstation each time the local computer writes the data in its own local database. And, for each of the workstations writes to receive the data of the data into the database, de the difference state of the database management table to said database -
Data is written in the local computer, and each local computer sends a request for reading the corresponding data in the database to the work station every time it reads the data in its own local database. The station receives a database read request, determines the different status of the database management table, sends corresponding data only when different, and changes the setting of the different status to the same, and the local computer sets the data. A method for managing a database in a distributed data processing system, characterized by receiving and writing to a local database.
【請求項2】 データベースを実装するワークステーシ
ョンとローカルデータベースを実装する複数のローカル
計算機とがネットワークによって接続され、起動時に前
記ワークステーションのデータベースを前記各ローカル
計算機のローカルデータベースへダウンロードし、前記
各ローカル計算機は、自己のローカルデータベースのデ
ータを読出してデータ処理をする分散データ処理システ
ムのデータベース管理方法において、 前記ワークステーションは、前記データベースのデータ
への書込を許可する書込許可フラグとローカル計算機毎
に前記データベースのデータと前記ローカルデータベー
スの対応するデータとの両者の異同状態とを設定する書
込管理テーブルを有し、 前記各ローカル計算機は、前記ローカルデータベースに
データを書き込む毎に、前記ワークステーションへ前記
データの書込要求を送信し、 前記ワークステーションは前記データの書込要求を受信
すると、前記書込管理テーブルの前記書込許可フラグが
無のとき、書込可を通知し、前記書込管理テーブルの前
記書込許可フラグの無を有に設定変更して他のローカル
計算機からのデ−タの書込みを禁止し、データの書込が
終了すると前記書込管理テーブルの前記書込許可フラグ
の有を無に設定変更し、さらに、前記異同状態を前記デ
ータベースへデ−タを書込んだローカル計算機のみ同じ
と設定し、 前記各ローカル計算機は、自己のローカルデータベース
のデータを読出す毎に、ワ−クステーションへデータベ
ースの対応するデータの読出要求を送信し、 前記ワークステーションは、データベース読出要求を受
信し、前記書込管理テーブルの前記異同状態を判定し
て、異なるときのみ対応するデータを送信すると共に、
前記異同状態を同じと設定変更し、 前記ローカル計算機は前記データを受信してローカルデ
ータベースへ書き込むことを特徴とする分散データ処理
システムのデータベース管理方法。
2. A workstation that mounts a database and a plurality of local computers that mount a local database are connected by a network, and the database of the workstation is downloaded to the local database of each of the local computers at startup, and each of the local computers is downloaded. In a database management method of a distributed data processing system, wherein a computer reads data from its own local database and performs data processing, wherein the workstation has a write permission flag for permitting writing to the data in the database and a local computer. Has a write management table for setting different states of both the data in the database and the corresponding data in the local database, and each of the local computers writes the data in the local database. Each time it inserts, it sends a request to write the data to the workstation, and when the workstation receives the request to write the data, the workstation writes if the write permission flag in the write management table is absent. Notified, the setting of the write enable flag in the write management table is changed to “no” to prohibit the writing of data from other local computers, and the writing is performed when the data writing is completed. The presence / absence of the write permission flag in the management table is changed to not present, and the different state is set to be the same only in the local computer that has written the data to the database. Every time the data in the database is read, a request for reading the corresponding data in the database is sent to the workstation, and the workstation sends the database read request. And Shin, said determining the difference status of the write management table, and transmits the data corresponding to only different time,
A database management method for a distributed data processing system, wherein the setting of the different state is changed to the same, and the local computer receives the data and writes the data in a local database.
【請求項3】 データベースを実装するワークステーシ
ョンとローカルデータベースを実装する複数のローカル
計算機とがネットワークによって接続され、起動時に前
記ワークステーションのデータベースを前記各ローカル
計算機のローカルデータベースへダウンロードし、前記
各ローカル計算機は、自己のローカルデータベースのデ
ータを読出してデータ処理をする分散データ処理システ
ムのデータベース管理方法において、 前記ワークステーションは、特定のローカル計算機に限
り前記データベースの特定のデータに対する書込を許可
する書込許可の設定とローカル計算機毎に前記データベ
ースのデータと前記ローカルデータベースの対応するデ
ータとの両者の異同状態とを設定する端末管理テーブル
を有し、 前記各ローカル計算機は、前記ローカルデータベースに
データを書き込む毎に、前記ワークステーションへ前記
データの書込要求を送信し、 前記ワークステーションは前記データの書込要求を受信
すると、前記端末管理テーブルが前記書込許可のとき書
込可を通知し、データの書込が終了すると前記データベ
ース管理テーブルの前記異同状態を前記データベースへ
デ−タを書込んだローカル計算機のみ同じと設定し、 前記各ローカル計算機は、自己のローカルデータベース
のデータを読出す毎に、ワ−クステーションへデータベ
ースの対応するデータの読出要求を送信し、 前記ワークステーションは、データベース読出要求を受
信し、前記端末管理テーブルの前記異同状態を判定し
て、異なるときのみ対応するデータを送信すると共に、
前記異同状態を同じと設定変更し、 前記ローカル計算機は前記データを受信してローカルデ
ータベースへ書き込むことを特徴とする分散データ処理
システムのデータベース管理方法。
3. A workstation that implements a database and a plurality of local computers that implement a local database are connected by a network, and the database of the workstation is downloaded to the local database of each of the local computers at startup, and each of the local computers is downloaded. In a database management method of a distributed data processing system, wherein a computer reads data from its own local database and processes the data, in the workstation, the workstation permits writing to specific data in the database only to a specific local computer. Including a terminal management table that sets the permission status and the different states of both the data of the database and the corresponding data of the local database for each local computer, and each of the local computers, Each time data is written to the local database, the data write request is transmitted to the workstation, and when the workstation receives the data write request, the workstation writes when the terminal management table indicates the write permission. When the writing of the data is completed and the writing of the data is completed, the different state of the database management table is set to be the same only in the local computer that has written the data in the database, and each local computer has its own local database. Each time the data is read, a request for reading the corresponding data in the database is sent to the work station, the workstation receives the database read request, determines the different status of the terminal management table, Send corresponding data only when they are different,
A database management method for a distributed data processing system, wherein the setting of the different state is changed to the same, and the local computer receives the data and writes the data in a local database.
JP6220880A 1994-08-24 1994-08-24 Data base management method for distributed data processing system Pending JPH0863381A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6220880A JPH0863381A (en) 1994-08-24 1994-08-24 Data base management method for distributed data processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6220880A JPH0863381A (en) 1994-08-24 1994-08-24 Data base management method for distributed data processing system

Publications (1)

Publication Number Publication Date
JPH0863381A true JPH0863381A (en) 1996-03-08

Family

ID=16757991

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6220880A Pending JPH0863381A (en) 1994-08-24 1994-08-24 Data base management method for distributed data processing system

Country Status (1)

Country Link
JP (1) JPH0863381A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010055217A (en) * 2008-08-26 2010-03-11 Panasonic Corp Content file management system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010055217A (en) * 2008-08-26 2010-03-11 Panasonic Corp Content file management system

Similar Documents

Publication Publication Date Title
US5826021A (en) Disconnected write authorization in a client/server computing system
US7024525B2 (en) Distributed background track processing
US5604863A (en) Method for coordinating executing programs in a data processing system
US5737600A (en) Method and system for log management in a coupled data processing system
EP1131715B1 (en) Distributed transactional processing system and method
CN102339283A (en) Access control method for cluster file system and cluster node
JP2002511164A (en) How to determine the visibility of a remote database client for multiple database transactions for use in simplified visibility rules
US20030014522A1 (en) Activating a volume group without a quorum of disks in the volume group being active
US5680577A (en) Method and system for processing multiple requests for data residing at the same memory address
JP3542812B2 (en) Distributed processing equipment
JP2001236219A (en) Agent for carrying out license managing function, license managing system using the agent and semiconductor device for realizing the function
JPH0863381A (en) Data base management method for distributed data processing system
JP2002351729A (en) Data sharing system
JP2002297432A (en) Distributed-processing-type database management system
US20170242605A1 (en) Guid partition table based hidden data store system
JP3970524B2 (en) Exclusive control method between multiple operations
JP2001175522A (en) Method and system for exclusive control
JPH04305751A (en) File transfer system
JP4492569B2 (en) File operation control device, file operation control system, file operation control method, and file operation control program
JP3754393B2 (en) Distributed file apparatus, process migration method thereof, and computer apparatus
JP2740467B2 (en) Exclusive control method for multiple databases
JP2001134476A (en) Method for updating data base in a batch
JP3541681B2 (en) Item status monitoring system
KR20000051051A (en) System and method for managing of active database
JP2002149461A (en) File backup system and its method