JP2001159993A - Method and device for storing data for referring to optional time state - Google Patents

Method and device for storing data for referring to optional time state

Info

Publication number
JP2001159993A
JP2001159993A JP34424999A JP34424999A JP2001159993A JP 2001159993 A JP2001159993 A JP 2001159993A JP 34424999 A JP34424999 A JP 34424999A JP 34424999 A JP34424999 A JP 34424999A JP 2001159993 A JP2001159993 A JP 2001159993A
Authority
JP
Japan
Prior art keywords
database
information
state
data
history
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
JP34424999A
Other languages
Japanese (ja)
Inventor
Masaya Mori
真佐也 森
Hiroyuki Ogawa
博之 小川
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP34424999A priority Critical patent/JP2001159993A/en
Publication of JP2001159993A publication Critical patent/JP2001159993A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To solve a problem such that a database state at an optional time is not traced back and referred at the optional time and also a back-up generation time is required to be clearly indicated by a user in a conventional method for generating a back-up database to manage a generation, which is provided for referring to not only a present database state but also a past database state. SOLUTION: A data storage device is provided with a mechanism for preserving pre-updating information in a reference possible form concerning database updating and for managing the pre-updating information with preserved pre- updating information and updating time information as keys. Then the pre- updating information is specified by optional time designation and a past database state is restored and referred.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、データベース管理
システムに関し、特にデータの追加や変更、削除に関す
る履歴を参照可能なデータとして保存することを可能と
し、過去の任意時刻のデータベース状態を再現できるデ
ータの記憶方法および装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a database management system, and more particularly to a database management system capable of storing a history of addition, change, and deletion of data as referable data and reproducing a database state at an arbitrary time in the past. Storage method and apparatus.

【0002】[0002]

【従来の技術】実社会では、人間の活動に合わせてコン
ピュータ処理を行う必要があるため、日次や月次という
単位でデータベース状態を保存し、必要に応じて参照す
るという要求に対して多くの場合は、特開平10−269126
号に見られる方式のように、予め指定した時刻でデータ
ベースのバックアップを作成する方法を採用し、その特
定時刻でのデータベースの状態を保存するという方法が
取られている。
2. Description of the Related Art In the real world, since it is necessary to perform computer processing in accordance with human activities, there are many demands for storing database states on a daily or monthly basis and referencing them as necessary. In the case, JP-A-10-269126
In this method, a method of creating a backup of a database at a predetermined time, as in the method described in the above issue, is used, and the state of the database at the specific time is stored.

【0003】しかし、この方法では、ユーザは常にデー
タベースのバックアップを作成する時刻を意識する必要
がある。また、保存するデータベースの状態の分だけ多
重にデータベースを取得しなくてはならないため、デー
タを格納するために多くの資源が必要となる。
However, in this method, the user must always be aware of the time at which the database is to be backed up. Further, since the database must be acquired in multiples corresponding to the state of the database to be stored, many resources are required to store data.

【0004】[0004]

【発明が解決しようとする課題】上記の従来の技術で
は、ユーザが明示した時刻のデータベースの状態を保存
するため、状態を保存した時刻と時刻の間にデータベー
ス中のデータに変更が生じるような状況では、任意の時
刻におけるデータベースの状態を復元して参照すること
ができないという課題があった。
In the above-mentioned prior art, since the state of the database at the time specified by the user is stored, the data in the database may be changed between times when the state is stored. In the situation, there is a problem that the state of the database at an arbitrary time cannot be restored and referred to.

【0005】また従来の方式では、状態を保存する時刻
をユーザが指定しなくてはならないため、ユーザの負担
があるという課題があった。
[0005] In addition, the conventional method has a problem that the user has to specify the time at which the state is to be saved, which imposes a burden on the user.

【0006】本発明の目的は、上記の点を鑑み、ユーザ
がデータベースの状態保存に関し、状態を保存する時刻
について意識する必要がなく、かつ、任意時刻のデータ
ベース状態を、現行データベースに手を加えることなく
参照することである。
SUMMARY OF THE INVENTION In view of the above points, an object of the present invention is to save the state of a database without requiring the user to be aware of the time at which the state is saved, and to modify the database state at an arbitrary time into the current database. Is to refer to without.

【0007】[0007]

