Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP2913591B2 - How to get an online journal - Google Patents
[go: Go Back, main page]

JP2913591B2 - How to get an online journal - Google Patents

How to get an online journal

Info

Publication number
JP2913591B2
JP2913591B2 JP2256411A JP25641190A JP2913591B2 JP 2913591 B2 JP2913591 B2 JP 2913591B2 JP 2256411 A JP2256411 A JP 2256411A JP 25641190 A JP25641190 A JP 25641190A JP 2913591 B2 JP2913591 B2 JP 2913591B2
Authority
JP
Japan
Prior art keywords
journal
type
online
information
storage medium
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.)
Expired - Fee Related
Application number
JP2256411A
Other languages
Japanese (ja)
Other versions
JPH04133158A (en
Inventor
洋 綿谷
慶治郎 林
芳昭 足達
勲 寺門
健二 松崎
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
Hitachi Process Computer Engineering Inc
Original Assignee
Hitachi Ltd
Hitachi Process Computer Engineering Inc
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, Hitachi Process Computer Engineering Inc filed Critical Hitachi Ltd
Priority to JP2256411A priority Critical patent/JP2913591B2/en
Publication of JPH04133158A publication Critical patent/JPH04133158A/en
Application granted granted Critical
Publication of JP2913591B2 publication Critical patent/JP2913591B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、オンライン・トランザクションシステムの
トランザクション・マネージメントシステムに係り、特
に高トラフィックなトランザクション処理に好適なオン
ライン・ジャーナル取得方式に関する。
Description: TECHNICAL FIELD The present invention relates to a transaction management system of an online transaction system, and more particularly to an online journal acquisition method suitable for high-traffic transaction processing.

[従来の技術] 従来のオンライン・トランザクションシステムにおけ
るジャーナル(システム履歴)情報取得方式について
は、ジャーナルの取得要求が発行される度に一件毎に不
揮発性記憶媒体に取得するという方式がとられていた。
不揮発性記憶媒体には、例えば、磁気ディスク装置(DI
SK)あるいは磁気テープ装置(MT)がある。
[Prior Art] As a journal (system history) information acquisition method in a conventional online transaction system, a system is adopted in which a journal acquisition request is issued to a non-volatile storage medium every time a journal acquisition request is issued. Was.
For example, a magnetic disk device (DI
SK) or magnetic tape unit (MT).

このような方式では、DISK等のジャーナル・デバイス
の使用効率が悪いことを改善するために、特開昭62−26
6643号「オンライン・ジャーナル取得方式」に開示され
ている様に、ジャーナル取得時に複数の要求がキューイ
ングされていた時のみ一括で取得するという方式をとっ
ている。
In such a method, Japanese Patent Application Laid-Open No.
As disclosed in No. 6643, "Online Journal Acquisition Method", a method is adopted in which multiple requests are acquired collectively only when a plurality of requests are queued at the time of journal acquisition.

本方式においては、たまたま要求が、連続した場合の
み効率が上がるが、連続しなければまったく効率が上ら
ないという欠点がある。特にジャーナルの取得について
は、1件ずつDISK書き込み要求を発行している点では、
前記従来技術と同様である。
In this method, the efficiency is increased only when the requests happen to be continuous, but there is a disadvantage that the efficiency is not increased at all if the requests are not continuous. In particular, regarding journal acquisition, in that DISK write requests are issued one by one,
It is the same as the above-mentioned prior art.

第2図に、従来トランザクション処理の概略を示す。
端末より、入力トランザクションメッセージを受信する
と(101)、ジャーナル情報をDISK107に取得し(10
2)、データベース(DB)更新(103)を行った後、問合
せ元端末に応答メッセージを送信し(104)、終了する
(105)。
FIG. 2 shows an outline of the conventional transaction processing.
When the input transaction message is received from the terminal (101), the journal information is acquired in the DISK 107 (10).
2) After updating the database (DB) (103), a response message is transmitted to the inquiry source terminal (104), and the process ends (105).

[発明が解決しようとする課題] 上記従来の技術では、以下2点の事項を前提としてい
た。
[Problem to be Solved by the Invention] In the above-mentioned conventional technology, the following two items are premised.

(1)メモリは揮発性記憶媒体で、いつ何時その内容が
消失/破壊されるかわからない。
(1) The memory is a volatile storage medium, and it is not known when and when its contents are lost / destructed.

(2)ジャーナル情報とは、システムの履歴情報であ
り、障害回復にのみ用いられ、一件たりとも消失/破壊
は許されない。
(2) The journal information is the history information of the system and is used only for recovery from a failure, and loss or destruction of any one is not allowed.

ところが、最近のFTC(フォールト・トレラント・コ
ンピューティング)技術の発達により、メモリ、電源、
CPU等は全て二重化され、揮発性記憶媒体といえども、
その信頼性は著しく向上し、いわゆるハードウェアの一
点障害でメモリ内容が消失/破壊するという事態は、ほ
とんど考えられないものとなった。よって、メモリも充
分信頼性の高い媒体であるという前提で、ジャーナル取
得効率向上を図る必要がでてきた。
However, with the recent development of FTC (Fault Tolerant Computing) technology, memory, power supply,
The CPU etc. are all duplicated, even if it is a volatile storage medium,
The reliability has been significantly improved, and the situation where the memory contents are lost / destroyed due to a so-called single point of hardware failure has hardly been considered. Therefore, it is necessary to improve the journal acquisition efficiency on the premise that the memory is also a sufficiently reliable medium.

