JPH02157943A - Data manipulation language instruction retesting system - Google Patents

Data manipulation language instruction retesting system

Info

Publication number
JPH02157943A
JPH02157943A JP63311207A JP31120788A JPH02157943A JP H02157943 A JPH02157943 A JP H02157943A JP 63311207 A JP63311207 A JP 63311207A JP 31120788 A JP31120788 A JP 31120788A JP H02157943 A JPH02157943 A JP H02157943A
Authority
JP
Japan
Prior art keywords
error
instruction
dml
entry
user program
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
JP63311207A
Other languages
Japanese (ja)
Inventor
Toshimitsu Sakamoto
坂本 稔光
Kazuyuki Shimazu
嶋津 和行
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 JP63311207A priority Critical patent/JPH02157943A/en
Publication of JPH02157943A publication Critical patent/JPH02157943A/en
Pending legal-status Critical Current

Links

Landscapes

  • Retry When Errors Occur (AREA)

Abstract

PURPOSE:To reduce a burden elating to error processing in a user program by removing the cause of an error in the execution processing part of a data manipulation language (DML) instruction and after that, re-executing the same DML instruction when any error is detected while the DML instruction to be described by the user program is executed and processed. CONSTITUTION:As a result to execute a DML instruction executing means 13, an error detecting means 14 decides whether the error is generated or not and an error recovering means 16 removes the generation cause of the error. After that, an entry load means 17 returns an entry point, which is formerly saved by an entry save mans 11, to an entry save area 41 which is secured in a main storing part 4. Simultaneously, a currency load means 18 returns currently information, which are formerly saved by a current save means 12, to currency save area 42 which is secured in the main storing part 4. Next, a re-executing means 19 delivers control to the entry save means 11. Thus, error processing is easily executed.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は電子計算機を用いるデータベースシステムにデ
ータ操作言語命令を用いてアクセスした場合にエラーが
発生したときの命令再試行方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an instruction retry method when an error occurs when a database system using an electronic computer is accessed using data manipulation language instructions.

〔従来の技術〕[Conventional technology]

従来、ユーザ・プログラムから発行されたデータ操作言
語(Data Manipulation Langu
age :以下DMLと称す)命令の処理中に誤り(エ
ラー)が検出された場合、DML命令を返却するのみで
ある。このため、ユーザ・プログラムの責任でそのエラ
ー情報を判断し、対応した処理を行なわなければならな
い。
Traditionally, data manipulation languages issued by user programs (Data Manipulation Language)
If an error is detected during processing of an instruction (hereinafter referred to as DML), the DML instruction is simply returned. Therefore, it is the responsibility of the user program to determine the error information and take appropriate processing.

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

上述した従来のエラー検出時の処理では、ユーザ・プロ
グラムの責任で返却されたエラー情報を判断し、その結
果に基づいて対応した処理を行なう必要がある。従って
、ユーザ・プログラムの処理の煩雑さおよび負担を増大
させるという欠点がある。
In the above-described conventional processing upon detection of an error, it is necessary for the user program to determine the returned error information and perform corresponding processing based on the result. Therefore, it has the disadvantage of increasing the complexity and burden of processing the user program.

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

本発明は、ユーザプログラム内に記述されたDML命令
を用いてデータレコードをアクセスするデータベースシ
ステムにおいて、前記ユーザプログラムから発行された
前記DML命令を実行する命令実行手段と、前記DML
命令の実行中に誤りが発生したか否かを検出する誤り検
出手段と、前記誤り検出手段で誤りの発生を検出したと
き誤りが回復可能であるか回復不可能であるかを判定す
る誤り種別判定手段と、回復可能な誤りの発生原因を取
り除く誤り回復手段と、前記誤り回復手段での誤り発生
原因除去後に前記命令実行手段に前記誤りを発生したD
ML命令を再実行させる再実行手段とを備えている。
The present invention provides a database system that accesses data records using DML instructions written in a user program, including an instruction execution unit that executes the DML instruction issued from the user program;
error detection means for detecting whether an error has occurred during execution of an instruction; and an error type for determining whether the error is recoverable or unrecoverable when the error detection means detects the occurrence of an error. a determining means, an error recovery means for removing the cause of the error that is recoverable, and a D that has caused the error in the instruction execution means after the cause of the error has been removed by the error recovery means;
and re-execution means for re-executing the ML instruction.