【課題を解決するための手段】上記目的を達成するため
に、データの追加や変更、削除、ある時刻におけるデー
タベース内容の参照といった応用プログラムからのデー
タベース操作要求があるシステムにおいて、本発明のデ
ータベース管理システムは、データベースを更新すると
共に、データの更新前情報を取得し蓄積する。データの
更新前情報をデータベースのキー値毎に分類し、キーと
更新時刻情報を共に管理する履歴管理情報を作成する。
In order to achieve the above object, in a system in which a database operation request from an application program such as addition, change, or deletion of data, or reference to a database content at a certain time, a database management system according to the present invention is provided. The system updates the database and acquires and stores the pre-update information of the data. The pre-update information of the data is classified for each key value of the database, and history management information for managing both the key and the update time information is created.

【0008】時刻を指定し、データベースの過去の状態
を復元して参照する場合は、履歴管理情報から当時のデ
ータベース内容を保存しているデータベース更新前情報
の更新時刻情報を特定し、データベースのキー値と時刻
情報を用いることで該当するデータベース更新前情報を
特定し選択する。
When the time is designated and the past state of the database is restored and referred to, the update time information of the pre-database update information storing the database contents at that time is specified from the history management information, and the key of the database is specified. Using the value and the time information, the corresponding pre-database update information is specified and selected.

【0009】以上のように、データベースの更新前情報
を保存管理することで、任意の時刻におけるデータベー
スの状態を復元し、参照することが可能になる。
As described above, by storing and managing the pre-update information of the database, the state of the database at an arbitrary time can be restored and referenced.

【0010】[0010]

【発明の実施の形態】次に本発明の実施例について、図
面を用いシステムの構成と動作を順に説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments of the present invention will be described below with reference to the drawings, in order of system configuration and operation.

【0011】図1は、任意の時刻の状態を復元して参照
できるデータベース管理システムの概略構成図である。
本発明に関する要素としては、データベース管理システ
ム100とデータベース101、履歴蓄積部102、応用プログ
ラム103がある。データベース管理システム100は、ディ
クショナリ1001と、履歴管理情報1002、管理定義1003、
問合せ変換部1004、履歴情報管理部1005、問合せ変換部
1006、データアクセス部1007、データ解析部1008からな
る。データベース管理システム100は、応用プログラム1
03が発した操作命令により、データベース101や履歴蓄
積部102を操作するものである。
FIG. 1 is a schematic configuration diagram of a database management system capable of restoring a state at an arbitrary time and referencing it.
Elements related to the present invention include a database management system 100, a database 101, a history storage unit 102, and an application program 103. The database management system 100 includes a dictionary 1001, history management information 1002, management definition 1003,
Query converter 1004, history information manager 1005, query converter
1006, a data access unit 1007, and a data analysis unit 1008. The database management system 100 is an application program 1
The database 101 and the history storage unit 102 are operated by an operation command issued by 03.

【0012】データベース101は、定義に従ってデータ
を保存する記憶装置である。
The database 101 is a storage device for storing data according to the definition.

【0013】履歴管理部102は、データベース101の更新
前情報を保存する記憶装置である。ディクショナリ1001
はデータベース101のシステム情報を蓄積する。
The history management unit 102 is a storage device for storing pre-update information of the database 101. Dictionary 1001
Accumulates system information in the database 101.

【0014】履歴管理情報1002は、履歴蓄積部102のシ
ステム情報を蓄積し、データベース101の更新前情報を
履歴蓄積部102に新たに保存する場合には、対応して履
歴管理情報1002に履歴蓄積部102の更新前情報に対して
リンク情報を保存する。
The history management information 1002 accumulates the system information of the history storage unit 102, and when the pre-update information of the database 101 is newly stored in the history storage unit 102, the history information is stored in the history management information 1002 correspondingly. The link information is stored for the pre-update information of the unit 102.

【0015】管理定義1003は履歴蓄積部102の定義情報
であり、データベース101の更新前情報を履歴蓄積部102
へ蓄積する条件についての定義を行う。
The management definition 1003 is definition information of the history storage unit 102, and stores the pre-update information of the database 101 in the history storage unit 102.
Define the conditions to be stored in.

【0016】問合せ解析部1004は、応用プログラム103
よりデータベース操作要求を受け取り、操作要求内容を
判断し、応用プログラム103からの操作要求がデータベ
ース101の操作要求であるか履歴蓄積部102の操作要求で
あるか判断し、データベース101の操作要求である時
は、操作要求を問合せ変換部1006に渡し、履歴蓄積部10
2の参照要求である時は、履歴情報管理部1005に操作要
求を渡す。
The query analysis unit 1004 includes the application program 103
It receives a database operation request, determines the content of the operation request, determines whether the operation request from the application program 103 is an operation request of the database 101 or an operation request of the history storage unit 102, and is an operation request of the database 101. At this time, the operation request is passed to the query conversion unit 1006, and the history storage unit 10
When it is the reference request of 2, the operation request is passed to the history information management unit 1005.