一方、最近の金融・証券業界の自由化、国際化の波に
より、オンライントランザクションシステム(OLTPシス
テム)においては、頻繁なシステム変更/拡張が、行わ
れている。併せて、プログラマの人手不足の折、以前に
も増してプログラム開発効率の向上が急務となってい
る。このような観点より、従来は障害回復のためのみに
用いられていたジャーナルを、アプリケーションプログ
ラムのテストデータとして使用したいとの気運が高まっ
てきた。またジャーナルと一言でいっても、その種類/
目的は千差万別である。(例えば、トランザクション
・モニタへ/からのデータをログする入/出力ジャーナ
ル、ファイル/データベースを更新するときに取得さ
れるファイルジャーナル、システムの履歴をログする
システムジャーナル等が挙げられる。)よって、これら
の多様化したジャーナル種別毎にきめの細い処理を行う
ことにより、システム全体のスループットを向上させた
いとの要求も出始めている。以上の背景のもと、 (1)本発明の目的は、ジャーナル取得によるシステム
オーバヘッドを削減し、個々のトランザクションについ
ては、レスポンスタイムを向上させ、トランザクション
処理全体では、高いスループットを実現することにあ
る。
On the other hand, due to the recent wave of liberalization and internationalization of the financial and securities industries, frequent system changes / expansion are performed in the online transaction system (OLTP system). At the same time, with the shortage of programmers, there is an urgent need to improve program development efficiency. From this point of view, there has been a growing interest in using journals that have been used only for failure recovery as test data for application programs. In a word, the type of journal /
The purpose is different. (For example, an input / output journal for logging data to / from the transaction monitor, a file journal obtained when updating a file / database, a system journal for logging system history, etc.). There is also a demand for improving the throughput of the entire system by performing fine-grained processing for each of the diversified journal types. Under the above background, (1) an object of the present invention is to reduce system overhead due to journal acquisition, improve response time for individual transactions, and realize high throughput in the entire transaction processing. .

(2)本発明の他の目的は、各種ジャーナル毎にその信
頼性への要求に応じたジャーナル取得方式とし、信頼性
への要求が高いものについては細かい単位でジャーナル
を取得し、信頼性への要求が低いものについては一括取
得することにより、システム全体では、高信頼かつスル
ープットの高いトランザクション処理を統括的に実現す
ることにある。
(2) Another object of the present invention is to use a journal acquisition method in accordance with a request for reliability for each type of journal, and to acquire a journal in fine units for those having a high request for reliability. Is to collectively acquire those for which the request is low, thereby achieving high-reliability and high-throughput transaction processing in the entire system.

[課題を解決するための手段] 上記目的を達成するために、本発明によるオンライン
・ジャーナル取得方式は、オンライントランザクション
システムにおいてジャーナル情報を取得するオンライン
・ジャーナル取得方式であって、予め定めた条件が満足
されるまで揮発性記憶媒体上にジャーナル情報を順次蓄
積しておき、前記条件が満足された時点で、それまで蓄
積されていたジャーナル情報を不揮発性記憶媒体へ一括
して保存するようにしたものである。
[Means for Solving the Problems] To achieve the above object, an online journal acquisition method according to the present invention is an online journal acquisition method for acquiring journal information in an online transaction system, and a predetermined condition is satisfied. Journal information is sequentially stored on a volatile storage medium until the condition is satisfied, and when the above condition is satisfied, the journal information stored up to that time is collectively stored in a nonvolatile storage medium. Things.

この方式において、例えば、規定の個数のジャーナル
情報が前記揮発性記憶媒体上に蓄積されたことを前記条
件とする。
In this method, for example, the condition is that a specified number of journal information is accumulated on the volatile storage medium.

あるいは、規定の時間が経過したこと前記条件とす
る。
Alternatively, the condition is that a specified time has elapsed.

または、特定のジャーナル情報が発生したことを前記
条件としてもよい。
Alternatively, the condition may be that specific journal information is generated.

規定の個数のジャーナル情報が前記揮発性記憶媒体上
に蓄積されたこと、規定の時間が経過したこと、特定の
ジャーナル情報が発生したことのうち、少なくとも2つ
の条件を採用し、採用した条件のうちいずれかの条件が
満足されたとき、前記ジャーナル情報を不揮発性記憶媒
体へ一括して保存するようにすることもできる。
At least two conditions are adopted among a specified number of pieces of journal information stored on the volatile storage medium, a lapse of a specified time, and the occurrence of specific journal information. When any one of the conditions is satisfied, the journal information may be collectively stored in a nonvolatile storage medium.

さらに、ジャーナルの種別毎に独立に条件を設定し、
ジャーナル種別毎に当該条件が満足されるまで揮発性記
憶媒体上に蓄積し、当該条件が満足されたジャーナル種
別について当該ジャーナル情報を不揮発性記憶媒体へ一
括して保存することことも可能である。
In addition, conditions are set independently for each journal type,
It is also possible to accumulate on a volatile storage medium until the condition is satisfied for each journal type, and collectively store the journal information for the journal type for which the condition is satisfied in a nonvolatile storage medium.

