JPH0290339A - Acquiring system for history information - Google Patents

Acquiring system for history information

Info

Publication number
JPH0290339A
JPH0290339A JP63241106A JP24110688A JPH0290339A JP H0290339 A JPH0290339 A JP H0290339A JP 63241106 A JP63241106 A JP 63241106A JP 24110688 A JP24110688 A JP 24110688A JP H0290339 A JPH0290339 A JP H0290339A
Authority
JP
Japan
Prior art keywords
magnetic tape
tape device
central processing
processing unit
block
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
JP63241106A
Other languages
Japanese (ja)
Inventor
Hisamitsu Matsuzawa
松澤 尚光
Koji Ito
康志 伊藤
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
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP63241106A priority Critical patent/JPH0290339A/en
Publication of JPH0290339A publication Critical patent/JPH0290339A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To continue the working of an on-line system by securing such a constitution where both a CPU and a magnetic tape device perform their due processes while confirming the propriety of the block numbers pointed by both devices with each other. CONSTITUTION:A DB/DC program 8 produces a READ BLOCK ID command to a magnetic tape device 4 and acquires the value (n + 1) to set this in an area A. The device 4 outputs the designation data of a WRITE command to a magnetic tape medium 11 in the case the designated value of the ID command is equal to the value (n + 1) of a counter 6. Thus the value of the counter 6 is set at +1. In the case the designated value of the ID command is not equal to the value (n + 1) of the counter 6, the commands following the WRITE command are not executed and no output is given to the medium 11. Then an answer of a block number error is sent back to a CPU 10. The CPU 10 decides that the continuation of working of an on-line system is difficult and selects a spare magnetic tape device.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、電子計算機を用いたオンラインシステムにお
いて、履歴情報取得媒体に磁気テープ装置を使用した場
合の信頼性の向上を目的とした履歴情報の破壊防止の制
御方法に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention provides history information for the purpose of improving reliability when a magnetic tape device is used as a history information acquisition medium in an online system using an electronic computer. This invention relates to a control method for preventing destruction of.

〔従来の技術〕[Conventional technology]

特開昭55−111071号は、複数の業務のデータが
混在する磁気ディスクにおいて、業務別に異なる開始パ
ターンを使用することによって、他の業務のデータの破
壊を防止する方式である。この方式は磁気ディスク装置
を前提としているため、磁気テープ装置に本方式を適用
するのは困難と思われる。このため磁気テープ装置をオ
ンライン履歴情報用として使用する上でのデータの破壊
防止を図る方法を考案した。特に磁気テープ装置に多い
オペレータ操作ミスに対する対策を考慮した。
Japanese Patent Laid-Open No. 55-111071 discloses a method for preventing data destruction of other jobs by using different start patterns for each job in a magnetic disk in which data of multiple jobs coexist. Since this method is based on a magnetic disk device, it seems difficult to apply this method to a magnetic tape device. For this reason, we devised a method to prevent data destruction when using a magnetic tape device for online history information. In particular, we have considered countermeasures against operator errors, which are common in magnetic tape devices.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上記従来技術は、磁気ディスク装置を前提とした破壊防
止方式であるため、ランダムアクセス方式では有効であ
るが、磁気テープ装置のようなシーケンシャルアクセス
方式の装置には適用できない問題があった。
The above-mentioned conventional technology is a destruction prevention method based on a magnetic disk device, so it is effective in a random access method, but there is a problem that it cannot be applied to a sequential access method device such as a magnetic tape device.

本発明の目的は、磁気テープ媒体上に書かれるオンライ
ン履歴情報データの論理的な連続性が失われていないこ
とを確認し、履歴情報データの破壊防止、信頼性の保証
を行いオンラインシステムの障害防止、障害範囲の軽減
を図ることにある。
The purpose of the present invention is to confirm that the logical continuity of online historical information data written on a magnetic tape medium is not lost, prevent destruction of historical information data, guarantee reliability, and prevent online system failure. The purpose is to prevent and reduce the scope of failure.