【0017】履歴情報管理部1005は、応用プログラム10
3からの操作要求がデータの参照である時は履歴管理情
報1002を参照し、該当する履歴蓄積部102中のデータベ
ース101の更新前情報を特定し、問合せ変換部1006に履
歴蓄積部102の操作要求を渡し、一方、応用プログラム1
03からの操作要求がデータベース101の更新である時
は、データベース101の更新前情報を履歴蓄積部102に蓄
積した後、更新前情報のキーと更新時刻情報を履歴情報
管理部1005が受け取り、履歴管理情報1002に保存する。
The history information management unit 1005 includes the application program 10
When the operation request from 3 is a data reference, the history management information 1002 is referred to, the pre-update information of the database 101 in the corresponding history storage unit 102 is specified, and the operation of the history storage unit 102 is instructed to the query conversion unit 1006. Handing the request, while application program 1
When the operation request from 03 is an update of the database 101, after storing the pre-update information of the database 101 in the history storage unit 102, the history information management unit 1005 receives the key of the pre-update information and the update time information, and It is stored in the management information 1002.

【0018】問合せ変換部1006は、問合せ解析部1004ま
たは履歴情報管理部1005から、取得するデータの存在位
置を受け取り、データベース101または履歴蓄積部102を
操作する命令を作成し、データアクセス部1007に渡す。
The query conversion unit 1006 receives the location of the data to be obtained from the query analysis unit 1004 or the history information management unit 1005, creates an instruction for operating the database 101 or the history storage unit 102, and sends the command to the data access unit 1007. hand over.

【0019】データアクセス部1007は問合せ変換部1006
で作成された命令を受け取り、データベース101と履歴
蓄積部102のうち応用プログラム103の操作要求に該当す
るデータを参照または更新し、結果を受け取る。応用プ
ログラム103の操作要求がデータの参照である場合に
は、データベース101または履歴蓄積部102からデータを
受け取り、データ解析部1008に渡し、応用プログラム10
3の操作要求がデータの更新である場合には、問合せ変
換部1006から更新前情報の取得命令と、更新前情報を履
歴蓄積部102へ保存する命令を受け取り、データベース1
01を操作し、更新前情報をデータベース101から受け取
り、更新前情報を履歴蓄積部102へ保存し、履歴蓄積部1
02のシステム情報を履歴管理部1005に渡し、データベー
ス101を更新し、データベース101の操作完了をデータ解
析部1008に通知する。
The data access unit 1007 is a query conversion unit 1006
Receiving or updating the data corresponding to the operation request of the application program 103 in the database 101 and the history storage unit 102, and receiving the result. When the operation request of the application program 103 is a reference to data, the data is received from the database 101 or the history storage unit 102, passed to the data analysis unit 1008, and
If the operation request in step 3 is an update of data, an instruction to acquire the pre-update information and an instruction to store the pre-update information in the history storage unit 102 are received from the query conversion unit 1006, and the
01, the pre-update information is received from the database 101, the pre-update information is stored in the history storage unit 102, and the history storage unit 1
The system information of 02 is passed to the history management unit 1005, the database 101 is updated, and the completion of the operation of the database 101 is notified to the data analysis unit 1008.

【0020】データ解析部1008はデータアクセス部1007
より、応用プログラム103の要求したデータまたはデー
タベース101の操作完了通知を受け取り、応用プログラ
ム103に渡す。
The data analysis unit 1008 includes a data access unit 1007
Thus, the application program 103 receives the data requested by the application program 103 or the operation completion notification of the database 101, and passes it to the application program 103.

【0021】図2および図3、図4は本実施例における
データ構造の具体例である。
FIGS. 2, 3 and 4 show specific examples of the data structure in this embodiment.

【0022】図2はデータベース101に格納するデータ
構造の具体例である。図2では顧客番号が全てのデータ
を唯一に識別できるキーである。
FIG. 2 shows a specific example of the data structure stored in the database 101. In FIG. 2, the customer number is a key that can uniquely identify all data.

【0023】図3は履歴蓄積部102に格納するデータ構
造の具体例である。履歴蓄積部102では、データベース1
01のデータに時刻情報を付加して、更新前情報を保存す
る。
FIG. 3 shows a specific example of the data structure stored in the history storage unit 102. In the history storage unit 102, the database 1
The time information is added to the data of 01, and the information before the update is stored.

