JPH03276239A - Record control system - Google Patents

Record control system

Info

Publication number
JPH03276239A
JPH03276239A JP2076266A JP7626690A JPH03276239A JP H03276239 A JPH03276239 A JP H03276239A JP 2076266 A JP2076266 A JP 2076266A JP 7626690 A JP7626690 A JP 7626690A JP H03276239 A JPH03276239 A JP H03276239A
Authority
JP
Japan
Prior art keywords
data
time
database
record
data record
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
JP2076266A
Other languages
Japanese (ja)
Inventor
Katsuhiko Osada
長田 克彦
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 JP2076266A priority Critical patent/JPH03276239A/en
Publication of JPH03276239A publication Critical patent/JPH03276239A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To perform the closing processing of a data base without deteriorating the services to the users nor needing a large quantity of resources by storing the updating result into the data records chained to each other via a pointer when the data record that is added and updated before the closing time is updated. CONSTITUTION:In a retrieving state, a data retrieving means 6 retrieves and returns only the data record that is added and updated before the set business time. In an addition state, a data adding means 7 stores the data record together with the information on the present time. In an updating state, a data updating means 8 updates the records added and updated before the set closing time. In this case, the updating result is stored in a data record 11 chained by a pointer 12. Thus it is possible to close a data base 1 without deteriorating the services to the users nor needing a large quantity of resources.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は電子計算機のデータベース管理システムにおけ
るレコード管理方式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a record management method in a database management system for an electronic computer.

〔従来の技術〕[Conventional technology]

従来、データベース管理システムでは、データレコード
の更新の要求があると、即座にデータベースの内容の更
新を行い、常にデータベースを最新の状態にしていた。
Conventionally, in database management systems, when there is a request to update a data record, the contents of the database are immediately updated to keep the database always up to date.

すなわち、データベースから該当するデータレコードを
読み込み、更新を行ってから更新後のデータレコードを
データベースに書き込むものであった。
That is, a corresponding data record is read from a database, updated, and then the updated data record is written to the database.

ところで、データベースに関する処理としては、通常の
更新等の処理以外に、月次処理等の締め処理が存在する
。これは、月末等の所定の時点におけるデータベースの
内容に基づいて何らかの情報を得るものである。
Incidentally, as processing related to the database, in addition to processing such as normal updating, there is closing processing such as monthly processing. This is to obtain some information based on the contents of the database at a predetermined point in time, such as at the end of the month.

従来、この締め処理の形態としては、次の2通りが存在
していた。
Conventionally, there have been two types of this tightening process:

■締め処理の開始時点でデータベースの更新を禁止し、
その状態で締め処理を行い、締め処理が終了した時点で
データベースの更新の禁止を解除する。
■Prohibit database updates at the start of closing process,
In this state, the closing process is performed, and when the closing process is completed, the prohibition of updating the database is lifted.

■締め処理の開始時点におけるデータベースの複写をと
って締め時点の確定データベースを作り、そのデータベ
ースに基づいて締め処理を行う。
■Create a copy of the database at the start of the closing process to create a finalized database at the closing time, and perform the closing process based on that database.

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

上述したように、従来のデータベース管理システムにお
いては、締め処理として2通りの形態を採っていたが、
両者とも次のような欠点があった。
As mentioned above, in conventional database management systems, there are two types of closing processing.
Both had the following drawbacks.

すなわち、■の形態では、締め処理の期間中は他の利用
者からデータベースの更新が行えないため、利用者に対
するサービスが大幅に低下するものであった。
That is, in the form (3), since other users cannot update the database during the closing process, the service provided to the user is significantly degraded.

また、■の形態においては、データベースを複写するた
めに元のデータベースと同じ容量の記憶領域が必要とな
り、磁気ディスク装置等の責源を多く必要とするもので
あった。
In addition, in the form (2), in order to copy the database, a storage area of the same capacity as the original database is required, and a large amount of resources such as magnetic disk devices are required.

