JPH0228848A - On-line data processing unit - Google Patents
On-line data processing unitInfo
- Publication number
- JPH0228848A JPH0228848A JP63180820A JP18082088A JPH0228848A JP H0228848 A JPH0228848 A JP H0228848A JP 63180820 A JP63180820 A JP 63180820A JP 18082088 A JP18082088 A JP 18082088A JP H0228848 A JPH0228848 A JP H0228848A
- Authority
- JP
- Japan
- Prior art keywords
- file
- executed
- journal
- recovery
- read
- 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
- 238000011084 recovery Methods 0.000 claims abstract description 36
- 238000000034 method Methods 0.000 abstract description 14
- 238000010586 diagram Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 3
- 238000007796 conventional method Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 1
- 238000010187 selection method Methods 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、オンラインデータ処理システムのシステムダ
ウン後のリカバリ手段に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a means for recovering an online data processing system after a system failure.
本発明は、データベースファイルにアクセスしてトラン
ザクションを実行するオンラインデータ処理装置のシス
テムダウン後のリカバリ手段において、
ジャーナルファイルの最終ボリュームの中途から読出し
たデータに基づき作成した一覧表で不完全なデータベー
スファイルの更新を無効にすることにより、
リカバリに要する時間を短縮することができるようにし
たものである。The present invention provides a means for recovering after a system failure of an online data processing device that accesses database files and executes transactions, in which a list of incomplete database files is created based on data read from the middle of the final volume of a journal file. By disabling updates, the time required for recovery can be shortened.
従来例では、ジャーナルファイルを磁気ディスク装置あ
るいは磁気テープ装置のいずれか一方の記憶媒体上に設
け、その最終ボリュームの先頭からリカバリに必要な情
報をすべて読み出し、システムダウン時に実行中であっ
たトランザクションの一覧表を作成する。そして、この
一覧表に基づいてシステムダウン時に実行中のトランザ
クションが行った不完全なデータベースファイル更新の
ビイフォアイメージをジャーナルファイルから読み出し
、データベース装置に書き戻してリカバリを行っていた
。In the conventional method, a journal file is provided on either a magnetic disk device or a magnetic tape device, and all the information necessary for recovery is read from the beginning of the final volume, and the transactions that were being executed at the time of the system down are read. Create a list. Then, based on this list, before images of incomplete database file updates performed by transactions being executed at the time of system down are read from the journal file and written back to the database device for recovery.
このような従来のリカバリ方式では、ジャーナルファイ
ルの最終ボリュームの先頭からすべてのデータを読み出
さなければならないので、リカバリにかなりの時間を要
する欠点があった。Such conventional recovery methods have the disadvantage that recovery takes a considerable amount of time because all data must be read from the beginning of the final volume of the journal file.
本発明はこのような欠点を除去するもので、リカバリに
要するデータ量のジャーナルファイルからの読み出し量
が少ないオンラインデータ処理装置を提供することを目
的とする。The present invention aims to eliminate such drawbacks, and aims to provide an online data processing device in which the amount of data read from a journal file required for recovery is small.
本発明は、データベースファイルにアクセスしてトラン
ザクションを実行するオンライン処理手段と、システム
ダウン時に実行中のトランザクションによる不完全なデ
ータベースファイルの更新にかかわる更新情報を含む情
報をブロックで分割されたボューム上の領域に時系列に
保持するジャーナルファイルと、システムダウン時に実
行中のトランザクションにかかわる一覧表に基づき更新
情報を無効にするリカバリ手段とを備えたオンラインデ
ータ処理装置において、所定数のブロックごとに、ブロ
ックに付された番号と実行されたトランザクションに付
された番号とを保持するクイックリカバリファイルと、
このクイックリカバリファイルの内容に応じて位置決め
した上記ジャーナルファイル上の書き込み位置からシス
テムダウン時の書き込み位置までにわたり読み出した情
報に基づき上記一覧表を作成する表作成手段とを備えた
ことを特徴とする。The present invention provides online processing means for accessing database files and executing transactions, and storing information including update information related to incomplete database file updates due to transactions being executed at the time of a system down on a volume divided into blocks. In an online data processing device that is equipped with a journal file that is maintained in an area in chronological order and a recovery means that invalidates updated information based on a list of transactions that are being executed at the time of a system down, block a quick recovery file that retains the number assigned to the transaction and the number assigned to the executed transaction;
A table creation means for creating the list based on information read from the write position on the journal file positioned according to the contents of the quick recovery file to the write position at the time of system down. .
クイックリカバリファイルからある時点でのジャーナル
ファイルと実行中のトランザクションに関する情報を読
み出し、メモリ中に保持する。クイックリカバリファイ
ルからの情報に基づいてジャーナルファイルの最終書き
出し位置にポジショニンクを行う。ポジショニングした
位置からジャーナルファイルの終わりすなわちンステム
ダウンまでのジャーナルファイル上のリカバリ必要情報
を読み出し、システムダウン時に実行中であったトラン
ザクションの一覧表を作成する。システムダウン時に実
行中だったトランザクションの行った不完全なデータベ
ースファイル更新を無効にするために、この一覧表に基
づいてジャーナルファイルからデータベースファイル更
新時のビイフォアイメージを読み出し、テ゛−タベース
ファイルに書き戻す。Reads information about the journal file and ongoing transactions at a certain point in time from the quick recovery file and maintains it in memory. Position the journal file to the final writing position based on the information from the quick recovery file. It reads the recovery necessary information on the journal file from the positioning position to the end of the journal file, that is, the system down, and creates a list of transactions that were being executed at the time of system down. In order to invalidate incomplete database file updates made by transactions that were being executed when the system went down, read the before-image of the database file update from the journal file based on this list and write it to the database file. return.
以下、本発明の一実施例を図面に基づき説明する。第1
図はこの実施例の構成図であり7、第2図は本発明の実
施例のジャーナルファイルおよびクイックリカバリファ
イルの構成図であり、第3図はこの実施例のリカバリ処
理選択の手順を示す図である。Hereinafter, one embodiment of the present invention will be described based on the drawings. 1st
7 is a block diagram of this embodiment, FIG. 2 is a block diagram of the journal file and quick recovery file of the embodiment of the present invention, and FIG. 3 is a diagram showing the recovery process selection procedure of this embodiment. It is.
この実施例は、第1図および第2図に示すように、オン
ライン処理プロセス2に対してテキストの入力およびオ
ンライン処理プロセス2からのメツセージの表示を行う
端末装置1と、端末装置1から人力されたテキストをも
とに適切な業務プログラムすなわちトランザクションを
選択し、データベースファイル3のアクセスを行い、ト
ランザクションの開始レコード9、トランザクションの
終了レコード11、データベースファイル3の更新時の
ビイフォアイメージ10をディスクジャーナルファイル
4およびテープジャーナルファイル5の両方に書き込み
、ある一定間隔(この実施例では、ジャーナルブロック
8の書き込みが1000回行われる間隔)のたびにクイ
ックリカバリファイル6に書き込み時のジャーナルブロ
ック番号と実行中のトランザクション番号とを書き込む
オンライン処理プロセス2と、同じ内容の情報すなわち
オンライン処理プロセス2によって書き込まれたトラン
ザクションの開始レコード9、トランザクンヨンの終了
レコード11およびデータベースファイル3の更新時の
ビイフォアイメージ10の保持を行うディスクジャーナ
ルファイル4およびテープジャーナルファイル5と、オ
ンライン処理プロセス2によって書き込まれたジャーナ
ルブロック番号と実行中のトランザクション番号とを保
持するタイ・ツクリカバリファイル6と、データベース
ファイル3とを備える。すなわち、この実施例は、シス
テムダウン時に実行中のトランザクションによる不完全
なデータベースファイル3の更新にかかわる更新情報を
含む情報をブロックで分割されたボリューム上の領域に
時系列に保持するジャーナルファイルであるディスクジ
ャーナルファイル4およびテープシアーナルファイル5
と、所定数のブロックごとにブロックに付された番号と
実行されたトランザクンヨンに付された番号とを保持す
るクイックリカバリファイル6と、データベースファイ
ル3にアクセスしてトランザクションを実行するオンラ
イン処理手段、クイックリカバリファイル6の内容に応
じて位置決めした上記ジャーナルファイル上の書き込み
位置からシステムダウン時の書き込み位置までにわたり
読出した情報に基づき上記一覧表を作成する表作成手段
およびシステムダウン時に実行中のトランザクションに
かかわる一覧表に基づき更新情報を無効にするリカバリ
手段とを有するオンライン処理プロセス2とを備える。As shown in FIGS. 1 and 2, this embodiment includes a terminal device 1 that inputs text to an online processing process 2 and displays messages from the online processing process 2, and a terminal device 1 that inputs text to an online processing process 2 and displays messages from the online processing process 2. An appropriate business program, that is, a transaction is selected based on the written text, the database file 3 is accessed, and the transaction start record 9, transaction end record 11, and before image 10 when updating the database file 3 are recorded in a disk journal. Writes to both file 4 and tape journal file 5, and writes the journal block number at the time of writing to quick recovery file 6 at certain regular intervals (in this example, the interval at which journal block 8 is written 1000 times). online processing process 2 that writes the transaction number of It includes a disk journal file 4 and a tape journal file 5 for holding, a tie recovery file 6 for holding journal block numbers written by the online processing process 2 and transaction numbers being executed, and a database file 3. That is, this embodiment is a journal file that stores information including update information related to incomplete updates of the database file 3 due to transactions being executed at the time of system downtime in an area on a volume divided into blocks in chronological order. Disk journal file 4 and tape serial file 5
a quick recovery file 6 that holds numbers assigned to blocks and numbers assigned to executed transactions for each predetermined number of blocks; online processing means that accesses the database file 3 and executes transactions; Table creation means for creating the list based on the information read from the writing position on the journal file positioned according to the contents of the quick recovery file 6 to the writing position at the time of system down; and and a recovery means for invalidating updated information based on the relevant list.
次に、第2図に示すように、ディスクジャーナルファイ
ル4およびテープジャーナルファイル5に3200番目
のジャーナルブロック8が書き込まれた直後にシステム
ダウンした場合のこの実施例の動作を第1図ないし第3
図を参照して説明する。Next, as shown in FIG. 2, the operation of this embodiment when the system goes down immediately after the 3200th journal block 8 is written to the disk journal file 4 and tape journal file 5 will be described in FIGS. 1 to 3.
This will be explained with reference to the figures.
オンライン処理システムの再立ち上げが行われ、リカバ
リ処理が開始される(ステップSL)。クイックリカバ
リファイル6がオンライン処理ンステムに割り当てられ
ていてアクセスすることができるか否かを判断する(ス
テップS2)。 クイックリカバリファイル6が利用可
能な場合は、クイックリカバリファイル6を読んでジャ
ーナルブロック番号3000とトランザクション番号1
00.101および102との一覧表をオンライン処理
プロセス2内に保持する(ステップS3)。ディスクジ
ャーナルファイル4およびテープジャーナルファイル5
が両方共にオンライン処理システムに割り当てられてア
クセスすることができるか否かを判断する(ステップS
4)。ディスクジャーナルファイル4およびテープジャ
ーナルファイル5が両方共に利用可能な場合は、ディス
クジャーナルファイル4からリカバリ処理を行う(ステ
ップS5)。The online processing system is restarted and recovery processing is started (step SL). It is determined whether the quick recovery file 6 is assigned to the online processing system and can be accessed (step S2). If quick recovery file 6 is available, read quick recovery file 6 and get journal block number 3000 and transaction number 1.
A list of 00.101 and 102 is held in the online processing process 2 (step S3). Disk journal file 4 and tape journal file 5
are both assigned to the online processing system and can be accessed (step S).
4). If both the disk journal file 4 and the tape journal file 5 are available, recovery processing is performed starting from the disk journal file 4 (step S5).
すなわち、ジャーナルブロック番号3000を持つジャ
ーナルブロック8(以下、ジャーナルブロック3000
という。)にポジショニングし、オンライン処理プロセ
ス2内に読み込む。トランザクション番号の一覧表(以
下、アクティブリストという。)をもとに読み込んだジ
ャーナルブロック8中のジャーナルレコードを読み、ト
ランザクンヨン開始レコード9であればそのトランザク
ション番号をアクティブリストに追加し、トランザクン
ヨン終了レコード11であればそのトランザクション番
号をアクティブリストから削除し、その他のレコードは
読み飛ばす処理を最終のジャーナルブロック3200ま
で行う。最終のジャーナルブロック3200までこの処
理が行われると、作成されたアクティブリストはシステ
ムダウン時に実行中だったトランザクション番号200
.201および202を示す。次に、ディスクジャーナ
ルファイル4の最後から逆に読み込みアクティブリスト
のトランザクション番号200.201および202の
トランザクンヨンのビイフォアイメージを読み出し、デ
ータベースファイル3に書き戻す処理をトランザクショ
ン番号200.201および202のトランザクション
の開始レコードを読み出すまで続け、トランザクション
番号200.201および202のトランザクションが
実行される前の状態にデータベースファイル3を戻す。That is, journal block 8 with journal block number 3000 (hereinafter journal block 3000
That's what it means. ) and read into the online processing process 2. Read the journal record in journal block 8 read based on the list of transaction numbers (hereinafter referred to as active list), and if it is transaction start record 9, add that transaction number to the active list and end the transaction. If it is record 11, that transaction number is deleted from the active list, and other records are skipped until the final journal block 3200. When this process is performed up to the final journal block 3200, the created active list will contain the transaction number 200 that was being executed at the time of the system down.
.. 201 and 202 are shown. Next, read from the end of disk journal file 4 backwards, read the before-images of transactions with transaction numbers 200.201 and 202 in the active list, and write them back to database file 3. The process continues until the start record of 200, 201 and 202 is read out, and the database file 3 is returned to the state before the transactions with transaction numbers 200, 201 and 202 were executed.
ディスクジャーナルファイル4が利用可能でない場合は
、テープジャーナルファイル5からステップS5と同様
のリカバリ処理を行う(ステップS6)。クイックリカ
バリファイル6が利用可能でない場合は、従来の方法で
リカバリ処理を行う (ステップS7)。If the disk journal file 4 is not available, recovery processing similar to step S5 is performed from the tape journal file 5 (step S6). If the quick recovery file 6 is not available, recovery processing is performed using a conventional method (step S7).
本発明は、以上説明したように、最終ボリュームジャー
ナルのすべて読む必要がないので、リカバリ時間を大幅
に短縮することができる効果がある。また、ディスクジ
ャーナルファイルを使用するので、ボジショニングの時
間も短縮できる効果がある。As explained above, the present invention has the effect of significantly shortening recovery time because it is not necessary to read all of the final volume journal. Additionally, since a disk journal file is used, positioning time can also be reduced.
第3図は本発明実施例の動作を示すフロー図。FIG. 3 is a flow diagram showing the operation of the embodiment of the present invention.
1・・・端末装置、2・・オンライン処理プロセス、3
・・・データベースファイル、4・・・ディスクジ+
−ナルファイル、5・・・テープジャーナルファイルペ
6・・・クイックリカバリファイル、7・・・ジャーナ
ルファイル、訃゛°ジャーナルブロック、9・・・開始
レコード、10・・・ビイフォアイメージ、11・・・
終了レコード。1... Terminal device, 2... Online processing process, 3
...Database file, 4...Disk di+
- Null file, 5...Tape journal file page 6...Quick recovery file, 7...Journal file, 9...Start record, 10...Before image, 11...・・・
End record.
Claims (1)
ョンを実行するオンライン処理手段と、システムダウン
時に実行中のトランザクションによる不完全なデータベ
ースファイルの更新にかかわる更新情報を含む情報をブ
ロックで分割されたボューム上の領域に時系列に保持す
るジャーナルファイルと、システムダウン時に実行中の
トランザクションにかかわる一覧表に基づき更新情報を
無効にするリカバリ手段とを備えたオンラインデータ処
理装置において、 所定数のブロックごとに、ブロックに付された番号と実
行されたトランザクションに付された番号とを保持する
クイックリカバリファイルと、このクイックリカバリフ
ァイルの内容に応じて位置決めした上記ジャーナルファ
イル上の書き込み位置からシステムダウン時の書き込み
位置までにわたり読み出した情報に基づき上記一覧表を
作成する表作成手段と を備えたことを特徴とするオンラインデータ処理装置。[Claims] 1. An online processing means for accessing a database file and executing a transaction, and information including update information related to an incomplete update of the database file due to a transaction being executed at the time of a system down is divided into blocks. In an online data processing device that is equipped with a journal file that is maintained chronologically in an area on a volume, and a recovery means that invalidates updated information based on a list of transactions that are being executed at the time of a system down, a predetermined number of blocks are When the system goes down, there is a quick recovery file that holds numbers assigned to blocks and numbers assigned to executed transactions, and a writing position on the journal file that is positioned according to the contents of this quick recovery file. and table creation means for creating the list based on the information read up to the writing position.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63180820A JPH0228848A (en) | 1988-07-19 | 1988-07-19 | On-line data processing unit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63180820A JPH0228848A (en) | 1988-07-19 | 1988-07-19 | On-line data processing unit |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0228848A true JPH0228848A (en) | 1990-01-30 |
Family
ID=16089930
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP63180820A Pending JPH0228848A (en) | 1988-07-19 | 1988-07-19 | On-line data processing unit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0228848A (en) |
-
1988
- 1988-07-19 JP JP63180820A patent/JPH0228848A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH046017B2 (en) | ||
| JPH0228848A (en) | On-line data processing unit | |
| JPS62245348A (en) | Method and device for updating data base | |
| JP2822869B2 (en) | Library file management device | |
| JPH03216743A (en) | Parallel saving system for data base | |
| JPH04184641A (en) | Data base restoring system | |
| JPH03125238A (en) | Information control system | |
| JPH0823840B2 (en) | Method and apparatus for updating database | |
| JPH04250539A (en) | Journal acquisition system | |
| JPS62297948A (en) | Database failure recovery method | |
| JPS62245347A (en) | Database systems and their processing methods | |
| JPH01140353A (en) | Database data preservation method | |
| JP2549155Y2 (en) | Optical filing system | |
| JPH03255547A (en) | Memory dump output system | |
| JPH01112425A (en) | Program source filing maintaining system at time of editing by editor | |
| JPH02250166A (en) | information processing equipment | |
| JPH0561749A (en) | Device for unifying data between different systems | |
| JPS63195755A (en) | Content guarantee method for information on main memory | |
| JPH04336638A (en) | Disk exchange system in system working mode | |
| JPH02114341A (en) | File exclusive control system | |
| JPH0991174A (en) | Logging file management method | |
| JPH04148250A (en) | On-line transaction system | |
| JPH01137348A (en) | Data writing system | |
| JPS60142446A (en) | Recovery processing system of backward fault | |
| JPH01302429A (en) | Source program editing system |