【0024】この具体例では、時刻情報と顧客番号がキ
ーとなる。
In this specific example, the time information and the customer number are the keys.

【0025】図4は履歴管理情報1002の具体例である。
履歴管理情報1002は一件のデータにつき一つ存在し、キ
ーを根401とし、データベース101が更新された時刻を子
402として複数持つ。
FIG. 4 shows a specific example of the history management information 1002.
One piece of history management information 1002 exists for one piece of data, with the key as the root 401 and the time at which the database 101 was updated as a child.
Have multiple as 402.

【0026】図5で応用プログラム103からデータベー
ス101にデータの追加や変更、削除の操作要求がある場
合の動作を、図6で応用プログラム103からデータベー
ス101および履歴蓄積部102のデータを過去の時刻を指定
して参照する場合の動作をそれぞれ説明する。
FIG. 5 shows the operation when there is an operation request to add, change, or delete data from the application program 103 to the database 101. FIG. The operation in the case of specifying and referencing is described.

【0027】図5において、データベース管理システム
100の動作はブロック500から開始する。
In FIG. 5, a database management system
The operation of 100 starts at block 500.

【0028】動作ブロック501において、問合せ解析部1
004は応用プログラムが発したデータベース101及び履歴
蓄積部102の操作命令を受け取り、動作ブロック502に入
る。
In an operation block 501, the query analysis unit 1
004 receives an operation command of the database 101 and the history storage unit 102 issued by the application program, and enters an operation block 502.

【0029】動作ブロック502において、問合せ変換部1
007は、データベース101を更新するためのデータベース
101の操作命令と、データベースの更新状況を保存する
ための履歴蓄積部102の操作命令を生成しデータアクセ
ス部1007に渡し、動作ブロック503に入る。
In an operation block 502, the query conversion unit 1
007 is a database for updating database 101
An operation command of 101 and an operation command of the history storage unit 102 for storing the update status of the database are generated and passed to the data access unit 1007, and the operation block 503 is entered.

【0030】動作ブロック503において、応用プログラ
ム103による操作命令が追加の場合は動作ブロック504、
変更の場合は動作ブロック505、削除の場合は動作ブロ
ック506に入る。
In operation block 503, when an operation instruction by the application program 103 is added, operation block 504 is executed.
The operation block 505 is entered in the case of change, and the operation block 506 is entered in the case of deletion.

【0031】動作ブロック504において、データベース
アクセス部1007は問合せ変換部1006より受け取ったデー
タベース101の操作命令によりデータベース101にデータ
を追加し、履歴蓄積部102の操作命令により履歴蓄積部1
02にデータベース101の更新前情報を保存し、動作ブロ
ック507に入る。
In operation block 504, the database access unit 1007 adds data to the database 101 according to the operation command of the database 101 received from the query conversion unit 1006, and adds the data to the history storage unit 1 according to the operation command of the history storage unit 102.
The pre-update information of the database 101 is stored in 02, and the operation block 507 is entered.

【0032】動作ブロック505において、データベース
アクセス部1007は、問い合わせ変換部1006から受け取っ
たデータベース101の操作命令によりデータベース101の
更新前情報を取得し、その後データベース101の該当す
るデータを変更し、履歴蓄積部102の操作命令により履
歴蓄積部102にデータベース101の更新前情報を保存し、
動作ブロック507に入る。
In operation block 505, the database access unit 1007 obtains the pre-update information of the database 101 according to the operation command of the database 101 received from the query conversion unit 1006, and thereafter changes the corresponding data of the database 101 to store the history. The pre-update information of the database 101 is stored in the history storage unit 102 by the operation command of the unit 102,
The operation block 507 is entered.

【0033】動作ブロック506において、データベース
アクセス部1007は問合せ変換部1006より受け取ったデー
タベース101の操作命令によりデータベース101の更新前
情報を取得し、その後データベース101の該当するデー
タを削除し、履歴蓄積部102の操作命令により履歴蓄積
部102にデータベース101の更新前情報を保存し、動作ブ
ロック507に入る。
In an operation block 506, the database access unit 1007 obtains the pre-update information of the database 101 according to the operation command of the database 101 received from the query conversion unit 1006, deletes the corresponding data of the database 101, and deletes the corresponding data of the database 101. The pre-update information of the database 101 is stored in the history storage unit 102 in accordance with the operation command of 102, and the operation block 507 is entered.