本発明は上記の点に鑑み提案されたものであり、その目
的とするところは、利用者に対するサービスを低下させ
ないと共に、膨大な責源を必要とすることなく、データ
ベースの締め処理が行えるレコード管理方式を提供する
ことにある。
The present invention has been proposed in view of the above points, and its purpose is to provide record management that can perform database closing processing without degrading services to users and without requiring a huge amount of responsibility. The purpose is to provide a method.

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

本発明は上記の目的を達成するため、データベースに対
してデータレコードの検索、追加および更新を行うデー
タベース管理システムにおいて、検索時に、設定された
業務時刻以前に追加・更新されたデータレコードのみを
検索して返却するデータ検索手段と、 追加時に、データレコードに現在時刻の情報を付して格
納するデータ追加手段と、 更新時に、設定された締め時刻以前に追加・更新された
データレコードに対して更新する場合はポインタでチュ
ーニングしたデータレコードに更新結果を格納するデー
タ更新手段とを備えるようにしている。
In order to achieve the above object, the present invention is a database management system that searches, adds, and updates data records to a database, and when searching, searches only data records that have been added or updated before a set business time. A data retrieval means for returning data as a result, a data addition means for adding and storing current time information to data records when adding data, and a data addition means for storing data records with current time information attached to them when adding data; When updating, data updating means is provided for storing the updated result in the data record tuned by the pointer.

〔作用〕[Effect]

本発明のレコード管理方式にあっては、検索時にデータ
検索手段が、設定された業務時刻以前に追加・更新され
たデータレコードのみを検索して返却し、追加時にデー
タ追加手段が、データレコードに現在時刻の情報を付し
て格納し、更新時にデータ更新手段が、設定された締め
時刻以前に追加・更新されたデータレコードに対して更
新する場合はポインタでチューニングしたデータレコー
ドに更新結果を格納する。
In the record management system of the present invention, the data search means searches and returns only data records that were added or updated before a set business time when searching, and the data adding means when adding Stored with information on the current time, and when updating, if the data update means updates a data record that was added or updated before the set cut-off time, the update result is stored in the data record tuned by the pointer. do.

〔実施例〕〔Example〕

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

第1図は本発明のレコード管理方式を適用したデータベ
ース管理システムの一実施例を示す構成図である。第1
図において、本実施例は、複数のデータレコードが格納
されたデータベース1と、現在時刻を出力する時刻装置
2と、締め時刻を設定してお(締め時刻記憶域3と、業
務時刻を設定しておく業務時刻記憶域4と、利用者から
データベース1に対する検索・追加・更新の処理要求を
処理するデータ処理手段5と、データベースlに対して
データレコードの検索を行うデータ検索手段6と、デー
タベース1に対してデータレコードの追加を行うデータ
追加手段7と、データベース1に対してデータレコード
の更新を行うデータ更新手段8とから構成されている。
FIG. 1 is a block diagram showing an embodiment of a database management system to which the record management method of the present invention is applied. 1st
In the figure, this embodiment has a database 1 storing a plurality of data records, a time unit 2 that outputs the current time, a closing time storage area 3, and a closing time storage area 3 that sets the business time. a business time storage area 4 for storing data; a data processing means 5 for processing requests for searches, additions, and updates from users to the database 1; a data search means 6 for searching for data records in the database 1; The data adding means 7 adds data records to the database 1, and the data updating means 8 updates data records to the database 1.

なお、締め時刻とは、締め処理の対象となるデータベー
ス1の状態を特定するための時刻であり、その時刻にお
けるデータベース1の状態に基づいて締め処理が行われ
るものである。また、業務時刻とは、データレコードの
検索を行う際に、対象となるデータベース1の状態を特
定するための時刻であり、その時刻以前に追加・更新さ
れたデータレコードのみが検索されるものである。
Note that the closing time is a time for specifying the state of the database 1 that is the target of the closing process, and the closing process is performed based on the state of the database 1 at that time. In addition, the business time is the time to identify the status of the target database 1 when searching for data records, and only data records added or updated before that time are searched. be.

第2図はデータベースlの構成を示したものであり、複
数のデータレコード11から構成される装置 第3図はデータレコード11の構成を示したものであり
、他のデータレコードのアドレスを指すポインタ12と
、当該データレコード11の追加・更新の時刻の情報が
格納されるタイムスタンプ13と、データの内容が格納
されるデータ部14とから構成されている。
FIG. 2 shows the structure of a database l, which is composed of a plurality of data records 11. FIG. 12, a timestamp 13 in which information about the time of addition/update of the data record 11 is stored, and a data section 14 in which the content of the data is stored.

以下、第4図ないし第6図のフローチャートに沿って上
記の実施例の動作を場合を分けて説明する。
Hereinafter, the operation of the above embodiment will be explained in accordance with the flowcharts shown in FIGS. 4 to 6.

(1)データレコードの検索 利用者からデータレコードの検索の処理要求があると、
データ処理手段5が起動され、データ処理手段5は処理
要求を解析した上でデータ検索手段6を起動し、処理を
終了する。
(1) Data record search When a user requests a data record search process,
The data processing means 5 is activated, and after analyzing the processing request, the data processing means 5 activates the data retrieval means 6 and ends the processing.

データ検索手段6は、第4図に示すように、業務時刻記
憶域4から業務時刻を取り出しくステップ61)、次い
で、データベース1から該当するデータベ−ドエ1を読
み込む(ステップ62)。
As shown in FIG. 4, the data retrieval means 6 retrieves the business time from the business time storage area 4 (step 61), and then reads the corresponding database 1 from the database 1 (step 62).

そして、読み込んだデータレコード11のタイムスタン
プ13の表示時刻と業務時刻とを比較しくステップ63
)、タイムスタンプ13の表示時刻の方が大きい場合、
すなわち、そのデータレコード11が指定された業務時
刻よりも後に追加・更新されたものである場合には、デ
ータレコードが発見されなかった旨のステータスを利用
者に返却しくステップ64)、処理を終了する。
Then, compare the display time of the time stamp 13 of the read data record 11 with the business time (step 63).
), if the displayed time of timestamp 13 is larger,
That is, if the data record 11 was added or updated after the specified business time, a status indicating that the data record was not found is returned to the user (step 64), and the process ends. do.

一方、タイムスタンプ13の表示時刻が業務時刻と同じ
か小さい場合、すなわち、そのデータレコード11が指
定された業務時刻以前に追加・更新されたものである場
合には、更にポインタI2が空であるか否かを調べ(ス
テップ65)、空であれば、そのデータレコード11の
データ部14を利用者に返却しくステップ68)、処理
を終了する。
On the other hand, if the display time of the timestamp 13 is the same as or smaller than the business time, that is, if the data record 11 was added or updated before the specified business time, the pointer I2 is also empty. If it is empty, the data section 14 of the data record 11 is returned to the user (step 68), and the process ends.

また、ポインタ12が空でない場合には、ポインタ12
が指す他のデータレコードをデータベース1から読み込
み(ステップ66)、次いで、そのデータレコードのタ
イムスタンプの表示時刻と業務時刻とを比較しくステッ
プ67)、タイムスタンプの表示時刻が業務時刻と同じ
か小さい場合、すなわち、ポインタ12でチューニング
された他のデータレコードが指定された業務時刻以前に
追加・更新されたものである場合には、その他のデータ
レコードのデータ部を利用者に返却しくステップ68)
、処理を終了する。
Furthermore, if the pointer 12 is not empty, the pointer 12
Reads another data record pointed to from database 1 (step 66), then compares the display time of the timestamp of that data record with the business time (step 67), and determines whether the display time of the timestamp is the same as or smaller than the business time. In other words, if the other data record tuned by the pointer 12 was added or updated before the specified business time, the data part of the other data record is returned to the user (step 68).
, ends the process.