[作 用] 本発明におけるジャーナル取得方式は、信頼性に対す
る要求とメモリ容量が許容する限り、ジャーナルをメモ
リ上に蓄積(スタック)し、ある時点で不揮発性記憶媒
体(DISK/MT)に一括書き込みを行うものである。それ
により、1件毎のトランザクション処理については、ジ
ャーナルをいちいちDISK/MTに書き込む必要がないた
め、レスポンスタイムの向上を図ることができる。また
システム全体としても、複数のジャーナルを一括処理す
ることにより、メモリ上のテーブル参照/更新をまとめ
て行え、該処理のジャーナル1件当りのダイナミックス
テップを減らし、よってCPU処理時間の軽減を図ること
ができる。
[Operation] The journal acquisition method according to the present invention accumulates (stacks) journals in a memory and collectively writes them to a non-volatile storage medium (DISK / MT) at a certain time as long as the demand for reliability and the memory capacity allow. Is what you do. As a result, it is not necessary to write a journal to the DISK / MT for each transaction process, so that the response time can be improved. Also, for the entire system, by processing a plurality of journals collectively, it is possible to collectively refer to / update tables in memory, reduce the number of dynamic steps per journal in the processing, and thereby reduce the CPU processing time. Can be.

システム全体でのスループット向上に一番有効なの
は、ジャーナル取得におけるDISK/MTへの一括アクセス
(取得)である。DISKアクセスでは、データ転送時間に
比べ、シーク時間が1桁以上大きいため、ジャーナル1
件毎にシークが入る従来方式に比べ、複数のジャーナル
に対し、1回しかシーク動作が入らない方が、大幅に入
出力(I/O)時間を軽減できることは明らかであり、そ
の結果、単位時間に処理できるトランザクション件数も
増大し、スループットが向上する。
The most effective way to improve the throughput of the entire system is batch access (acquisition) to DISK / MT in journal acquisition. In DISK access, the seek time is one digit or more longer than the data transfer time.
It is clear that the input / output (I / O) time can be greatly reduced if the seek operation is performed only once for multiple journals, compared to the conventional method in which a seek is performed for each case. The number of transactions that can be processed in time increases, and the throughput improves.

[実施例] 本発明が適用される典型的なオンラインシステムのシ
ステム構成例を第3図に示す。
[Embodiment] Fig. 3 shows a system configuration example of a typical online system to which the present invention is applied.

本システムは、全国各地に散在した数千の端末より入
力されたトランザクションを処理する。最上位には、主
にデータベースサーバとして、ホスト計算機301が2台
チャネル直結(302)で、ホットスタンバイシステムを
構成する。その下には、主に端末制御を目的として、フ
ロントエンドプロセッサFEP303が各拠点に分散配置され
ている。FEP〜ホスト計算機間は、大量データの送/受
信が大部分なため、高速ディジタル回線またはISDN304
が使用される。各FEPの下には、数十〜数百台の端末201
が専用線305によって接続されている。主なトランザク
ション処理はFEP〜端末間で処理され、FEP〜ホスト計算
機間は、バッチ処理が主流となる。本発明のオンライン
・ジャーナル取得処理は、高スループットで高レスポン
スのトランザクション処理が要求されるFEPに存在す
る。
The system processes transactions entered from thousands of terminals scattered throughout the country. At the highest level, a hot standby system is configured with two host computers 301 directly connected to a channel (302) mainly as a database server. Below that, a front-end processor FEP303 is distributed and arranged at each base mainly for the purpose of terminal control. Since the transmission / reception of large amounts of data is mostly between the FEP and the host computer, high-speed digital lines or ISDN 304
Is used. Under each FEP, dozens to hundreds of terminals 201
Are connected by a dedicated line 305. Main transaction processing is performed between the FEP and the terminal, and between the FEP and the host computer, batch processing is the main stream. The online journal acquisition processing of the present invention exists in the FEP which requires high-throughput and high-response transaction processing.

第11図に、典型的なOLTPシステムである銀行オンライ
ンシステムにおけるジャーナル取得の一例を示す。
FIG. 11 shows an example of journal acquisition in a bank online system which is a typical OLTP system.

或る人が1000円を自分の口座より引き出す場合を考え
る。まず、ATMより払出要求メッセージを受信したこ
と、およびそのメッセージをジャーナル取得する。次
に、要求顧客レコードを検索し、この顧客レコード
の残高が1000円以上か否かをチェックし、その結果を取
得する。もし1000円以上であれば、残高を1000円だけ
減じ、ATMへ払出し要求メッセージを送信したことを
ジャーナルに記録する。最後に、ATMより払出し完了
通知を受け取って、本トランザクションを終了とす
る。このように、1つのトランザクションにおけるすべ
てのステップをジャーナルに取得することにより、どの
タイミングでシステムがダウンしても、確実に顧客レコ
ードの破壊を防止することができる。
Suppose a person withdraws 1,000 yen from his account. First, the receipt of the pay-out request message from the ATM and the journal are acquired. Next, the requested customer record is searched, and it is checked whether or not the balance of this customer record is 1000 yen or more, and the result is obtained. If it is 1000 yen or more, the balance is reduced by 1000 yen, and the fact that the payment request message has been sent to the ATM is recorded in the journal. Lastly, upon receiving a payout completion notification from the ATM, the transaction is terminated. As described above, by acquiring all the steps in one transaction in the journal, it is possible to reliably prevent the destruction of the customer record even when the system goes down at any time.

