JPH0962554A - Quiescent point save generation system - Google Patents

Quiescent point save generation system

Info

Publication number
JPH0962554A
JPH0962554A JP7220439A JP22043995A JPH0962554A JP H0962554 A JPH0962554 A JP H0962554A JP 7220439 A JP7220439 A JP 7220439A JP 22043995 A JP22043995 A JP 22043995A JP H0962554 A JPH0962554 A JP H0962554A
Authority
JP
Japan
Prior art keywords
save
journal
request
update
saving
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
JP7220439A
Other languages
Japanese (ja)
Inventor
Tetsuya Natori
哲也 名取
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 JP7220439A priority Critical patent/JPH0962554A/en
Publication of JPH0962554A publication Critical patent/JPH0962554A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To eliminate a need of preserving the update contents by generating a quiescent point save, which reflects contents of update performed during saving, just after saving in the case of saving a database in parallel during database update execution. SOLUTION: When a request for saving during execution is issued from a terminal equipment 4, a means 5 for saving during execution requests a data management means 1 to start a journal and saves a data base 3 in a save 6 and requests the data management means 1 to terminal the journal and requests a quiescent point saving means 8 to save a quiescent point. At this time, the quiescent point saving means 8 takes records as input from a journal 7 and sorts inputted records in the descending order of update times and in the ascending order of record numbers and matches them with the save 6 to generate the state of the data base at a point of time, when consistency is secured, as a quiescent point save 9.

Description

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

【0001】[0001]

発明の属する技術分野】本発明は、静止点セーブ作成
方式に関し、特に、データ更新実行中の静止点セーブ作
成方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a stationary point save creation method, and more particularly to a stationary point save creation method during data update.

【0002】[0002]

【従来の技術】従来、この種のセーブ作成方式は、旧バ
ックアップファイルと更新ログファイルを用いて最新バ
ックアップを生成することにより、該当ファイルを参照
している業務の停止をなくすことを目的として用いられ
ている。
2. Description of the Related Art Conventionally, this type of save creation method has been used for the purpose of eliminating the suspension of the work referring to the file by creating the latest backup using the old backup file and the update log file. Has been.

【0003】たとえば、特開平02―039252号公
報には、バックアップ生成手段と、利用者指示入力手段
と、更新ログファイルと、バックアップ情報抽出手段
と、旧バックアップファイルと、更新情報抽出手段と、
更新情報ファイルと、バックアップ情報編集手段と、新
バックアップファイルを用いることにより、利用者指示
入力手段から更新情報抽出指示を入力することによって
該当ファイルを参照している業務を停止することなく新
バックアップファイルに最新のバックアップ情報を出力
する技術が記載されている。
For example, Japanese Patent Laid-Open No. 02-039252 discloses a backup generation means, a user instruction input means, an update log file, a backup information extraction means, an old backup file, and an update information extraction means.
By using the update information file, the backup information editing means, and the new backup file, by inputting the update information extraction instruction from the user instruction input means, the new backup file can be executed without stopping the work referring to the file. Describes the technology to output the latest backup information.

【0004】[0004]

【発明が解決しようとする課題】データベース更新実行
中に並行してデータベースのセーブを行った場合、この
セーブからリストアを行うとデータベース中に時間的な
ずれを含んでしまう。この結果、セーブ中に行われた更
新処理に関し、更新済みの部分と更新済みでない部分と
がデータベース中に存在することとなり、データベース
全体の参照の整合性が保証されなくなる。
When a database is saved in parallel while the database is being updated, a time lag is included in the database if the database is restored from this save. As a result, regarding the update processing performed during the save, the updated part and the unupdated part exist in the database, and the reference consistency of the entire database cannot be guaranteed.

【0005】この場合、参照の整合性の保証されたひと
つの静止点でのデータベースの状態を得るためには、
課題がある。 (1)実行中に行われた更新内容をジャーナルとして保
存しておく必要があり、運用性に問題がある。 (2)セーブからリストアした後にセーブ実行中に行わ
れた更新内容を反映する必要があり、運用性および操作
性に問題がある。
[0005] For this case, to obtain the status of the database at a stationary point of the integrity of the guaranteed one reference, the following
There are challenges . (1) updates that have been made during the execution must be saved as a journal, there is a problem in operability. (2) It is necessary to reflect the contents of the update made during the execution of the save after restoring from the save, which causes a problem in operability and operability.