【0034】動作ブロック507において、履歴情報管理
部1005は履歴蓄積部102に保存した更新前情報のキー値
と時刻情報を履歴管理情報1002に保存し、動作ブロック
508に入る。
In the operation block 507, the history information management unit 1005 stores the key value and the time information of the pre-update information stored in the history storage unit 102 in the history management information 1002,
Enter 508.

【0035】動作ブロック508において、データ解析部1
08は、履歴情報管理部1005よりデータの追加・変更・削
除処理が終了したことを受け、応用プログラム103にデ
ータベース操作要求の終了を通知し、動作500を終了す
る。
In an operation block 508, the data analysis unit 1
In step 08, in response to the end of the data addition / change / deletion processing from the history information management unit 1005, the application program 103 is notified of the end of the database operation request, and the operation 500 ends.

【0036】図6において、データベース管理システム
100の動作はブロック600から開始する。
In FIG. 6, a database management system
The operation of 100 starts at block 600.

【0037】動作ブロック601において、問合せ解析部1
004は応用プログラム103が発したデータベース101及び
履歴蓄積部102の操作命令を受け取り、データを参照し
たい時刻情報とデータベース101のキー値を取得し、履
歴情報管理部1005に時刻情報を渡し、動作ブロック602
に入る。
In the operation block 601, the query analysis unit 1
004 receives an operation instruction of the database 101 and the history storage unit 102 issued by the application program 103, obtains time information to refer to data and a key value of the database 101, passes time information to the history information management unit 1005, and 602
to go into.

【0038】動作ブロック602において、履歴情報管理
部1005は参照したい時刻とデータベース101のキー値を
元に、履歴管理情報1002を検索し、履歴蓄積部102の該
当する更新前情報のキー値を得て、問合せ変換部1006に
キー値を渡し、動作ブロック603に入る。
In an operation block 602, the history information management unit 1005 searches the history management information 1002 based on the time to be referred to and the key value of the database 101, and obtains the key value of the corresponding pre-update information of the history storage unit 102. Then, the key value is passed to the query conversion unit 1006, and the operation enters the operation block 603.

【0039】動作ブロック603において、問合せ変換部1
006は該当する更新前情報のキー値により履歴蓄積部102
から参照したい時刻のデータベース内容を検索するため
の命令を生成し、データアクセス部1007に渡し、動作ブ
ロック604に入る。
In the operation block 603, the query conversion unit 1
006 is the history storage unit 102 based on the key value of the corresponding pre-update information.
, An instruction for searching the contents of the database at the time to be referred to is generated, passed to the data access unit 1007, and the operation block 604 is entered.

【0040】動作ブロック604において、データアクセ
ス部1007は履歴蓄積部102を検索する命令により該当す
る履歴データを得て、データ解析部1008に渡し、動作ブ
ロック605に入る。
In the operation block 604, the data access unit 1007 obtains the corresponding history data according to the command for searching the history storage unit 102, passes it to the data analysis unit 1008, and enters the operation block 605.

【0041】動作ブロック605において、データ解析部1
008は必要な場合は型変換などを行い、データベース101
および履歴蓄積部102の参照結果を応用プログラム103に
返し、動作600を終了する。
In the operation block 605, the data analysis unit 1
008 performs type conversion etc. if necessary, and database 101
Then, the reference result of the history storage unit 102 is returned to the application program 103, and the operation 600 ends.

【0042】次に具体例を用いて、データを追加・変更
・削除する場合の、データベース101、履歴蓄積部102、
履歴管理情報1002の状態変化について説明する。
Next, using a specific example, a database 101, a history storage unit 102,
A state change of the history management information 1002 will be described.

【0043】図7はデータベース101の状態変化につい
て説明している。
FIG. 7 illustrates a state change of the database 101.

【0044】状態700はデータベース101の初期状態であ
る。
The state 700 is an initial state of the database 101.

【0045】状態701は”顧客番号=0003、顧客名=C、
残高=\1,000”であるデータが追加された状態を示して
いる。ここで状態702への遷移は4月1日に発生したとす
る。
The state 701 is "customer number = 0003, customer name = C,
This shows a state in which data with a balance = \ 1,000 "has been added. Here, it is assumed that the transition to the state 702 occurred on April 1.

【0046】状態702は”顧客番号=0003”のデータに
おいて残高が”¥5,000”に変更された状態を示してい
る。ここで状態703への遷移は4月3日に発生したとす
る。
A state 702 indicates a state in which the balance of the data of “customer number = 0003” has been changed to “$ 5,000”. Here, it is assumed that the transition to the state 703 occurred on April 3.

【0047】状態703は”顧客番号=0003”のデータが
削除された例を示している。ここで状態704への遷移は4
月8日に発生したとする。
The state 703 shows an example in which the data of “customer number = 0003” has been deleted. Here, the transition to state 704 is 4
Assume that it occurred on March 8.

【0048】図8は履歴蓄積部102の状態変化について
説明している。履歴蓄積部102にはデータベース101が更
新されるときに新規にデータを追加する。この例ではキ
ーは”顧客番号+時間”である。
FIG. 8 illustrates the state change of the history storage unit 102. New data is added to the history storage unit 102 when the database 101 is updated. In this example, the key is "customer number + time".

【0049】状態801は図7での状態701に対応し、”顧
客番号=0003、顧客名=C、残高=\1,000”がデータベ
ース101に追加されたことを反映し、データベース101の
更新前情報を履歴蓄積部102へ追加し、状態801以前に
は”顧客番号=003”のデータが存在しないことを示し
ている。
The state 801 corresponds to the state 701 in FIG. 7 and reflects that “customer number = 0003, customer name = C, balance = ¥ 1,000” has been added to the database 101, and the pre-update information of the database 101 Is added to the history storage unit 102, indicating that there is no data of “customer number = 003” before the state 801.

【0050】状態802は図7での状態702に対応し、”顧
客番号=003”のデータが変更されたことを反映し、状
態702の更新前情報を履歴蓄積部に保存したことを示し
ている。
The state 802 corresponds to the state 702 in FIG. 7 and reflects that the data of “customer number = 003” has been changed, and indicates that the pre-update information of the state 702 has been stored in the history storage unit. I have.

【0051】状態803は図7での状態703に対応し、”顧
客番号=004”のデータが削除されたことを反映し、状
態703の更新前情報を履歴蓄積部に保存したことを示し
ている。
The state 803 corresponds to the state 703 in FIG. 7 and indicates that the pre-update information of the state 703 has been stored in the history storage unit, reflecting that the data of “customer number = 004” has been deleted. I have.

【0052】図9は履歴管理情報1002の状態変化につい
て説明している。データベース101が更新され、履歴蓄積
部102の状態が変化すると連動し、履歴管理情報1002の
状態が変化する。
FIG. 9 illustrates a state change of the history management information 1002. When the database 101 is updated and the state of the history storage unit 102 changes, the state of the history management information 1002 changes in conjunction with the change.

【0053】状態901は図8での状態801に対応し、履歴
蓄積部102に更新前情報を保存したとき、その更新前情
報を特定するための時刻情報(更新時刻=4/1)を履歴
管理情報1002に保存している。
The state 901 corresponds to the state 801 in FIG. 8. When the pre-update information is stored in the history storage unit 102, the time information (update time = 4/1) for specifying the pre-update information is stored in the history. Stored in management information 1002.

【0054】状態902は図8での状態802に対応し、更新
前情報に対応する時刻情報(更新時刻=4/3)を履歴管
理情報1002に保存している。
A state 902 corresponds to the state 802 in FIG. 8, and time information (update time = 4/3) corresponding to the pre-update information is stored in the history management information 1002.

【0055】状態903は図8での状態803に対応し、更新
前情報に対応する時刻情報(更新時刻=4/8)を履歴管
理情報102に保存している。
A state 903 corresponds to the state 803 in FIG. 8, and time information (update time = 4/8) corresponding to the pre-update information is stored in the history management information 102.

【0056】以上、本発明の実施例を示したが、図1に
おいて管理定義1003で更新前情報の取得時間帯や取得頻
度を定義するなどして、必要に応じ保存する更新前情報
の量を制御するようにしてもよい。
The embodiment of the present invention has been described above. In FIG. 1, the amount of the pre-update information to be stored as necessary is defined by defining the acquisition time zone and the acquisition frequency of the pre-update information in the management definition 1003. You may make it control.

【0057】[0057]

【発明の効果】以上の説明のように、本発明により、デ
ータベース管理システムにおいて、データベースの更新
前の情報を保存しておくことで、過去の任意の時刻にお
けるデータベースの状態を復元して利用でき、ユーザの
望む時に過去の任意のデータベース状態を参照して処理
できるようになる。
As described above, according to the present invention, by storing information before updating a database in a database management system, the state of the database at an arbitrary time in the past can be restored and used. When the user desires, the processing can be performed by referring to any past database state.

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

【図1】本発明の実施の形態を示すシステムブロック
図。
FIG. 1 is a system block diagram showing an embodiment of the present invention.