第4図に、本トランザクション処理の概略フローを示
す。まず端末からの入力メッセージを受信すべく、受信
要求を発行する(101)。入力トランザクションメッセ
ージを受信した後、トランザクションのジャーナル情報
を取得し(102)、その後、当該データベースの更新を
行い(103)、応答メッセージを問合せ元端末に返送し
(104)、トランザクション終了処理(105)を行って、
本トランザクション処理を終了する。
FIG. 4 shows a schematic flow of the transaction processing. First, a reception request is issued to receive an input message from the terminal (101). After receiving the input transaction message, the journal information of the transaction is acquired (102), and then the database is updated (103), a response message is returned to the inquiry source terminal (104), and the transaction is terminated (105). Go to
This transaction processing ends.

上記処理の中、本発明に係るジャーナル情報取得処理
(102)の詳細フローを示したのが、第1図である。
FIG. 1 shows a detailed flow of the journal information acquisition processing (102) according to the present invention in the above processing.

第1図のフローにおいて、ジャーナル取得指示をトラ
ンザクション処理より受けると(401)、該ジャーナル
をメモリ上にスタックする(402)。続いて、このメモ
リ上にスタックされたジャーナルが規定個数に達したか
否かをチェックする(403)。もし達していなければそ
のまま本処理を終了する。もし規定個数に達していれ
ば、メモリ上のジャーナルを一括してジャーナル用DISK
へ書き込み(404)、本処理を終了する。
In the flow of FIG. 1, when a journal acquisition instruction is received from the transaction processing (401), the journal is stacked on the memory (402). Subsequently, it is checked whether or not the number of journals stacked on the memory has reached a specified number (403). If not reached, the present process is terminated. If the specified number has been reached, the journals in memory will be
Is written (404), and this process ends.

本ジャーナル取得処理は、システム規定個数のジャー
ナルがメモリ106上にスタックされた時点で、DISK107へ
一括取得している。
In this journal acquisition processing, when the specified number of journals are stacked on the memory 106, the journals are acquired collectively to the DISK 107.

次に、一括取得のタイミングを、規定個数のジャーナ
ルがメモリ上にスタックされるか、またはシステム規定
時間が経過するかの2つの条件のうちいずれかが満足さ
れた時点とした場合のジャーナル取得処理の詳細フロー
を第5図に示す。
Next, the journal acquisition processing is performed when the timing of the batch acquisition is set at a time when one of two conditions, that is, when a prescribed number of journals is stacked on the memory or when a prescribed time of the system elapses, is satisfied. 5 is shown in FIG.

第5図のフローにおいて、ジャーナル取得指示を受け
ると(401)、該ジャーナル情報をメモリ上にスタック
する(402)。次に、このメモリ上にスタックされたジ
ャーナルが規定個数に達したかをチェックする(40
3)。もし達していなければ、そのまま本処理を終了す
る。もし規定個数に達していれば、タイマー・ルーチン
をリセットして(501)、メモリ上のジャーナルを一括
してジャーナル用DISKへ書き込み(404)、本処理を終
了する。一方、タイマによって、システム規定時間の経
過が検出された場合は(502)、ジャーナル一括取得処
理を起動し、タイマをリセットし(501)、メモリ上の
ジャーナルを一括してDISKへ書き込む(404)。
In the flow of FIG. 5, when a journal acquisition instruction is received (401), the journal information is stacked on the memory (402). Next, it is checked whether the number of journals stacked on this memory has reached the specified number (40).
3). If not reached, the present process is terminated. If the specified number has been reached, the timer routine is reset (501), the journals in the memory are collectively written to the journal disk (404), and this processing ends. On the other hand, when the elapse of the system specified time is detected by the timer (502), the journal batch acquisition process is started, the timer is reset (501), and the journals in the memory are written to the DISK (404). .

また、一括取得のタイミングを、特定ジャーナルが発
生した時か、システム規定個数のジャーナルがメモリ上
にスタックされた時のいずれかとした場合のジャーナル
取得処理の詳細フローを第6図に示す。
FIG. 6 shows the detailed flow of the journal acquisition process when the timing of the batch acquisition is either when a specific journal is generated or when a specified number of journals are stacked on the memory.

第6図のフローにおいて、ジャーナル取得指示をトラ
ンザクション処理より受けると(401)、該ジャーナル
をメモリ上にスタックする(402)。次に、該ジャーナ
ルが特定idのジャーナルであるか否かをチェックする
(601)。もし特定ジャーナルでなければ、メモリ上に
スタックされたジャーナルが規定個数に達したか否かを
チェックする(403)。もし達していなければ、そのま
ま本処理を終了する(403)。上記2つのチェックで(6
01,402)、条件成立(YES)の場合は、メモリ上のジャ
ーナルをジャーナル用DISKへ一括して書込む(404)。
In the flow of FIG. 6, when a journal acquisition instruction is received from the transaction processing (401), the journal is stacked on the memory (402). Next, it is checked whether the journal is a journal with a specific id (601). If it is not a specific journal, it is checked whether the number of journals stacked on the memory has reached a specified number (403). If not reached, the present process is terminated (403). In the above two checks (6
01, 402), and if the condition is satisfied (YES), the journals in the memory are collectively written to the journal disk (404).

本方式の場合のジャーナルフォーマットを第7図に示
す。本方式では、各ジャーナルが特定のものか否かを判
断するために、 JID:ジャーナルid がジャーナル情報の先頭に設定されている。
FIG. 7 shows a journal format in the case of this method. In this method, JID: journal id is set at the head of the journal information to determine whether each journal is a specific one.