【0006】本発明の目的は、セーブ実行直後に、セー
ブ実行中に行われた更新内容を反映したセーブを作成し
ておくことにより、実行中に行われた更新内容をジャー
ナルとして保存しておく必要をなくし、セーブからリス
トアした後にセーブ実行中に行われた更新内容を反映す
る必要をなくすことにある
An object of the present invention is to save the update contents executed during execution as a journal by creating a save reflecting the update contents executed during the save execution immediately after executing the save. eliminating the need is to eliminate the need to reflect the updates that were made during the save execution after restoring from the save.

【0007】[0007]

【課題を解決するための手段】本発明の静止点セーブ作
成方式は、アプリケーションプログラムからデータ更新
要求が行われた場合に更新要求内容を更新要求内容バッ
ファに保存し、アプリケーションプログラムからデータ
コミット要求が行われた場合に同一アプリケーションプ
ログラムの更新要求内容を前記更新要求内容バッファか
らデータベースに移送すると同時にジャーナル開始中で
あれば更新されたレコードの内容と更新レコード番号と
更新処理を行った時刻とをジャーナルに格納し、実行中
セーブ手段からジャーナル開始要求が行われた場合に
前記実行中セーブ手段からジャーナル終了要求が行われ
るまてをジャーナル開始中とするデータ管理手段と、端
末装置から実行中セーブ要求が行われた場合に、前記デ
ータ管理手段に対するジャーナル開始要求と、セーブへ
のデータベースのセーブと、前記データ管理手段に対す
るジャーナル終了要求と、静止点セーブ手段に対する静
止点セーブ要求とを行う実行中セーブ手段と、前記実行
中セーブ手段から静止点セーブ要求が行われたときに、
ジャーナルを入力し、入力したレコードを更新時刻に対
し降順に、レコード番号に対し昇順にソートして並べ変
え、これとセーブとを突き合わせることにより整合性の
保証されたひとつの静止点でのデータベースの状態を静
止点セーブとして作成する静止点セーブ手段とを具備す
ることを特徴とする。
According to the still point save creation method of the present invention, when a data update request is issued from an application program, the update request content is saved in an update request content buffer, and the application program sends a data commit request. journal and time when an update request content of the same application program performing the update request contents when transferring from the buffer to the database with the contents of the record that has been updated if in the journal started simultaneously with the update record number updating process when done When a journal start request is made from the save means during execution,
And data management means for the journal starting in Wait journal end request is made from the running saving unit, when executing the save request is made from the terminal device, and a journal start request for the data management unit, save To the data management means, a journal end request to the data management means, and a quiesce point save request to the quiesce point saving means, and a quiesce point save request from the running save means. To
Enter a journal, sort the records entered in descending order of the update time and sort them in ascending order of the record number, and compare them with a save. And a stationary point saving means for creating the above state as a stationary point saving.

【0008】[0008]

発明の実施の形態次に、本発明の実施の形態につい
て図面を参照して説明する。
BEST MODE FOR CARRYING OUT THE INVENTION Next, a description with reference to the drawings, embodiments of the present invention.

【0009】図1は本発明の一実施の形態の構成を示す
ブロック図である。この静止点セーブ作成方式は、デー
タ管理手段1と、更新要求内容バッファ2と、データベ
ース3と、端末装置4と、実行中セーブ手段5と、セー
ブ6と、ジャーナル7と、静止点セーブ手段8と、静止
点セーブ9と、アプリケーションプログラム11,1
2,…,1nから構成されている。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. This quiesce point save creation method is a data management means 1, an update request content buffer 2, a database 3, a terminal device 4, a running save means 5, a save 6, a journal 7, and a quiesce point saving means 8. And still point save 9 and application programs 11 and 1
2, ..., and a 1n.

【0010】データ管理手段1は、アプリケーションプ
ログラム11〜1nからデータ更新要求を受けた場合
に、更新要求内容を更新要求内容バッファ2に保存す
る。また、アプリケーションプログラム11〜1nから
データコミット要求があった場合に、同一アプリケーシ
ョンプログラムの更新要求内容を更新要求内容バッファ
2から読み込んでデータベース3に書き込み、同一アプ
リケーションプログラムからの更新要求内容を更新要求
内容バッファ2から削除し、ジャーナル開始中であれ
ば、更新された内容と、更新レコード番号と、更新処理
を行った時刻を格納する。また実行中セーブ手段5から
ジャーナル開始要求が行われてからジャーナル終了要求
が行われるまでをジャーナル開始中とする。
When the data management means 1 receives a data update request from the application programs 11 to 1n, it stores the update request content in the update request content buffer 2. Further, when there is a data commit request from the application programs 11 to 1n, the update request content of the same application program is read from the update request content buffer 2 and written in the database 3, and the update request content from the same application program is updated request content. If it is deleted from the buffer 2 and the journal is being started, the updated contents, the update record number, and the time when the update process is performed are stored. Further, the period from when the journal start request is issued by the running save means 5 to when the journal end request is issued is referred to as the journal start.

【0011】実行中セーブ手段5は、端末装置4から実
行中セーブ要求が行われた場合に、データ管理手段1に
対するジャーナル開始要求と、セーブ6へのデータベー
ス3のセーブと、データ管理手段に対するジャーナル終
了要求と、静止点セーブ手段8に対する静止点セーブ要
求を行う。
The executing save means 5 is a journal start request to the data managing means 1, a saving of the database 3 to the save 6, and a journal to the data managing means when the executing save request is issued from the terminal device 4. A termination request and a stationary point saving request to the stationary point saving means 8 are issued.

【0012】静止点セーブ手段8は、実行中セーブ手段
5から静止点セーブ要求が行われたときに、ジャーナル
7を入し、入力したレコードを更新時刻に対し降順に、
レコード番号に対し昇順にソートして並べ変え、これと
セーブ6とを突き合わせる。このとき、レコード番号が
1回以上出現したレコードについては更新時刻の大きい
レコードだけ突き合わせる。両者に同一レコードのデー
タが存在するときはジャーナル7のレコードを、両者に
同一レコードのデータが存在しないときはセーブ6のレ
コードを、静止点セーブ9に書き込む。
The quiesce point saving means 8 enters the journal 7 when the quiesce point saving request is issued from the executing save means 5, and inputs the entered records in descending order with respect to the update time.
Sort and rearrange the record numbers in ascending order, and match this with save 6. At this time, with respect to the record in which the record number appears once or more, only the record having a large update time is matched. When the data of the same record exists in both, the record of the journal 7 is written in the stationary point save 9 when the data of the same record does not exist in both.

【0013】次に、このように構成された本
実施の形態の動作について説明する。
Next, a book constructed in this way
The operation of the embodiment will be described.

【0014】図2は初期状態である時刻t0,時刻t
1,時刻t2,時刻t3(t1<t2<t3)における
データベースの状態を示す。初期状態のデータベースの
レコード番号nのレコード番号の内容をr(n,0)と
する。時刻t1にアプリケーションプログラムm1から
レコード番号が1,2,5のレコードに関するデータ更
新要求およびデータコミット要求が行われ、レコードの
内容がそれぞれr(1,t1),r(2,t1),r
(5,t1)となったとする。また、時刻t2にアプリ
ケーションプログラムm2からレコード番号が2,3,
6のレコード番号に関するデータ更新要求およびデータ
コミット要求が行われ、レコードの内容がそれぞれr
(2,t2),r(3,t2),r(6,t2)となっ
たとする。また、時刻t3にアプリケーションプログラ
ムm3からレコード番号が2,4,7のレコードに関す
るデータ更新要求およびデータコミット要求が行われ、
レコードの内容がそれぞれr(2,t3),r(4,t
3),r(7,t3)となったとする。
FIG. 2 shows the initial state at time t0 and time t.
1, the state of the database at time t2 and time t3 (t1 <t2 <t3) is shown. The content of the record number of the record number n in the database in the initial state is r (n, 0). At time t1, the application program m1 makes a data update request and a data commit request for the records having record numbers 1, 2, and 5, and the contents of the records are r (1, t1), r (2, t1), and r, respectively.
It is assumed that it becomes (5, t1). Further, at time t2, the record numbers from the application program m2 are 2, 3,
A data update request and a data commit request regarding the record number of 6 are made, and the contents of the record are r
It is assumed that (2, t2), r (3, t2) and r (6, t2) are obtained. Further, at time t3, the application program m3 makes a data update request and a data commit request for the records with record numbers 2, 4, and 7,
The contents of the record are r (2, t3), r (4, t
3), r (7, t3).

【0015】時刻t0に端末装置4から実行中セーブ要
求を行った場合に、実行中セーブ手段5は、のように
動作する。 (1)データ管理手段1に対してジャーナル開始要求を
行う。 (2)セーブ6へのデータベース3のセーブを行う。 (3)データ管理手段1に対してジャーナル終了要求を
行う。 (4)静止点セーブ手段8に対して静止点セーブ要求を
行う。
When a running save request is issued from the terminal device 4 at time t0, the running save means 5 operates as follows . (1) A journal start request is issued to the data management means 1. (2) Save the database 3 to the save 6. (3) A journal end request is issued to the data management means 1. (4) A stationary point saving request is issued to the stationary point saving means 8.

【0016】この結果、例えば、上記の(1)がt0
に、(2)が時刻t0から時刻t2’に、(3)が時刻
t2’に、(4)が時刻t3に行われた場合(t0<t
1<t2<t2’<t3)に、時刻t2’にセーブ6お
よびジャーナル7の内容は図3のようになったとする。
As a result, for example, the above (1) is t0.
When (2) is performed from time t0 to time t2 ′ , (3) is performed at time t2 ′, and (4) is performed at time t3 (t0 <t
1 <t2 <t2 '<t3), the contents of the save 6 and the journal 7 are as shown in FIG. 3 at time t2'.

【0017】実行中セーブ手段5から静止点セーブ要求
があった場合に、静止点セーブ手段8は、のように動
作する。 (1)入力したレコードを更新時刻に対し降順に、レコ
ード番号に対して昇順にソートしてならべかえる。この
結果、静止点セーブ手段8は内部的に図4のソート済み
ジャーナル情報のデータを有することとなる。 (2)セーブ6とソート済みジャーナル情報とを突き合
われる。ソート済みジャーナル情報に関して、レコード
番号が1回以上出現したレコードについては更新時刻の
大きいレコードについてだけ突き合わせる。両者に同一
レコードのデータが存在するときばジャーナル7のレコ
ードを、両者に同一レコードのデータが存在しないとき
はセーブ6のレコードを、静止点セーブ9に書き込む。
When there is a stationary point save request from the executing save means 5, the stationary point save means 8 operates as follows . (1) Sort the input records in descending order of update time and in ascending order of record numbers. As a result, the quiesce point saving means 8 internally has the data of the sorted journal information of FIG. (2) The save 6 and the sorted journal information are matched. With respect to the sorted journal information, only records having a large update time are matched with records in which the record number appears once or more. If the data of the same record exists in both, the record of the journal 7 is written, and if the data of the same record does not exist in both, the record of save 6 is written in the quiesce point save 9.

【0018】この結果、静止点セーブ9はt2でのデー
タベースの状態となり、静止点セーブが取得でき
[0018] As a result, the still point save 9 becomes the state of the database at t2, the still point save by Ru can get.

【0019】[0019]

【発明の効果】以上説明したことから明らかなように、
本発明によれば、セーブ実行直後に、セーブ実行中に行
われた更新内容を反映した静止点セーブを作成しておく
ことにより、実行中に行われた更新内容をジャーナルと
して保存しておく必要をなくし、セーブからリストアし
た後にセーブ実行中に行われた更新内容を反映する必要
をなくすことができ、信頼性および運用性が向上する
As is apparent from the above description ,
According to the present invention, it is necessary to save the update contents made during execution as a journal by creating the quiesce point save that reflects the update contents made during the save execution immediately after executing the save. the lost, it is possible to eliminate the need to reflect the updates that were made during the save execution after restoring from the save, is to improve reliability and operability.

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

【図1】本発明の一実施の形態のブロック図である。FIG. 1 is a block diagram of an embodiment of the present invention.

【図2】図1の実施の形態おける時刻ごとのデータベ
ースの状態を示す図である。
2 is a diagram showing a state of the database for each timekeeping to the embodiment of FIG.

【図3】図1の実施の形態における時刻t2’における
セーブおよびジャーナルの内容を示す図である。
FIG. 3 is a diagram showing contents of save and journal at time t2 ′ in the embodiment of FIG.

【図4】図1の実施の形態における静止点セーブ手段に
よるジャーナルのソートを示す図である。
4 is a diagram showing sorting of journals by the quiesce point saving means in the embodiment of FIG. 1. FIG.

【図5】図1の実施の形態における静止点セーブ手段に
よるセーブとジャーナルの突き合わせを示す図である。
FIG. 5 is a diagram showing saving by a stationary point saving means and journal matching in the embodiment of FIG.

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

1 データ管理手段 2 更新要求内容バッファ 3 データベース 4 端末装置 5 実行中セーブ手段 6 セーブ 7 ジャーナル 8 静止点セーブ手段 9 静止点セーブ 1 data management means 2 update request content buffer 3 database 4 terminal device 5 running save means 6 save 7 journal 8 quiesce point save means 9 quiesce point save

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 アプリケーションプログラムからデータ
更新要求が行われた場合に更新要求内容を更新要求内容
バッファに保存し、アプリケーションプログラムからデ
ータコミット要求が行われた場合に同一アプリケーショ
ンプログラムの更新要求内容を前記更新要求内容バッフ
ァからデータベースに移送すると同時にジャーナル開始
中であれば更新されたレコードの内容と更新レコード番
号と更新処理を行った時刻とをジャーナルに格納し、実
行中セーブ手段からジャーナル開始要求が行われた場合
前記実行中セーブ手段からジャーナル終了要求が行わ
れるまてをジャーナル開始中とするデータ管理手段と、 端末装置から実行中セーブ要求が行われた場合に、前記
データ管理手段に対するジャーナル開始要求と、セーブ
へのデータベースのセーブと、前記データ管理手段に対
するジャーナル終了要求と、静止点セーブ手段に対する
静止点セーブ要求とを行う実行中セーブ手段と、 前記実行中セーブ手段から静止点セーブ要求が行われた
ときに、ジャーナルを入力し、入力したレコードを更新
時刻に対し降順に、レコード番号に対し昇順にソートし
て並べ変え、これとセーブとを突き合わせることにより
整合性の保証されたひとつの静止点でのデータベースの
状態を静止点セーブとして作成する静止点セーブ手段と
を具備することを特徴とする静止点セーブ作成方式。
1. A stored when the data update request from the application program is performed an update request content update request content buffer, the update request contents of the same application program when the data commit request is made from the application program When the journal is being started at the same time as the journal is being transferred from the update request content buffer, the contents of the updated record, the update record number, and the time at which the update process was performed are stored in the journal, and the journal start request is sent from the running save means. and data management means for the Wait cracking journal end request from said executing saving means if it is performed as in starting a journal, when executing the save request is made from the terminal device, starts the journal for said data management means Database to request and save Save, a journal end request to the data management means, a quiesce point save request to the quiesce point save means, a running save means, and a journal when the quiesce point save request is issued from the running save means The state of the database at one quiescent point where the consistency is guaranteed by entering and sorting the entered records in descending order of the update time and ascending order of the record number, and matching this with save. And a static point saving means for creating a static point save as a static point save.
JP7220439A 1995-08-29 1995-08-29 Quiescent point save generation system Pending JPH0962554A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7220439A JPH0962554A (en) 1995-08-29 1995-08-29 Quiescent point save generation system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7220439A JPH0962554A (en) 1995-08-29 1995-08-29 Quiescent point save generation system

Publications (1)

Publication Number Publication Date
JPH0962554A true JPH0962554A (en) 1997-03-07

Family

ID=16751133

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7220439A Pending JPH0962554A (en) 1995-08-29 1995-08-29 Quiescent point save generation system

Country Status (1)

Country Link
JP (1) JPH0962554A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000339209A (en) * 1999-05-31 2000-12-08 Ntt Data Corp Online system, static ledger creating method and recording medium
WO2005096155A1 (en) * 2004-04-01 2005-10-13 Nippon Telegraph And Telephone Corporation Multiplex database system
JP2009522638A (en) * 2005-12-30 2009-06-11 マイクロソフト コーポレーション Managing state with delta pager

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000339209A (en) * 1999-05-31 2000-12-08 Ntt Data Corp Online system, static ledger creating method and recording medium
WO2005096155A1 (en) * 2004-04-01 2005-10-13 Nippon Telegraph And Telephone Corporation Multiplex database system
JP2009522638A (en) * 2005-12-30 2009-06-11 マイクロソフト コーポレーション Managing state with delta pager

Similar Documents

Publication Publication Date Title
JP2993528B2 (en) Text management and restoration method
JP2001306372A (en) Method for managing document and storage medium storing program for executing the method
JPH0962554A (en) Quiescent point save generation system
JPH0764843A (en) Distributed data base update method
JPH1153239A (en) Rollback processing method for database and recording medium recorded with procedure thereof
JPH0512087A (en) System for outputting pre-updating journal
JPH05298173A (en) Distributed file synchronizing and updating system
JP2003296349A (en) Data retrieval device and update method by server
JPH01140353A (en) System for maintaining data in data base
JPH03204741A (en) File recovery system
KR950009431B1 (en) The inquiry window treatment method ina real-time database management system
JPH07129452A (en) Exclusive control system
JPH01180651A (en) Commit synchronization control system for report file output
JPH11238010A (en) Management device/method for data base and recording medium recording the method
JPH064167A (en) Restoring system for fault of disk medium
JPH05241971A (en) Restoring method for data on memory
JPH05127965A (en) Design information restoring method
JPS61151754A (en) Data base recovery processing system
JPH0240740A (en) File update system
JPH06214855A (en) System for acquiring page before updateing
JPH05173863A (en) Data base recovery control system
JPH09244907A (en) Data restoration system
JPH08235044A (en) Journal retrieval systm
JPH08147203A (en) Transaction processing system
JPH11282738A (en) Device and method for file management

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19990126