【図2】図1におけるデータベースの保有データを具体
的に示す例を示す図。
FIG. 2 is a diagram showing an example that specifically shows data held in a database in FIG. 1;

【図3】図1における履歴蓄積部の保有データを具体的
に示す例を示す図。
FIG. 3 is a diagram showing an example specifically showing data held in a history accumulation unit in FIG. 1;

【図4】図1における履歴管理情報の保有データを具体
的に示す例を示す図。
FIG. 4 is a diagram showing an example specifically showing retained data of history management information in FIG. 1;

【図5】図1におけるデータベースの更新手順を示すフ
ローチャート。
FIG. 5 is a flowchart showing a database update procedure in FIG. 1;

【図6】図1における過去のデータベース状態の参照手
順を示すフローチャート。
FIG. 6 is a flowchart showing a reference procedure of a past database state in FIG. 1;

【図7】図1におけるデータベースの状態遷移を具体的
に示す例を示す図。
FIG. 7 is a diagram showing an example specifically illustrating a state transition of the database in FIG. 1;

【図8】図1における履歴蓄積部の状態遷移を具体的に
示す例を示す図。
FIG. 8 is a diagram showing an example specifically illustrating a state transition of a history accumulation unit in FIG. 1;

【図9】図1における履歴管理情報の状態遷移を具体的
に示す例を示す図。
FIG. 9 is a diagram showing an example specifically showing a state transition of history management information in FIG. 1;

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

100…データベース管理システム、101…データベース、
102…履歴蓄積部、103…応用プログラム、1001…ディク
ショナリ、1002…履歴管理情報、1003…管理定義、1004
…問合せ解析部、1005…履歴情報管理部、1006…問合せ
変換部、1007…データアクセス部、1008…データ解析
部、200…データベースの具体例、300…履歴蓄積部の具
体例、400…履歴管理情報の具体例。
100… Database management system, 101… Database,
102: history storage unit, 103: application program, 1001: dictionary, 1002: history management information, 1003: management definition, 1004
... Query analysis unit, 1005 ... History information management unit, 1006 ... Query conversion unit, 1007 ... Data access unit, 1008 ... Data analysis unit, 200 ... Specific example of database, 300 ... Specific example of history storage unit, 400 ... History management Specific example of information.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 データベースを更新する際に、ユーザの
特別な指示を必要とせず、更新前のデータベース情報を
蓄積し、現行データベースだけでなく、更新前情報につ
いても操作できる手段を持つことを特徴とするデータの
記憶装置。
When updating a database, there is provided a means for storing database information before update without requiring a user's special instruction and operating not only the current database but also information before update. Data storage device.
【請求項2】 前項の装置について、ユーザの指定した
過去の任意時刻のデータベース状態を更新前情報を用い
て復元し、活用できることを特徴とするデータの記憶方
法。
2. The data storage method according to claim 1, wherein the database state at a given time in the past specified by the user can be restored and used using the pre-update information.
JP34424999A 1999-12-03 1999-12-03 Method and device for storing data for referring to optional time state Pending JP2001159993A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP34424999A JP2001159993A (en) 1999-12-03 1999-12-03 Method and device for storing data for referring to optional time state

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP34424999A JP2001159993A (en) 1999-12-03 1999-12-03 Method and device for storing data for referring to optional time state

Publications (1)

Publication Number Publication Date
JP2001159993A true JP2001159993A (en) 2001-06-12

Family

ID=18367792

Family Applications (1)

Application Number Title Priority Date Filing Date
JP34424999A Pending JP2001159993A (en) 1999-12-03 1999-12-03 Method and device for storing data for referring to optional time state

Country Status (1)

Country Link
JP (1) JP2001159993A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7013317B2 (en) 2001-11-07 2006-03-14 Hitachi, Ltd. Method for backup and storage system
US7017019B2 (en) 2002-11-13 2006-03-21 Hitachi, Ltd. Method of managing generation of backup data and storage control device used therefor
JP2007022690A (en) * 2005-07-12 2007-02-01 Toshiba Elevator Co Ltd Elevator control device
JP2007507811A (en) * 2003-09-30 2007-03-29 ヴェリタス・オペレーティング・コーポレーション System and method for maintaining temporal data in data storage
EP1789879A2 (en) * 2004-08-24 2007-05-30 Revivio Inc. Recovering from storage transaction failures using checkpoints
CN100410944C (en) * 2005-02-04 2008-08-13 国际商业机器公司 Method, system and computer program product for backing up and recovering a database
JP2008210152A (en) * 2007-02-26 2008-09-11 Metadata Inc Data calculation method and apparatus, and program
JP2009193383A (en) * 2008-02-14 2009-08-27 Ubiquitous Entertainment Inc Content management server, content management program and content management method
JP2012181642A (en) * 2011-03-01 2012-09-20 Mitsubishi Electric Corp Database management device and information distribution system, and database management method and program
WO2013136442A1 (en) * 2012-03-13 2013-09-19 株式会社野村総合研究所 Data usage system, history management system for timed data and data processing system
KR101450101B1 (en) * 2012-12-28 2014-10-14 (주) 더존비즈온 Method and device for maintaining database for taxation and accounting

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7013317B2 (en) 2001-11-07 2006-03-14 Hitachi, Ltd. Method for backup and storage system
US7017019B2 (en) 2002-11-13 2006-03-21 Hitachi, Ltd. Method of managing generation of backup data and storage control device used therefor
US7117329B2 (en) 2002-11-13 2006-10-03 Hitachi, Ltd. Method of managing generation of backup data and storage control device used therefor
JP2007507811A (en) * 2003-09-30 2007-03-29 ヴェリタス・オペレーティング・コーポレーション System and method for maintaining temporal data in data storage
EP1789879A4 (en) * 2004-08-24 2010-04-28 Symantec Operating Corp Recovering from storage transaction failures using checkpoints
EP1789879A2 (en) * 2004-08-24 2007-05-30 Revivio Inc. Recovering from storage transaction failures using checkpoints
JP2008511082A (en) * 2004-08-24 2008-04-10 レヴィヴィオ,インク. Method to recover I / O error of storage processing using checkpoint
JP2011129135A (en) * 2004-08-24 2011-06-30 Revivio Inc Method for recovering from storage transaction i/o error using checkpoint
CN100410944C (en) * 2005-02-04 2008-08-13 国际商业机器公司 Method, system and computer program product for backing up and recovering a database
JP2007022690A (en) * 2005-07-12 2007-02-01 Toshiba Elevator Co Ltd Elevator control device
JP2008210152A (en) * 2007-02-26 2008-09-11 Metadata Inc Data calculation method and apparatus, and program
JP2009193383A (en) * 2008-02-14 2009-08-27 Ubiquitous Entertainment Inc Content management server, content management program and content management method
JP2012181642A (en) * 2011-03-01 2012-09-20 Mitsubishi Electric Corp Database management device and information distribution system, and database management method and program
WO2013136442A1 (en) * 2012-03-13 2013-09-19 株式会社野村総合研究所 Data usage system, history management system for timed data and data processing system
KR101450101B1 (en) * 2012-12-28 2014-10-14 (주) 더존비즈온 Method and device for maintaining database for taxation and accounting

Similar Documents

Publication Publication Date Title
JP3123025B2 (en) Cut and paste filter in data processing system
US7987204B2 (en) Multi-epoch method for saving and exporting file system events
JP4237354B2 (en) Transaction processing method and transaction processing system
US20030212960A1 (en) Computer-implemented system and method for report generation
JP2003140940A (en) Program for managing external storage device, recording medium, managing device, and computer system
US20120260264A1 (en) Client server system and method for executing an application utilizing distributed objects
CN112463450B (en) Incremental backup management method, system, electronic equipment and storage medium
EP1480130B1 (en) Method and apparatus for moving data between storage devices
US20050125458A1 (en) Chronological data record access
JP2001159993A (en) Method and device for storing data for referring to optional time state
JPH04232563A (en) Document controlling method
US20060136501A1 (en) Method and apparatus for saving and restoring parameter values set with user commands
JPH04125743A (en) Method for managing validity term of file by file name and its data processor
JP3497053B2 (en) Processing method in online database management system and online database management system
US20230350859A1 (en) Data retrieval from archived data storage
JP2000029956A (en) Workflow application executing device, and workflow application construction method
JPH10133934A (en) Distributed document managing system and program storing medium realizing it
JP3559571B2 (en) Data processing device and data processing method
JPH0447366A (en) Document retrieving method
JPH11175325A (en) Device and method for managing cooperation of attribute data between system development supporting tools
JP2507604B2 (en) Information processing device
JPH05241800A (en) Total control system for data base, file, and program
JPH06214850A (en) File retrieving device
CN113704270A (en) Method, system, equipment and medium for expanding capacity of self-increment key of SQL Server database
JPH052520A (en) Data base system

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060125

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060221

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060330

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20060417

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20060822