次に、ジャーナル種別毎に、上記3種(スタック個
数、スタック個数と規定時間、特定ジャーナルとスタッ
ク個数)の条件を個別に採用した実施例を示す。
Next, an embodiment in which the above three conditions (the number of stacks, the number of stacks and the specified time, and the number of specific journals and stacks) are individually adopted for each journal type will be described.

第8図に、各種ジャーナルの一括取得タイミングを制
御するテーブル構造を示す。本テーブルには、ジャーナ
ル種別ごとに、スタック個数、スタック時間、特定ジャ
ーナルid、及び各スタックエリアへのポインタ(アドレ
ス)が設定される。この例におけるジャーナル取得処理
では、ジャーナルの種別ごとにジャーナル取得の条件を
異ならせている。すなわち、図示のように、ジャーナル
種別1では、スタック個数とスタック時間を併用し、ジ
ャーナル種別2では、スタック個数と特定ジャーナルid
を併用している。また、ジャーナル種別3では、スタッ
ク個数とスタック時間を併用している。その他、スタッ
ク時間と特定ジャーナルidの組み合わせ、スタック個数
とスタック時間と特定ジャーナルidの3つの組み合わせ
も考えられる。さらに、スタック個数、スタック時間、
特定ジャーナルidのそれぞれの単独の条件としてもよ
い。システムは、ジャーナル管理テーブル801を参照し
て、各ジャーナル種別ごとに、第1図、第5図、第6図
に示した如き処理を別個に行なう。本方式に適したジャ
ーナルフォーマットを第9図に示す。本方式では、ジャ
ーナル情報701、および特定ジャーナルを識別するため
のジャーナルid(JID)702に加え、ジャーナル種別901
の領域が設けられている。第10図に、第8図のジャーナ
ル管理テーブル801と、各ジャーナルスタックエリア100
1の配置図を示す。各ジャーナル種別ごとに、別個のジ
ャーナルスタックエリア1001が設けられている。
FIG. 8 shows a table structure for controlling the batch acquisition timing of various journals. In this table, the number of stacks, the stack time, a specific journal id, and a pointer (address) to each stack area are set for each journal type. In the journal acquisition process in this example, the journal acquisition conditions are different for each type of journal. That is, as shown in the figure, in the journal type 1, the number of stacks and the stack time are used together, and in the journal type 2, the number of stacks and the specific journal id are used.
Is also used. In journal type 3, the number of stacks and the stack time are used together. In addition, three combinations of a stack time and a specific journal id, and three combinations of the number of stacks, a stack time and a specific journal id can be considered. In addition, the number of stacks, stack time,
It may be a single condition for each specific journal id. The system refers to the journal management table 801 and separately performs the processing shown in FIGS. 1, 5, and 6 for each journal type. FIG. 9 shows a journal format suitable for this method. In this method, in addition to journal information 701 and a journal id (JID) 702 for identifying a specific journal, a journal type 901
Area is provided. FIG. 10 shows the journal management table 801 of FIG.
1 shows a layout diagram. A separate journal stack area 1001 is provided for each journal type.

以上、本実施例によれば、多様化するジャーナル取得
目的とメモリの高信頼化を背景に、ジャーナル種別に応
じて、効率を重んじるもの、信頼性を重んじるもの、同
一種類のジャーナルの中でも、特に信頼性を重んじるも
の以外はスタックすることができ、システム全体では効
率よく、高信頼なジャーナルシステムを実現できる。
As described above, according to the present embodiment, in the background of diversifying journal acquisition purposes and high reliability of memory, among journals of the same type, those that emphasize efficiency, those that value reliability, Stacks other than those that value reliability can be stacked, and an efficient and highly reliable journal system can be realized in the entire system.

最後に、実際の設計に当り、ジャーナルを複数件一括
して取得する場合、トランザクション処理に影響を与え
ないためには、最低どのくらいのメモリスタックエリア
が必要か、及び、本発明の効果について具体的な算出方
法を以下に示す。ここで、トランザクション処理に影響
を与えないとは、トランザクション処理がジャーナル取
得指示を出した時、ジャーナル・スタックエリアが満杯
のため空くのを待機しなければならないという事態が生
じることがないということである。
Finally, in the actual design, when a plurality of journals are acquired collectively, at least how much memory stack area is required so as not to affect the transaction processing, and specific effects of the present invention The calculation method is shown below. Here, having no effect on the transaction processing means that when the transaction processing issues a journal acquisition instruction, a situation in which the journal stack area is full and the user has to wait for the journal stack area to become empty does not occur. is there.

簡単のため、ジャーナル種別は1種、一括取得タイミ
ングは、規定個数=10件とする。
For simplicity, it is assumed that there is one journal type and the batch acquisition timing is the specified number = 10.

<条 件> 1.ジャーナル用DISKは、システムに一本とし、その性能
は以下のとおりである。
<Conditions> 1. There is one DISK for journals in the system, and its performance is as follows.

