JPS5958566A - Acquisition system for log data - Google Patents

Acquisition system for log data

Info

Publication number
JPS5958566A
JPS5958566A JP57169418A JP16941882A JPS5958566A JP S5958566 A JPS5958566 A JP S5958566A JP 57169418 A JP57169418 A JP 57169418A JP 16941882 A JP16941882 A JP 16941882A JP S5958566 A JPS5958566 A JP S5958566A
Authority
JP
Japan
Prior art keywords
log data
tlf
hlf
buffer
written
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.)
Granted
Application number
JP57169418A
Other languages
Japanese (ja)
Other versions
JPH0214738B2 (en
Inventor
Kikuo Takasaki
高崎 喜久夫
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP57169418A priority Critical patent/JPS5958566A/en
Publication of JPS5958566A publication Critical patent/JPS5958566A/en
Publication of JPH0214738B2 publication Critical patent/JPH0214738B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PURPOSE:To prevent the occurrence of bottleneck by equalizing block values of plural TLF in the same format to one another, and writing log data in the TLF buffer group and then writing it in a TLF in a nonbusy state. CONSTITUTION:When an application program 10 generates the log data, the data is written in a history logging file (HLF) buffer group 20. Then, it is written in the nonbusy temporary logging file (TLF) among TLSs 30-1-30-n in the same format. When an HLF buffer 20-1 is full, its contents are written in an HLF40. The block values of the TLFs are equalized to one another to write the data in the nonbusy file, so the log data acquisition system which never exceeds the bottleneck is obtained.

Description

【発明の詳細な説明】 〔発明の技術分野〕 本発明は、データベースの障害対策の一環としてログデ
ータを取得するログデータの取得方式において、ボトル
嗜ネックが生じないようにしてログデータを取得できる
ようにしたものである。
[Detailed Description of the Invention] [Technical Field of the Invention] The present invention provides a log data acquisition method for acquiring log data as part of database failure countermeasures, in which log data can be acquired without bottlenecks occurring. This is how it was done.

〔従来技術と問題点〕[Conventional technology and problems]

従来のログデータの取得方式においては、トランザクシ
ョンを実行する際の更新前イメージや更新後イメージを
ログデータとし、ログデータが生成される度にログデー
タをHL Fバッファおよび1個のTLFに書込み、H
LFバッファが満杯になると、HLFバッファの内容を
HLFに書込んでいる。なお、TLFはTempora
ry Logging Fileの略であシ、HLFは
Historical Logging Fileの略
である。HLFは、一般的に呼ばれているジャーナルや
Audit Trailと目的を同じくするものである
。将来のシステムにおいては、1時間当りのトランザク
ションの件数が非常に増大し、例えば5〇万件/1時間
程度になるものと予想される。
In the conventional log data acquisition method, the pre-update image and post-update image when executing a transaction are used as log data, and each time log data is generated, the log data is written to the HL F buffer and one TLF. H
When the LF buffer becomes full, the contents of the HLF buffer are written to the HLF. Note that TLF is Tempora
ry is an abbreviation for Logging File, and HLF is an abbreviation for Historical Logging File. HLF has the same purpose as commonly called journal or audit trail. In future systems, the number of transactions per hour is expected to increase significantly, for example to about 500,000 transactions per hour.

このような場合、データベース障害対策の一環として取
得されているログデータもまたトランザクション件数に
比例して膨大なものとなシ、従来のログデータの取得の
ように物理的に唯一のTLFへ逐次にログデータを記録
していたのでは、ログデータの取得そのものがシステム
の処理能力を制約してしまう。このことを一般的にボト
ル・ネックと呼んでいる。
In such a case, the log data that is being acquired as part of the database failure countermeasures will also be huge in proportion to the number of transactions. If log data were recorded, the acquisition of log data itself would restrict the processing capacity of the system. This is generally called a bottle neck.

〔発明の目的〕[Purpose of the invention]

本発明は、上記の考察に基づくものであって、単位時間
当りのトランザクション件数が増大し記録すべきログデ
ータが増大しても、ボトル・ネックが起きないようにし
たログデータの取得方式を提供することを目的としてい
る。
The present invention is based on the above consideration, and provides a log data acquisition method that prevents bottlenecks from occurring even when the number of transactions per unit time increases and the amount of log data to be recorded increases. It is intended to.

〔発明の構成〕[Structure of the invention]

そしてそのため、本発明のログデータの取得方式は、複
数の履歴ロギング・ファイル・・バッファより成る履歴
ロギング・ファイル・バッファ群と、一時的履歴ロギン
グ・ファイルと、履歴ロギング中ファイルを具備し、ロ
グデータが発生した時、当該ログデータを上記履歴ロギ
ング中ファイル・バッファ群に格納されている直前のロ
グデータに続くようにして上記履歴ロギング・ファイル
・バッファ群に書き込み、書き込みが完了した後に当該
ログデータを上記一時的履歴ロギング・ファイルに書込
み、履歴ロギングやファイル・バッファが満杯になった
時、当該炭層ロギング・ファイル・バッファ内容を上記
履歴ロギング・ファイル・バッファに書込むようになっ
たログデータの取得方式において、同一フォーマットの
一時的履歴ロギング・ファイルを複数個率イ6Hすると
共に全ての一時的履歴ロキング・ファイルにおけるブロ
ックのキー値を等しくシ、ログデータの上記履歴ロギン
グ・ファイル拳バッファ群への書き込みが完了したとき
、ノンビジーの一時的履歴ロギング・ファイルを選択し
、当該選択された一時的履歴ロギング・ファイルに当該
ログデータを書き込むようにしたことを特徴とするもの
である。
Therefore, the log data acquisition method of the present invention includes a history logging file buffer group consisting of a plurality of history logging files and buffers, a temporary history logging file, and a history logging file. When data is generated, the log data is written to the history logging file buffer group so as to follow the previous log data stored in the history logging file buffer group, and after writing is completed, the log data is written to the history logging file buffer group. Log data is written to the above temporary history logging file, and when the history logging or file buffer is full, the contents of the corresponding coal seam logging file buffer are written to the above history logging file buffer. In the acquisition method, a plurality of temporary history logging files of the same format are created, the key values of the blocks in all the temporary history logging files are set equally, and the above history logging file buffer group of log data is created. When writing to the log data is completed, a non-busy temporary history logging file is selected, and the log data is written to the selected temporary history logging file.

〔発明の実施例〕[Embodiments of the invention]

以下、本発明を図面を参照しつつ説明する。 Hereinafter, the present invention will be explained with reference to the drawings.

第1図ないし第5図は本発明の基本的なTLFのアクセ
ス方法を示すものであって、第1図は本発明の基礎とな
るログデータの取得方式を示す図、第2図はTLFのフ
ァイル構成を示す図、第3図はHLFバッファ群の構造
を示す図、第4図はデータのバッファリングの方法を説
明する図、第5図はTLFへのログデータの記録方法を
説明する図、第6図と第7図は本発明の1実施例を説明
するものであって、第6図は本発明のシステム構成の1
例を示す図、第7図は本発明におけるTLFへのログデ
ータ記録方法を説明する図である。
Figures 1 to 5 show the basic TLF access method of the present invention. Figure 1 shows the log data acquisition method that is the basis of the present invention, and Figure 2 shows the TLF access method. Figure 3 is a diagram showing the structure of the HLF buffer group; Figure 4 is a diagram explaining the data buffering method; Figure 5 is a diagram explaining the recording method of log data to TLF. , FIG. 6 and FIG. 7 explain one embodiment of the present invention, and FIG. 6 shows one of the system configurations of the present invention.
A diagram showing an example, FIG. 7, is a diagram illustrating a method of recording log data to TLF in the present invention.

第1図は本発明の基礎どなるログデータの取得方式を説
明する図である。第1図において、1〇−1と10−2
は応用プログラム、20はHLFバッファ群、30はT
LF140はHLFをそれぞれ示している。まだ、■、
■などは処理の順番を示している。応用プログラム10
−1がログデータを作成すると、このログデータはHL
Fバッファ群2群上0込まれ、しかる後にTLF30に
書込まれる。応用プログラム10−2がログデータを作
成すると、同様にこのログデータはHLFバッファ群2
群上0き込まれ、しかる後にTLF30に書込まれる。
FIG. 1 is a diagram explaining the basic log data acquisition method of the present invention. In Figure 1, 10-1 and 10-2
is the application program, 20 is the HLF buffer group, 30 is T
LF140 indicates HLF. Not yet ■,
■ etc. indicate the order of processing. Application program 10
-1 creates log data, this log data is HL
0 is written to the second group of F buffers, and then written to the TLF 30. When the application program 10-2 creates log data, this log data is also stored in the HLF buffer group 2.
0 is written to the group, and then written to TLF30.

HLFバッファ群2群上0のTLFバッファが満杯にな
ると、そのHLFバッファの内容はHLF40に省き込
まれる。なお、HLFバッファ群2群上0記憶装置上に
あり、TLF30は固定ヘッドの高速DASD上にあり
、HLF40もDASD上にある。
When the TLF buffer of the second HLF buffer group 0 becomes full, the contents of that HLF buffer are omitted to the HLF 40. Note that the HLF buffer group 2 is located on the top 0 storage device, the TLF 30 is located on a high-speed DASD with a fixed head, and the HLF 40 is also located on the DASD.

第2図はTLFのファイル構造を示す図である。FIG. 2 is a diagram showing the file structure of TLF.

第2図においてT1ないしTφはトラックをそれぞれ示
している。各トラックT1、T2、・・・Tφは、m個
のブロックを有している。各ブロックは、キ一部と、長
さlのデータ部を有している。TLF30の全ブロック
は同一のキーを有している。トラック数Tφは、 で定められる。ただし、LはHLFのブロック長、lは
TLFのブロック長をそれぞれ示している。
In FIG. 2, T1 to Tφ indicate tracks, respectively. Each track T1, T2, . . . Tφ has m blocks. Each block has a key part and a data part of length l. All blocks of TLF 30 have the same key. The number of tracks Tφ is defined as follows. However, L indicates the block length of HLF, and l indicates the block length of TLF.

TLF30のトラック当りmブロックが存在すれば、D
ASD特有の回転待時間は、 で表わされる。
If there are m blocks per track of TLF30, D
The rotation waiting time specific to ASD is expressed as follows.

第3図はHLFバッファ群20の構造全20ものである
。20−1ないし20−nはHLFバッファをそれぞれ
示している。HL Fバフフッ群20の中には、ル個の
HLFバッファ20−1ないし20−nが存在する。各
HLFバッファ20−1.20−2、・・・20−nは
、長さしの大きさをもち、長さ4のブロックを複数個(
図示の例では4個)を有している。LはHL Fバッフ
ァとHLFとの間のデータ転送の単位であり、4はHL
 FバッファとTLFとの間のデー タ転送の単位であ
る。4は、TLFのブロックのデータ部の長さに等しい
FIG. 3 shows all 20 structures of the HLF buffer group 20. 20-1 to 20-n indicate HLF buffers, respectively. The HLF buffer group 20 includes HLF buffers 20-1 to 20-n. Each HLF buffer 20-1, 20-2, .
In the illustrated example, there are 4). L is the unit of data transfer between the HL F buffer and HLF, and 4 is the unit of data transfer between the HL F buffer and HLF.
This is the unit of data transfer between the F buffer and TLF. 4 is equal to the length of the data portion of the TLF block.