想定する事例としては複数の中央処理装置に接続された
一台の磁気テープ装置をオンラインシステムの履歴情報
データ取得用として使用し、オンラインシステムの実行
している中央処理装置とは別の中央処理装置で誤って同
一の磁気テープ装置を操作するコマンドまたはプログラ
ムが、実行された場合がある。別の事例としては、オン
ライン履歴情報取得中の磁気テープを磁気テープに付随
しているスイッチをオペレータが誤って操作して巻き戻
してしまった場合がある。
As an assumed case, one magnetic tape device connected to multiple central processing units is used to acquire historical information data of an online system, and a central processing unit other than the central processing unit on which the online system is running is used. A command or program that operates on the same magnetic tape device may have been executed by mistake. Another example is when an operator accidentally operates a switch attached to the magnetic tape and rewinds the magnetic tape while online history information is being acquired.

〔課題を解決するための手段〕[Means to solve the problem]

上記目的を達成するために、磁気テープ装置内に媒体へ
の入出カブロックの番号を管理する機構および中央処理
装置へ管理しているブロック番号をデータとして連絡す
る機構を持っている磁気テープ装置を用いることで、中
央処理装置と磁気テープ装置の間で各装置が管理してい
るブロック番号を連絡し合い相互にブロック番号の連続
性チエツクを行うようにした。これにより媒体上におけ
るブロックの書かれる位置が、前回書き込んだブロック
の直後にとられることを確認しながら、磁気テープの書
き込み動作を進めて行くようにしたものである。
In order to achieve the above objective, a magnetic tape device is used that has a mechanism within the magnetic tape device to manage input/output block numbers to the medium and a mechanism to communicate the managed block numbers to the central processing unit as data. By using this, the block numbers managed by each device are communicated between the central processing unit and the magnetic tape device, and the continuity of the block numbers is checked mutually. This allows the magnetic tape write operation to proceed while confirming that the block will be written at the position immediately after the previously written block on the medium.

〔作用〕[Effect]

磁気テープ装置は現時点までに出力要求を受けつけたブ
ロックの番号(、)を記憶している。この値は単に出力
要求の回数カウンタではなく、入出力・制御処理要求に
よる全てのヘッド動作を考慮したものであり、磁気テー
プ媒体上に書かれた時のブロックの位置を表す番号であ
る。
The magnetic tape device stores the block numbers (,) for which output requests have been received up to the present time. This value is not simply a counter of the number of output requests, but takes into account all head operations due to input/output/control processing requests, and is a number representing the position of the block when it is written on the magnetic tape medium.

(1)中央処理装置は現時点の次に出力要求を受けつけ
るブロック番号(n+1)を磁気テープ装置へ要求し取
得する。
(1) The central processing unit requests the magnetic tape device to obtain the block number (n+1) that will receive the next output request at the current time.

(2)この(1)の値が前回要求した(1)のブロック
番号より1増加していればデータの連続3 ・ 性を保証できる。そうでない時はデータの連続性が失わ
れたことを検知できる。
(2) If the value in (1) is increased by 1 from the previously requested block number in (1), data continuity can be guaranteed. When this is not the case, it is possible to detect that data continuity has been lost.

(3)中央処理装置は、出力要求を行う時に出力するブ
ロックのデータと同時に(1)で磁気テープ装置より受
は取ったブロック番号の値も磁気テープ装置へ連絡する
(3) When making an output request, the central processing unit notifies the magnetic tape device of the block number value received from the magnetic tape device in (1) at the same time as the data of the block to be output.

(4)磁気テープ装置は(3)で中央処理装置より連絡
されたブロック番号が、磁気テープ装置内で管理してい
る現時点までに出力要求を受けつけたブロック番号(n
)+1と一致するかどうか確認を行う。一致しない場合
はブロックのデータを媒体へ出力せず、中央処理装置へ
エラー報告をする。一致した時のみブロックのデータを
媒体へ出力する。
(4) The magnetic tape device changes the block number notified from the central processing unit in (3) to the block number (n
) +1. If they do not match, the block data is not output to the medium and an error report is sent to the central processing unit. Output the block data to the medium only when there is a match.

(5)中央処理装置は磁気テープ装置よりブロック番□
号不一致の連絡(4)があった場合、データの連続性が
失われたことを検知できる。
(5) The central processing unit has a block number □ from the magnetic tape device.
If there is a notification (4) indicating a number mismatch, it can be detected that data continuity has been lost.

(1)から(5)をくり返し行うことによって媒体へ出
力された時の履歴情報データの論理的な連続性の保証お
よび、履歴情報データの破壊を早期検知する。
By repeating steps (1) to (5), logical continuity of the historical information data when output to the medium is guaranteed and destruction of the historical information data is detected early.