シーク時間:23ms サーチ時間:9ms 転送速度:1MB/s 2.ジャーナル取得容量 5KB/件 3.ピーク時負荷 50Transaction/s 4.CPU時間 90ms(10件一括取得時) 20ms(1件毎) <計 算> 上記時間中に到着するトランザクション数は、 50(Transaction/秒)×0.172=8.6(Transaction) よって最低必要なジャーナルスタックエリアは 5KB×10件+5KB×8.6件=93KB となる。実際は安全係数を約1.5として、約150KBのジャ
ーナルスタックエリアを用意していれば、本例でスタッ
クエリア満杯になることはないと考えられる。システム
によっては、要求されるスタックエリアが大きすぎる場
合があると考えるが、この時は一括取得件数を減じれば
よい。但し、DISKアクセス回数、CPU処理時間は増加す
るため、スループットは低下する。
Seek time: 23ms Search time: 9ms Transfer speed: 1MB / s 2. Journal acquisition capacity: 5KB / item 3. Peak load: 50 Transaction / s 4. CPU time: 90ms (at the time of batch acquisition of 10 items) 20ms (each item) <Total Calculation> The number of transactions arriving during the above time is 50 (Transaction / sec) x 0.172 = 8.6 (Transaction), so the minimum required journal stack area is 5KB x 10 + 5KB x 8.6 = 93KB. Actually, if the safety factor is about 1.5 and a journal stack area of about 150 KB is prepared, it is considered that the stack area does not become full in this example. It is considered that the required stack area may be too large depending on the system. In this case, the number of batch acquisitions may be reduced. However, since the number of times of disk access and the CPU processing time increase, the throughput decreases.

また、スタック時間は、10件スタックされるのに、 10(件)/50(件/秒)=200[ms] を要し、システム規定時間を200msとしておけば、各ジ
ャーナルは、最長でも200msの間、メモリ上にスタック
されることになる。
Also, the stacking time is 10 (items) / 50 (items / second) = 200 [ms] for stacking 10 items, and if the system specified time is set to 200 ms, each journal will be at most 200 ms. During this time, it will be stacked on the memory.

この時、ジャーナル取得によるCPU負荷は、 10-3×90ms×5(回/秒)=45[%] DISK負荷は、 10-3×((5KB×10件)/1MB/s+23+9)×5(回/秒) =41[%]となる。At this time, the CPU load due to journal acquisition is 10 −3 × 90 ms × 5 (times / second) = 45 [%] DISK load is 10 −3 × ((5 KB × 10 records) / 1 MB / s + 23 + 9) × 5 ( Times / sec) = 41 [%].

これに対し、1件毎にジャーナル取得した場合と比較
して、定量的な効果を以下に示す。
On the other hand, a quantitative effect is shown below as compared with the case where a journal is acquired for each case.

まずレスポンスタイムについては、1件毎にDISKに書
込む場合は、単純には、DISK書込み時間は、 5KB/1(MB/s)+23ms+9ms=37ms となり、この時間だけ、レスポンスタイムが長くなる。
First, as for the response time, when writing to the DISK one by one, the DISK writing time is simply 5 KB / 1 (MB / s) +23 ms + 9 ms = 37 ms, and the response time becomes longer by this time.

また、CPU負荷については、ジャーナル処理のみで、 20(ms)×50(件/s)×10-3=100% DISK負荷についても、 37(ms)×50×10-3=185% と増大し、ジャーナルを1件ずつ取得する方式とする
と、前記計算条件ではCPU負荷、DISK負荷の観点より、
明らかにシステムが成立しないことがわかる。
Also, the CPU load is only journal processing, and 20 (ms) x 50 (items / s) x 10-3 = 100% DISK load also increases to 37 (ms) x 50 x 10-3 = 185% However, assuming that journals are acquired one by one, in the above calculation conditions, from the viewpoint of CPU load and DISK load,
It is clear that the system does not work.

以上の例よりも、ジャーナルの一括取得を行うことに
より、レスポンスはもちろん、CPU、DISKの負荷を著し
く軽減できることが、定量的に理解されよう。
It will be understood quantitatively that the collective acquisition of journals can significantly reduce not only the response but also the load on the CPU and DISK as compared with the above example.

[発明の効果] 本発明では、以上説明したように構成されているの
で、以下に記載するような効果を奏する。
[Effects of the Invention] The present invention is configured as described above, and has the following effects.

ジャーナルを一括取得することにより、CPU負荷、DIS
K負荷を軽減でき、システム全体でスループットの向上
が実現できる。また、システム規定時間を設けることに
より、各ジャーナルの最長メモリスタック時間を制限す
ることができ、定量的な信頼性を得ることができる。ま
た、特定のジャーナルが発生した時に一括取得すること
により、ある特定のジャーナルの信頼性を著しく高くす
ることができる。
CPU load, DIS
The K load can be reduced, and the overall system can be improved in throughput. Further, by providing the system specified time, the longest memory stack time of each journal can be limited, and quantitative reliability can be obtained. In addition, by collectively acquiring when a specific journal has occurred, the reliability of a specific journal can be significantly increased.

以上の一括取得条件を各種ジャーナル毎に設けて制御
することにより、一部信頼性を必要とするジャーナルに
ついては、それなりの信頼性を保証し、かつシステム全
体としては、高レスポンス、高スループットのジャーナ
ルシステムを実現することができる。
By setting the above batch acquisition conditions for each journal and controlling it, a certain level of reliability is guaranteed for journals that require some reliability, and high-response, high-throughput journals are used for the entire system. The system can be realized.

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

