JPH04153844A - Data base update system - Google Patents

Data base update system

Info

Publication number
JPH04153844A
JPH04153844A JP2280424A JP28042490A JPH04153844A JP H04153844 A JPH04153844 A JP H04153844A JP 2280424 A JP2280424 A JP 2280424A JP 28042490 A JP28042490 A JP 28042490A JP H04153844 A JPH04153844 A JP H04153844A
Authority
JP
Japan
Prior art keywords
terminal
update
database
terminals
exclusive control
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
JP2280424A
Other languages
Japanese (ja)
Inventor
Yasuhiko Fujioka
靖彦 藤岡
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP2280424A priority Critical patent/JPH04153844A/en
Publication of JPH04153844A publication Critical patent/JPH04153844A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To enable each terminal to update its data base and data bases of other terminals synchronously by providing an exclusive control means which disables state information corresponding to the name of a table to be updated and sends exclusive control completion information. CONSTITUTION:This system is provided with a terminal 1 having a data base which is maintained and controlled from plural terminals, a terminal 2 which is connected to the terminal by a LAN(local area network) 4, and a terminal 3, and the main storage device(MM) 3 in the terminal 1 is stored with programs for realizing a data base update means and the exclusive control means, a data base control table, and a terminal control information table. The terminal 1 sends an exclusive control request for update tables to other terminals 2 and 3 having the update tables through the LAN 4 only when corresponding state information in the data base control table indicates an update possible state, and updates the update tables of the terminals 2 and 3 and its update table on receiving exclusive control completion information. Consequently, the data bases is updated from one terminal synchronously.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はデータベースを有する複数の端末で構成すれる
LAN (ローカルエリアネットワーク)システムにお
いて、各端末に分散して配置された同一のデータベース
を各端末から更新する場合のデータベース更新方式に関
する。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Application Field] The present invention relates to a LAN (Local Area Network) system consisting of a plurality of terminals each having a database, in which the same database distributed among the terminals is Regarding the database update method when updating from a terminal.

〔従来の技術〕[Conventional technology]

従来、複数の端末から構成されるLANシステムにおい
ては、目的のデータベースが存在する端末でアプリケー
ジジンプログラムを動作させたり、アクセスしたいデー
タベースの格納端末を意識することなくあたかも自端末
にあるかのようにデータベースを利用するデータベース
利用方式であった。しかしながら、データベースを更新
する場合は、端末同志の同期をとって行うことができず
、更新は別々の端末でしなければならなかった。
Conventionally, in a LAN system consisting of multiple terminals, you can run an app application program on the terminal where the target database exists, or access the database you want to access as if it were on your own terminal without being aware of the terminal where it is stored. It was a database usage method that used a database. However, when updating the database, it was not possible to synchronize the terminals, and updates had to be performed on separate terminals.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

従来のデータベース更新方式は、データベースを更新す
る場合、端末同志の同期をとって行うことができないた
め、同期ずれに起因するシステム障害が発生する可能性
がった。
In conventional database updating methods, when updating a database, it is not possible to synchronize the terminals, so there is a possibility that system failures may occur due to out of synchronization.

本発明の目的は、上記の問題点を解決し、複数の端末に
分散して収容されたデータベースをある端末から同期を
とって更新することを可能きするデータベースの更新方
式を提供することいある。
SUMMARY OF THE INVENTION An object of the present invention is to solve the above-mentioned problems and provide a database update method that allows a database stored in a plurality of terminals to be updated synchronously from a certain terminal. .

〔課題を解決するための手段〕[Means to solve the problem]

