JPH0447344A - History journal recording system - Google Patents
History journal recording systemInfo
- Publication number
- JPH0447344A JPH0447344A JP2153739A JP15373990A JPH0447344A JP H0447344 A JPH0447344 A JP H0447344A JP 2153739 A JP2153739 A JP 2153739A JP 15373990 A JP15373990 A JP 15373990A JP H0447344 A JPH0447344 A JP H0447344A
- Authority
- JP
- Japan
- Prior art keywords
- information
- recording area
- update
- journal
- position information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 claims description 9
- 238000006243 chemical reaction Methods 0.000 claims description 7
- 238000004904 shortening Methods 0.000 abstract description 3
- 238000011084 recovery Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 230000010365 information processing Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 1
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、情報処理システムのデータ更新時における媒
体の障害からのデータ復旧情報の記録に関し、特にその
効率的記録及び復旧時間の短縮を可能としたヒストリジ
ャーナル記録方式に関する。[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to the recording of data recovery information from a media failure when updating data in an information processing system, and in particular enables efficient recording and shortening of recovery time. Regarding the history journal recording method.
媒体障害からのデータベース又はファイルの復旧は、障
害時の媒体からでは、その復旧が不可能であるため、第
4図に示すようにデータ更新処理の直前のデータベース
等のセーブ4−3から退避時点のデータベース等を復旧
し、その後データ更新処理中に記録したヒストリジャー
ナル4−2を用いて媒体障害が発生した直前の状m4−
5に戻す処理が行われる。Since it is impossible to recover a database or file from a media failure from the medium at the time of the failure, as shown in Figure 4, the database or file must be saved from the save 4-3 immediately before the data update process. , and then use the history journal 4-2 recorded during the data update process to recover the state immediately before the media failure occurred m4-
Processing to return to 5 is performed.
従来、このヒストリジャーナルへの記録方式は、更新が
行われたデータベース等の位置情報及び更新後の内容を
、新たな更新が発生する毎に全て順次、ヒストリジャー
ナルへ追加記録を行っていた。Conventionally, in this history journal recording method, location information of updated databases, etc., and updated contents are additionally recorded in the history journal in sequence every time a new update occurs.
従来のヒストリジャーナルの記録方式では、更新の都度
、更新後情報を記録しているだけであるため、更新デー
2が非常に多い場合、ヒストリジャーナルが大量に必要
となるという欠点があるまた、障害復旧の際、その大量
のヒストリジャーナルの初めから終りまでの全更新情報
を用いて復旧処理を行うなめ、復旧までに長時間を要す
るという欠点がある。The conventional history journal recording method only records the updated information each time there is an update, so if there are a large number of updated data 2, a large amount of history journals will be required. At the time of recovery, all update information from the beginning to the end of the large amount of history journals is used for the recovery process, which has the disadvantage that it takes a long time to recover.
本発明のヒスリジャーナル記録方式の構成は、データベ
ースやファイル更新情報を記録領域に順次記録する順次
記録部と、前記記録領域を記録された情報量に基づいて
別の記録領域に切り換える記録領域変換指示部と、前記
記録領域に記録された前記データベースやファイル更新
情報を検索して最終有効情報のみを求める最終有効情報
検索部と、前記で得られた最終有効情報をヒストリジャ
ーナルへ記録するジャーナル記録部と、入力された前記
データベースや更新情報の量及びヒストリジャーナルの
記録量を出力する情報出力部とを有することを特徴とす
る。The structure of the history journal recording method of the present invention includes a sequential recording section that sequentially records database and file update information in a recording area, and a recording area conversion that switches the recording area to another recording area based on the amount of recorded information. an instruction unit, a final valid information search unit that searches the database and file update information recorded in the recording area to obtain only the final valid information, and a journal record that records the final valid information obtained in the above into a history journal. and an information output unit that outputs the amount of input database and update information and the amount of history journal recording.
〔実施例〕 次に、本発明について図面を9照して説明する。〔Example〕 Next, the present invention will be explained with reference to the drawings.
第1図は、本発明の一実施例のシステム構成図である。FIG. 1 is a system configuration diagram of an embodiment of the present invention.
図中、順次記録部1−3は、更新プログラム1−1がデ
ータベース1−2を更新した内容をデータベース1−2
の更新位置情報と共に、記録領域(A)1−5又は記録
領域(B> 1−6に順次記録を行うものである。In the figure, the sequential recording unit 1-3 records the contents updated by the update program 1-1 in the database 1-2.
The updated position information is sequentially recorded in the recording area (A) 1-5 or the recording area (B> 1-6).
記録領域変換指示部1−4は、記録領域(A)1−5又
は記録領域(B)1−6に記録されている更新情報が記
録領域中のある割合を占めた場合、その出力を一方の記
録領域に切り換えるよう指示を行い、さらに、その規準
値に達した記録領域に対して最終有効情報検索部の実行
を指示する。When the update information recorded in the recording area (A) 1-5 or the recording area (B) 1-6 occupies a certain percentage of the recording area, the recording area conversion instruction unit 1-4 converts the output to one side. It instructs to switch to the recording area of 1, and further instructs execution of the final valid information search unit for the recording area that has reached the standard value.
最終有効情報検索部1−8は、上記記録領域に対して、
その記録領域におけるデータベースの位置情報毎の最終
的な更新結果を得、それをジャーナル記録部1〜9に出
力するものである。The final valid information search unit 1-8 performs the following for the recording area:
The final update result for each position information of the database in the recording area is obtained and outputted to the journal recording units 1 to 9.
ジャーナル記録部1−9は、上記で得られた最終更新情
報をヒストリジャーナル1−12へ出力するものである
。The journal recording unit 1-9 outputs the last update information obtained above to the history journal 1-12.
情報出力部1−10は、入力された更新情報の量及びヒ
ストリジャーナル1−12への記録量をログファイル1
−11に出力するものである。The information output unit 1-10 records the amount of input update information and the amount recorded in the history journal 1-12 in a log file 1.
-11.
次に、第2図に基づき動作を説明する。Next, the operation will be explained based on FIG.
第2図は、本発明の一実施例におけるヒストリジャーナ
ル記録動作を説明するための図である。FIG. 2 is a diagram for explaining the history journal recording operation in one embodiment of the present invention.
更新プログラム1−1がデータベース1−2を更新する
と、その更新情報は順次記録部1−3に入力され、デー
タベース1〜2の更新位置情報及び更新内容が、記録領
域(A)1−5に順次記録される。When the update program 1-1 updates the database 1-2, the updated information is sequentially input to the recording unit 1-3, and the updated position information and updated contents of the databases 1-2 are stored in the recording area (A) 1-5. Recorded sequentially.
■記録領域(A)1−5に記録された更新情報が、その
記録領域中のある定められた規準を占めた場合、記録領
域変換指示部1−4は、その状態を検出し、記録先を記
録領域(A)1−5から記録領域(B)1−6に変換す
るよう順次記録部13に指示を行う。さらに、記録領域
変換指示部1−4は、記録済となった記録領域(A)1
−5を検索させるため、最終有効情報検索部1−8を起
動させる。■If the update information recorded in the recording area (A) 1-5 occupies a certain standard in that recording area, the recording area conversion instruction unit 1-4 detects this state and The recording section 13 is sequentially instructed to convert from the recording area (A) 1-5 to the recording area (B) 1-6. Furthermore, the recording area conversion instruction unit 1-4 converts the recorded recording area (A) 1
-5, the final valid information search unit 1-8 is activated.
■最終有効情報検索部1−8は、記録領域(A)1−5
の情報を検索し、その記録領域(A)15内でのデータ
ベース位置情報毎の最終的な更新結果を求め、ジャーナ
ル記録部1−9を通じてヒストリジャーナル1−10へ
出力する。さらに、情報出力部1−1Oは、入力された
更新情報件数及びジャーナル出力件数を、最終有効情報
検索部1−8及びジャーナル出力部1−9より入力し、
ログファイルへ出力する。■The final valid information search unit 1-8 is located in the recording area (A) 1-5.
The final update result for each database position information within the recording area (A) 15 is obtained and output to the history journal 1-10 through the journal recording section 1-9. Further, the information output unit 1-1O inputs the input number of update information items and the number of journal output items from the final valid information search unit 1-8 and the journal output unit 1-9,
Output to log file.
■さらに、記録領域(B)1−6に順次記録された更新
情報が、その記録領域中の定められた割合を占めた場合
、■と同様に記録領域変換指示部1−4により記録先を
再び記録領域(A>1−5に切り換える。そのとき、前
回記録領域(A)15に記録された情報は保存せず、新
情報のみを順次記録部1−3により記録する。■Furthermore, when the update information sequentially recorded in the recording area (B) 1-6 occupies a predetermined proportion of the recording area, the recording destination is changed by the recording area conversion instruction unit 1-4 in the same way as in ■. The recording area (A>1-5) is switched again. At this time, the information recorded in the previous recording area (A) 15 is not saved, and only new information is sequentially recorded by the recording section 1-3.
■前回の■と同様に、最終情報検索部1−8は最終的な
更新結果を記録領域(B)1−6により求め、ジャーナ
ル記録部1−9によって、前回■で記録された最終更新
情報に続き、記録する。さらに情報出力部1−10は、
入力された更新情報件数及びジャーナル出力件数を最終
有効情報検索部1−8及びジャーナル出力部1−9より
入力し、ログファイルへ出力する。■Similar to the previous ■, the final information search unit 1-8 obtains the final update result from the recording area (B) 1-6, and the journal recording unit 1-9 searches for the final update information recorded in the previous ■. Then record. Furthermore, the information output unit 1-10
The input number of update information items and the number of journal output items are input from the final valid information search unit 1-8 and journal output unit 1-9, and output to the log file.
第3図は本発明の一実施例における最終有効情報検索時
の動作を説明するための図である。FIG. 3 is a diagram for explaining the operation at the time of retrieving final valid information in one embodiment of the present invention.
(1)記録領域3−1に記録された最後の更新位置情報
3−1−2を読み、位置情報ファイル33を検索し、そ
の位置情報が存在しない時は、位置情報ファイル3−3
に更新位置情報3−1−2を格納し、さらにヒストリジ
ャーナル3−2へ更新位置情報3−1−2及び更新後内
容3−1−1を記録する。(1) Read the last updated position information 3-1-2 recorded in the recording area 3-1, search the position information file 33, and if the position information does not exist, the position information file 3-3
The updated location information 3-1-2 is stored in the history journal 3-2, and the updated location information 3-1-2 and the updated content 3-1-1 are further recorded in the history journal 3-2.
(2)次に、記録領域3−1に記録された最後から2番
目の更新位置情報3−1−4を読み、位置情報ファイル
3−3を検索するが、この場合、その位置情報と同じ情
報が既に格納されるが、この場合、その位置情報と同じ
情報が既に格納されているため、この更新情報は、ヒス
トリジャーナル3−2へは出力せず、記録領域3−1の
最後から3番目の更新情報の処理を行う。(2) Next, read the second to last updated position information 3-1-4 recorded in the recording area 3-1 and search for the position information file 3-3, but in this case, the same position information as that The information has already been stored, but in this case, since the same information as the position information has already been stored, this update information is not output to the history journal 3-2, but is stored three times from the end of the recording area 3-1. Process the update information.
このように、記録領域3−1を最後の更新情報から順に
読み、既に出力した位置情報と同じ更新情報を無視しな
がら処理を行うことで、位置情報毎に最新の最終有効情
報が得られる。In this way, by reading the recording area 3-1 in order from the last update information and processing while ignoring the same update information as the position information that has already been output, the latest final valid information can be obtained for each position information.
以上のように処理することにより、ヒストリジャーナル
上の情報を必要最小限におさえることが可能となる。By processing as described above, it is possible to suppress the information on the history journal to the necessary minimum.
なお、本発明は、第1図の記録領域1−5としてファイ
ルを使用する場合に限定されず、例えばメモリに更新情
報を一時的に格納し、検索時間の短縮を行うシステムに
おける場合も含むことは言うまでもない。Note that the present invention is not limited to the case where a file is used as the recording area 1-5 in FIG. 1, but also includes, for example, a system in which update information is temporarily stored in memory to shorten search time. Needless to say.
同様に、第3図の位置情報ファイル3−3にファイルを
使用する場合に本発明は限定されず、例えばメモリを格
納エリアとして使用するシステムにおける場合も含まれ
ることは言うまでもない。Similarly, it goes without saying that the present invention is not limited to the case where a file is used as the location information file 3-3 in FIG. 3, and includes, for example, a system that uses memory as a storage area.
以上説明したように本発明は、−時的に配録した記録領
域から媒体障害復旧に必要な最小限の情報のみをヒスト
リジャーナルへ出力することにより、情報処理システム
のデータ更新時におけるヒストリジャーナルの効率的記
録及び復旧時間の短縮ができる効果がある。As explained above, the present invention enables: - Outputting only the minimum information necessary for medium failure recovery from the temporally allocated recording area to the history journal, the history journal is updated when updating data in the information processing system; This has the effect of efficient recording and shortening recovery time.
特に、データベース又はファイルの同一レコードに対し
ての更新回数が多いデータ更新システムにおいて、本発
明の効果が著しい。The effects of the present invention are particularly significant in data update systems in which the same record in a database or file is updated many times.
第1図は本発明の一実施例のシステム構成図、第2図は
本実施例におけるヒストリジャーナル記録動作を説明す
るための図、第3図は本実施例における最終有効情報検
索時の動作を説明するための図、第4図は媒体障害がら
のデータ復旧方法を説明するための図である。
1−1・・・更新プログラム、1−2・・・データベー
ス、1−3・・・順次記録部、1−4・・・記録領域変
換指示部、1−5・・・記録領域A、1−6・−・記録
領域B、1−7・・・位置情報ファイル、1−8・・・
最終有効情報検索部、1−9・・・ジャーナル記録部、
1−10・・・情報出力部、1−11・・・ログファイ
ル、1−12・・・ヒストリジャーナル、2−1・・・
記録領域A、2−2・・・記録領域B、2−3・・・ヒ
ストリジャーナル、3−1・・・記録領域、3−2・・
・ヒストリジャーナル、3−3・・・位置情報ファイル
、4−1・・・データベース、4−2・・・ヒストリジ
ャーナル、4−3・・・データ更新処理の直前のデータ
ベース等のセーブ、4−4・・・データ更新処理の直前
のデータベース、4−5・・・媒体障害が発生した直前
の状態のデータベース。Fig. 1 is a system configuration diagram of an embodiment of the present invention, Fig. 2 is a diagram for explaining the history journal recording operation in this embodiment, and Fig. 3 is an illustration of the operation when retrieving the last valid information in this embodiment. FIG. 4 is a diagram for explaining a data recovery method in the event of a media failure. 1-1... Update program, 1-2... Database, 1-3... Sequential recording section, 1-4... Recording area conversion instruction section, 1-5... Recording area A, 1 -6...Recording area B, 1-7...Position information file, 1-8...
Final valid information retrieval section, 1-9... Journal recording section,
1-10... Information output unit, 1-11... Log file, 1-12... History journal, 2-1...
Recording area A, 2-2... Recording area B, 2-3... History journal, 3-1... Recording area, 3-2...
・History journal, 3-3... Location information file, 4-1... Database, 4-2... History journal, 4-3... Saving database etc. immediately before data update processing, 4- 4... Database immediately before data update processing, 4-5... Database in state immediately before a media failure occurred.
Claims (1)
する順次記録部と、前記記録領域を記録された情報量に
基づいて別の記録領域に切り換える記録領域変換指示部
と、前記記録領域に記録された前記データベースやファ
イル更新情報を検索して最終有効情報のみを求める最終
有効情報検索部と、前記で得られた最終有効情報をヒス
トリジャーナルへ記録するジャーナル記録部と、入力さ
れた前記データベースや更新情報の量及びヒストリジャ
ーナルの記録量を出力する情報出力部とを有することを
特徴とするヒストリジャーナル記録方式。a sequential recording unit that sequentially records database and file update information in a recording area; a recording area conversion instruction unit that switches the recording area to another recording area based on the amount of recorded information; A last valid information search unit that searches database and file update information to obtain only the last valid information; a journal recording unit that records the last valid information obtained above in a history journal; and a journal recording unit that records the last valid information obtained above in a history journal; 1. A history journal recording method, comprising: an information output unit that outputs the amount and the recorded amount of the history journal.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2153739A JPH0447344A (en) | 1990-06-12 | 1990-06-12 | History journal recording system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2153739A JPH0447344A (en) | 1990-06-12 | 1990-06-12 | History journal recording system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0447344A true JPH0447344A (en) | 1992-02-17 |
Family
ID=15569047
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2153739A Pending JPH0447344A (en) | 1990-06-12 | 1990-06-12 | History journal recording system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0447344A (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2006313447A (en) * | 2005-05-09 | 2006-11-16 | Shimadzu Corp | Data management system for instrument analysis |
| JP2007183953A (en) * | 2006-01-05 | 2007-07-19 | Samsung Electronics Co Ltd | Log information management system and method |
| JP2008176106A (en) * | 2007-01-19 | 2008-07-31 | Chugoku Electric Power Co Inc:The | Closure for cable |
-
1990
- 1990-06-12 JP JP2153739A patent/JPH0447344A/en active Pending
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2006313447A (en) * | 2005-05-09 | 2006-11-16 | Shimadzu Corp | Data management system for instrument analysis |
| JP2007183953A (en) * | 2006-01-05 | 2007-07-19 | Samsung Electronics Co Ltd | Log information management system and method |
| JP2008176106A (en) * | 2007-01-19 | 2008-07-31 | Chugoku Electric Power Co Inc:The | Closure for cable |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH0447344A (en) | History journal recording system | |
| JPS6254369A (en) | Document file retrieving system | |
| JP2962335B2 (en) | Free space search method | |
| JP2679602B2 (en) | Evacuation medium creation system | |
| JPH04184641A (en) | Data base restoring system | |
| JP3130870B2 (en) | Memory dump file reconstruction method | |
| JPH03122728A (en) | Saving/restoration system | |
| JPH0259837A (en) | Data recovery processing system | |
| JP2702356B2 (en) | Debug information access method | |
| JPH04310142A (en) | Journal processing method | |
| JP2895892B2 (en) | Data processing device | |
| JPH05143422A (en) | Updated journal managing system | |
| JP3008500B2 (en) | Update record reading mechanism | |
| JPS63257962A (en) | Data saving/recovering system for magnetic disk at the time of reformatting | |
| JPH05250243A (en) | Data processing system for extended storage device | |
| JPH03224040A (en) | File saving system and saving restoration system | |
| JPH03276238A (en) | Record control system | |
| JPH0319046A (en) | Database restoration method | |
| JPH03103943A (en) | Save and restoration system | |
| JPS63253431A (en) | Retrieving system for data base of inverted structure | |
| JPH04352242A (en) | Data history recording system for information processor | |
| JPH04106632A (en) | Debug processor | |
| JPH01125636A (en) | File saving restoration system | |
| JPH02220151A (en) | Variable length data access system | |
| JPH0689262A (en) | System for controlling dynamic record in conversaional processing |