第1図は本発明によるジャーナル取得処理の詳細フロー
を示すフローチャート、第2図は従来トランザクション
処理の概略を示すフローチャート、第3図は本発明が適
用されるシステム構成例を示すブロック図、第4図は本
発明におけるトランザクション処理の概略を示すフロー
チャート、第5図は本発明による他のジャーナル取得処
理の詳細フローを示すフローチャート、第6図は本発明
によるさらに他のジャーナル取得処理の詳細フローを示
すフローチャート、第7図は本発明におけるジャーナル
のフォーマット図、第8図はジャーナル管理テーブルの
説明図、第9図は本発明におけるジャーナルの他のフォ
ーマット図、第10図はメモリ上のテーブル(第8図)と
スタックエリアとの関係を示す説明図、第11図はジャー
ナル取得の具体例の説明図である。 106……ジャーナルスタックエリア(メモリ)、107……
DISK、201……端末群、301……ホスト計算機、303……F
EP、801……ジャーナル管理テーブル。
1 is a flowchart showing a detailed flow of a journal acquisition process according to the present invention, FIG. 2 is a flowchart showing an outline of a conventional transaction process, FIG. 3 is a block diagram showing an example of a system configuration to which the present invention is applied, and FIG. FIG. 5 is a flowchart showing an outline of a transaction process in the present invention. FIG. 5 is a flowchart showing a detailed flow of another journal acquiring process according to the present invention. FIG. 6 shows a detailed flow of another journal acquiring process according to the present invention. FIG. 7 is a format diagram of a journal in the present invention, FIG. 8 is an explanatory diagram of a journal management table, FIG. 9 is another format diagram of the journal in the present invention, and FIG. Fig. 11 is an explanatory diagram showing the relationship between the stack area and the stack area. FIG. 106 …… Journal stack area (memory), 107 ……
DISK, 201: Terminal group, 301: Host computer, 303: F
EP, 801 ... Journal management table.

フロントページの続き (72)発明者 林 慶治郎 茨城県日立市大みか町5丁目2番1号 株式会社日立製作所大みか工場内 (72)発明者 足達 芳昭 茨城県日立市大みか町5丁目2番1号 株式会社日立製作所大みか工場内 (72)発明者 寺門 勲 茨城県日立市大みか町5丁目2番1号 日立プロセスコンピュータエンジニアリ ング株式会社内 (72)発明者 松崎 健二 茨城県日立市大みか町5丁目2番1号 日立プロセスコンピュータエンジニアリ ング株式会社内 (56)参考文献 特開 昭63−217441(JP,A) 特開 平2−83641(JP,A) 特開 平2−82325(JP,A) 特開 平1−213738(JP,A)Continued on the front page (72) Keijiro Hayashi 5-2-1 Omikacho, Hitachi City, Ibaraki Prefecture Inside the Omika Plant, Hitachi, Ltd. (72) Yoshiaki Adachi 5-2-1 Omikamachi, Hitachi City, Ibaraki Stock (72) Inventor Isao Terakado 5-2-1 Omikacho, Hitachi City, Ibaraki Prefecture Within Hitachi Process Computer Engineering Co., Ltd. (72) Inventor Kenji Matsuzaki 5-2-2 Omikacho, Hitachi City, Ibaraki Prefecture No. 1 Hitachi Process Computer Engineering Co., Ltd. (56) References JP-A-63-217441 (JP, A) JP-A-2-83641 (JP, A) JP-A-2-82325 (JP, A) JP-A 1-213738 (JP, A)