〔実施例〕〔Example〕

本発明について図面を参照して詳細に説明する。 The present invention will be explained in detail with reference to the drawings.

第1図を参照すると、本発明の一実施例はDML処理部
1と、ユーザ・プログラム2と、大容量記憶部3と、主
記憶部4とから構成され、処理部1はエントリセーブ手
段11と、カレンシセーブ手段12と、DML命令実行
手段13と、エラー検出手段14と、エラ一種別判定手
段15と、エラー回復手段16と、エントリロード手段
17と、カレンシロード手段18と、再実行手段19と
から構成されている。
Referring to FIG. 1, one embodiment of the present invention is composed of a DML processing section 1, a user program 2, a large capacity storage section 3, and a main storage section 4. , currency save means 12 , DML instruction execution means 13 , error detection means 14 , error type determination means 15 , error recovery means 16 , entry load means 17 , currency load means 18 , and re-execution means It consists of 19.

ユーザプログラム2の内部に記述されたDML命令21
の実行時に、実行しようとするDML命令の種別に応じ
たDML処理部(プログラムからなる)1に制御が移さ
れる。
DML instruction 21 written inside the user program 2
At the time of execution, control is transferred to the DML processing unit (consisting of a program) 1 according to the type of DML instruction to be executed.

エントリセーブ手段11は、ユーザ・プログラム2に記
述されたDML命令21より制御を移されたDML処理
部10入口のアドレスを、主記憶部4内に確保されてい
るエントリセーブエリア41に格納する。次に、カレン
シセーブ手段12が、DML処理部1の°入口でのカレ
ンシ情報(表に関する情報の中で、次にDML命令を実
行するときに必要となるレコードキー情報)を主記憶部
4内に確保されているカレンシセーブエリア42に格納
する。
The entry save means 11 stores the address of the entrance of the DML processing section 10 to which control is transferred by the DML instruction 21 written in the user program 2, in the entry save area 41 secured within the main storage section 4. Next, the currency saving means 12 saves the currency information at the entrance of the DML processing section 1 (record key information necessary when executing the next DML command among the table information) into the main storage section 4. It is stored in the secured currency save area 42.

このあとDML命令実行手段13が、ユーザ・プログラ
ム2に記述されたDML命令21により要求された検索
処理を、記憶部3に格納されているデータベース内のイ
ンデックスエリア31を参照してそのキー値に対するポ
インタを利用することにより実際のデータが格納されて
いるデータエリア32に対して行なう。
Thereafter, the DML instruction execution means 13 performs the search process requested by the DML instruction 21 written in the user program 2 by referring to the index area 31 in the database stored in the storage unit 3 and searching for the key value. By using a pointer, this is performed on the data area 32 where actual data is stored.

次に、エラー検出手段14が、DML命令実行手段13
を実行した結果、エラーが発生したか否かを判定する。
Next, the error detection means 14 detects the DML instruction execution means 13.
Determine whether an error has occurred as a result of executing.

エラーが検出されないときには、制御はユーザプログラ
ム2に戻る。
If no error is detected, control returns to user program 2.

エラー検出時には、エラ一種別判定手段15が検出され
たエラーの種別を判断し、そのエラーが回復可能か否か
を判定する0判定の結果、検出されたエラーが回復不可
能なもの(例えば、指定されたレコードの不存在や表定
義と異なる属性のレコードの書込み要求)である場合に
はユーザ・プログラム2にこのエラーに関するエラー情
報を返却して制御を戻す。一方、デッドロック等の回復
可能なエラーであると判定された場合には、エラー回復
手段16が、そのエラーの発生原因を取り除く。
When an error is detected, the error type determining means 15 determines the type of the detected error, and as a result of the 0 determination that determines whether the error is recoverable, it is determined that the detected error is unrecoverable (for example, If the specified record does not exist or the request is to write a record with attributes different from the table definition), error information regarding this error is returned to the user program 2 and control is returned. On the other hand, if it is determined that the error is a recoverable error such as deadlock, the error recovery means 16 eliminates the cause of the error.