一方、タイムスタンプの表示時刻の方が大きい場合、す
なわち、ポインタ12でチューニングされた他のデータ
レコードが指定された業務時刻よりも後に追加・更新さ
れたものである場合には、元のデータレコード11のデ
ータ部工4を返却しくステップ69)、処理を終了する
On the other hand, if the display time of the timestamp is larger, that is, if the other data record tuned by pointer 12 was added or updated after the specified business time, then the original data record 11 data department engineer 4 is returned (step 69), and the process ends.

以上の処理により、業務時刻を締め時刻に設定すれば、
締め時刻以前に追加・更新されたデータレコードのみが
検索され、これに基づいて締め処理を行うことができる
。また、業務時刻を現在時刻に設定すれば、データベー
ス1の最新の状態に基づいて検索が行え、一般の利用者
はこれにより通常と同様の業務が行える。なお、業務時
刻を任意に設定することにより、その時刻におけるデー
タベース1の状態に基づいて検索処理を行うことができ
る。
With the above process, if you set the business time as the closing time,
Only data records added or updated before the closing time are searched, and closing processing can be performed based on this. Further, by setting the business time to the current time, a search can be performed based on the latest state of the database 1, and a general user can thereby perform the same business as usual. Note that by arbitrarily setting the business time, the search process can be performed based on the state of the database 1 at that time.

(2)データレコードの追加 利用者からデータレコード′の追加の処理要求があると
、データ処理手段5が起動され、データ処理手段5は処
理要求を解析した上でデータ追加手段7を起動し、処理
を終了する。
(2) Addition of data records When a user requests additional processing of a data record', the data processing means 5 is activated, and the data processing means 5 analyzes the processing request and then activates the data addition means 7. Finish the process.

データ追加手段7は、第5図に示すように、時刻装置2
から現在時刻を取り出しくステップ71)、′第3図に
示す形式でデータレコード11を作成する(ステップ7
2)。この際、ポインタ12は空の状態とし、タイムス
タンプ13は現在時刻を格納し、データ部14には利用
者から渡されたデータを格納する。
The data adding means 7 includes the time device 2 as shown in FIG.
Step 71) to extract the current time from 'Create a data record 11 in the format shown in FIG.
2). At this time, the pointer 12 is left blank, the time stamp 13 stores the current time, and the data section 14 stores data passed from the user.

次いで、作成したデータレコード11をデータベース1
の所定の位置に書き込み(ステップ73)、処理を終了
する。
Next, the created data record 11 is stored in the database 1.
(step 73), and the process ends.

(3)データレコードの更新 利用者からデータレコードの更新の処理要求があると、
データ処理手段5が起動され、データ処理手段5は処理
要求を解析した上でデータ更新手段8を起動し、処理を
終了する。
(3) Data record update When a user requests processing to update a data record,
The data processing means 5 is activated, and after analyzing the processing request, the data processing means 5 activates the data updating means 8 and ends the processing.

データ更新手段8は、第6図に示すように、時刻装置2
から現在時刻を取り出しくステップ81)、締め時刻記
憶域3から締め時刻を取り出しくステップ82)、次い
で、データベース1から該当するデータレコード11を
読み込む(ステップ83)。
The data updating means 8 includes the time device 2 as shown in FIG.
Step 81) of extracting the current time from the cut-off time storage area 3, step 82) of extracting the cut-off time from the cut-off time storage area 3, and then reading the corresponding data record 11 from the database 1 (step 83).

そして、読み込んだデータレコード11のタイムスタン
プ13の表示時刻と締め時刻とを比較しくステップ84
)、タイムスタンプ13の表示時刻の方が大きい場合、
すなわち、その更新の対象となるデータレコード11が
指定された締め時刻よりも後に追加・更新されたもので
ある場合には、そのデータレコード11のタイムスタン
プ13を現在時刻に更新すると共にデータ部14を利用
者から与えられたデータで更新しくステップ87)、処
理を終了する。
Then, compare the display time of the time stamp 13 of the read data record 11 with the closing time in step 84.
), if the displayed time of timestamp 13 is larger,
That is, if the data record 11 to be updated was added or updated after the specified closing time, the timestamp 13 of the data record 11 is updated to the current time, and the data section 14 is updated. is updated with the data given by the user (step 87), and the process ends.

一方、タイムスタンプ13の表示時刻が締め時刻と同じ
か小さい場合、すなわち、そのデータレコード11が指
定された締め時刻以前に追加・更新されたものである場
合には、更にポインタ12が空であるか否かを調べ(ス
テップ85)、空でなければ、ポインタ12が指す他の
データレコードをデータベースIから読み込み(ステッ
プ86)、その他のデータレコードのタイムスタンプを
現在時刻に更新すると共にデータ部を利用者から与えら
れたデータで更新しくステップ87)、処理を終了する
On the other hand, if the display time of the timestamp 13 is the same as or smaller than the closing time, that is, if the data record 11 was added or updated before the specified closing time, the pointer 12 is also empty. (step 85), and if it is not empty, read other data records pointed to by pointer 12 from database I (step 86), update the timestamps of the other data records to the current time, and update the data section. The process is updated with the data given by the user (step 87), and the process ends.

また、ポインタ12が空の場合には、利用者から指示さ
れた更新内容のデータレコードを新たに作成してデータ
ベース1に追加しくステップ88)、元のデータレコー
ド11のポインタ12に追加したデータレコードのアド
レスを格納しくステップ89)、処理を終了する。なお
、新たなデータレコードの追加の処理は第5図で説明し
た処理に従う。
In addition, if the pointer 12 is empty, a new data record with the updated contents specified by the user is created and added to the database 1 (step 88), and the data record added to the pointer 12 of the original data record 11 is added. The address is stored (step 89), and the process ends. Note that the process of adding a new data record follows the process explained in FIG.

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

以上説明したように、本発明のレコード管理方式にあっ
ては、締め時刻を設定することにより、それ以前に追加
・更新されたデータレコードの内容はそのまま保持され
、更新後の内容はチエ一二ングされたデータレコードに
格納され、後に業務時刻を締め時刻に設定することによ
り、締め時刻以前のデータベースの状態で締め処理を行
うことができ、一方、他の利用者は業務時刻を現在時刻
に設定することにより最新のデータベースの状態で処理
することができる。よって、 ■締め処理のために他の利用者のデータベースの更新を
禁止する必要がないため、データベースサービスが低下
することがない。
As explained above, in the record management system of the present invention, by setting a closing time, the contents of data records added or updated before that time are retained as they are, and the contents after updating are By later setting the business time as the closing time, the closing process can be performed with the database state before the closing time, while other users can set the business time to the current time. By setting it, you can process with the latest database status. Therefore, there is no need to prohibit other users from updating the database for the closing process, so the database service will not deteriorate.

■締め時点のデータベースの内容を複写する必要がない
ため、複写用の膨大な資源が必要とならない。
■Since there is no need to copy the contents of the database at the time of closing, there is no need for huge resources for copying.

等の効果がある。There are other effects.

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

第1図は本発明のレコード管理方式を適用したデータベ
ース管理システムの一実施例を示す構成図、 第2図はデータベースの構成図、 第3図はデータレコードの構成図、 第4図はデータ検索手段の処理のフローチャー第5図は
データ追加手段の処理のフローチャートおよび、 第6図はデータ更新手段の処理のフローチャートである
。 図において、 1・・・・・・データベース 1工・・・データレコード 12・・・ポインタ 13・・・タイムスタンプ 14・・・データ部 2・・・・・・時刻装置 3・・・・・・締め時刻記憶域 4・・・・・・業務時刻記憶域 5・・・・・・データ処理手段 6・・・・・・データ検索手段 7・・・・・・データ追加手段 8・・・・・・データ更新手段
Figure 1 is a configuration diagram showing an embodiment of a database management system to which the record management method of the present invention is applied; Figure 2 is a configuration diagram of a database; Figure 3 is a configuration diagram of data records; Figure 4 is a data search FIG. 5 is a flowchart of the processing of the data adding means, and FIG. 6 is a flowchart of the processing of the data updating means. In the figure, 1...Database 1...Data record 12...Pointer 13...Time stamp 14...Data section 2...Time unit 3... - Closing time storage area 4... Business time storage area 5... Data processing means 6... Data search means 7... Data addition means 8... ...Data update means

Claims (2)

【特許請求の範囲】[Claims] (1)データベースに対してデータレコードの検索、追
加および更新を行うデータベース管理システムにおいて
、 検索時に、設定された業務時刻以前に追加・更新された
データレコードのみを検索して返却するデータ検索手段
と、 追加時に、データレコードに現在時刻の情報を付して格
納するデータ追加手段と、 更新時に、設定された締め時刻以前に追加・更新された
データレコードに対して更新する場合はポインタでチュ
ーニングしたデータレコードに更新結果を格納するデー
タ更新手段とを備えたことを特徴とするレコード管理方
式。
(1) In a database management system that searches, adds, and updates data records to a database, a data search means that searches and returns only data records that were added or updated before a set business time when searching. , A data addition method that attaches and stores current time information to a data record when adding, and a pointer tuning method when updating data records that have been added or updated before the set cut-off time. A record management method comprising a data update means for storing update results in a data record.
(2)データレコードに当該データレコードに対する追
加・更新の時刻を示すタイムスタンプを設けると共に、 現在時刻を出力する時刻装置と、締め時刻を設定してお
く締め時刻記憶域と、業務時刻を設定しておく業務時刻
記憶域とを設けたことを特徴とする請求項1記載のレコ
ード管理方式。
(2) In addition to providing a timestamp in the data record that indicates the time of addition/update to the data record, a time device that outputs the current time, a closing time storage area for setting the closing time, and a business time are set. 2. The record management system according to claim 1, further comprising a business time storage area for storing business time.
JP2076266A 1990-03-26 1990-03-26 Record control system Pending JPH03276239A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2076266A JPH03276239A (en) 1990-03-26 1990-03-26 Record control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2076266A JPH03276239A (en) 1990-03-26 1990-03-26 Record control system

Publications (1)

Publication Number Publication Date
JPH03276239A true JPH03276239A (en) 1991-12-06

Family

ID=13600427

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2076266A Pending JPH03276239A (en) 1990-03-26 1990-03-26 Record control system

Country Status (1)

Country Link
JP (1) JPH03276239A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09153056A (en) * 1995-11-29 1997-06-10 Mitsubishi Electric Corp Data extracting process system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09153056A (en) * 1995-11-29 1997-06-10 Mitsubishi Electric Corp Data extracting process system

Similar Documents

Publication Publication Date Title
US6243705B1 (en) Method and apparatus for synchronizing information on two different computer systems
JP3175692B2 (en) Data linking system between computer and portable terminal and data linking method
JPH0916607A (en) Method for managing index in data base management system
US20010016853A1 (en) Method and apparatus for synchronizing information on two different computer systems
JP2002055995A (en) Method and device for information processing
US7269589B2 (en) Database managing method and system having data backup function and associated programs
US5666527A (en) System for dynamically changing logical data structure of database
JPH03276239A (en) Record control system
JP3769775B2 (en) Distributed link information maintenance method
JP3636773B2 (en) Information processing device for database check
JP2822869B2 (en) Library file management device
JPH0744426A (en) File management method for file system
JPH01177649A (en) System for managing file
JP2885625B2 (en) File system with index table
JPH06290095A (en) File managing device
JPH05250335A (en) Data base update processing system of loosely coupled multiprocessor system
JPH05120343A (en) Index updating system
CN115129717A (en) Data writing method, device and computer readable medium for realizing automatic partition
JP2747009B2 (en) Record addition method for indexed sequential files
JP2003271626A (en) Storage device with retrieval function
JPH03251938A (en) Data base control system
JPH06203045A (en) Paten managing system
JPH05181726A (en) File access system
JPH04336341A (en) File access control system
JPH041855A (en) Document/drawing control system