JP2001356942A - Data base system - Google Patents

Data base system

Info

Publication number
JP2001356942A
JP2001356942A JP2000177906A JP2000177906A JP2001356942A JP 2001356942 A JP2001356942 A JP 2001356942A JP 2000177906 A JP2000177906 A JP 2000177906A JP 2000177906 A JP2000177906 A JP 2000177906A JP 2001356942 A JP2001356942 A JP 2001356942A
Authority
JP
Japan
Prior art keywords
data
condition
storage unit
deletion
correction
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
JP2000177906A
Other languages
Japanese (ja)
Inventor
Minoru Kawamorita
稔 川守田
Hideaki Tokunaga
秀明 徳永
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
NEC Solution Innovators Ltd
Original Assignee
NEC Corp
NEC Software Hokkaido Ltd
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, NEC Software Hokkaido Ltd filed Critical NEC Corp
Priority to JP2000177906A priority Critical patent/JP2001356942A/en
Publication of JP2001356942A publication Critical patent/JP2001356942A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To guarantee data within a fixed period for retrieval transaction and to automatically delete the data the guarantee of which becomes unnecessary after elapse of the fixed period. SOLUTION: Insertion data is received from an input device 10, information to be managed by a system is created, the insertion data is stored in a data storage part 17, deleted data conditions are received, the deletion data is created based on deleting origin data to coincide with the deleted data conditions, stored in the data storage part 17, corrected data conditions and correction information are received, correction data is created based on correcting origin data to coincide with the corrected data conditions and the correction information, stored in the data storage part 17, retrieval conditions, retrieval date and time are received, the retrieved data to coincide the conditions whose update date and time is less than the retrieval date and time and maximum is extracted among acquired pieces of the data to coincide the conditions and outputted to an output device 15. When the term of guarantee expires for the data to coincide with the data conditions, the data is deleted from the data storage part.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】この発明は、データを格納す
るデータベースシステムに関し、特に一定期間内の1時
点のデータを保証するデータベースシステムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a database system for storing data, and more particularly, to a database system for guaranteeing data at one point in time within a certain period.

【0002】[0002]

【従来の技術】データベースシステムは、通常、現在の
データベース状態のみを表現しているため、業務プログ
ラムが複数トランザクションを発行した場合、取得デー
タに矛盾が生じることがある。
2. Description of the Related Art Since a database system usually expresses only a current database state, if a business program issues a plurality of transactions, inconsistencies may occur in acquired data.

【0003】また、データベースが現在から過去のデー
タベース状態を表現した場合には、データ量はデータの
更新の度に増加するので、データベースが現在から一定
の過去のデータベース状態を表現することにより、デー
タ量の一方的な増加を防いで、資源の有効利用を図る必
要がある。
If the database expresses the state of the database from the present to the past, the amount of data increases each time the data is updated. It is necessary to prevent the unilateral increase in the amount and to make effective use of resources.

【0004】[0004]

【発明が解決しようとする課題】従来のデータベースシ
ステムである特開平5−61737号に記載の発明で
は、データ量がデータの更新の度に増加するのを防ぐた
め、データの有効期限を固定として期限が切れたデータ
を自動的に削除して資源の有効利用を図っており、ま
た、特開平5−61738号公報に記載の発明では、保
有期間外のデータを自動的に削除して資源の有効利用を
図っている。
In the invention described in Japanese Patent Application Laid-Open No. 5-61737, which is a conventional database system, in order to prevent the data amount from increasing each time data is updated, the data expiration date is fixed. Expired data is automatically deleted for effective use of resources. In the invention described in Japanese Patent Application Laid-Open No. 5-61738, data outside the holding period is automatically deleted to save resources. We are trying to use it effectively.

【0005】しかし、特開平5−61737号に記載の
発明は、データの有効期限が固定であって、自動更新さ
れないという問題があり、特開平5−61738号公報
に記載の発明では、最新データであってもデータ保有期
間外であれば削除されるという問題がある。
However, the invention described in Japanese Patent Laid-Open No. 5-61737 has a problem that the data expiration date is fixed and the data is not automatically updated. However, there is a problem that the data is deleted if it is outside the data holding period.

【0006】本発明の目的は、検索トランザクションに
対して、一定期間内の1時点のデータを保証し、一定期
間を過ぎて保証不要となったデータを自動的に削除する
ことを可能とするデータベースシステムであって、デー
タの有効期限が自動的に更新され、保有期間外のデータ
であっても最新のデータは削除されず、保持し続けるデ
ータベースシステムを提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a database which guarantees data at a single point in time within a fixed period for a search transaction and automatically deletes data which has become unnecessary after a fixed period. An object of the present invention is to provide a database system in which the expiration date of data is automatically updated, and the latest data is not deleted even if the data is out of the retention period, and the database system keeps retaining the data.

【0007】[0007]

【課題を解決するための手段】この発明のデータベース
システムは、ユーザ定義のデータを格納するユーザ定義
データ部の他に、データベースシステムが管理する情報
を格納する情報部を有するデータ記憶部と、一定期間と
なる保証期間を格納するシステム定義値保持部と、入力
装置より挿入データを受け取り、前記情報部に格納する
前記情報を作成して挿入データを前記データ記憶部に格
納する挿入更新処理部と、入力装置より削除データ条件
を受け取り、削除データ条件に一致する削除元データを
前記データ記憶部から取得し、削除元データをもとに削
除データを作成して前記データ記憶部に格納し、前記削
除元データが保証期間を過ぎている場合に、前記データ
記憶部よりデータを削除する削除更新処理部と、入力装
置より訂正データ条件と訂正情報を受け取り、訂正デー
タ条件に一致する訂正元データを前記データ記憶部から
取得し、訂正元データと訂正情報をもとに訂正データを
作成して前記データ記憶部に格納し、前記訂正元データ
が保証期間を過ぎている場合に、前記データ記憶部より
データを削除する訂正更新処理部と、入力装置より検索
条件と検索日付時刻を受け取り、前記データ記憶部より
条件一致データを取得し、取得した条件一致データの中
から更新日付時刻が検索日付時刻以下で最大のものを抽
出して出力装置に出力し、前記条件一致データが保証期
間を過ぎている場合に、前記データ記憶部よりデータを
削除する検索処理部と、を備えることを特徴とする。
According to the present invention, there is provided a database system comprising: a data storage section having an information section for storing information managed by the database system in addition to a user-defined data section for storing user-defined data; A system definition value holding unit that stores a warranty period that is a period, an insertion update processing unit that receives insertion data from an input device, creates the information to be stored in the information unit, and stores the insertion data in the data storage unit. Receiving a deletion data condition from the input device, acquiring deletion source data matching the deletion data condition from the data storage unit, creating deletion data based on the deletion source data, storing the deletion data in the data storage unit, A deletion / update processing unit for deleting data from the data storage unit when the deletion source data has passed the warranty period; Receiving the data and the correction information, acquiring correction source data matching the correction data condition from the data storage unit, creating correction data based on the correction source data and the correction information, and storing the correction data in the data storage unit, When the correction source data has passed the warranty period, a correction update processing unit that deletes data from the data storage unit, a search condition and a search date / time from the input device, and obtains condition matching data from the data storage unit Then, from the acquired condition matching data, the maximum data whose update date time is equal to or less than the search date time is extracted and output to the output device. When the condition matching data has passed the guarantee period, the data storage unit And a search processing unit for further deleting data.

【0008】また、この発明のデータベースシステム
は、ユーザ定義のデータを格納するユーザ定義データ部
の他に、データベースシステムが管理する情報を格納す
る情報部を有するデータ記憶部と、一定期間となる保証
期間を格納するシステム定義値保持部と、挿入データを
受け取り、前記情報部に格納する前記情報を作成して挿
入データを前記データ記憶部に格納する挿入更新処理部
と、削除データ条件を受け取り、削除データ条件に一致
する削除元データを前記データ記憶部から取得し、削除
元データをもとに削除データを作成して前記データ記憶
部に格納する削除更新処理部と、訂正データ条件と訂正
情報を受け取り、訂正データ条件に一致する訂正元デー
タを前記データ記憶部から取得し、訂正元データと訂正
情報をもとに訂正データを作成して前記データ記憶部に
格納する訂正更新処理部と、検索データ条件と検索日付
時刻を受け取り、前記データ記憶部より条件一致データ
を取得し、取得した条件一致データの中から更新日付時
刻が検索日付時刻以下で最大のものを抽出して出力装置
に出力する検索処理部と、入力装置より挿入データを受
け取って前記挿入更新処理部へ振り分け、削除データ条
件を受け取って前記削除更新処理部へ振り分け、訂正デ
ータ条件と訂正情報を受け取って前記訂正更新処理部へ
振り分け、検索データ条件と検索日付時刻を受け取って
前記検索処理部へ振り分ける振り分け処理部と、前記削
除データ条件、訂正データ条件、検索データ条件を受け
取り、条件に一致する前記削除元データ、訂正元デー
タ、条件一致データが保証期間を過ぎている場合に、前
記データ記憶部よりデータを削除する保証期間外データ
削除処理部と、を備えることを特徴とする。
Further, the database system according to the present invention has a data storage unit having an information unit for storing information managed by the database system, in addition to a user-defined data unit for storing user-defined data, and a guarantee for a fixed period. A system-defined value storage unit that stores a period, an insertion update processing unit that receives the insertion data, creates the information to be stored in the information unit and stores the insertion data in the data storage unit, and receives a deletion data condition. A deletion update processing unit that acquires deletion source data matching the deletion data condition from the data storage unit, creates deletion data based on the deletion source data, and stores the deletion data in the data storage unit; and a correction data condition and correction information. Received from the data storage unit, and obtains correction data based on the correction data and the correction information. A correction / update processing unit that creates and stores data in the data storage unit, a search data condition and a search date / time, obtains condition matching data from the data storage unit, and updates the update date from among the obtained condition matching data. A search processing unit for extracting the largest one whose time is equal to or less than the search date and time and outputting the extracted data to the output device; receiving the insertion data from the input device and distributing the data to the insertion / update processing unit; Receiving the search data condition and the search date and time, and allocating the search data condition and the search date / time to the search processing unit; the deletion data condition and the correction data condition. Receiving the search data condition, and the deletion source data, the correction source data, and the condition matching data that match the condition exceed the warranty period. If that is characterized by and a-warranty data deletion section to delete data from the data storage unit.

【0009】[0009]

【発明の実施の形態】次に、この発明の実施の形態につ
いて図面を参照して説明する。
Next, an embodiment of the present invention will be described with reference to the drawings.

【0010】図1は、この発明のデータベースシステム
の実施の形態を示すブロック図である。図1に示すデー
タベースシステムは、入力装置10、挿入更新処理部1
1、訂正更新処理部12、検索処理部13、出力装置1
5、システム定義値保持部16、データ記憶部17によ
り構成されている。
FIG. 1 is a block diagram showing an embodiment of a database system according to the present invention. The database system shown in FIG.
1, correction update processing unit 12, search processing unit 13, output device 1
5, a system definition value holding unit 16 and a data storage unit 17.

【0011】データ記憶部17は、ユーザ定義のデータ
を格納するユーザ定義データ部18の他に、データベー
スシステムが管理する情報を格納する情報部19を有す
る。情報部19は、更新日付時刻、削除情報、新旧情報
からなる。削除情報は、本データが削除状態か否かを示
し、新旧情報は、本データが最新か否かを示す。
The data storage section 17 has an information section 19 for storing information managed by the database system, in addition to a user-defined data section 18 for storing user-defined data. The information section 19 includes an update date and time, deletion information, and old and new information. The deletion information indicates whether the data is in a deleted state, and the new / old information indicates whether the data is the latest.

【0012】また、システム定義値保持部16には、一
定期間となる保証期間が格納される。
Further, the system definition value holding unit 16 stores a guarantee period which is a fixed period.

【0013】挿入更新処理部11は、入力装置10より
挿入データを受け取り、情報部19に格納する前記情報
を作成して挿入データをデータ記憶部17に格納する。
The insert / update processing unit 11 receives the insert data from the input device 10, creates the information to be stored in the information unit 19, and stores the insert data in the data storage unit 17.

【0014】削除更新処理部12は、入力装置10より
削除データ条件を受け取り、削除データ条件に一致する
削除元データをデータ記憶部17から取得し、削除元デ
ータをもとに削除データを作成してデータ記憶部17に
格納する。また、削除元データが保証期間を過ぎている
場合、データ記憶部17よりデータを削除する。
The deletion / update processing unit 12 receives the deletion data condition from the input device 10, acquires the deletion source data matching the deletion data condition from the data storage unit 17, and creates the deletion data based on the deletion source data. Stored in the data storage unit 17. If the deletion source data has passed the warranty period, the data is deleted from the data storage unit 17.

【0015】訂正更新処理部13は、入力装置10より
訂正データ条件と訂正情報を受け取り、訂正データ条件
に一致する訂正元データをデータ記憶部17から取得
し、訂正元データと訂正情報をもとに訂正データを作成
してデータ記憶部17に格納する。また、訂正元データ
が保証期間を過ぎている場合、データ記憶部17よりデ
ータを削除する。
The correction / update processing unit 13 receives correction data conditions and correction information from the input device 10, acquires correction source data matching the correction data conditions from the data storage unit 17, and based on the correction source data and the correction information. The correction data is created and stored in the data storage unit 17. If the correction source data has passed the guarantee period, the data is deleted from the data storage unit 17.

【0016】検索処理部14は、入力装置10より検索
条件と検索日付時刻を受け取る。検索日付時刻が保証期
間外のときは、出力装置15にエラーを出力する。検索
日付時刻が保証期間内のときは、データ記憶部17より
条件一致データを取得する。取得データ中にプライマリ
キーが同一であるデータが複数存在する場合、その中か
ら更新日付時刻が検索日付時刻以下で最大のものを1件
抽出し、それらを出力装置15に出力する。また、条件
一致データが保証期間を過ぎている場合、データ記憶部
17よりデータを削除する。
The search processing unit 14 receives a search condition and a search date and time from the input device 10. If the search date and time are outside the warranty period, an error is output to the output device 15. If the search date and time are within the guarantee period, condition matching data is obtained from the data storage unit 17. When there are a plurality of pieces of data having the same primary key in the acquired data, one of the data whose update date / time is less than or equal to the search date / time is extracted and output to the output device 15. If the condition matching data has passed the guarantee period, the data is deleted from the data storage unit 17.

【0017】次に、挿入更新処理部11の動作を図2の
フローチャートを用いて説明する。
Next, the operation of the insert / update processing unit 11 will be described with reference to the flowchart of FIG.

【0018】挿入更新処理部11は、入力装置10より
挿入データを受け取ると、まず、ステップ101におい
て、更新日付時刻を現在の日付時刻とし、ステップ10
2において、削除情報と非削除とし、ステップ103に
おいて、新旧情報を新としてデータベースシステムが管
理する更新日付時刻、削除情報、新旧情報を自ら作成
し、情報部19に設定する。
When receiving the insert data from the input device 10, the insert / update processing unit 11 first sets the update date and time to the current date and time in step 101, and
In step 2, deletion information and non-deletion are set. In step 103, update date and time, deletion information, and old and new information managed by the database system are newly created as new and old information, and are set in the information section 19.

【0019】次に、ステップ104において、挿入デー
タをユーザ定義データとしてデータ定義データ部18に
設定する。この後、ステップ105において、データを
データ記憶部17に格納する。
Next, in step 104, the inserted data is set in the data definition data section 18 as user-defined data. Thereafter, in step 105, the data is stored in the data storage unit 17.

【0020】次に、削除更新処理部12の動作を図3の
フローチャートを用いて説明する。
Next, the operation of the delete / update processing unit 12 will be described with reference to the flowchart of FIG.

【0021】まず、ステップ201において、保証開始
日付時時刻を取得する。ステップ202において、削除
データ条件に一致するデータをデータ記憶部より取得す
る。
First, in step 201, a guarantee start date and time is obtained. In step 202, data matching the deletion data condition is obtained from the data storage unit.

【0022】ステップ203において、新旧情報を判定
する。新旧情報が新であれば削除対象とし、旧であれば
削除対象外とする。ステップ204では、本データを元
に削除データを作成し、データ記憶部17に格納する。
削除データは、更新日付時刻を現在の日付時刻とし、削
除情報を削除とし、新旧情報を新とし、ユーザ定義デー
タ部には本データがユーザ定義データとしてそのまま設
定される。
In step 203, new / old information is determined. If the new and old information is new, it is to be deleted, and if it is old, it is not to be deleted. In step 204, delete data is created based on this data and stored in the data storage unit 17.
For the deletion data, the update date and time are set to the current date and time, the deletion information is set to deletion, the new and old information is set to new, and this data is set as the user definition data in the user definition data section.

【0023】ステップ205では、削除データの元とな
った本データは旧データとなったので、データ記憶部1
7の新旧情報を旧に変更する。ここでは、削除対象のデ
ータをデータ記憶部17より削除することはない。ステ
ップ206では、データが保証対象か否かを判定する。
保証対象外の場合、ステップ207を行い、データをデ
ータ記憶部17より削除する。保証対象の場合、なにも
せず、データ記憶部17にそのままデータを残す。
In step 205, since the original data which is the source of the deleted data is the old data, the data storage unit 1
Change the old and new information of 7 to old. Here, the data to be deleted is not deleted from the data storage unit 17. In step 206, it is determined whether or not the data is to be guaranteed.
If the data is not covered by the guarantee, step 207 is performed and the data is deleted from the data storage unit 17. In the case of a guarantee target, nothing is done and the data is left in the data storage unit 17 as it is.

【0024】次に、訂正更新処理部13の動作について
図3を用いて、削除更新処理部12との違いのみを説明
する。
Next, the operation of the correction / update processing unit 13 will be described with reference to FIG.

【0025】ステップ202において、訂正データ条件
に一致するデータをデータ記憶部17より取得する。ス
テップ204では、本データと訂正情報を元に訂正デー
タを作成し、データ記憶部17に格納する。訂正データ
は、更新日付時刻を現在の日付時刻とし、削除情報を非
削除とし、新旧情報を新とし、ユーザ定義データ部には
本データと訂正情報を元に作成されたデータがユーザ定
義データとして設定される。
In step 202, data matching the correction data condition is obtained from the data storage unit 17. In step 204, correction data is created based on the main data and the correction information, and stored in the data storage unit 17. The correction data is the update date and time, the current date and time, the deletion information is not deleted, the old and new information is new, and the data created based on this data and the correction information is the user-defined data in the user-defined data section. Is set.

【0026】次に、検索処理部14の動作について、図
4および図5のフローチャートを用いて説明する。
Next, the operation of the search processing section 14 will be described with reference to the flowcharts of FIGS.

【0027】ステップ301において、保証開始日付時
刻を取得する。ステップ302において、検索日付時刻
が保証開始日付時刻以前の場合はエラーとして検索処理
部14の処理を終了する。
In step 301, a guarantee start date and time is obtained. In step 302, if the search date / time is earlier than the guarantee start date / time, the process of the search processing unit 14 ends as an error.

【0028】ステップ303において、検索条件に一致
するデータを全てデータ記憶部17より取得する。ステ
ップ304において、検索条件に一致するデータから更
新日付時刻が検索日付時刻より大きいデータを除外す
る。
In step 303, all data matching the search condition is obtained from the data storage unit 17. In step 304, data whose update date / time is greater than the search date / time is excluded from the data matching the search condition.

【0029】ステップ305において、検索条件に一致
するデータをプライマリキーでグループ化する。ステッ
プ306〜308において、各グループに対してステッ
プ307を行う。ステップ307を図5を用いて説明す
る。
In step 305, data matching the search condition is grouped by the primary key. In steps 306 to 308, step 307 is performed for each group. Step 307 will be described with reference to FIG.

【0030】ステップ310〜315において、グルー
プ内の各データについて処理を行う。まず、ステップ3
11において、データがグループ内の最新データである
ときは条件一致データとして何もしない。
In steps 310 to 315, processing is performed on each data in the group. First, step 3
In step 11, if the data is the latest data in the group, nothing is performed as the condition matching data.

【0031】ステップ312において、データが保証期
間外である場合は、ステップ313により本データをデ
ータ記憶部17より削除する。ステップ312におい
て、データが保証期間内である場合は、ステップ314
により条件に一致するデータから本データを除外する。
データ記憶部17より削除はしない。
If it is determined in step 312 that the data is out of the warranty period, the data is deleted from the data storage unit 17 in step 313. If it is determined in step 312 that the data is within the guarantee period, step 314
This data is excluded from the data matching the condition.
It is not deleted from the data storage unit 17.

【0032】図4のステップ309に戻り、条件に一致
するデータから削除情報が削除のデータを除外する。こ
こまで残った検索条件に一致するデータを出力装置15
に出力する。
Returning to step 309 in FIG. 4, the data whose deletion information is deleted is excluded from the data matching the condition. The data matching the search conditions remaining so far is output to the output device 15.
Output to

【0033】次に、図6のシーケンス図を用いて、この
発明の実施例の動作について説明する。
Next, the operation of the embodiment of the present invention will be described with reference to the sequence diagram of FIG.

【0034】まず、日付時刻1において、業務プログラ
ム1は、現在の日付時刻を検索日付時刻1として、それ
と検索条件(検索日付時刻=1、データ項目2=X%)
を用いて、データベースシステムより現在の日付時刻よ
り以前のデータであるデータ1とデータ2を取得する。
First, at the date and time 1, the business program 1 sets the current date and time as the search date and time 1 and the search condition (search date and time = 1, data item 2 = X%).
, Data 1 and data 2 which are data before the current date and time are acquired from the database system.

【0035】日付時刻2において、業務プログラム2
は、データ2に対して削除を行い、データ記憶部のデー
タ2が変更され、データ3が挿入される。
At the date and time 2, the business program 2
Deletes data 2, changes data 2 in the data storage unit, and inserts data 3.

【0036】日付時刻3において、業務プログラム1
は、検索日付時刻1と検索条件(検索日付時刻=1、デ
ータ項目2=X%)を用いて、データベースシステムよ
り、データ1とデータ2を取得する。
At date and time 3, business program 1
Acquires data 1 and data 2 from the database system using search date time 1 and search conditions (search date time = 1, data item 2 = X%).

【0037】次に、この発明の他の実施の形態について
説明する。図7は、この発明のデータベースシステムの
他の実施の形態を示すブロック図である。
Next, another embodiment of the present invention will be described. FIG. 7 is a block diagram showing another embodiment of the database system of the present invention.

【0038】図7において、振り分け処理部20と保証
期間外データ削除処理部21を備える点が図1に示す実
施の形態とは異なる。振り分け処理部20は、挿入更新
処理部11に振り分けるときは、図1の実施の形態と同
じであるが、削除更新処理部12、訂正更新処理部1
3、検索処理部14に振り分けるときは、同時にデータ
条件を保証期間外データ削除処理部21に渡す。保証期
間外データ削除処理部21は、データ条件に一致するデ
ータから更新日付時刻が保証開始日日付時刻以前のデー
タをデータ記憶部17より削除する。
FIG. 7 differs from the embodiment shown in FIG. 1 in that it includes a distribution processing unit 20 and a data deletion processing unit 21 outside the warranty period. When the distribution processing unit 20 distributes the data to the insertion / update processing unit 11, the distribution processing unit 20 is the same as the embodiment of FIG. 1, but the deletion / update processing unit 12 and the correction / update processing unit 1
3. When assigning data to the search processing unit 14, the data condition is simultaneously passed to the out-of-warranty period data deletion processing unit 21. The out-of-warranty-period data deletion processing unit 21 deletes, from the data storage unit 17, data whose update date and time is earlier than the guarantee start date and time from the data that matches the data condition.

【0039】そして、削除更新処理部12、訂正更新処
理部13、検索処理部14のデータ削除部分は不要とな
る。
Then, the data deletion portions of the deletion / update processing section 12, the correction / update processing section 13, and the search processing section 14 become unnecessary.

【0040】なお、上述した実施の形態において、挿入
更新処理部11、削除更新処理部12、訂正更新処理部
13および検索処理部14は、記録媒体に記録されたソ
フトウェア(プログラム)を実行することによって実現
できるものである。
In the above-described embodiment, the insertion / update processing unit 11, the deletion / update processing unit 12, the correction / update processing unit 13, and the search processing unit 14 execute software (program) recorded on a recording medium. It can be realized by:

【0041】[0041]

【発明の効果】以上説明したように、この発明では、デ
ータベースには旧データが残るが、増え続けることはな
いため、ある程度のデータ量を保持できる。また、業務
プログラムは、保証期間内であればいつでも、時系列上
1点のデータベース状態を表現できる。さらに、業務プ
ログラムは、旧データの存在を意識しない。
As described above, according to the present invention, old data remains in the database, but does not continue to increase, so that a certain amount of data can be held. Further, the business program can express one point of the database state in time series at any time during the warranty period. Further, the business program is not aware of the existence of old data.

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

【図1】この発明のデータベースシステムの実施の形態
を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a database system according to the present invention.

【図2】挿入更新処理部の動作を説明するフローチャー
トである。
FIG. 2 is a flowchart illustrating an operation of an insertion update processing unit.

【図3】削除更新処理部の動作を説明するフローチャー
トである。
FIG. 3 is a flowchart illustrating an operation of a deletion update processing unit.

【図4】検索処理部の動作を説明するフローチャートで
ある。
FIG. 4 is a flowchart illustrating an operation of a search processing unit.

【図5】図4におけるステップ307の動作を説明する
フローチャートである。
FIG. 5 is a flowchart illustrating the operation of step 307 in FIG.

【図6】この発明の実施例の動作について説明するシー
ケンス図である。
FIG. 6 is a sequence diagram illustrating an operation of the embodiment of the present invention.

【図7】この発明のデータベースシステムの他の実施の
形態を示すブロック図である。
FIG. 7 is a block diagram showing another embodiment of the database system of the present invention.

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

10 入力装置 11 挿入更新処理部 12 削除更新処理部 13 訂正更新処理部 14 検索処理部 15 出力装置 16 システム定義値保持部 17 データ記憶部 18 ユーザ定義データ部 19 情報部 20 振り分け処理部 21 保証期間外データ削除処理部 Reference Signs List 10 input device 11 insertion update processing unit 12 deletion update processing unit 13 correction update processing unit 14 search processing unit 15 output device 16 system definition value holding unit 17 data storage unit 18 user definition data unit 19 information unit 20 distribution processing unit 21 warranty period External data deletion processing unit

フロントページの続き (72)発明者 徳永 秀明 北海道札幌市中央区南一条西四丁目5番地 1号 北海道日本電気ソフトウェア株式会 社内 Fターム(参考) 5B075 NR03 PP23 5B082 AA11 BA03 CA11 EA10 GA18 GA20 Continuation of the front page (72) Inventor Hideaki Tokunaga 4-1-1, Minamiichijo Nishi, Chuo-ku, Sapporo-shi, Hokkaido In-house F-term (reference) 5B075 NR03 PP23 5B082 AA11 BA03 CA11 EA10 GA18 GA20

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】ユーザ定義のデータを格納するユーザ定義
データ部の他に、データベースシステムが管理する情報
を格納する情報部を有するデータ記憶部と、 一定期間となる保証期間を格納するシステム定義値保持
部と、 入力装置より挿入データを受け取り、前記情報部に格納
する前記情報を作成して挿入データを前記データ記憶部
に格納する挿入更新処理部と、 入力装置より削除データ条件を受け取り、削除データ条
件に一致する削除元データを前記データ記憶部から取得
し、削除元データをもとに削除データを作成して前記デ
ータ記憶部に格納し、前記削除元データが保証期間を過
ぎている場合に、前記データ記憶部よりデータを削除す
る削除更新処理部と、 入力装置より訂正データ条件と訂正情報を受け取り、訂
正データ条件に一致する訂正元データを前記データ記憶
部から取得し、訂正元データと訂正情報をもとに訂正デ
ータを作成して前記データ記憶部に格納し、前記訂正元
データが保証期間を過ぎている場合に、前記データ記憶
部よりデータを削除する訂正更新処理部と、 入力装置より検索データ条件と検索日付時刻を受け取
り、前記データ記憶部より条件一致データを取得し、取
得した条件一致データの中から更新日付時刻が検索日付
時刻以下で最大のものを抽出して出力装置に出力し、前
記条件一致データが保証期間を過ぎている場合に、前記
データ記憶部よりデータを削除する検索処理部と、を備
えることを特徴とするデータベースシステム。
1. A data storage section having an information section for storing information managed by a database system in addition to a user-defined data section for storing user-defined data, and a system-defined value for storing a warranty period as a fixed period. A holding unit, an insertion update processing unit that receives the insertion data from the input device, creates the information to be stored in the information unit, and stores the insertion data in the data storage unit, receives the deletion data condition from the input device, and deletes the data. When the deletion source data matching the data condition is obtained from the data storage unit, the deletion data is created based on the deletion source data and stored in the data storage unit, and the deletion source data has passed the warranty period. Receiving a correction data condition and correction information from an input device, and deleting the data from the data storage unit; From the data storage unit, creates correction data based on the correction source data and the correction information, and stores the corrected data in the data storage unit.If the correction source data has passed the warranty period, A correction update processing unit that deletes data from the data storage unit; a search data condition and a search date / time received from an input device; condition match data is obtained from the data storage unit; and updated from the obtained condition match data. A search processing unit that extracts the largest one whose date time is equal to or less than the search date time and outputs it to the output device, and deletes the data from the data storage unit when the condition matching data has passed the warranty period. A database system, comprising:
【請求項2】ユーザ定義のデータを格納するユーザ定義
データ部の他に、データベースシステムが管理する情報
を格納する情報部を有するデータ記憶部と、 一定期間となる保証期間を格納するシステム定義値保持
部と、 挿入データを受け取り、前記情報部に格納する前記情報
を作成して挿入データを前記データ記憶部に格納する挿
入更新処理部と、 削除データ条件を受け取り、削除データ条件に一致する
削除元データを前記データ記憶部から取得し、削除元デ
ータをもとに削除データを作成して前記データ記憶部に
格納する削除更新処理部と、 訂正データ条件と訂正情報を受け取り、訂正データ条件
に一致する訂正元データを前記データ記憶部から取得
し、訂正元データと訂正情報をもとに訂正データを作成
して前記データ記憶部に格納する訂正更新処理部と、 検索データ条件と検索日付時刻を受け取り、前記データ
記憶部より条件一致データを取得し、取得した条件一致
データの中から更新日付時刻が検索日付時刻以下で最大
のものを抽出して出力装置に出力する検索処理部と、 入力装置より挿入データを受け取って前記挿入更新処理
部へ振り分け、削除データ条件を受け取って前記削除更
新処理部へ振り分け、訂正データ条件と訂正情報を受け
取って前記訂正更新処理部へ振り分け、検索データ条件
と検索日付時刻を受け取って前記検索処理部へ振り分け
る振り分け処理部と、 前記削除データ条件、訂正データ条件、検索データ条件
を受け取り、条件に一致する前記削除元データ、訂正元
データ、条件一致データが保証期間を過ぎている場合
に、前記データ記憶部よりデータを削除する保証期間外
データ削除処理部と、を備えることを特徴とするデータ
ベースシステム。
2. A data storage section having an information section for storing information managed by a database system, in addition to a user-defined data section for storing user-defined data, and a system-defined value for storing a warranty period as a fixed period. A holding unit, an insertion update processing unit that receives the insertion data, creates the information to be stored in the information unit, and stores the insertion data in the data storage unit, and receives a deletion data condition, and deletes the deletion data condition. Original data is acquired from the data storage unit, a deletion update processing unit that creates deletion data based on the deletion original data and stores the deletion data in the data storage unit, and receives the correction data condition and the correction information. Acquiring matching original data from the data storage unit, creating corrected data based on the original data and the correction information, and storing the corrected data in the data storage unit. Receiving a search data condition and a search date and time, acquiring condition match data from the data storage unit, and obtaining a condition update data having a maximum update date and time equal to or less than the search date and time from the acquired condition match data. A search processing unit for extracting and outputting the data to the output device; receiving the insertion data from the input device and distributing the data to the insertion / update processing unit; receiving a deletion data condition and distributing the data to the deletion / update processing unit; Receiving and distributing to the correction / update processing unit, receiving a search data condition and a search date and time, and distributing to the search processing unit; and receiving the delete data condition, the correction data condition, and the search data condition, and matching the condition. When the deletion source data, the correction source data, and the condition matching data have passed the warranty period, the data is stored in the data storage unit. Database system comprising: the Warranty outside data deletion section, the Remove.
【請求項3】データベースシステムが管理する前記情報
は、更新日付時刻と、データが削除状態か否かを示す削
除情報と、データが最新か否かを示す新旧情報からなる
ことを特徴とする請求項1または2に記載のデータベー
スシステム。
3. The information managed by the database system includes an update date and time, deletion information indicating whether data is in a deleted state, and new / old information indicating whether data is latest. Item 3. The database system according to item 1 or 2.
【請求項4】前記検索処理部は、検索条件と検索日付時
刻を受け取り、検索日付時刻が保証期間外のときは、出
力装置にエラーを出力し、検索日付時刻が保証期間内の
ときは、前記データ記憶部より条件一致データを取得
し、取得データ中にプライマリキーが同一であるデータ
が複数存在する場合、その中から更新日付時刻が検索日
付時刻以下で最大のものを抽出して出力装置に出力する
ことを特徴とする請求項1〜3のいずれかに記載のデー
タベースシステム。
4. The search processing unit receives a search condition and a search date and time, outputs an error to an output device when the search date and time are outside the warranty period, and outputs an error when the search date and time is within the warranty period. The condition matching data is obtained from the data storage unit, and when there are a plurality of data having the same primary key in the obtained data, an output device that extracts the largest one whose update date / time is less than or equal to the search date / time is extracted therefrom. The database system according to any one of claims 1 to 3, wherein the data is output to a database.
【請求項5】入力装置より挿入データを受け取り、デー
タベースシステムが管理する情報を作成して挿入データ
をデータ記憶部に格納する手順と、 入力装置より削除データ条件を受け取り、削除データ条
件に一致する削除元データを前記データ記憶部から取得
し、削除元データをもとに削除データを作成して前記デ
ータ記憶部に格納し、前記削除元データが保証期間を過
ぎている場合に、前記データ記憶部よりデータを削除す
る手順と、 入力装置より訂正データ条件と訂正情報を受け取り、訂
正データ条件に一致する訂正元データを前記データ記憶
部から取得し、訂正元データと訂正情報をもとに訂正デ
ータを作成して前記データ記憶部に格納し、前記訂正元
データが保証期間を過ぎている場合に、前記データ記憶
部よりデータを削除する手順と、 入力装置より検索条件と検索日付時刻を受け取り、検索
日付時刻が保証期間外のときは、出力装置にエラーを出
力し、検索日付時刻が保証期間内のときは、前記データ
記憶部より条件一致データを取得し、取得した条件一致
データの中から更新日付時刻が検索日付時刻以下で最大
のものを抽出して出力装置に出力し、前記条件一致デー
タが保証期間を過ぎている場合に、前記データ記憶部よ
りデータを削除する手順と、を含むことを特徴とするデ
ータ管理方法。
5. A procedure for receiving insertion data from an input device, creating information managed by a database system and storing the insertion data in a data storage unit, and receiving a deletion data condition from the input device and matching the deletion data condition. The deletion source data is obtained from the data storage unit, the deletion data is created based on the deletion source data and stored in the data storage unit, and when the deletion source data has passed the warranty period, the data storage is performed. Receiving the correction data condition and the correction information from the input device, acquiring the correction source data matching the correction data condition from the data storage unit, and correcting the data based on the correction source data and the correction information. Create data and store it in the data storage unit, and delete the data from the data storage unit when the correction source data has passed the warranty period Receiving the search condition and the search date and time from the input device, outputting an error to the output device when the search date and time are outside the warranty period, and outputting the error from the data storage unit when the search date and time are within the warranty period. Acquires condition matching data, extracts the largest one whose update date and time is less than or equal to the search date and time from the acquired condition matching data and outputs it to the output device.If the condition matching data has passed the warranty period, And deleting the data from the data storage unit.
【請求項6】入力装置より挿入データを受け取り、デー
タベースシステムが管理する情報を作成して挿入データ
をデータ記憶部に格納する手順と、 入力装置より削除データ条件を受け取り、削除データ条
件に一致する削除元データを前記データ記憶部から取得
し、削除元データをもとに削除データを作成して前記デ
ータ記憶部に格納し、前記削除元データが保証期間を過
ぎている場合に、前記データ記憶部よりデータを削除す
る手順と、 入力装置より訂正データ条件と訂正情報を受け取り、訂
正データ条件に一致する訂正元データを前記データ記憶
部から取得し、訂正元データと訂正情報をもとに訂正デ
ータを作成して前記データ記憶部に格納し、前記訂正元
データが保証期間を過ぎている場合に、前記データ記憶
部よりデータを削除する手順と、 入力装置より検索条件と検索日付時刻を受け取り、検索
日付時刻が保証期間外のときは、出力装置にエラーを出
力し、検索日付時刻が保証期間内のときは、前記データ
記憶部より条件一致データを取得し、取得した条件一致
データの中から更新日付時刻が検索日付時刻以下で最大
のものを抽出して出力装置に出力し、前記条件一致デー
タが保証期間を過ぎている場合に、前記データ記憶部よ
りデータを削除する手順と、を実行させるためのプログ
ラムを記録したコンピュータ読み取り可能な記録媒体。
6. A procedure for receiving insertion data from an input device, creating information managed by a database system and storing the insertion data in a data storage unit, and receiving a deletion data condition from the input device and matching the deletion data condition. The deletion source data is obtained from the data storage unit, the deletion data is created based on the deletion source data and stored in the data storage unit, and when the deletion source data has passed the warranty period, the data storage is performed. Receiving the correction data condition and the correction information from the input device, acquiring the correction source data matching the correction data condition from the data storage unit, and correcting the data based on the correction source data and the correction information. Create data and store it in the data storage unit, and delete the data from the data storage unit when the correction source data has passed the warranty period Receiving the search condition and the search date and time from the input device, outputting an error to the output device when the search date and time are outside the warranty period, and outputting the error from the data storage unit when the search date and time are within the warranty period. Acquires condition matching data, extracts the largest one whose update date and time is less than or equal to the search date and time from the acquired condition matching data and outputs it to the output device.If the condition matching data has passed the warranty period, A computer-readable recording medium on which a program for executing the steps of: deleting data from the data storage unit;
JP2000177906A 2000-06-14 2000-06-14 Data base system Pending JP2001356942A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000177906A JP2001356942A (en) 2000-06-14 2000-06-14 Data base system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000177906A JP2001356942A (en) 2000-06-14 2000-06-14 Data base system