エラー発生原因除去後、エントリロード手段17が、主
記憶部4内に確保されたエントリセーブエリア41に、
以前にエントリセーブ手段11により退避したエントリ
ポイントを復帰させるとともに、カレンシロード手段1
8が、主記憶部4内に確保されたカレンシセーブエリア
42に、カレンシセーブ手段12により以前に退避した
カレンシ情報を復帰させる。
After removing the cause of the error, the entry loading means 17 saves the entry into the entry save area 41 secured within the main storage unit 4.
In addition to restoring the entry point previously saved by the entry saving means 11, the currency loading means 1
8 restores the currency information previously saved by the currency save means 12 to the currency save area 42 secured within the main storage section 4.

このあと、再実行手段19が、エントリロード手段17
により復帰させたエントリポイントに基づいて、ユーザ
・プログラム2のDML命令21から制御が渡されたと
きと同様にエントリセーブ手段11に制御を渡す。
After this, the re-execution means 19 executes the entry loading means 17.
Based on the entry point restored by , control is passed to the entry save means 11 in the same way as when control was passed from the DML instruction 21 of the user program 2 .

再度、DML命令実行手段13による実行の結果、エラ
ー検出手段14でエラーが再検出され、エラ一種別判定
手段15でエラーが回復可能であると判断された場合は
、再度、エラー回復手段16゜エントリロード手段17
およびカレンシロード手段18を経て、再実行手段19
が行なわれ、一連の手段が繰り返し行なわれることもあ
る。
As a result of the execution by the DML instruction execution means 13 again, if the error detection means 14 detects the error again and the error type determination means 15 determines that the error is recoverable, the error recovery means 16 Entry loading means 17
and the re-execution means 19 via the currency loading means 18.
may be carried out, and the series of measures may be repeated.

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

以上説明した様に、本発明は、ユーザプログラムラムで
記述されたDML命令の実行処理中に何らかのエラーが
検出された場合、そのエラーの原因をDML命令の実行
処理部において取り除いた上で同じDML命令を再実行
することにより、ユーザプログラムでのエラー処理に係
わる負担を大きく軽減できる効果がある。
As explained above, in the present invention, when an error is detected during the execution processing of a DML instruction written in a user program RAM, the cause of the error is removed in the DML instruction execution processing section, and then the same DML instruction is executed. By re-executing the instructions, the burden associated with error handling in the user program can be greatly reduced.

本発明の効果が最も期待出来るのは、デッドロック発生
時の処理である。従来、デッドロックが発生すると、そ
のエラー情報がユーザプログラムに返されるのみであっ
たため、ユーザプログラムの責任として、デッドロック
発生時の処理をわざわざ記述する必要があった。本発明
により、デッドロック発生時の処理はすべてDML命令
の実行処理部で解決するために、ユーザプログラムにデ
ッドロックに関するエラー情報が返却されることはない
。従って、ユーザプログラム中には、デッドロックに対
する処理について記述する必要はなくなり、ユーザプロ
グラム作成に対する負担が大きく軽減される。
The effect of the present invention can be most expected in processing when a deadlock occurs. Conventionally, when a deadlock occurs, error information is simply returned to the user program, which requires the user program to take the trouble to write the process to be performed when a deadlock occurs. According to the present invention, all processing when deadlock occurs is resolved by the DML instruction execution processing unit, so error information regarding deadlock is not returned to the user program. Therefore, there is no need to describe deadlock processing in the user program, and the burden on creating the user program is greatly reduced.

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

第1図は本発明の一実施例のブロック図である。 l・・・・・・DML処理部、2・・・・・・ユーザプ
ログラム、3・・・・・・大容量記憶部、4・・・・・
・主記憶部、11・・・・・・エントリセーブ手段、1
2・・・・・・カレンシセーブ手段、13・・・・・・
DML命令実行手段、14・・・・・・エラー検出手段
、15・・・・・・エラ一種別判定手段、16・・・・
・・エラー回復手段、17・・・・・・エントリロード
手段、18・・・・・・カレンシロード手段、19・・
・・・・再実行手段、21・・・・・・DML命令、3
1・・・・・・インデックスエリア、32・・・・・・
データエリア、41・・団・エントリセーブエリア、4
2・・団・カレンシセーブエリア。 代理人 弁理士  内 原   晋
FIG. 1 is a block diagram of one embodiment of the present invention. l...DML processing unit, 2...user program, 3...mass storage unit, 4...
・Main memory section, 11...Entry saving means, 1
2... Currency save means, 13...
DML instruction execution means, 14...Error detection means, 15...Error type determination means, 16...
...Error recovery means, 17... Entry loading means, 18... Currency loading means, 19...
. . . Re-execution means, 21 . . . DML instruction, 3
1... Index area, 32...
Data area, 41...Group/Entry save area, 4
2. Dan/currency save area. Agent Patent Attorney Susumu Uchihara