本発明は、LANを介して互に接続され同一のデータベ
ースを有する端末を備えた分散処理システムにおけるデ
ータベース更新方式において、前記端末がデータベース
名毎に前記データベースを構成するテーブル名と前記テ
ーブルの更新可/否状態を示す状態情報から成るデータ
ベース管理テーブルと、端末名毎に前記端末が専有可能
な前記データベース名と前記テーブル名を管理する端末
管理情報テーブルとを備え、前記テーブルを更新する前
記端末は前記データベース管理テーブルの前記更新テー
ブルに対応する前記状態情報が更新可状態を示す場合の
み前記端末管理情報テーブルを参照して前記更新テーブ
ルを有する他の前記各端末に前記LANを介して前記更
新テーブルの排他制御要求を送信し、前記排他制御要求
を受け取った前記各端末からの排他制御完了通知を受け
て前記各端末と自端末の前記更新テーブルを更新するデ
ータベース更新手段と、前記排他制御要求を受け取った
前記各端末は前記データベース管理テーブルにおける前
記排他制御要求で前記更新テーブルとして示された前記
データベース名配下の前記テーブル名に対応する前記状
態情報を更新否状態にし前記排他制御完了通知を送信す
る排他制御手段を有することを特徴とする。
The present invention provides a database update method in a distributed processing system including terminals connected to each other via a LAN and having the same database, in which the terminals can update the names of tables constituting the database for each database name and the tables. The terminal that updates the table comprises a database management table consisting of status information indicating a /no status, and a terminal management information table that manages the database name and table name that can be exclusive to the terminal for each terminal name. Only when the status information corresponding to the update table of the database management table indicates an updatable state, the terminal management information table is referred to and the update table is sent to each of the other terminals having the update table via the LAN. database updating means for transmitting an exclusive control request and updating the update table of each terminal and its own terminal upon receiving an exclusive control completion notification from each terminal that has received the exclusive control request; Each terminal that receives the information changes the status information corresponding to the table name under the database name indicated as the update table in the exclusive control request in the database management table to a non-update state, and transmits the exclusive control completion notification. It is characterized by having exclusive control means.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は本発明の一実施例を示すブロック図である。FIG. 1 is a block diagram showing one embodiment of the present invention.

第1図において、複数の端末から維持管理されるデータ
ベースを有する端末1と、この端末とLAN4で接続さ
れた端末2、端末3が示されている。
In FIG. 1, a terminal 1 having a database maintained and managed by a plurality of terminals, and terminals 2 and 3 connected to this terminal via a LAN 4 are shown.

端末1は、中央処理装置(CPU)11と、CPUII
に接続されたLANインタフェース装置(LANI)1
2と同じ<CPUIIに接続された主記憶装置(MM)
13とさらにデータベースファイル装置(DBF)14
とキーボードデイスプレィ(KB)15を含んで構成さ
れている。
The terminal 1 includes a central processing unit (CPU) 11 and a CPU II.
LAN interface device (LANI) 1 connected to
Same as 2 <Main memory (MM) connected to CPUII
13 and further database file device (DBF) 14
and a keyboard display (KB) 15.

尚、図示しないがMM13には、請求項記載のデータベ
ース更新手段、排他制御手段を実現するプログラム及び
データベース管理テーブルと端末管理情報テーブルとが
記憶される。
Although not shown in the drawings, the MM 13 stores a program for implementing the database updating means and exclusive control means described in the claims, a database management table, and a terminal management information table.

第2図は、MM13に記憶されるデータベース管理テー
ブルの一例を示す割り付は図で、DBSPACE名、D
BSPACE内テーブル名、ならびにテーブル毎の更新
可/否を管理する状態からなる。この様にMM13内に
データベース管理テーブルを管理することにより、DB
F14に格納されているデータベースファイル及び他の
端末に同様に格納されているデータベースファイルのD
BSPACE内のテーブル毎の更新可/否状態の管理が
可能となる。
Figure 2 shows an example of the database management table stored in the MM13.
It consists of a state that manages the table name in BSPACE and whether or not each table can be updated. By managing the database management table in MM13 in this way, the DB
D of database files stored in F14 and database files similarly stored in other terminals
It becomes possible to manage the update permission/prohibition status for each table in BSPACE.

第3図は、MM13に記憶される端末管理情報テーブル
の一例を示す割り付は図で、端末毎の端末名及びその端
末が専有可能な専有テーブル数及びDBSPACE名、
テーブル名で構成され、各端末からの要求により予じめ
記憶されている。
FIG. 3 is a layout diagram showing an example of a terminal management information table stored in the MM 13, in which the terminal name for each terminal, the number of exclusive tables that can be used by that terminal, and the DBSPACE name,
It consists of table names and is stored in advance upon request from each terminal.

まず、KB16から、この端末1で更新したいDBSP
ACE名、テーブル名等の情報が与えられると、CPU
11を介してデータベース更新手段はデータベース管理
テーブルを調べDBSPACE名、テーブル名対応の状
態が更新可の場合のみ次に端末管理情報テーブルを参照
して同じDBSPACE名、テーブル名を専有可能な他
の各端末にLAN112を介して排他制御要求を送信す
る。
First, from KB16, the DBSP that you want to update on this terminal 1
When information such as ACE name and table name is given, CPU
11, the database update means checks the database management table and only if the status corresponding to the DBSPACE name and table name is updatable, then it refers to the terminal management information table and updates each other that can exclusively use the same DBSPACE name and table name. An exclusive control request is sent to the terminal via the LAN 112.

例えば、CPU21がこの要求を受け取ると、排他制御
手段はCPU21を介してMM23上のデータベース管
理テーブルを参照して、要求されているすべてのテーブ
ルが存在しかつ専有中でなければ、各テーブル毎の状態
を専有中にして記憶し、端末1に排他制御完了を通知す
る。要求されたテーブルの中に既に専有中のテーブルが
ある場合は、端末1に専有できない旨を通知する。
For example, when the CPU 21 receives this request, the exclusive control means refers to the database management table on the MM 23 via the CPU 21, and if all the requested tables exist and are not exclusive, the exclusive control means It stores the status as exclusive and notifies terminal 1 of the completion of exclusive control. If there is already a table in exclusive use among the requested tables, the terminal 1 is notified that it cannot be used exclusively.

この様にして、端末1では更新したい全てのDBSPA
CE名のテーブルの専有を完了してから、各々の端末の
データベースの同期更新を行う。同期更新は各端末から
自端末にデータベースの転送をして更新し、各端末に転
送して戻す方法と、各端末上でデータベースの更新を行
う方法の2通りがある。
In this way, on terminal 1, all DBSPAs that you want to update
After completing exclusive use of the CE name table, the databases of each terminal are updated synchronously. There are two methods of synchronous updating: a method in which the database is transferred from each terminal to its own terminal, updated, and transferred back to each terminal, and a method in which the database is updated on each terminal.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明は、各端末から自端末及び他
端末のデータベースを同期をとって更新できるようにし
たことにより、データベースを1端末に集中管理させな
いで、各端末に多重分散配置して使用することが可能と
なり、システムの処理能力を向上させる効果がある。
As explained above, the present invention enables each terminal to synchronize and update the databases of its own terminal and other terminals, thereby allowing the database to be distributed and distributed among each terminal instead of being centrally managed by one terminal. This has the effect of improving the processing capacity of the system.

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

第1図は本発明の一実施例を示すブロック図、第2図は
MM13に記憶されるデータベース管理テーブルの一例
を示す割り付は図、第3図はMM13に記憶される端末
管理情報テーブルの一例を示す割り付は図である。 1.2.3・・・端末、4・・・LAN、11・・・中
央処理装置(CPU)、12・・・LANインタフェー
ス装置(LAN I )、13・・・主記憶装置(MM
)、14・・・データベースファイル装置(DBF)、
15・・・キーボードデイスプレィ (KB)  、 1・・・C PU。
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a layout diagram showing an example of a database management table stored in the MM13, and FIG. 3 is a diagram showing the layout of a terminal management information table stored in the MM13. An example layout is shown in the figure. 1.2.3...Terminal, 4...LAN, 11...Central processing unit (CPU), 12...LAN interface device (LAN I), 13...Main memory (MM)
), 14... database file device (DBF),
15...Keyboard display (KB), 1...CPU.

Claims (1)

【特許請求の範囲】[Claims] LANを介して互に接続され同一のデータベースを有す
る端末を備えた分散処理システムにおけるデータベース
更新方式において、前記端末がデータベース名毎に前記
データベースを構成するテーブル名と前記テーブルの更
新可/否状態を示す状態情報から成るデータベース管理
テーブルと、端末名毎に前記端末が専有可能な前記デー
タベース名と前記テーブル名を管理する端末管理情報テ
ーブルとを備え、前記テーブルを更新する前記端末は前
記データベース管理テーブルの前記更新テーブルに対応
する前記状態情報が更新可状態を示す場合のみ前記端末
管理情報テーブルを参照して前記更新テーブルを有する
他の前記各端末に前記LANを介して前記更新テーブル
の排他制御要求を送信し、前記排他制御要求を受け取っ
た前記各端末からの排他制御完了通知を受けて前記各端
末と自端末の前記更新テーブルを更新するデータベース
更新手段と、前記排他制御要求を受け取った前記各端末
は前記データベース管理テーブルにおける前記排他制御
要求で前記更新テーブルとして示された前記データベー
ス名配下の前記テーブル名に対応する前記状態情報を更
新否状態にし前記排他制御完了通知を送信する排他制御
手段を有することを特徴とするデータベース更新方式。
In a database update method in a distributed processing system that includes terminals that are connected to each other via a LAN and have the same database, the terminals determine, for each database name, the names of the tables that make up the database and the update enable/disable status of the tables. and a terminal management information table that manages the database name and table name that can be exclusively used by the terminal for each terminal name, and the terminal that updates the table uses the database management table. Only when the status information corresponding to the update table indicates an updatable state, the terminal management information table is referred to and a request for exclusive control of the update table is sent to each of the other terminals having the update table via the LAN. database updating means for updating the update table of each of the terminals and its own terminal upon receiving an exclusive control completion notification from each of the terminals that received the exclusive control request; The terminal includes an exclusive control means that sets the status information corresponding to the table name under the database name indicated as the update table in the exclusive control request in the database management table to a non-update state and transmits the exclusive control completion notification. A database update method characterized by comprising:
JP2280424A 1990-10-18 1990-10-18 Data base update system Pending JPH04153844A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2280424A JPH04153844A (en) 1990-10-18 1990-10-18 Data base update system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2280424A JPH04153844A (en) 1990-10-18 1990-10-18 Data base update system

Publications (1)

Publication Number Publication Date
JPH04153844A true JPH04153844A (en) 1992-05-27

Family

ID=17624859

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2280424A Pending JPH04153844A (en) 1990-10-18 1990-10-18 Data base update system

Country Status (1)

Country Link
JP (1) JPH04153844A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11272534A (en) * 1998-01-20 1999-10-08 Fujitsu Ltd Document distribution processing method, server management method for the same and recording medium for server program
JP2000299698A (en) * 1999-04-13 2000-10-24 Mitsubishi Electric Corp Data communication equipment
JP2005301784A (en) * 2004-04-14 2005-10-27 Nippon Telegr & Teleph Corp <Ntt> Attribute information update device and program

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11272534A (en) * 1998-01-20 1999-10-08 Fujitsu Ltd Document distribution processing method, server management method for the same and recording medium for server program
JP2000299698A (en) * 1999-04-13 2000-10-24 Mitsubishi Electric Corp Data communication equipment
JP2005301784A (en) * 2004-04-14 2005-10-27 Nippon Telegr & Teleph Corp <Ntt> Attribute information update device and program
JP4580184B2 (en) * 2004-04-14 2010-11-10 日本電信電話株式会社 Attribute information update device and program

Similar Documents

Publication Publication Date Title
WO2017192174A1 (en) Splitting and moving ranges in a distributed system
JP2003022209A (en) Distributed server system
JPH11232226A (en) Cooperative work aiding system and storage medium
US20080209148A1 (en) High performance storage access environment
CN111506592B (en) Database upgrading method and device
WO2022095366A1 (en) Redis-based data reading method and apparatus, device, and readable storage medium
JPH04153844A (en) Data base update system
JPH113368A (en) Schedule data managing method in distributed environment, its system and storing medium housing schedule data managing program
CN111565211B (en) CDN configuration distribution network system
JP2830826B2 (en) Distributed file synchronization system and method
JPS63289657A (en) Common file access system
JPH07114495A (en) Multiplexing file managing system
JP2693773B2 (en) Exclusive control method for drawing information
JP2504218B2 (en) Distributed data processor
CA2618938C (en) Data consistency control method and software for a distributed replicated database system
JPH03276338A (en) Simple maintenance system for terminal software
JP2002189622A (en) System and method for distributing updated data, and recording medium
JPH03202935A (en) Synchronization update system in distributed processing system
JPH0981431A (en) Data base processing system and method for updating data base
JPS62179035A (en) Sharing multiplexing volume system
JPH03252756A (en) Data managing system
JPH03222047A (en) Area control system
JPH07262118A (en) Information utilization system
JPH07105147A (en) Automatic delivery system for master file of decentralized processing system
CN115981915A (en) Node capacity expansion system and method