第4図はデータのバッファリング方法を説明するもので
ある。第4図において、bl、b2、・・・bφはブロ
ックを示しており、また、■ないし■はデータ順番を示
している。ログデータ■が発生すると、とのログデータ
■はHLFバッファ20−1のブロックb1に書込まれ
る。ログデータ■が発生すると、このログデータ■は、
ログデータ■の後に密接するようにしてHLFバッファ
20−1に書込まれる。以下、ログデータが発生する度
にログデータはTLFバッファ20に書込まれる。
FIG. 4 explains a data buffering method. In FIG. 4, bl, b2, . . . bφ indicate blocks, and ■ to ■ indicate data order. When the log data ■ is generated, the log data ■ is written to the block b1 of the HLF buffer 20-1. When log data■ occurs, this log data■
The log data is written to the HLF buffer 20-1 closely after the log data . Thereafter, log data is written to the TLF buffer 20 every time log data is generated.

第5図はTLFへのログデータの記録方法を説明する図
である。
FIG. 5 is a diagram illustrating a method of recording log data in the TLF.

TLFにログデータを書き込む場合、HLFバッファ群
20をもつ全20理装置側(図示せず)は、先ずトラッ
クを指定するコマンドをTLF30に送る。TLF30
から選択OKの応答が送られて来ると、中央処理装置側
は、キー値を特定して5ERCHKEY EQUALと
いうコマンドなTLF30に送る。この場合のキー値は
、TLF30のブロックのキ一部の値に等しい。TLF
30は、指定されたキー値をもつブロックが見付かると
、等しいキーをもつブロックが見付かったことを示す応
答を中央処理装置側へ送る。先にも述べたように、TL
F30の全ブロックは、同一のキーをもつので、ブロッ
クの先頭が磁気ヘッドの下に位置すると、等しいキーを
もつブロックが見付かったことを示す応答が中央処理装
置側に送られることになる。この応答を受取ると、中央
処理装置側はライトのコマンドとログデータをTLF3
0に送る。第4図のI[、Fバフフッ群20の内容は、
下記のようにしてTLF30に書込まれる。
When writing log data to the TLF, all 20 physical devices (not shown) having the HLF buffer group 20 first send a command specifying a track to the TLF 30. TLF30
When a selection OK response is sent from the central processing unit, the central processing unit specifies the key value and sends the command 5ERCHKEY EQUAL to the TLF 30. The key value in this case is equal to the value of the key part of the block of TLF 30. TLF
30, when a block with the specified key value is found, sends a response to the central processing unit indicating that a block with the same key has been found. As mentioned earlier, T.L.
Since all blocks of F30 have the same key, when the head of the block is located under the magnetic head, a response indicating that a block with the same key has been found is sent to the central processing unit. Upon receiving this response, the central processing unit transfers the write command and log data to TLF3.
Send to 0. The contents of the I[, F buff group 20 in FIG. 4 are as follows:
It is written to the TLF 30 as follows.

(1)  ログデータ■は、TLF30のトラックT1
に相当するHLFバッファ群20のブロ全201にバッ
ファリングされているので、TLF30のトラックT1
の何れかのブロックにブロックb1を書き出す。
(1) Log data ■ is track T1 of TLF30
is buffered in all blocks 201 of the HLF buffer group 20 corresponding to the track T1 of the TLF 30.
Write block b1 to any block.

(2)  ログデータ■はTLF30のトラックT1に
相当するHLFバッファ群20のブロ全201からブロ
ックb2にバッファリングされているので、TLF30
のトラックT1のいずれかへブロックb1とb2を同時
に書き出す。
(2) Since the log data ■ is buffered from block b2 to block b2 of the HLF buffer group 20 corresponding to track T1 of TLF30,
Blocks b1 and b2 are simultaneously written to either track T1.

(3)  ログデータ■はTLF30のトラックT2に
相当するHLFバッファ群20のブロ全202からb3
にバッファリングされているので、TLF30のトラッ
クT2のいずれかのブロックへブロックb2とb3を同
時に書出す。
(3) Log data ■ is all blocks 202 to b3 of the HLF buffer group 20 corresponding to track T2 of the TLF 30.
Therefore, blocks b2 and b3 are written to any block of track T2 of TLF 30 at the same time.

(4)  ログデータ■は、TLF30のトラックT3
に相当するHLFバッファ群20のブロ全203からb
4にバッファリングされているので、TLF30のトラ
ックT3の何れかのブロックへブロックb3とb4を同
時に書き出す。
(4) Log data ■ is track T3 of TLF30
All blocks 203 to b of the HLF buffer group 20 corresponding to
4, blocks b3 and b4 are simultaneously written to any block of track T3 of TLF 30.

(5)  ログデータ■は、TLF30のトラックT4
に相当するH L Fバフフッ群20のブロックb4か
らb5にバッファリングされているので、TLF30の
T4の何れかのブロックへブロックb4とb5を同時に
書き出す。
(5) Log data ■ is track T4 of TLF30
Since blocks b4 and b5 of the H LF buffer group 20 corresponding to the buffer are buffered, blocks b4 and b5 are simultaneously written to any block of T4 of the TLF 30.

(6)  ログデータ■は、TLF30のトラックT5
に相幽するブロックb5からb6にバッファリングされ
ているので、TLF30のトラックT5の何れかのブロ
ックへブロックb5とb6を同時に書き出す。
(6) Log data ■ is track T5 of TLF30
Since blocks b5 and b6 are buffered in parallel with each other, blocks b5 and b6 are simultaneously written to any block of track T5 of TLF 30.

(7)  ログデータ■は、TLF30のトラックT6
に相当するHLFバッファ群20のブロックb6にバッ
ファリングされているので、TLFのトラックT6の何
れかのブロックへブロックb6を書き出す。
(7) Log data ■ is track T6 of TLF30
Since the block b6 is buffered in the block b6 of the HLF buffer group 20 corresponding to the block b6, the block b6 is written to any block of the TLF track T6.

以上の説明からも分かるように、TLF30へのアクセ
ス単位は、当該ログデータを保証するだけの最小ブロッ
ク数である。このことは、最高のアクセス効率までは無
理としても必要最小限のHLFバッファ書き出しに留め
ることが可能である。因に、1つのHLFバッファが満
杯になった時点で主記憶装置上のHLFバッファをバッ
ファ長りを単位としてHLFに書き出す。HLFへの書
き出しが完了するまでの間は、当該HLFバッファの再
使用は抑止され、1°き出しが完了したことを見極めた
時点で再使用可能なHLFバッファとして管理すれば、
たとえシステム睡ダウン等に遭遇しても、ログデータは
HLF又はTLFに必ず存在することになる。
As can be seen from the above explanation, the unit of access to the TLF 30 is the minimum number of blocks sufficient to guarantee the log data. This makes it possible to limit writing to the HLF buffer to the minimum necessary level, even if it is impossible to achieve the highest access efficiency. Incidentally, when one HLF buffer becomes full, the HLF buffer on the main storage device is written to the HLF in units of buffer length. Reuse of the HLF buffer is inhibited until the writing to HLF is completed, and if it is managed as a reusable HLF buffer when it is determined that 1° writing is completed,
Even if the system goes down, the log data will always exist in the HLF or TLF.

第6図は本発明のシステム構成の1例を示す図である。FIG. 6 is a diagram showing an example of the system configuration of the present invention.

第6図において、10は応用プログラム群、30−1な
いし30−ルはTLFlDiとD2はログデータをそれ
ぞれ示している。TLF30−1ないし30−nのそれ
ぞれは、同一構成のものである。応用プログラム群10
は、トランザクションを処理するものである。第7図の
例では、HLFバッファ20−1が満杯になったので、
HL Fバッファ20−1の内容はHLF40に書き込
まれている。ログデータD1はHLFバッファ20に書
込まれ、しかる後にTLF30−1に書込まれている。
In FIG. 6, 10 indicates a group of application programs, 30-1 to 30-1 indicate TLFlDi, and D2 indicates log data, respectively. Each of the TLFs 30-1 to 30-n has the same configuration. Application program group 10
handles transactions. In the example of FIG. 7, since the HLF buffer 20-1 is full,
The contents of the HLF buffer 20-1 have been written to the HLF 40. The log data D1 is written to the HLF buffer 20, and then written to the TLF 30-1.

ログデータD2はHLFバッファ20−2に書き込まれ
る。ログデータD2をHLFバッファ群20に書込んだ
後、このログデータD2をTLFに書込む必要があるの
で、空きのTLFを見付け、空きのTLFにログデータ
D2を書き込む。図示の例はログデータD2をHLFバ
ッファ20−2に書き込んだ時点ではTLF30−1が
ビジー、TLF30−2がノンビジーと仮定しておシ、
ログデータD2の書き込み先がTLF30−2と決定さ
れた場合を示している。ログデータD2のTLF30−
2へ書き込みが開始されると、TLF30−2はビジー
状態になる。
Log data D2 is written to HLF buffer 20-2. After writing the log data D2 to the HLF buffer group 20, it is necessary to write the log data D2 to the TLF, so an empty TLF is found and the log data D2 is written to the empty TLF. The illustrated example assumes that TLF 30-1 is busy and TLF 30-2 is non-busy at the time log data D2 is written to HLF buffer 20-2.
This shows a case where the writing destination of the log data D2 is determined to be the TLF 30-2. TLF30- of log data D2
When writing to TLF 30-2 starts, TLF 30-2 becomes busy.

第7図は本発明におけるTLFへのログデータの記録方
法を説明する図である。第7図の例は、負荷分散数が2
とされ、ノンビジーTLFの選択が交互に行われたとき
のログデータの記録方法ケ示すものである。なお、HL
Fバッファへのログデータの書込みは、第4図に示すよ
うに行われるものとしている。
FIG. 7 is a diagram illustrating a method of recording log data to TLF in the present invention. In the example in Figure 7, the number of load distributions is 2.
This shows a method for recording log data when non-busy TLFs are selected alternately. In addition, H.L.
It is assumed that log data is written to the F buffer as shown in FIG.

(1)  HL Fバラフッ群20のブロックb1をT
LF30−1のトラックT1に書き込む。
(1) Block b1 of HL F barafu group 20 is T
Write to track T1 of LF30-1.

(2)  ログデータ■のHLFバッファ群20への書
き込みが完了した時点でTLF30−1がビジー、TL
F30−2はノンビジーとすると、ログデータ■を格納
するHLFバッファ群20のブロックb1とb2は、T
LF30−2のトラックT1に格納される。
(2) When the writing of the log data ■ to the HLF buffer group 20 is completed, the TLF 30-1 is busy and the TL
Assuming that F30-2 is non-busy, blocks b1 and b2 of the HLF buffer group 20 that store log data
It is stored in track T1 of LF30-2.

(3)  ログデータ■の)(L Fバラフッ群20へ
の書き込みが完了した時点でTLF30−2がビジー、
TLF30−1がノンビジーであるとすると、ログデー
タ■を格納するHLFバッファ群20のブロックb2と
b3は、TLF30−1のトラックT2に書き込まれる
(3) TLF30-2 is busy when writing of log data () to LF barafu group 20 is completed.
Assuming that the TLF 30-1 is non-busy, blocks b2 and b3 of the HLF buffer group 20 storing the log data (2) are written to the track T2 of the TLF 30-1.

(4)  ログデータ■のHLFのバッファ群20への
書き込みが完了した時点でが、TLF30−1がビジー
、TLF30−2がノンビジーであるとすると、ログデ
ータ■を格納するHLFバッファ群20のブロックb3
とb4は、TLF30−2のトラックT3に書き込まれ
る。
(4) When the writing of log data ■ to the HLF buffer group 20 is completed, assuming that TLF 30-1 is busy and TLF 30-2 is non-busy, the block of HLF buffer group 20 that stores log data ■ b3
and b4 are written to track T3 of TLF 30-2.

(5)  ログデータ■のHLFバッファ群20への書
き込みが完了した時点で、TLF30−1がノンビジー
、TLF30−2がビジーであるとすると、ログデータ
■を格納するHLFバッファ20のブロックb4とb・
5は、TLF30−1のトラックT4に書き込まれる。
(5) When the writing of log data ■ to the HLF buffer group 20 is completed, assuming that TLF 30-1 is non-busy and TLF 30-2 is busy, blocks b4 and b of the HLF buffer 20 storing log data ■・
5 is written in track T4 of TLF 30-1.

(6)  ログデータ■のHLFのバッファ群20への
書き込みが完了した時点で、TLF30−1がビジー、
TLF30−2がノンビジーであるとすると、ログデー
タ■を格納するH L Fバラフッ群20のブロックB
5とB6はTLF30−2のトラックT5に書き込まれ
る。
(6) When the writing of the log data ■ to the HLF buffer group 20 is completed, the TLF 30-1 is busy,
Assuming that the TLF 30-2 is non-busy, the block B of the HLF barracks group 20 that stores the log data ■
5 and B6 are written to track T5 of TLF 30-2.

(7)  ログデータ■のHLFバッファ群20への書
き込みが完了した時点で、TLF30−1がノンビジー
、TLF30−2がビジーとすると、ログデータ■を格
納するHLFバッファ群20のブロックB6は、TLF
30−1のトラックT6に書き込まれる。
(7) When the writing of the log data ■ to the HLF buffer group 20 is completed, if the TLF 30-1 is non-busy and the TLF 30-2 is busy, the block B6 of the HLF buffer group 20 that stores the log data ■ is the TLF
30-1 is written to track T6.

先に述べたように、システム・ダクンが生じた場合には
、TLF30−1ないし30−n、およびHLF40の
データを読出して復旧を行う。このような場合には、複
数個のTLFを論理的には1個のTLFの如く取扱う。
As described above, when a system failure occurs, the data in the TLFs 30-1 to 30-n and the HLF 40 are read and restored. In such a case, the plurality of TLFs are logically treated as one TLF.

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

以上の説明から明らかなように、本発明の、ログデータ
の取得方式は、ボトル・ネックを越すことがないという
顕著な作用効果を有している。
As is clear from the above description, the log data acquisition method of the present invention has a remarkable effect of not exceeding a bottleneck.

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

第1図ないし第5図は本発明の基本的なTLFのアクセ
ス方法を示すものであって、第1図は本発明の基礎とな
るログデータの取得方式を示す図、第2図はTLFのフ
ァイル構成を示す図、第3図はHL Fバラ2フ群の構
造を示す図、第4図はデータのバッファリングの方法を
説明する図、第5図はTLFへのログデータの記録方法
を説明する図、第6図は本発明のシステム構成の1例を
示す図、第7図は本発明におけるTLFへのログデータ
記録方法を説明する図である。 10−1と10−2・・・応用プログラム、20・・・
HLHバッファ群、30・・・TLF、40・・・)(
L F 。 20−1ないし20−ル・・・HLFバッファ、10・
・・応用プログラム群、30−1ないし30− n・・
・TLF。 特許出願人 富士通株式会社 代理人弁理士 京 谷 四 部 裟1図 牙λ((2) 並 第3(2) 0 ■11司 ■ビ/了 θ θ θ @e@0 .x−−−一−−−−−一−−−−−−−−−−−−−
一−−−−−−−−−−−−−−−−−−−−−−“■
Figures 1 to 5 show the basic TLF access method of the present invention. Figure 1 shows the log data acquisition method that is the basis of the present invention, and Figure 2 shows the TLF access method. Figure 3 is a diagram showing the file structure, Figure 3 is a diagram showing the structure of the HL F bar 2 group, Figure 4 is a diagram explaining the data buffering method, and Figure 5 is a diagram showing the recording method of log data to TLF. FIG. 6 is a diagram illustrating an example of the system configuration of the present invention, and FIG. 7 is a diagram illustrating a method of recording log data to TLF in the present invention. 10-1 and 10-2... Application programs, 20...
HLH buffer group, 30...TLF, 40...)(
LF. 20-1 to 20-rule...HLF buffer, 10.
・・Application program group, 30-1 to 30-n・・
・TLF. Patent Applicant Fujitsu Ltd. Representative Patent Attorney Kyotani Shibu 1 Zuga λ ((2) Parallel No. 3 (2) 0 ■11 Tsubi ■ Bi/Ryoθ θ θ @e@0 .x----1 −−−−−−−−−−−−−−−−−−−
1−−−−−−−−−−−−−−−−−−−−−−“■

Claims (1)

【特許請求の範囲】[Claims] 複数の履歴ロギング・ファイル・バッファより成る履歴
ロギング・ファイル・バッファ群と、一時的履歴ロギン
グ・ファイルと、履歴ロギング・ファイルを具備し、ロ
グデータが発生した時、当該ログデータを上記履歴ロギ
ング・ファイル・バッファ群に格納されている直前のロ
グデータに続くようにして上記履歴ロギング・ファイル
・バッファ群に書き込み、書き込みが完了した後に当該
ログデータを上記一時的履歴ロギング・ファイルに書き
込み、履歴ロギング・ファイル・バッファが満杯になっ
た時、当該履歴ロギング・ファイル舎バッファ内容を上
記履歴ロギング・ファイルやバッファに書込むようにな
ったログデータの取得方式において、同一フォーマット
の一時的履歴ロキング・ファイルを複数個準備すると共
に全ての一時的履歴ロギング・ファイルにおけるブロッ
クのキー値を等しくし、ログデータの上記履歴ロギング
・ファイル・バッファ群への書き込みが完了したとき、
ノンビジーの一時的履歴ロギング・ファイルを選択し、
当該選択された一時的履歴ロギング・ファイルに尚該ロ
グデータを書き込むようにしたことを特徴とするログデ
ータの取得方式。
It is equipped with a history logging file/buffer group consisting of a plurality of history logging files/buffers, a temporary history logging file, and a history logging file, and when log data is generated, the log data is transferred to the above history logging file. Write to the above history logging file buffer group following the previous log data stored in the file buffer group, and after writing is completed, write the log data to the above temporary history logging file to perform history logging.・When the file buffer becomes full, the contents of the corresponding history logging file buffer are written to the above history logging file or buffer.In the log data acquisition method, a temporary history logging file with the same format is used. When the key values of the blocks in all the temporary history logging files are equal and the writing of log data to the above history logging file buffer group is completed,
Select a non-busy temporary history logging file,
A log data acquisition method characterized in that the log data is further written to the selected temporary history logging file.
JP57169418A 1982-09-28 1982-09-28 Acquisition system for log data Granted JPS5958566A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57169418A JPS5958566A (en) 1982-09-28 1982-09-28 Acquisition system for log data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57169418A JPS5958566A (en) 1982-09-28 1982-09-28 Acquisition system for log data

Publications (2)

Publication Number Publication Date
JPS5958566A true JPS5958566A (en) 1984-04-04
JPH0214738B2 JPH0214738B2 (en) 1990-04-09

Family

ID=15886221

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57169418A Granted JPS5958566A (en) 1982-09-28 1982-09-28 Acquisition system for log data

Country Status (1)

Country Link
JP (1) JPS5958566A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS603036A (en) * 1983-06-20 1985-01-09 Hitachi Ltd Load decentralization system of on-line journal
JPS61123944A (en) * 1984-11-20 1986-06-11 Fujitsu Ltd Log processing system
JPS62237540A (en) * 1986-04-09 1987-10-17 Nec Corp Journal output control system
JPS6448147A (en) * 1987-08-19 1989-02-22 Fujitsu Ltd File write request processing system
US5544359A (en) * 1993-03-30 1996-08-06 Fujitsu Limited Apparatus and method for classifying and acquiring log data by updating and storing log data

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS603036A (en) * 1983-06-20 1985-01-09 Hitachi Ltd Load decentralization system of on-line journal
JPH039494B2 (en) * 1983-06-20 1991-02-08 Hitachi Ltd
JPS61123944A (en) * 1984-11-20 1986-06-11 Fujitsu Ltd Log processing system
JPS62237540A (en) * 1986-04-09 1987-10-17 Nec Corp Journal output control system
JPS6448147A (en) * 1987-08-19 1989-02-22 Fujitsu Ltd File write request processing system
US5544359A (en) * 1993-03-30 1996-08-06 Fujitsu Limited Apparatus and method for classifying and acquiring log data by updating and storing log data

Also Published As

Publication number Publication date
JPH0214738B2 (en) 1990-04-09

Similar Documents

Publication Publication Date Title
US7318122B2 (en) Disk array control device with an internal connection system for efficient data transfer
US5640561A (en) Computerized method and system for replicating a database using log records
CA2209549C (en) Method and apparatus for loading data into a database in a multiprocessor environment
TWI381272B (en) Flash memory apparatus and access method to flash memory
US6944707B2 (en) Storage subsystem, information processing system and method of controlling I/O interface
US5890206A (en) Method of writing sequential data to a disc memory system having a fixed block architecture
JPS5958566A (en) Acquisition system for log data
JPS62177621A (en) Disk device
US5452421A (en) System for using register sets and state machines sets to communicate between storage controller and devices by using failure condition activity defined in a request
US6199105B1 (en) Recovery system for system coupling apparatuses, and recording medium recording recovery program
JPH05189157A (en) Disk type storage device
JP2556841B2 (en) File access device and method for accessing the file
US5182679A (en) Information recording/reproducing method and magnetic tape subsystem employing the same
US20010018683A1 (en) High-speed audio/video information server and magnetic disk device extension method thereof
JPH04124721A (en) High speed parallel transfer system
JP2923952B2 (en) Merge processing method
JPS62237540A (en) Journal output control system
JPS59720A (en) Control system in common use between series
JPS63196959A (en) Saving and restoring system for file
JP3445848B2 (en) Buffer control method for external storage device
JPH10254628A (en) Library storage device using portable medium
JPS62266643A (en) Online journal acquisition system
JPS6053326B2 (en) Double data recording method for input/output control equipment
JPS61133450A (en) Data base revision log processing system
JP2000089998A (en) Remote file controller