Claims (1)

【特許請求の範囲】 ユーザプログラム内に記述されたデータ操作言語命令を
用いてデータレコードをアクセスするデータベースシス
テムにおいて、 前記ユーザプログラムから発行された前記データ操作言
語命令を実行する命令実行手段と、前記データ操作言語
命令の実行中に誤りが発生したか否かを検出する誤り検
出手段と、 前記誤り検出手段で誤りの発生を検出したとき該誤りが
回復可能であるか回復不可能であるかを判定する誤り種
別判定手段と、回復可能な誤りの発生原因を取り除く誤
り回復手段と、 前記誤り回復手段での誤り発生原因除去後に前記命令実
行手段に前記誤りを発生したデータ操作言語命令を再実
行させる再実行手段とを備えたことを特徴とするデータ
操作言語命令再試行方式。
[Scope of Claim] A database system that accesses data records using data manipulation language instructions written in a user program, comprising: instruction execution means for executing the data manipulation language instructions issued from the user program; Error detection means for detecting whether an error has occurred during execution of a data manipulation language instruction; and when the error detection means detects the occurrence of an error, it determines whether the error is recoverable or unrecoverable. error type determining means for determining the error type; error recovery means for removing the cause of the recoverable error; and after the error recovery means removes the cause of the error, the instruction execution means re-executes the data manipulation language instruction that caused the error. A data manipulation language command retry method characterized by comprising: re-execution means for causing
JP63311207A 1988-12-09 1988-12-09 Data manipulation language instruction retesting system Pending JPH02157943A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63311207A JPH02157943A (en) 1988-12-09 1988-12-09 Data manipulation language instruction retesting system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63311207A JPH02157943A (en) 1988-12-09 1988-12-09 Data manipulation language instruction retesting system

Publications (1)

Publication Number Publication Date
JPH02157943A true JPH02157943A (en) 1990-06-18

Family

ID=18014393

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63311207A Pending JPH02157943A (en) 1988-12-09 1988-12-09 Data manipulation language instruction retesting system

Country Status (1)

Country Link
JP (1) JPH02157943A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5587251A (en) * 1978-12-26 1980-07-01 Nec Corp Error recovery system of logic unit
JPS6354638A (en) * 1986-08-26 1988-03-09 Nec Corp Deadlock releasing system
JPS63146134A (en) * 1986-12-09 1988-06-18 Nec Corp Shared data control system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5587251A (en) * 1978-12-26 1980-07-01 Nec Corp Error recovery system of logic unit
JPS6354638A (en) * 1986-08-26 1988-03-09 Nec Corp Deadlock releasing system
JPS63146134A (en) * 1986-12-09 1988-06-18 Nec Corp Shared data control system

Similar Documents

Publication Publication Date Title
US7536517B2 (en) Direct-update software transactional memory
JPH0833860B2 (en) Database recovery method
US5363502A (en) Hot stand-by method and computer system for implementing hot stand-by method
US5850508A (en) Method of prevention of dangling transaction occurrence using a transaction table initialization technique at an analysis step
KR100212447B1 (en) Method to prevent dangling transaction
JPH02157943A (en) Data manipulation language instruction retesting system
JP3180336B2 (en) Data access method using multilayer buffer
JPS63132351A (en) Memory data base processor
JP2671160B2 (en) Exception handling method
JP2743860B2 (en) User program debug processing system
JPS59172044A (en) Instruction control system
JPH07104993A (en) Development supporting device
JPS6159538A (en) Queue control system between tasks
JPS61161557A (en) Method and device for program debugging
JPS6354638A (en) Deadlock releasing system
JP2528882B2 (en) Fallback operation method in case of memory failure
JPS63262737A (en) Data base updating and recording processing method
JP2702356B2 (en) Debug information access method
JPS63191243A (en) Collection system for jump history data
JPS64727B2 (en)
JPH03246643A (en) Processing for editing dump summary
JPH0279271A (en) Fault processing system for magnetic disk device
JPH04358236A (en) Data processor
JPS5855529B2 (en) Error processing method of data processing equipment
JPH05143422A (en) Updated journal managing system