〔実施例〕〔Example〕

以下、本発明の一実施例を図により説明する。 Hereinafter, one embodiment of the present invention will be described with reference to the drawings.

第1図はオンラインシステムの概要を示している。端末
装置1から入力されたメツセージは通信制御装置2を経
由して中央処理装置3内のDB/DCプログラムへ渡さ
れる。DB/DCプログラムは受信メツセージの内容に
より業務処理を行うユーザアプリケーションプログラム
UAPを決定し実行する。ユーザアプリケーションプロ
グラムは、業務処理の実行に伴うデータベース5の更新
をDB/DCプログラムへ要求する。これにより、更新
と同時にその履歴データを履歴情報のファイルである磁
気テープ装置4へ出力する。業務処理の実行結果を応答
メツセージとして端末装置1へ出力する。
Figure 1 shows an overview of the online system. Messages input from the terminal device 1 are passed to the DB/DC program in the central processing unit 3 via the communication control device 2. The DB/DC program determines and executes a user application program UAP that performs business processing based on the contents of the received message. The user application program requests the DB/DC program to update the database 5 in accordance with execution of business processing. As a result, the history data is outputted to the magnetic tape device 4, which is a file of history information, at the same time as the update. The execution result of the business process is output to the terminal device 1 as a response message.

第2図は磁気テープ装置のブロック番号の管理機能を表
わす。磁気テープ装置4は内部にカウンタ6を持ちこの
カウンタ6は磁気テープ装置のヘッド7の動作に合わせ
て増減する。カウンタ6は現時点での最後に出力または
入力したブロックの番号(n)を表わしている。磁気テ
ープ装置4は中央処理装置3から特定のコマンド(RE
ADBLOCK  ID)を受けると次に出力または入
力するブロックの番号(n+1)を応答する機能を持っ
ている。
FIG. 2 shows the block number management function of the magnetic tape device. The magnetic tape device 4 has a counter 6 therein, and this counter 6 increases or decreases in accordance with the operation of the head 7 of the magnetic tape device. Counter 6 represents the number (n) of the last output or input block at the current time. The magnetic tape device 4 receives a specific command (RE) from the central processing unit 3.
ADBLOCK ID), it has a function to respond with the number (n+1) of the next block to be output or input.

第3図はDB/DCプログラムと磁気テープ装置におけ
るデータのやりとりと制御方法を示している。DB/D
Cプログラム8は主記憶袋W9にブロック番号を記憶す
る領域Aを持つ。
FIG. 3 shows the data exchange and control method between the DB/DC program and the magnetic tape device. DB/D
The C program 8 has an area A for storing block numbers in the main memory bag W9.

(1)DB/DCプログラム8は磁気テープ装置に対し
てREAD BLoCK IDコマンドを発行して前述
のn + 1の値を取得して領域Aへ設定する。
(1) The DB/DC program 8 issues a READ BLoCK ID command to the magnetic tape device, obtains the above-mentioned value n + 1, and sets it in area A.

(2)DB/DCプログラム8は履歴情報を磁気テープ
装置4へ取得要求する時、取得する履歴情報データのW
RITEコマンドより前に、CHECK  BLOCK
  IDコマンドと後にREAD  BLOCK  I
Dコマンドをコマンドチエインして連続処理要求を行う
(2) When the DB/DC program 8 requests the magnetic tape device 4 to acquire history information, the W of the history information data to be acquired is
CHECK BLOCK before RITE command
ID command and then READ BLOCK I
A continuous processing request is made by chaining D commands.

