JPS62147544A - Roll-back processing system - Google Patents

Roll-back processing system

Info

Publication number
JPS62147544A
JPS62147544A JP60288840A JP28884085A JPS62147544A JP S62147544 A JPS62147544 A JP S62147544A JP 60288840 A JP60288840 A JP 60288840A JP 28884085 A JP28884085 A JP 28884085A JP S62147544 A JPS62147544 A JP S62147544A
Authority
JP
Japan
Prior art keywords
blocks
processing
buffer
rollback
roll
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
JP60288840A
Other languages
Japanese (ja)
Inventor
Yuzo Nagao
永尾 雄三
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 JP60288840A priority Critical patent/JPS62147544A/en
Publication of JPS62147544A publication Critical patent/JPS62147544A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To complete the data base roll-back processing in a short period by using a main memory area where a user program for transaction processing is executed after resetting said memory area as a large-scale buffer which reads a number of blocks of an updating information storing file. CONSTITUTION:The blocks including the head block 1 through the block 100 are read into the 1st buffer 3a from an updating information storing file 2d for restoration of a data base. When this reading operation is through, the updating information on the blocks 1-100 are used successively for execution of the roll-back processing of the data base. At the same time, the next 100 blocks are read into the 2nd buffer 3b. When the roll-back processing is through with the first 100 blocks, the next 100 blocks of the buffer 3b are used for execution of the roll-back processing. Meanwhile other following 100 blocks are read into the buffer 3a with which the processing is through from the file 2d by a request. This action is repeated to carry out the roll-back processing at a high speed.

Description

【発明の詳細な説明】 (産業上の利用分野〕 本発明はトランザクション処理システムに2ける障害発
生後のデータベースのロールバックを高速に行うための
処理方式に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a processing method for quickly rolling back a database after a failure occurs in a transaction processing system.

〔従来の技術〕[Conventional technology]

従来、トランザクション処理システムの障害発生後のデ
ータベースのロールバック処理において、データベース
更新情報蓄積ファイルから各更新情報の読み込みをトラ
ンザクション処理システムの  7制御部に設定してい
る更新情報入力用バッファを使用して1ブロツクずつ逐
次行い、データベースのロールバック処理を行うという
方式であった。
Conventionally, in database rollback processing after a failure occurs in a transaction processing system, each update information is read from the database update information storage file using an update information input buffer set in the control section 7 of the transaction processing system. The method was to perform database rollback processing one block at a time.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

このような従来のトランザクション処理システムの障害
発生後に2けるデータベースクールバック方式では、情
報蓄積ファイルからの読み込みを1ブロツクずつ逐次行
っている。この情報蓄積フアイルの読み込みはブロック
サイズと、入力用のバッファサイズが同じである事から
情報蓄積ファイル内のブロックの数と同数回の読み込み
が行われるため、情報蓄積ファイル内の情報が多量でブ
ロック数が多い場合は、情報蓄積ファイル内の全ブロッ
クを読み込むのに、長時間を要する。このためトランザ
クション処理システムの障害発生後に2けるデータベー
スロールバック処理が全て完了するまでに長時間を要す
るという欠点がある。
In such a conventional database cool-back method after a failure occurs in a transaction processing system, reading from an information storage file is sequentially performed one block at a time. This information storage file is read the same number of times as the number of blocks in the information storage file because the block size and input buffer size are the same. If the number is large, it will take a long time to read all the blocks in the information storage file. Therefore, there is a drawback that it takes a long time to complete all database rollback processing after a failure occurs in the transaction processing system.

本発明の目的は、このような欠点を除き、データベース
ロールバック処理を短時間で完了できるようにしたデー
タロールバック処理方式を提供することにある。
An object of the present invention is to provide a data rollback processing method that eliminates such drawbacks and allows database rollback processing to be completed in a short time.

〔問題点を解決Tるための手段〕[Means for solving problems]

本発明の構成は、データベース更新イメージレコードヲ
蓄積Tる多量のブロックからなる外部記憶装置上の更新
情報蓄積ファイルを持つトランザクション処理システム
の71−ドウエア故障等による強制停止後の事後処理ま
たは再開始処理のロールバック処理方式において、この
ロールバック処理中には使用する事のないトランザクシ
コン処理制御部の管理下にあるトランザクション処理用
のユーザプログラムが実行される主記憶領域を、前記更
新情報蓄積ファイルの多量のブロックを読み込む大型バ
ッファとして再設定して使用してデータベースのロール
バックを行うことにより、前記トランザクション処理を
再開始する時にはロールバック完了後すみやかにユーザ
プログラムの実行領域として再設定することを特徴とす
る。
The configuration of the present invention is a transaction processing system having an update information storage file on an external storage device consisting of a large number of blocks in which database update image records are stored. In the rollback processing method, the main storage area where the user program for transaction processing is executed under the control of the transaction processing control unit, which is not used during the rollback processing, is used as the main storage area of the update information storage file. By resetting and using it as a large buffer that reads a large number of blocks to perform a database rollback, when the transaction processing is restarted, it is immediately reconfigured as a user program execution area after the rollback is completed. shall be.

〔作用〕[Effect]

本発明の構成によれば、トランザクション処理システム
の障害発生後、ロールバック処理中にはトランザクショ
ン処理のためのユーザプログラム実行領域としては使用
しないトランザクション処理システム制御部が管理して
いる主記憶装置上のユーザプログラム実行領域を、更新
情報読み込みのための大型バッファとして再設定し、こ
のバッファを使用することにより情報蓄積ファイルから
の読み込みのための時間を短縮し、ロールバック処理時
間を短縮することができる。また、ロールバック処理を
完了した後でトランザクション処理を再開始する場合は
、使用した大型バッファをユーザプログラム実行領域と
して再設定し直T事によって以降のトランザクション処
理を正常にklAHすることができる。
According to the configuration of the present invention, after a failure occurs in the transaction processing system, during rollback processing, the main storage area managed by the transaction processing system control unit is not used as a user program execution area for transaction processing. By reconfiguring the user program execution area as a large buffer for reading update information and using this buffer, it is possible to shorten the time for reading from the information storage file and shorten the rollback processing time. . Furthermore, when restarting transaction processing after completing rollback processing, the used large buffer can be reset as the user program execution area and the subsequent transaction processing can be normally completed by directly performing the T-T.

〔実施例〕〔Example〕

次に図面により本発明の詳細な説明する。 Next, the present invention will be explained in detail with reference to the drawings.

第1図は本発明の一実施例を含むシステムのブロック図
で、本実施例はトランザクション処理システムのデータ
ベースのロールバック処理に於けるバブ7ア管理状悪を
示すものである。この図にg(+’では、データベース
のロールバックに必要な更新情報読み込みバッファの存
在する主記憶装置4と、ロールバック対象のデータベー
スファイル(磁気ディスク装fiit)1と、更新情報
蓄積ファイル2とから構成されている。データベースフ
ァイル1は、更新途中の状態であり更新途中の複数トラ
ンザクションの各処理単位に基き更新情報蓄積ファイル
2上の情報によりロールバックする。
FIG. 1 is a block diagram of a system including an embodiment of the present invention, and this embodiment shows the poor management of a database in a database rollback process of a transaction processing system. In this figure, g(+') shows the main storage device 4 in which the update information read buffer necessary for database rollback exists, the database file (magnetic disk drive) 1 to be rolled back, and the update information storage file 2. The database file 1 is in the process of being updated and is rolled back based on the information in the update information storage file 2 based on each processing unit of a plurality of transactions that are being updated.

第2図は第1因の更新情報蓄積ファイル2の構成を示し
た図であり、更新情報蓄積ファイル2a。
FIG. 2 is a diagram showing the structure of the update information storage file 2 that is the first cause, and is the update information storage file 2a.

更新情報蓄積ファイル2bの2つのファイルが存在し、
1フアイル内に多量のブロック、例として1万ブロツク
ずつ合計2万ブロック分あるとし、時系列で更新情報蓄
積ファイル2aから更新情報蓄積ファイル2bに渡って
ブロック(1)からブロック(2万)まで情報が蓄積さ
れているとする。
There are two files, update information storage file 2b,
Assume that there are a large number of blocks in one file, for example, 10,000 blocks each for a total of 20,000 blocks, and from block (1) to block (20,000) in chronological order from update information storage file 2a to update information storage file 2b. Suppose that information is stored.

第3図は第1図の主記憶装置4上のユーザープログラム
実行領域を再設定した第1バツフア3a、第2バツフア
3bの構成図であり、各々のバッファは、複数ブロック
、例として100ブロック分格納できる大きさを設定で
きるものとする〇データベース復旧のために更新情報蓄
積ファイル2から先頭ブロック(1)からブロック(1
00) まで第1バツフア3aへ読み込んで完了すると
、ブロック(1)から順にブロック(100)までの更
新情報を使ってデータベースのロールバック処理を行う
。この処理中、次の100ブロック分を第2バツフア3
bへ読み込む処理を並行して行う。最初の100ブロッ
ク分によるロールバック処理が終了すると、第2バツフ
ア3b上にある次の100ブロック分を便ってのロール
バック処理を行う。
FIG. 3 is a configuration diagram of the first buffer 3a and second buffer 3b in which the user program execution area on the main storage device 4 of FIG. The storage size can be set.〇For database recovery, block (1) from the first block (1) from the update information storage file 2.
00) to the first buffer 3a and the database is rolled back using the update information from block (1) to block (100). During this process, the next 100 blocks are transferred to the second buffer 3.
The process of reading into b is performed in parallel. When the rollback process for the first 100 blocks is completed, the rollback process is performed for the next 100 blocks on the second buffer 3b.

第2バツフア3b上にある100ブロック分の情報ヨリ
データベースロールバック処理中に、さらに次の100
ブロック分を情報蓄積ファイルから処理を完了した第1
バツフア3aへと読み込み要求を行う。これを2万ブロ
ツクまで200回、同様の処理を繰り返し、更新情報蓄
積ファイル2aと更新情報蓄積ファイル2bの全ブロッ
クを効率良く読み込んで、データベースのロールバック
処理を高速に行う。
During database rollback processing for 100 blocks of information on the second buffer 3b, the next 100
The first block that has been processed from the information storage file
A read request is made to the buffer 3a. The same process is repeated 200 times up to 20,000 blocks to efficiently read all blocks of the update information storage file 2a and the update information storage file 2b and perform database rollback processing at high speed.

第4図は本実施例のオンラインシステムに2けるデータ
ベースロールバック処80−チャートである。
FIG. 4 is a chart of the database rollback process 80 in the online system of this embodiment.

まず、未完了処理状態となっているトランザクションを
検出するために、更新情報蓄積ファイル2aと更新情報
蓄積ファイル2bをブロック(1)からブロック(2万
)まで前記の方法で逐次的に読み込み(ステップ11)
、Tべての未完了トランザクションのトランザクション
ナンバーを検出して記憶する(ステップ12)。次のス
テップ13で検出した未完了処理状態のトランプクシ1
ンに関するデータベースロールバック処理のため、デー
タベース更新情報をブロック2万から最初のブロック1
まで上記の方式で時系例を遡って読み込み、前記の処理
に8いて記録した未完了トランザクシロンに関するデー
タベースに対してロールバックを行う。
First, in order to detect transactions that are in an incomplete processing state, the update information storage file 2a and the update information storage file 2b are sequentially read from block (1) to block (20,000) using the method described above (step 11)
, T, the transaction numbers of all uncompleted transactions are detected and stored (step 12). Playing card comb 1 with incomplete processing detected in the next step 13
Due to database rollback processing related to
The time-series example is read backwards in the above-described manner, and a rollback is performed on the database related to incomplete transactions recorded in step 8 of the above process.

次に、ステップ14でトランザクション処理の再開始を
判定し、再開始のときは、ステップ15で再度プログラ
ムをユーザグロダラム領埴に格納して終了とし、再開始
をしないときにはそのまま終了となる。
Next, in step 14, it is determined whether the transaction processing should be restarted, and if the transaction processing is to be restarted, the program is stored in the user's Groderam memory again in step 15, and the program is terminated.If the transaction processing is not restarted, the program is terminated.

この実施例では、データベースロールパワクツために、
400回の更新情報蓄積ファイルの読み込みを行って4
万個のブロックの処理を行うことになるが、1ブロツク
ずつ逐次読み込みを行う場合に比較し、その読み込み回
数は100分の1に    ”削減することができる。
In this example, for database role power,
After reading the update information accumulation file 400 times, 4
Although 10,000 blocks will be processed, the number of reads can be reduced to 1/100 compared to reading each block sequentially.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明によって、更新情報蓄積フ
ァイルの読み込み用バッファの大きさをシステム規模に
合わせて自由に設定できるので、ロールバック時の更新
情報蓄積ファイルの読み込回数が少なくて丁み、読み込
み完了待ちも減少するため、トランザクション処理シス
テムの障害発生後に2けるデータベースロールバック処
理時間を大幅に削減することができるという効果がある
As explained above, according to the present invention, the size of the buffer for reading the update information storage file can be freely set according to the system scale, so the number of times the update information storage file is read during rollback can be reduced. Since the amount of time waiting for read completion is also reduced, the time required for database rollback processing after a failure occurs in the transaction processing system can be significantly reduced.

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

第1図は本発明の一実施例を説明するブロック図、男2
図は本実姉例の更新情報蓄積ファイルの構成図、第3図
は本実施例の再設定したバッファの構成図、茗4図は本
実施例として使用したデータベースロールバック処Mヲ
示f 7 C1qヤードである。 1・・・・・・データベース用磁気ディスク装置(ファ
イル)、2・・・・−・更新清報6積用磁気デイスク装
置、2a 、 2b・・・・・・更新情報蓄積ファイル
、3a・・・・・・第1バツフア、3b・−・・・・第
2バブ7ア、4・・・・・・主記憶装置。 代理人 弁理士  内 原   晋 第 l 凹 第3凹
FIG. 1 is a block diagram illustrating an embodiment of the present invention.
The figure shows the configuration of the update information storage file in this example, Figure 3 shows the configuration of the reset buffer in this example, and Figure 4 shows the database rollback process used in this example. It's a yard. 1...Magnetic disk device for database (file), 2...Magnetic disk device for 6 update reports, 2a, 2b...Update information storage file, 3a... ...First buffer, 3b...Second buffer 7a, 4...Main storage device. Agent Patent Attorney Shindai Uchihara

Claims (1)

【特許請求の範囲】[Claims] データベース更新イメージレコードを蓄積する多量のブ
ロックからなる外部記憶装置上の更新情報蓄積ファイル
を持つトランザクション処理システムのハードウェア故
障等による強制停止後の事後処理または再開始処理のロ
ールバック処理方式において、このロールバック処理中
には使用する事のないトランザクション処理制御部の管
理下にあるトランザクション処理用のユーザプログラム
が実行される主記憶領域を、前記更新情報蓄積ファイル
の多量のブロックを読み込む大型バッファとして再設定
して使用してデータベースのロールバックを行うことに
より、前記トランザクション処理を再開始する時にはロ
ールバック完了後すみやかにユーザプログラムの実行領
域として再設定することを特徴とするロールバック処理
方式。
In the rollback processing method for post-processing or restart processing after a forced stop due to hardware failure of a transaction processing system that has an update information storage file on an external storage device consisting of a large number of blocks for storing database update image records, this The main storage area in which the user program for transaction processing is executed under the control of the transaction processing control unit, which is not used during rollback processing, is reused as a large buffer for reading a large number of blocks of the update information storage file. A rollback processing method characterized in that by setting and using a database to roll back, when restarting the transaction processing, the area is immediately set as an execution area for a user program after the rollback is completed.
JP60288840A 1985-12-20 1985-12-20 Roll-back processing system Pending JPS62147544A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60288840A JPS62147544A (en) 1985-12-20 1985-12-20 Roll-back processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60288840A JPS62147544A (en) 1985-12-20 1985-12-20 Roll-back processing system

Publications (1)

Publication Number Publication Date
JPS62147544A true JPS62147544A (en) 1987-07-01

Family

ID=17735423

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60288840A Pending JPS62147544A (en) 1985-12-20 1985-12-20 Roll-back processing system

Country Status (1)

Country Link
JP (1) JPS62147544A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58166459A (en) * 1982-03-27 1983-10-01 Fujitsu Ltd Recovery system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58166459A (en) * 1982-03-27 1983-10-01 Fujitsu Ltd Recovery system

Similar Documents

Publication Publication Date Title
JP2718031B2 (en) History information acquisition method
JPH0423144A (en) Journal system
CN102236705A (en) Fine grain synchronization for database replay
JP2013518335A (en) Method, system, and computer program product for operating a copy function
JP3135714B2 (en) Checkpoint restart method
JPS62147544A (en) Roll-back processing system
JPS58182775A (en) Self-diagnosing system of magnetic disk
JPS5856142B2 (en) Online recovery control method
JPH06348547A (en) Input history information record editing and re-executing device
JP2718674B2 (en) Database system
JPH1040123A (en) System and method for job management
JPH05143422A (en) Updated journal managing system
JPH04175830A (en) Rerun control system
JPS63262737A (en) Data base updating and recording processing method
JPH10289140A (en) Restoration system for batch processing fault
JP3189804B2 (en) Data backup method and device
TWI270058B (en) Backup method for wafer production apparatus
JPH0820992B2 (en) Control journal output device
JPS6360414B2 (en)
JPS62192826A (en) File writing system
JPH02242447A (en) Memory dump collecting system
JPS62133535A (en) Program check point processing system
JPS6244293B2 (en)
JPH0561741A (en) File writing system
JPS59114650A (en) Program tracing system