Publications (1)

Publication Number Publication Date
JP2001356942A true JP2001356942A (en) 2001-12-26

Family

ID=18679428

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000177906A Pending JP2001356942A (en) 2000-06-14 2000-06-14 Data base system

Country Status (1)

Country Link
JP (1) JP2001356942A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009259034A (en) * 2008-04-17 2009-11-05 Toshiba Corp Personnel information processing system
US9075851B2 (en) 2003-12-09 2015-07-07 Emc Corporation Method and apparatus for data retention in a storage system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9075851B2 (en) 2003-12-09 2015-07-07 Emc Corporation Method and apparatus for data retention in a storage system
JP2009259034A (en) * 2008-04-17 2009-11-05 Toshiba Corp Personnel information processing system

Similar Documents

Publication Publication Date Title
US11868315B2 (en) Method for splitting region in distributed database, region node, and system
US9672244B2 (en) Efficient undo-processing during data redistribution
CN106874281B (en) Method and device for realizing database read-write separation
JP2007074724A (en) Method and apparatus for synchronizing epg information between server and client in digital broadcasting network
CN109086382B (en) Data synchronization method, device, equipment and storage medium
CN112612799B (en) Data synchronization method and terminal
JP2007188497A (en) System and method for managing log information for transaction
JP2008519361A (en) How to enforce application specific management policies on content addressed storage devices
CN110647514A (en) Metadata updating method and device and metadata server
US7487272B2 (en) Using queue specific variable(s) to efficiently delete expired items in an ordered queue without necessarily checking each queued item's expiry time
CN106709066A (en) Data synchronization method and device
CN112559857A (en) Redis-based crowd pack application method and system, electronic device and storage medium
JP2001356942A (en) Data base system
WO2023142605A1 (en) Blockchain-based data processing method and related apparatus
US10185735B2 (en) Distributed database system and a non-transitory computer readable medium
CN113986942B (en) Message queue management method and device based on man-machine conversation
CN115964192A (en) Request processing method and device, electronic equipment and storage medium
CN115269730A (en) Wide table synchronization method and device
US7120822B2 (en) Computer executable digital video rendering restoration method
CN114493875A (en) Transaction execution method, computer device, and storage medium
JP2010009195A (en) Batch processing method, batch processing program, request execution device and database system
CN114297214B (en) Data synchronization method and device, computer storage medium and electronic equipment
JP2000172539A (en) Comparing method of file on network
CN112948485B (en) Question-answer data synchronization method, device, system, server and storage medium
JP3613077B2 (en) Database recovery method and program recording medium

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040817

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20041018

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20041130