CHECK  BLOCK  IDコマンドの指定値は
領域Aの内容を指定する。磁気テープ装置4はCHEC
K  BLOCK  IDコマンドの指定値が前述のカ
ウンタ6の値n+1と一致していた場合、WRITEコ
マンドの指定データを磁気テープ媒体11へ出力しカウ
ンタ6の値を+1する。READ  BLOCK  I
Dの応答にカウンタ6の値+1を返す。(結果はn+2
になる)CHECK  BLOCK  IDコマンドの
指定値が前述のカウンタ6の値n + 1と一致してい
ない場合、WRITEコマンド以降は実行せず、磁気テ
ープ媒体11への出力は行わずに中央処理装置10ヘブ
ロック番号エラーの応答を返す。
The specified value of the CHECK BLOCK ID command specifies the contents of area A. The magnetic tape device 4 is CHEC
If the specified value of the K BLOCK ID command matches the value n+1 of the counter 6 mentioned above, the specified data of the WRITE command is output to the magnetic tape medium 11 and the value of the counter 6 is incremented by 1. READ BLOCK I
In response to D, the value of counter 6 +1 is returned. (The result is n+2
If the specified value of the CHECK BLOCK ID command does not match the value n + 1 of the counter 6 mentioned above, the WRITE command and subsequent commands are not executed, and the data is not output to the magnetic tape medium 11, but is sent to the central processing unit 10. Returns a block number error response.

(3)中央処理装置lOは磁気テープ装置4よりブロッ
ク番号エラーの応答が返らなかった場合、READ  
BLOCK  IDの応答結果のブロック番号が前述の
領域Aの内容より1だけ大きいか判定する。この条件が
成立した時、領域Aの内容をREAD  BLOCK 
 IDコマンドの応答結果のブロック番号に変更する。
(3) If the central processing unit 10 does not receive a block number error response from the magnetic tape device 4, the central processing unit 10
It is determined whether the block number of the response result of BLOCK ID is larger by 1 than the contents of area A mentioned above. When this condition is met, READ BLOCK the contents of area A.
Change to the block number of the ID command response result.

次の履歴情報取得要因発生により、同様に(2)がらく
り返す。
When the next history information acquisition factor occurs, (2) is repeated in the same way.

(4)(3)においてREAD BLocK IDコマ
ンドの応答結果のブロック番号が前述の領域Aの内容よ
り1だけ大きい条件が成立しなかった時、磁気テープ装
置4に論理矛盾が発生しているので、オンラインシステ
ムの稼動継続が困難と判断してシステムを停止する。
(4) In (3), when the condition that the block number as a response result of the READ BLocK ID command is greater than the contents of area A by 1 is not satisfied, a logical contradiction has occurred in the magnetic tape device 4, so It is determined that it is difficult to continue operating the online system and the system is shut down.

(5)(2)において磁気テープ装置4より中央処理装
置10ヘブロック番号エラーの応答が返ってきた場合、
DB/DCプログラム8は磁気テープ装置4のヘッド位
置が前回出方したブロックの次になく履歴情報データを
破壊する恐れがあるため予備の磁気テープを選択しく1
)より継続する。
(5) If a block number error response is returned from the magnetic tape device 4 to the central processing unit 10 in (2),
The DB/DC program 8 must select a spare magnetic tape because the head position of the magnetic tape device 4 is not next to the block that appeared last time and there is a risk of destroying the history information data.
) to continue.

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

本発明によれば、オンラインシステムの稼動中で履歴情
報を取得している磁気テープ装置を、運用ミスによりオ
ンラインシステム稼動中と別系の中央処理装置から誤っ
て巻き戻してしまった場合に、使用中の磁気テープ上に
書かれたブロックを再書き込みして破壊する問題を解決
し、予備の磁気テープ装置を使用してオンラインシステ
ムの稼動を継続可能にする効果がある。また履歴情報の
出力毎に履歴情報データの論理的な連続性を磁気テープ
媒体出力位置で確認できるため履歴情報データの信頼性
を向上させることができる。
According to the present invention, when a magnetic tape device that acquires history information while an online system is running is accidentally rewound from a central processing unit of a different system than the one that is running the online system due to an operational error, This has the effect of solving the problem of rewriting and destroying blocks written on the internal magnetic tape, and making it possible to continue operating the online system using a spare magnetic tape device. Furthermore, the reliability of the history information data can be improved because the logical continuity of the history information data can be confirmed at the output position of the magnetic tape medium each time the history information is output.

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

