JPH0573392A - Data base update system - Google Patents

Data base update system

Info

Publication number
JPH0573392A
JPH0573392A JP3237566A JP23756691A JPH0573392A JP H0573392 A JPH0573392 A JP H0573392A JP 3237566 A JP3237566 A JP 3237566A JP 23756691 A JP23756691 A JP 23756691A JP H0573392 A JPH0573392 A JP H0573392A
Authority
JP
Japan
Prior art keywords
serial number
data
file name
input data
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP3237566A
Other languages
Japanese (ja)
Inventor
Tomohiro Matsuda
智広 松田
Ryuji Hayakawa
隆二 早川
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 JP3237566A priority Critical patent/JPH0573392A/en
Publication of JPH0573392A publication Critical patent/JPH0573392A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To prevent double update when a data base is updated and to update the data base with efficiency by controlling input data. CONSTITUTION:A serial number control part 2 which reads input data 1 in compares with the contents of a serial number storage part 3. When the comparison result shows that the data is already processed, the data is skipped and when there is a serial number omission, the processing is stopped. When consistency is obtained, an update processing part 4 updates the data base 5.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はデータベース更新方式に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a database updating system.

【0002】[0002]

【従来の技術】従来のデータベース更新方式は、更新中
に更新障害が発生した場合には、二重更新防止のため処
理済みデータを除いて改めて入力データを再編集し、先
頭から入力データを読込んで、更新するようになってい
る。
2. Description of the Related Art In the conventional database update method, when an update failure occurs during update, input data is re-edited again to eliminate double update and read again from the beginning. Then, it is supposed to be updated.

【0003】[0003]

【発明が解決しようとする課題】従来のデータベース更
新方式は、上述のように更新障害に際して入力データを
編集し直す必要が生じるために非効率的であり、また再
投入する際に過って他のファイルの入力データを読込ん
でしまうという欠点がある。
The conventional database update method is inefficient because the input data needs to be edited again in the case of an update failure as described above. There is a drawback that the input data of the file is read.

【0004】本発明の目的は、更新障害の際に入力デー
タを再編集することなく、そのまま入力させて効率的に
二重更新を防止し、障害の復旧処理を行なうことのでき
るデータベース更新方式を提供することにある。
An object of the present invention is to provide a database update method capable of efficiently inputting the input data without re-editing it in the case of an update failure, effectively preventing double update, and performing failure recovery processing. To provide.

【0005】[0005]

【課題を解決するための手段】本発明のデータベース更
新方式は、複数のデータを格納するデータベースと、前
記データベースのデータの更新処理を行なう更新処理手
段と、最新に更新したデータのファイル名情報と通番情
報とを格納する通番格納手段と、ファイル中での一連の
通番情報とファイル名情報とを含んだ入力データの供給
をうけてこのデータのファイル名情報と通番情報とを前
記通番格納手段に格納されているファイル名情報と通番
情報とを比較し比較結果に対応する処理を行なう通番管
理手段とを含んで構成される。
A database updating method of the present invention includes a database for storing a plurality of data, an updating processing means for updating the data in the database, and file name information of the latest updated data. The serial number storage means for storing serial number information and the input data including a series of serial number information and file name information in the file are supplied to the serial number storage means for the file name information and serial number information of this data. It comprises a serial number management means for comparing the stored file name information with the serial number information and performing a process corresponding to the comparison result.

【0006】[0006]

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

【0007】図1は本発明のデータベース更新方式の一
実施例を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a database updating system of the present invention.

【0008】本実施例のデータベース更新方式は、図1
に示すように、磁気テープ、磁気ディスクなどで実現さ
れる入力データ1と、入力データ1のファイル名および
通番を格納するための通番格納部3と、入力データ1を
読込み、そのファイル名および通番を通番格納部3に格
納しているファイル名および通番と比較しデータの整合
性等を管理する通番管理部2と、データベース5と、デ
ータベース5を更新する更新処理部4とから構成され
る。
The database updating method of this embodiment is shown in FIG.
As shown in, input data 1 realized by a magnetic tape, a magnetic disk, etc., a serial number storage section 3 for storing the file name and serial number of the input data 1, and the input data 1 are read, and the file name and serial number are read. The serial number management unit 2 manages data consistency and the like by comparing the file names and serial numbers stored in the serial number storage unit 3, the database 5, and the update processing unit 4 that updates the database 5.

【0009】ここで、ファイル名とはデータが格納され
ているファイルの名称であり、通番とはファイルに格納
されている全データに順にそれぞれ付された一連の通し
番号をいう。
Here, the file name is the name of the file in which the data is stored, and the serial number is a series of serial numbers sequentially assigned to all the data stored in the file.

【0010】以上の構成において、通番管理部2は、入
力データ1を入力し、通番格納部3のファイル名および
通番と比較する。ファイル名が同一でかつ通番の整合性
がとれている場合(この場合は通番格納部3に格納され
ている通番より1だけ大きい場合)は「正常」と判断
し、入力データ1を更新処理部4へ渡し、ファイル名お
よび通番を通番格納部3に格納する。
In the above configuration, the serial number management unit 2 inputs the input data 1 and compares it with the file name and serial number in the serial number storage unit 3. If the file names are the same and the serial numbers are consistent (in this case, one larger than the serial number stored in the serial number storage unit 3), it is determined as "normal" and the input data 1 is updated by the update processing unit. 4 and stores the file name and serial number in the number storage unit 3.

【0011】ファイル名が同一でかつ通番格納部3の通
番以下の場合には、「処理済み」と判断する。ファイル
名が同一でかつ通番格納部3の通番より2以上大きい場
合は通番抜けがあるために「異常」と判断する。また、
ファイル名が通番格納部3と異なる場合も「異常」と判
断する。
If the file names are the same and the file numbers are equal to or lower than the serial number in the serial number storage unit 3, it is judged as "processed". If the file names are the same and are larger than the serial number in the serial number storage unit 2 by 2 or more, there is a missing serial number and it is determined as "abnormal". Also,
Even if the file name is different from the serial number storage unit 3, it is determined as "abnormal".

【0012】「正常」の場合は更新処理部4が起動し、
「処理済み」の場合は通番管理部2は入力データを無効
とし次の入力データを読込み、「異常」の場合は処理を
停止する。
In the case of "normal", the update processing unit 4 is activated,
In the case of "processed", the serial number management unit 2 invalidates the input data and reads the next input data, and in the case of "abnormal", stops the process.

【0013】更新処理部4は、データベース5を更新す
る。入力データがなくなった時点で、通番管理部2は通
番格納部3を初期化する。
The update processing unit 4 updates the database 5. When there is no input data, the serial number management unit 2 initializes the serial number storage unit 3.

【0014】図1について具体例で説明する。A specific example will be described with reference to FIG.

【0015】入力データ1としてファイル名が「A」で
通番がそれぞれ「112」、「113」、「115」の
データがあり、通番格納部3にはファイル名「A」、通
番「112」が格納されている場合の動作について説明
する。これは、データ「A、112」までが処理済み
で、データ「A、113」で更新障害が起って復旧のた
めの再投入する場合に相当する。
As input data 1, there are data having a file name "A" and serial numbers "112", "113", and "115", respectively, and the serial number storage unit 3 has a file name "A" and a serial number "112". The operation when stored is explained. This corresponds to the case where the data “A, 112” has been processed and an update failure occurs in the data “A, 113” and the data is re-input for recovery.

【0016】通番管理部2が入力データ1を通番順に、
まずファイル名「A」、通番「112」のデータを読込
む。通番管理部2は、通番格納部3の「A、112」と
比較し、「処理済み」であると判断する。ついで通番管
理部2は次のデータ「A、113」を読込み、通番格納
部3の値と比較し、整合性がとれているので「正常」と
判断し、このデータヲ更新処理部4へ渡し、通番格納部
3に通番「113」を格納する。
The serial number management unit 2 inputs the input data 1 in the serial number order,
First, the data of the file name "A" and the serial number "112" is read. The serial number management unit 2 compares it with “A, 112” in the serial number storage unit 3 and determines that it is “processed”. Then, the serial number management unit 2 reads the next data “A, 113”, compares it with the value in the serial number storage unit 3, judges that it is “normal” because there is consistency, and passes this data to the update processing unit 4, The serial number “113” is stored in the serial number storage unit 3.

【0017】更新処理部4はデータベース5を更新す
る。ついで通番管理部2は次のデータ「A、115」を
読込み、通番格納部3の「A、113」と比較し「異
常」と判断し処理を停止する。
The update processing unit 4 updates the database 5. Then, the serial number management unit 2 reads the next data "A, 115", compares it with "A, 113" in the serial number storage unit 3, determines that it is "abnormal", and stops the processing.

【0018】[0018]

【発明の効果】以上説明したように、本発明のデータベ
ース更新方式は、入力データを復旧のために再投入する
際に「処理済みデータ」を意識して入力データを編集す
る必要がなくそのまま再投入でき、二重更新を防止して
データベース更新を効率高く行なうことができ、またフ
ァイル名の整合性を検査しているので過って別のファイ
ルを投入することもなく正確にデータベース更新を行な
うことができるという効果がある。
As described above, according to the database updating method of the present invention, when re-inputting the input data for restoration, it is not necessary to consider the "processed data" and edit the input data as it is. It can be input, double update can be prevented and database update can be performed efficiently, and since the consistency of the file name is checked, the database is updated accurately without accidentally inputting another file. The effect is that you can.

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

【図1】本発明のデータベース更新方式の一実施例を示
すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a database updating system of the present invention.

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

1 入力データ 2 通番管理部 3 通番格納部 4 更新処理部 5 データベース 1 Input data 2 Serial number management unit 3 Serial number storage unit 4 Update processing unit 5 Database

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 複数のデータを格納するデータベース
と、前記データベースのデータの更新処理を行なう更新
処理手段と、最新に更新したデータのファイル名情報と
通番情報とを格納する通番格納手段と、ファイル中での
一連の通番情報とファイル名情報とを含んだ入力データ
の供給をうけてこのデータのファイル名情報と通番情報
とを前記通番格納手段に格納されているファイル名情報
と通番情報とを比較し比較結果に対応する処理を行なう
通番管理手段とを含むことを特徴とするデータベース更
新方式。
1. A database for storing a plurality of data, an update processing means for updating the data in the database, a serial number storage means for storing file name information and serial number information of the latest updated data, and a file. In response to the supply of input data including a series of serial number information and file name information, the file name information and serial number information of this data are converted into file name information and serial number information stored in the serial number storage means. A database update method comprising: a serial number management means for performing comparison and processing corresponding to the comparison result.
【請求項2】 請求項1において、通番管理手段は、比
較結果が第1の場合には通番格納手段の通番を更新し入
力データを更新処理手段に出力し、前記比較結果が第2
の場合には入力データを処理済みデータとして無効と
し、前記比較結果が第3の場合には異常として処理を停
止することを特徴とするデータベース更新方式。
2. The serial number management means according to claim 1, when the comparison result is the first, the serial number of the serial number storage means is updated and the input data is output to the update processing means, and the comparison result is the second.
In the case of, the input data is invalidated as processed data, and when the comparison result is the third, it is judged as abnormal and the processing is stopped.
【請求項3】 請求項2において、第1の場合としてフ
ァイル名情報が同一で入力データの通番情報が通番格納
手段のそれより1だけ大きい場合とし、第2の場合とし
てファイル名情報が同一で入力データの通番情報が通番
格納手段のそれ以下の場合とし、第3の場合としてファ
イル名情報が異なる場合とファイル名情報が同一でも入
力データの通番情報が通番格納手段のそれより2以上大
きい場合とすることを特徴とするデータベース更新方
式。
3. The method according to claim 2, wherein the first case has the same file name information and the serial number information of the input data is larger than that of the serial number storage means by 1, and the second case has the same file name information. When the serial number information of the input data is lower than that of the serial number storage means, and in the third case, when the file name information is different and when the file name information is the same, the serial number information of the input data is larger than that of the serial number storage means by 2 or more. A database update method characterized by:
JP3237566A 1991-09-18 1991-09-18 Data base update system Pending JPH0573392A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3237566A JPH0573392A (en) 1991-09-18 1991-09-18 Data base update system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3237566A JPH0573392A (en) 1991-09-18 1991-09-18 Data base update system

Publications (1)

Publication Number Publication Date
JPH0573392A true JPH0573392A (en) 1993-03-26

Family

ID=17017215

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3237566A Pending JPH0573392A (en) 1991-09-18 1991-09-18 Data base update system

Country Status (1)

Country Link
JP (1) JPH0573392A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008307340A (en) * 2007-06-18 2008-12-25 Omron Corp Monitor, monitoring method, monitoring program, and computer-readable recording medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008307340A (en) * 2007-06-18 2008-12-25 Omron Corp Monitor, monitoring method, monitoring program, and computer-readable recording medium

Similar Documents

Publication Publication Date Title
JP2993528B2 (en) Text management and restoration method
JPH0573392A (en) Data base update system
JPH0528088A (en) Method for automatically generating hardware constitution information
JPS6125256A (en) File shunt system
JPH05242176A (en) Generation control system for drawing
JP3298904B2 (en) Supplementary service execution program management method
JPH0573378A (en) Data base record layout conversion system
JPH0573390A (en) Deadlock handling process system for data base
JPH05210544A (en) Data file control system
JPH11212838A (en) System and method for change record history management by table split
JPH04188339A (en) Control system for deleted record
JPS61122758A (en) Edit processing system
JPH02211557A (en) Data base saving system
JPS62194542A (en) Program control system
JPH02196349A (en) File generation management system
JPH04338822A (en) Control system for updated row of program
JPH04113428A (en) Data restoring system
JPH0566928A (en) Generation control system for program source file
JPH04330535A (en) Management method for data base
JPH0342743A (en) Encoding data control system
JPH04291637A (en) Generation selecting system for management data
JPH05120349A (en) Data base update managing system
JPH05224909A (en) Work procedure description storage device by vocabulary unitary management system
JPH025153A (en) Data base record format conversion system
JPH05334150A (en) Database generation managing device