JPH04363733A - Abnormality discrimination system for shared database - Google Patents
Abnormality discrimination system for shared databaseInfo
- Publication number
- JPH04363733A JPH04363733A JP3116198A JP11619891A JPH04363733A JP H04363733 A JPH04363733 A JP H04363733A JP 3116198 A JP3116198 A JP 3116198A JP 11619891 A JP11619891 A JP 11619891A JP H04363733 A JPH04363733 A JP H04363733A
- Authority
- JP
- Japan
- Prior art keywords
- access
- database
- time data
- date
- data
- 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
Links
- 230000005856 abnormality Effects 0.000 title claims abstract description 20
- 238000000034 method Methods 0.000 claims description 8
- 230000002159 abnormal effect Effects 0.000 claims description 3
- 230000008439 repair process Effects 0.000 description 3
- 101000911772 Homo sapiens Hsc70-interacting protein Proteins 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
【0001】 [発明の目的]0001 [Purpose of the invention]
【0002】0002
【産業上の利用分野】本発明は、複数のアクセス元から
共有データベースをアクセスする際のデータベースの異
常発生を迅速に判別可能とした共有データベースの異常
判別方式に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a system for determining abnormalities in a shared database, which makes it possible to quickly determine the occurrence of an abnormality in a database when the shared database is accessed from a plurality of access sources.
【0003】0003
【従来の技術】複数の処理や端末等のアクセス元から共
有データベースをアクセスするには、従来より排他制御
が実施されている。この排他制御によれば、いづれかの
アクセス元が共有データベースをアクセスする際に、こ
のデータベースを使用中であることを示すために、いわ
ゆるロックファイルを作成する。このロックファイルが
作成されている間は、他のアクセス元からのアクセス要
求を排除、若しくは、順番待ち状態にしておき、アクセ
スが終了してロックファイルが消去された時点で前記他
のアクセス元のアクセス要求を受け付けるようにしてい
る。2. Description of the Related Art In order to access a shared database from a plurality of access sources such as multiple processes or terminals, exclusive control has conventionally been implemented. According to this exclusive control, when any access source accesses a shared database, a so-called lock file is created to indicate that this database is in use. While this lock file is being created, access requests from other access sources are excluded or kept in a waiting state, and when the access ends and the lock file is deleted, the access requests from other access sources are It accepts access requests.
【0004】ところで、共有データベースのアクセス処
理に何等かの障害や異常が発生して場合、アクセス処理
は終了しているにもかかわらずロックファイルは消去さ
れずにそのまま残っている場合がある。By the way, if some kind of failure or abnormality occurs in the access processing of the shared database, the lock file may remain without being deleted even though the access processing has been completed.
【0005】かかる事態が発生した場合、このようにロ
ックファイルの有無によりデータベースが使用中である
か否かを判別する従来方式によれば、他のアクセス元か
らは、単にデータベースが使用中としか判定できず、デ
ータベースの異常までは判別不可能であった。[0005] When such a situation occurs, according to the conventional method of determining whether a database is in use based on the presence or absence of a lock file, other access sources simply see that the database is in use. It was not possible to determine whether the database was abnormal or not.
【0006】[0006]
【発明が解決しようとする課題】このように、上記従来
の排他制御によれば、ロックファイルの有無によりデー
タベースが使用中であるか否かを判別する方式であるの
で、データベースが異常となった場合にも他のアクセス
元からは異常を判別することはできず、いつまでも“使
用中”の状態で待たされるという不具合があるばかりか
、データベースの異常発生を迅速に検知できず修復処理
に長時間を要することとなっていた。[Problem to be Solved by the Invention] As described above, according to the above-mentioned conventional exclusive control, it is determined whether or not the database is in use based on the presence or absence of a lock file, so the database becomes abnormal. In some cases, it is not possible to determine the abnormality from other access sources, and the problem is that the database remains in the "in use" state forever, and the occurrence of an abnormality in the database cannot be detected quickly, resulting in a long recovery process. It was supposed to require.
【0007】本発明は上記の事情に鑑みてなされたもの
であり、その目的は、アクセス元から共有データベース
の異常発生を正確かつ迅速容易に判別することのできる
共有データベースの異常判別方式を提供することにある
。The present invention has been made in view of the above circumstances, and its purpose is to provide a shared database abnormality determination method that can accurately, quickly and easily determine the occurrence of an abnormality in a shared database based on the access source. There is a particular thing.
【0008】 [発明の構成][0008] [Structure of the invention]
【0009】[0009]
【課題を解決するための手段】上記の目的を達成するた
めに本発明は、同一の日付/時刻に稼働する複数のアク
セス元から共有のデータベースをアクセスする処理にお
いて、前記データベースがいずれかのアクセス元によっ
て使用されている場合に作成されるロックファイルと、
このロックファイル内に設けられた日付/時刻データ登
録部とを備え、いずれかのアクセス元から前記データベ
ースをアクセス中には、前記日付/時刻データ登録部内
の日付/時刻データを周期αで更新するとともに、他の
アクセス元からアクセス要求が発生した場合には登録さ
れた日付/時刻データと現在の日付/時刻データとを比
較し、その差時間が前記周期αを超えている場合にデー
タベースの異常と判定することを特徴とする。[Means for Solving the Problems] In order to achieve the above object, the present invention provides a process for accessing a shared database from a plurality of access sources operating on the same date/time, in which the database is accessed by one of the access sources. The lock file created if it is used by the original,
and a date/time data registration section provided in this lock file, and while the database is being accessed from any access source, the date/time data in the date/time data registration section is updated at a cycle α. In addition, when an access request occurs from another access source, the registered date/time data and the current date/time data are compared, and if the difference exceeds the period α, an error is detected in the database. It is characterized by determining that.
【0010】0010
【作用】共有データベースがいずれかのアクセス元によ
って使用されている場合にロックファイルを作成すると
ともに、現在の日付/時刻データを日付/時刻データ登
録部にに登録する。共有データベースのアクセス中には
、前記日付/時刻データ登録部内の日付/時刻データを
周期αで更新して書き替える。この状態において、他の
アクセス元からアクセス要求が発生した場合には登録さ
れた日付/時刻データと現在の日付/時刻データとを比
較し、その差時間が前記周期αを超えている場合にデー
タベースに何等かの異常が発生したと判定する。これに
より、他のアクセス元は共有データベースの異常発生を
迅速に知ることが可能となる。[Operation] When the shared database is being used by any access source, a lock file is created and the current date/time data is registered in the date/time data registration section. During access to the shared database, the date/time data in the date/time data registration section is updated and rewritten at intervals of α. In this state, if an access request occurs from another access source, the registered date/time data and the current date/time data are compared, and if the difference exceeds the period α, the database It is determined that some kind of abnormality has occurred. This allows other access sources to quickly learn of the occurrence of an abnormality in the shared database.
【0011】[0011]
【実施例】図1は、本発明に係る共有データベースの異
常判別方式が適用された装置の一実施例構成を示してい
る。DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 shows the configuration of an embodiment of a device to which the shared database abnormality determination method according to the present invention is applied.
【0012】同図に示すように、複数の端末E1 ,E
2 ,…,En は、入出力部1、アクセス管理部2を
介して共有データベース3をアクセス可能に接続されて
いる。また、いずれかの端末E1 ,E2 ,…,En
からアクセス要求が発生した場合に作成されるロック
ファイル4を備えており、このロックファイル4は、使
用中のファイル名を登録する使用ファイル名登録部41
と、日付および時刻を書き替え可能に登録する日付/時
刻データ登録部42とから成っている。As shown in the figure, a plurality of terminals E1, E
2 , ..., En are connected to the shared database 3 via the input/output section 1 and the access management section 2 so as to be accessible. Also, any terminal E1, E2,..., En
The lock file 4 is provided with a lock file 4 that is created when an access request is generated from a user, and this lock file 4 includes a used file name registration section 41 that registers the file name in use.
and a date/time data registration unit 42 for rewritably registering the date and time.
【0013】前記アクセス管理部2は、いずれかの端末
E1 ,E2 ,…,En からのアクセス要求に応じ
てデータベース3をアクセスするアクセス部21と、い
ずれかの端末E1 ,E2 ,…,En からアクセス
要求が発生した場合にロックファイル4を作成するとと
もにアクセス要求終了時には作成されたロックファイル
4を消去するロックファイル管理部22と、端末から供
給される日付/時刻データにより前記日付/時刻データ
登録部42内の日付/時刻データを所定周期αで書き替
える日付/時刻データ更新部23と、日付/時刻データ
登録部42内の日付/時刻データと現在の日付/時刻デ
ータとを比較してその差時間が前記周期α以上となっっ
ている場合にデータベース3の異常発生を通知する比較
/判定部24とを備えている。The access management section 2 includes an access section 21 that accesses the database 3 in response to an access request from one of the terminals E1, E2,..., En, and an access section 21 that accesses the database 3 in response to an access request from one of the terminals E1, E2,..., En. A lock file management unit 22 that creates a lock file 4 when an access request occurs and deletes the created lock file 4 when the access request ends, and registers the date/time data using the date/time data supplied from the terminal. A date/time data updating section 23 rewrites the date/time data in the section 42 at a predetermined cycle α, and a date/time data updating section 23 that updates the date/time data in the date/time data registration section 42 with the current date/time data. It also includes a comparison/determination unit 24 that notifies the occurrence of an abnormality in the database 3 when the difference time is equal to or greater than the period α.
【0014】次に本実施例の作用を図2、図3のフロー
チャートに基づいて説明する。Next, the operation of this embodiment will be explained based on the flowcharts of FIGS. 2 and 3.
【0015】いずれかの端末E1 ,E2 ,…,En
からアクセス要求が発生した場合(ステップST1)
、ロックファイル管理部22はロックファイル4が作成
されているか否かを調べる。ロックファイル4が作成さ
れていなければ(ステップST2NO)、ロックファイ
ルを作成し、使用ファイル名登録部41に使用ファイル
名を書き込むとともに、アクセス元の端末から供給され
る現在の日付/時刻データを日付/時刻データ登録部4
2に書き込んだ後(ステップST3,4)、アクセス処
理を開始する(ステップST5)。アクセス中に所定の
周期αが到来するたびにアクセス元の端末から供給され
る日付/時刻データにより日付/時刻データ登録部42
内のデータが更新される(ステップST6,7)。こう
してある端末からのアクセスが終了するとロックファイ
ル4は消去される(ステップST8,9)。[0015] Any terminal E1, E2,..., En
When an access request occurs from (step ST1)
, the lock file management unit 22 checks whether the lock file 4 has been created. If the lock file 4 has not been created (step ST2 NO), a lock file is created, the file name to be used is written in the file name registration section 41, and the current date/time data supplied from the access source terminal is /Time data registration section 4
2 (steps ST3, 4), access processing is started (step ST5). Each time a predetermined cycle α arrives during access, the date/time data registration unit 42 uses date/time data supplied from the accessing terminal.
The data within is updated (steps ST6, ST7). When the access from a certain terminal ends, the lock file 4 is deleted (steps ST8, ST9).
【0016】一方、ステップST2において、ロックフ
ァイル4が既に作成されている場合には、図3のステッ
プST10に進み、アクセス元の端末から供給される現
在の日付/時刻データTと、日付/時刻データ登録部4
2に記憶されている日付/時刻データTM とを比較す
る(ステップST10)。On the other hand, in step ST2, if the lock file 4 has already been created, the process advances to step ST10 in FIG. Data registration section 4
2 and the date/time data TM stored in 2 (step ST10).
【0017】現在データTと記憶データTM の差時間
が前記所定周期αより小さい場合(ステップST11Y
ES)には、現在他の端末によりデータベース3が使用
中であるのでその旨をアクセス元の端末に通知する(ス
テップST12)。現在データTと記憶データTM の
差時間が前記所定周期αより大きい場合(ステップST
11NO)には、端末からのアクセスが終了しているに
もかかわらず、ロックファイル4が存在することを意味
するので、データベース3の異常発生と判定してその旨
をアクセス元の端末に通知する(ステップST13)。If the difference time between the current data T and the stored data TM is smaller than the predetermined period α (step ST11Y
Since the database 3 is currently being used by another terminal, the ES) notifies the accessing terminal of this fact (step ST12). If the difference between the current data T and the stored data TM is greater than the predetermined period α (step ST
11NO) means that lock file 4 exists even though the access from the terminal has ended, so it is determined that an error has occurred in database 3 and the accessing terminal is notified of this fact. (Step ST13).
【0018】このように本実施例によれば、データベー
スの異常発生を迅速に検知することができ、データベー
スの修復処理を迅速に行うことができる。したがって、
データベース3の異常発生を迅速に検知することにより
、端末からデータベース3のデータを収集して異常原因
を調べ、データベース3の自動修復をすることも可能と
なる。As described above, according to this embodiment, the occurrence of an abnormality in the database can be quickly detected, and the database repair process can be performed quickly. therefore,
By quickly detecting the occurrence of an abnormality in the database 3, it becomes possible to collect data in the database 3 from the terminal, investigate the cause of the abnormality, and automatically repair the database 3.
【0019】なお、本実施例では、日付/時刻データは
アクセス元の端末から供給するようにしているが、デー
タベース側のアクセス管理部2から供給するようにして
も良い。In this embodiment, the date/time data is supplied from the accessing terminal, but it may also be supplied from the access management section 2 on the database side.
【0020】[0020]
【発明の効果】以上説明したように本発明によれば、共
有データベースをアクセスする際に、他のアクセス元に
より使用中なのか、共有データベースに異常が発生した
のかを正確かつ迅速容易に知ることができる。このため
、従来では、使用中と判定されて長い時間待機されると
いう不具合を解消でき、また、異常発生を迅速に知るこ
とができるので、修復作業も迅速に行うことができる。[Effects of the Invention] As explained above, according to the present invention, when accessing a shared database, it is possible to accurately, quickly and easily know whether the shared database is being used by another accessor or whether an abnormality has occurred in the shared database. Can be done. Therefore, it is possible to eliminate the conventional problem of waiting for a long time after being determined to be in use, and also to be able to quickly learn of the occurrence of an abnormality, so that repair work can be performed quickly.
【図1】本発明方式が適用された装置の一実施例構成を
示すブロック図である。FIG. 1 is a block diagram showing the configuration of an embodiment of a device to which the method of the present invention is applied.
【図2】本発明方式の作用を説明するフローチャートで
ある。FIG. 2 is a flowchart illustrating the operation of the system of the present invention.
【図3】本発明方式の作用を説明するフローチャートで
ある。FIG. 3 is a flowchart illustrating the operation of the system of the present invention.
1 入出力部 2 アクセス管理部 3 共有データベース 4 ロックファイル 21 アクセス部 22 ロックファイル管理部 23 日付/時刻データ更新部 24 比較/判定部 41 使用ファイル名登録部 42 日付/時刻データ登録部 1 Input/output section 2 Access management department 3. Shared database 4 Lock file 21 Access section 22 Lock file management department 23 Date/time data update section 24 Comparison/judgment section 41 Used file name registration section 42 Date/time data registration section
Claims (1)
クセス元から共有のデータベースをアクセスする処理に
おいて、前記データベースがいずれかのアクセス元によ
って使用されている場合に作成されるロックファイルと
、このロックファイル内に設けられた日付/時刻データ
登録部とを備え、いずれかのアクセス元から前記データ
ベースをアクセス中には、前記日付/時刻データ登録部
内の日付/時刻データを周期αで更新するとともに、他
のアクセス元からアクセス要求が発生した場合には登録
された日付/時刻データと現在の日付/時刻データとを
比較し、その差時間が前記周期αを超えている場合にデ
ータベースの異常と判定することを特徴とする共有デー
タベースの異常判別方式。Claim 1: In the process of accessing a shared database from multiple access sources operating on the same date/time, a lock file that is created when the database is used by any of the access sources; and a date/time data registration section provided in a lock file, and while the database is being accessed from any access source, the date/time data in the date/time data registration section is updated at a cycle α. When an access request occurs from another access source, the registered date/time data and the current date/time data are compared, and if the difference exceeds the period α, it is determined that the database is abnormal. An abnormality determination method for a shared database characterized by determining.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3116198A JPH04363733A (en) | 1991-05-21 | 1991-05-21 | Abnormality discrimination system for shared database |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3116198A JPH04363733A (en) | 1991-05-21 | 1991-05-21 | Abnormality discrimination system for shared database |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH04363733A true JPH04363733A (en) | 1992-12-16 |
Family
ID=14681266
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP3116198A Pending JPH04363733A (en) | 1991-05-21 | 1991-05-21 | Abnormality discrimination system for shared database |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH04363733A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006171915A (en) * | 2004-12-13 | 2006-06-29 | Matsushita Electric Ind Co Ltd | Exclusive controller |
JP2009198560A (en) * | 2008-02-19 | 2009-09-03 | Nippon Telegr & Teleph Corp <Ntt> | Speech recognition method, its system, its program and its recording medium |
-
1991
- 1991-05-21 JP JP3116198A patent/JPH04363733A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006171915A (en) * | 2004-12-13 | 2006-06-29 | Matsushita Electric Ind Co Ltd | Exclusive controller |
JP2009198560A (en) * | 2008-02-19 | 2009-09-03 | Nippon Telegr & Teleph Corp <Ntt> | Speech recognition method, its system, its program and its recording medium |
JP4625509B2 (en) * | 2008-02-19 | 2011-02-02 | 日本電信電話株式会社 | Speech recognition method, system thereof, program thereof, recording medium thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100435101C (en) | Apparatus and method for maintaining resource integrity in a software environment | |
US6502122B1 (en) | Method and apparatus for executing transaction programs in parallel | |
JPH0644242B2 (en) | How to solve problems in computer systems | |
US5826078A (en) | Job re-execution system and controlling method thereof | |
JP3117958B2 (en) | Server setting device | |
JPH04363733A (en) | Abnormality discrimination system for shared database | |
CN111694724A (en) | Testing method and device of distributed table system, electronic equipment and storage medium | |
JP2003345628A (en) | Method for collecting fault research material, and implementation system therefor and processing program therefor | |
WO2019196227A1 (en) | Platform integration method and apparatus, and computer device and storage medium | |
JP3867868B2 (en) | Fault integrated management device | |
JPH0962626A (en) | On-line testing method of decentralized processing system | |
JP2000082005A (en) | Data processing system for inter-system data base sharing system | |
JP2000315190A (en) | Job recovery system | |
JPH03244054A (en) | Storage protection system | |
JPH0895932A (en) | System switching control method for distributed processing system | |
CN116719791A (en) | Information processing method, device, electronic equipment and storage medium | |
JPH07253912A (en) | Process monitor device | |
JPH07248810A (en) | Numerical controller | |
CN116431649A (en) | Database instance lock conflict management system and method | |
JP2710482B2 (en) | Additional service status monitoring method | |
JPH03225536A (en) | Method and device for log data collection | |
JP2831480B2 (en) | Information processing device failure detection method | |
JP2004054816A (en) | Database management method and apparatus | |
JPS6111855A (en) | Function diagnosing method of data processor | |
JPH04335452A (en) | File attribute checking method |