第1図はオンラインシステムの概要を示した構成図、第
2図は磁気テープ装置におけるブロック番号の管理機能
を示した説明図、第3図はDB/DCプログラムと磁気
テープ装置におけるデータのやりとりを表わした説明図
、第4図はDB/DCプログラムの履歴情報の取得処理
を表わした流れ図、第5図は磁気テープ装置の処理を表
わす流れ図である。 1・・・端末装置、2・・通信制御装置、3・・・中央
処理装置、4・・・磁気テープ装置、5−・データベー
ス、6・・・カウンタ、7・・ヘッド、8・・・DB/
DCプロダラム、 9・・・主記憶装置、 10・・・中央処理装置、 ・・・磁気テープ媒体。 \H \Ω
Figure 1 is a configuration diagram showing an overview of the online system, Figure 2 is an explanatory diagram showing the block number management function in the magnetic tape device, and Figure 3 is the exchange of data between the DB/DC program and the magnetic tape device. FIG. 4 is a flowchart showing the process of acquiring history information of the DB/DC program, and FIG. 5 is a flowchart showing the process of the magnetic tape device. DESCRIPTION OF SYMBOLS 1... Terminal device, 2... Communication control device, 3... Central processing unit, 4... Magnetic tape device, 5-- Database, 6... Counter, 7... Head, 8... DB/
DC programmer, 9... Main storage device, 10... Central processing unit,... Magnetic tape medium. \H \Ω

Claims (1)

【特許請求の範囲】[Claims] 1、電子計算機を用いたオンラインシステムにおいて、
オンライン稼動中に処理した結果を履歴情報として外部
記憶装置に取得する機能を持つシステムを設定し、この
システムが中央処理装置と磁気テープ装置により構成さ
れている場合、磁気テープ装置内に媒体へ出力するブロ
ックの番号の管理機能および、このブロック番号を中央
処理装置の要求により中央処理装置へ連絡する機能およ
び中央処理装置からブロック番号の指示を受ける機能を
設け、中央処理装置と磁気テープ装置が相互に相手装置
の指示したブロック番号の妥当性を確認しながら処理を
行うことを特徴とする履歴情報の取得方式。
1. In an online system using a computer,
If you set up a system that has the function of acquiring the results of processing during online operation as historical information to an external storage device, and if this system consists of a central processing unit and a magnetic tape device, output to the medium in the magnetic tape device. The central processing unit and the magnetic tape device can mutually communicate with each other by providing a function for managing the block number to be processed, a function for communicating this block number to the central processing unit upon request from the central processing unit, and a function for receiving block number instructions from the central processing unit. A history information acquisition method characterized in that processing is performed while checking the validity of a block number instructed by a partner device.
JP63241106A 1988-09-28 1988-09-28 Acquiring system for history information Pending JPH0290339A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63241106A JPH0290339A (en) 1988-09-28 1988-09-28 Acquiring system for history information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63241106A JPH0290339A (en) 1988-09-28 1988-09-28 Acquiring system for history information

Publications (1)

Publication Number Publication Date
JPH0290339A true JPH0290339A (en) 1990-03-29

Family

ID=17069373

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63241106A Pending JPH0290339A (en) 1988-09-28 1988-09-28 Acquiring system for history information

Country Status (1)

Country Link
JP (1) JPH0290339A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009277119A (en) * 2008-05-16 2009-11-26 Fujitsu Ltd Log recording system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009277119A (en) * 2008-05-16 2009-11-26 Fujitsu Ltd Log recording system

Similar Documents

Publication Publication Date Title
US5473776A (en) Data backup method and data processing system having data maintenance function
JPH0820978B2 (en) Failure analysis information edit output method
JPH0352049A (en) Continuous operation guaranteeing processing method for communication control program
JPH0290339A (en) Acquiring system for history information
JPS60258659A (en) Control system for partial file closure
KR100216352B1 (en) Charging data duplication method using database in switching system
JPH03105434A (en) Error logging system
WO1996023258A1 (en) Tracking the state of transactions
JP2718674B2 (en) Database system
JPH086899A (en) Monitor and control equipment
JPS6254348A (en) Processing system for fault of file
JPS61100846A (en) System for equally and mutually backing up process controlling file
JPH0277943A (en) System recovering method
JP2705522B2 (en) Business execution management method
JPH07141120A (en) Processing method for fault in information storage medium
JP2912046B2 (en) File server control method
JPH04308943A (en) Automatic backup system
JPS62189544A (en) Information processor
JPH02247764A (en) Batch processing control method for electronic computer system
JPH02287985A (en) Retract processing system for hard disk device
JPH0218629A (en) System for restarting on-line system
JPH07160637A (en) Operation command issuing method for on-line system
JPS6113361A (en) Control system of multi-electronic computer system
JPH02121048A (en) Peripheral controller
JPH09212396A (en) Server/client system and its data processing method