Claims (6)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】オンライン・トランザクションシステムに
おいてジャーナル情報を取得するオンライン・ジャーナ
ル取得方法であって、 ジャーナルの種別毎に独立に、当該ジャーナル種別に応
じて定めた条件を設定し、 対応する条件が満足されるまで、揮発性記憶媒体上にの
み、発生した各ジャーナル情報を記憶しておき、 対応する条件が満足されたジャーナル種別のジャーナル
情報を、当該条件が満足された時点で、前記揮発性媒体
より読み出して不揮発性記憶媒体に一括して保存するこ
とを有することを特徴とするオンライン・ジャーナル取
得方法。
An online journal acquisition method for acquiring journal information in an online transaction system, wherein a condition determined according to the journal type is set independently for each journal type, and the corresponding condition is satisfied. Until the condition is satisfied, the journal information of each generated journal is stored only on the volatile storage medium, and the journal information of the journal type satisfying the corresponding condition is stored when the condition is satisfied. Reading an online journal and collectively storing it in a nonvolatile storage medium.
【請求項2】各ジャーナル種別に設定された前記条件
は、当該ジャーナル種別に対して定めた規定の個数の当
該種別のジャーナル情報が前記揮発性記憶媒体上に記憶
されたことであることを特徴とする請求項1記載のオン
ライン・ジャーナル取得方法。
2. The condition set for each journal type is that a specified number of journal information of the type specified for the journal type is stored on the volatile storage medium. 2. The online journal acquisition method according to claim 1, wherein:
【請求項3】各ジャーナル種別に設定された前記条件
は、当該ジャーナル種別に対して定めた規定の時間が当
該種別のジャーナル情報を前回不揮発性記憶媒体に保存
してから経過したことであることを特徴とする請求項1
記載のオンライン・ジャーナル取得方法。
3. The condition set for each journal type is that a specified time set for the journal type has elapsed since the last time the journal information of the type was stored in the nonvolatile storage medium. Claim 1 characterized by the following:
Online journal acquisition method described.
【請求項4】各ジャーナル種別に設定された前記条件
は、当該ジャーナル種別に対して定めた特定のジャーナ
ル情報が発生したことであることを特徴とする請求項1
記載のオンライン・ジャーナル取得方法。
4. The method according to claim 1, wherein the condition set for each journal type is that specific journal information defined for the journal type has occurred.
Online journal acquisition method described.
【請求項5】各ジャーナル種別に設定された前記条件の
少なくとも一つは、当該ジャーナル種別に対して定めた
規定の個数のジャーナル情報が前記揮発性記憶媒体上に
記憶されたことであり、少なくとも他の一つは当該ジャ
ーナル種別に対して定めた規定の時間が当該種別のジャ
ーナル情報を前回不揮発性記憶媒体に保存してから経過
したことであることを特徴とする請求項1記載のオンラ
イン・ジャーナル取得方法。
5. At least one of the conditions set for each journal type is that a specified number of journal information defined for the journal type is stored on the volatile storage medium. 2. The online storage device according to claim 1, wherein the other is that a specified time set for the journal type has elapsed since the last time the journal information of the type was stored in the nonvolatile storage medium. Journal acquisition method.
【請求項6】各ジャーナル種別に設定された前記条件の
少なくとも一つは、当該ジャーナル種別に対して定めた
規定の個数のジャーナル情報が前記揮発性記憶媒体上に
記憶されたことと、当該ジャーナル種別に対して定めた
規定の時間が当該種別のジャーナル情報を前回不揮発性
記憶媒体に保存してから経過したことと、当該ジャーナ
ル種別に対して定めた特定のジャーナル情報が発生した
こととの3つの事象のうちの少なくとも2つの事象の少
なくとも一方が生じたことという条件であることを特徴
とする請求項1記載のオンライン・ジャーナル取得方
法。
6. At least one of the conditions set for each journal type is that a specified number of journal information defined for the journal type has been stored on the volatile storage medium, 3 that the specified time defined for the type has elapsed since the last time the journal information of the type was stored in the nonvolatile storage medium, and that the specific journal information specified for the journal type has occurred. 2. The online journal acquisition method according to claim 1, wherein a condition is that at least one of at least two of the two events has occurred.
JP2256411A 1990-09-26 1990-09-26 How to get an online journal Expired - Fee Related JP2913591B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2256411A JP2913591B2 (en) 1990-09-26 1990-09-26 How to get an online journal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2256411A JP2913591B2 (en) 1990-09-26 1990-09-26 How to get an online journal

Publications (2)

Publication Number Publication Date
JPH04133158A JPH04133158A (en) 1992-05-07
JP2913591B2 true JP2913591B2 (en) 1999-06-28

Family

ID=17292306

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2256411A Expired - Fee Related JP2913591B2 (en) 1990-09-26 1990-09-26 How to get an online journal

Country Status (1)

Country Link
JP (1) JP2913591B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100833559B1 (en) * 1999-05-06 2008-06-10 후지쯔 가부시끼가이샤 Transaction recorder
JP4684694B2 (en) * 2005-03-22 2011-05-18 富士通株式会社 Electronic journal data management method, electronic journal data management device, and electronic journal data management program
JP4919983B2 (en) * 2008-02-21 2012-04-18 ヒタチグローバルストレージテクノロジーズネザーランドビーブイ Data storage device and data management method in data storage device
JP2010204816A (en) * 2009-03-02 2010-09-16 Oki Electric Ind Co Ltd Method, and system for managing journal data, financial terminal equipment, repeater device, and journal management server

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2610926B2 (en) * 1988-02-20 1997-05-14 日本電気株式会社 Transaction control method
JPH0282325A (en) * 1988-09-20 1990-03-22 Fujitsu Ltd Restoring system for event log data

Also Published As

Publication number Publication date
JPH04133158A (en) 1992-05-07

Similar Documents

Publication Publication Date Title
US5386554A (en) Method and apparatus for reducing data locking time by removing a lock when journal data is written into a main memory journal queue
US5586315A (en) Computer program product for off-loading host-based DBMS predicate evaluation to a disk controller
JP2718031B2 (en) History information acquisition method
US4933842A (en) Automated investment fund accounting system
JP2708356B2 (en) Method, system and apparatus for updating a database
US6088705A (en) Method and apparatus for loading data into a database in a multiprocessor environment
US5862318A (en) System for generating a gapless series of identity values
WO1998004992A2 (en) Process facility management matrix and system and method for performing batch processing in an on-line environment
CN101320458A (en) Method and system for completing bill reconciliation under massive data
JP2913591B2 (en) How to get an online journal
EP0869444A2 (en) Integrated database system and computer-readable recording medium recorded with program for managing database structure thereof
US7461065B2 (en) Method and system for utilizing shared numeric locks
JPH0736635A (en) Disk array device
US6741970B2 (en) Method and apparatus for enhanced, high speed updating and storing of E-commerce orders in a server
US7363290B1 (en) Item capture research system
US20080162591A1 (en) Method of Logging Transactions and a Method of Reversing a Transaction
US6510456B1 (en) Data transfer control method and system, data transfer control program file, and file storage medium
JPH0816881B2 (en) Database update method
JP2804504B2 (en) History information management method of online database system
JPH10512985A (en) Track transaction state
CN107357679A (en) A kind of backup method and device
CN114265558B (en) Multithreading bill collecting system with data channel and data storage device
JPH0310343A (en) Hot spot data management processing system
KR102777464B1 (en) Data load guarantee system using message queue and method performing the same
KR102821151B1 (en) A stock trading guide system for capital gains tax optimization

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080416

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090416

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090416

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100416

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees