JPH06103142A - Distributed data base control system - Google Patents
Distributed data base control systemInfo
- Publication number
- JPH06103142A JPH06103142A JP4252435A JP25243592A JPH06103142A JP H06103142 A JPH06103142 A JP H06103142A JP 4252435 A JP4252435 A JP 4252435A JP 25243592 A JP25243592 A JP 25243592A JP H06103142 A JPH06103142 A JP H06103142A
- Authority
- JP
- Japan
- Prior art keywords
- access
- transaction
- distributed database
- data base
- database
- 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.)
- Withdrawn
Links
Landscapes
- Computer And Data Communications (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は分散データベース制御方
式に関し、特にサーバシステム内でトランザクション処
理のタイマ監視を行う分散データベース制御方式に関す
る。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a distributed database control system, and more particularly to a distributed database control system for monitoring a timer of transaction processing in a server system.
【0002】[0002]
【従来の技術】分散データベースシステムは、利用者か
らのアクセス要求を受け、そのアクセス要求を目的のホ
ストに依頼し、依頼結果を利用者へ返却する分散データ
ベースクライアントシステムと、分散データベースクラ
イアントシステムからの依頼を実行し、依頼結果を分散
データベースクライアントシステムへ返却する分散デー
タベースサーバシステムとから成る。2. Description of the Related Art A distributed database system receives an access request from a user, requests the access request to a target host, and returns the request result to the user, and a distributed database client system from the distributed database client system. It comprises a distributed database server system for executing a request and returning the request result to the distributed database client system.
【0003】従来の分散データベースシステムの一例を
図3に示す。An example of a conventional distributed database system is shown in FIG.
【0004】図3の分散データベースシステムは、分散
データベースクライアントシステム1と、分散データベ
ースサーバシステム3aと、両者間の通信を行う通信制
御手段2とから構成され、分散データベースサーバシス
テム3aは、データベース5と、データベース5に対す
るアクセスを制御するサーバプロセス4aとで構成され
ている。データベース5は、実際にアクセスされるデー
タ格納領域であり排他ロック制御の単位となる排他制御
単位5a,5b……5nの集合から成る。サーバプロセ
ス4aには、分散データベースクライアントシステム1
のアクセス要求に従って各排他制御単位5i(iはa,
b……)に対する排他ロック制御,実際のアクセス,ア
クセス結果の返却を行うデータベースアクセス手段41
aを含んでいる。The distributed database system of FIG. 3 is composed of a distributed database client system 1, a distributed database server system 3a, and a communication control means 2 for communicating between the two. , And a server process 4a that controls access to the database 5. The database 5 is a set of exclusive control units 5a, 5b, ... 5n, which are data storage areas that are actually accessed and are units of exclusive lock control. The server process 4a includes a distributed database client system 1
Each exclusive control unit 5i (i is a,
b ...) Database access means 41 for exclusive lock control, actual access, and return of access results
a is included.
【0005】以上の構成において、分散データベースク
ライアントシステム1から通信制御手段2を介してアク
セス要求Aを受けると、サーバプロセス4aのデータベ
ースアクセス手段41aは、アクセス対象データが格納
されている排他制御単位5iに対して排他ロックを行
い、アクセス要求Bによってデータベース5にアクセス
する。これに対してデータベース5からアクセス結果C
を受けると,分散データベースクライアントシステム1
に通信制御手段2を介してアクセス結果Dを返却し、分
散データベースクライアントシステム1からのトランザ
クション終了要求Eを受けて、排他制御単位5iに対す
る排他ロックを解除している。In the above configuration, when the access request A is received from the distributed database client system 1 via the communication control means 2, the database access means 41a of the server process 4a causes the exclusive control unit 5i in which the access target data is stored. An exclusive lock is applied to the database 5, and the database 5 is accessed by the access request B. On the other hand, the access result C from the database 5
Received, distributed database client system 1
Then, the access result D is returned via the communication control means 2, the transaction end request E from the distributed database client system 1 is received, and the exclusive lock for the exclusive control unit 5i is released.
【0006】[0006]
【発明が解決しようとする課題】上述した従来の分散デ
ータベース制御方式では、障害などで分散データベース
クライアントシステムからトランザクション終了要求が
送信されない場合や、なんらかの原因でアクセス中にデ
ータベースからの無応答状態が発生した場合は、排他ロ
ックが解除されないため、同一排他制御単位に対する他
のプログラムからのアクセスが永久に排他ロック解除待
ち状態になるという欠点がある。In the above-mentioned conventional distributed database control method, when a transaction end request is not sent from the distributed database client system due to a failure or for some reason, a non-response state from the database occurs during access. In that case, since the exclusive lock is not released, access from another program to the same exclusive control unit is permanently placed in the exclusive lock release wait state.
【0007】本発明の目的は、トランザクション終了要
求が送信されない場合や、なんらかの原因でデータベー
スアクセス中に無応答状態が発生した場合でも、排他ロ
ックを解除することにより同一排他制御単位に対する他
のプログラムからのアクセスが永久に排他ロック待ち状
態になることを防ぐことにある。An object of the present invention is to release an exclusive lock from another program for the same exclusive control unit even if a transaction end request is not transmitted or a non-response state occurs during database access for some reason. The purpose is to prevent the access of forever waiting for the exclusive lock.
【0008】[0008]
【課題を解決するための手段】本発明の分散データベー
ス制御方式は、利用者からのアクセス要求を通信手段を
介して依頼する分散データベースクライアントシステム
と、その依頼を受け処理を実行する分散データベースサ
ーバシステムとから成る分散データベースシステムで、
前記分散データベースサーバシステムのサーバプロセス
内のデータベースアクセス手段が排他制御を行なって前
記アクセス要求に対するトランザクション処理を実行す
る分散データベース制御方式において、前記サーバプロ
セスがトランザクション処理の時間を監視するトランザ
クションタイマ監視手段を備え、前記データベースアク
セス手段が、トランザクション処理の開始後一定時間が
経過しても前記分散データベースクライアントシステム
からトランザクション終了要求が送信されないときは、
排他制御を解除して実行中のトランザクション処理を異
常終了させるように構成されている。A distributed database control system of the present invention is a distributed database client system for requesting an access request from a user through a communication means, and a distributed database server system for receiving the request and executing processing. A distributed database system consisting of
In a distributed database control method in which database access means in a server process of the distributed database server system performs exclusive control to execute transaction processing for the access request, transaction timer monitoring means for monitoring the transaction processing time by the server process is provided. When the database access means does not send a transaction end request from the distributed database client system even after a fixed time has elapsed after the start of transaction processing,
It is configured to release the exclusive control and abnormally terminate the transaction processing being executed.
【0009】[0009]
【実施例】次に、本発明の実施例について図面を参照し
て説明する。Embodiments of the present invention will now be described with reference to the drawings.
【0010】図1は本発明の一実施例の構成を示すブロ
ック図である。FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention.
【0011】本実施例の分散データベース制御方式は、
図1に示すように、利用者からのアクセス要求を受け処
理を依頼する分散データベースクライアントシステム1
と、依頼を受けて処理を実行する分散データベースサー
バシステム3と、両者間の通信を行う通信制御手段2と
から構成されており、分散データベースサーバシステム
3のサーバプロセス4には、データベース5の排他制御
単位5a,5b……に対して排他ロック制御,実際のア
クセス,アクセス結果の返却を行うデータベースアクセ
ス手段41と、トランザクションごとにトランザクショ
ン開始からの時間を監視するトランザクションタイマ監
視手段42とを含んでいる。The distributed database control system of this embodiment is
As shown in FIG. 1, a distributed database client system 1 that receives an access request from a user and requests processing.
And a distributed database server system 3 that executes a process upon receiving a request, and a communication control unit 2 that communicates between the two. The server process 4 of the distributed database server system 3 excludes the database 5. Includes database access means 41 that performs exclusive lock control, actual access, and return of access results for the control units 5a, 5b ... And transaction timer monitoring means 42 that monitors the time from the transaction start for each transaction. There is.
【0012】次に、サーバプロセス4を構成するデータ
ベースアクセス手段41及びトランザクションタイマ監
視手段42の動作について、図2のフローチャートを用
いて説明する。Next, the operations of the database access means 41 and the transaction timer monitoring means 42 which constitute the server process 4 will be described with reference to the flowchart of FIG.
【0013】分散データベースクライアントシステム1
から通信制御手段2を介してアクセス要求Aを受けると
(ステップ10)、データベースアクセス手段41はト
ランザクションタイマ監視手段42に起動指令Fを通知
する(ステップ11)。Distributed database client system 1
When the access request A is received from the communication control means 2 via the communication control means 2 (step 10), the database access means 41 notifies the transaction timer monitoring means 42 of the start command F (step 11).
【0014】トランザクションタイマ監視手段42は、
起動指令Fを受け取ると(ステップ20)、そのときに
動作中でなければ直ちにタイマ監視処理を開始し(ステ
ップ21,22)、一定時間が経過してタイムアウトの
発生を検知すると(ステップ23)、データベースアク
セス手段41に対してタイムアウト通知Gを返す(ステ
ップ24)。起動指令Fを受けたとき動作中であれば、
リセット後タイマ監視を再開する(ステップ21,2
5,22)。The transaction timer monitoring means 42 is
When the activation command F is received (step 20), the timer monitoring process is started immediately if it is not in operation at that time (steps 21 and 22), and if the occurrence of a timeout after a certain period of time is detected (step 23), A timeout notice G is returned to the database access means 41 (step 24). If it is operating when it receives the start command F,
Restart timer monitoring after reset (steps 21 and 2)
5, 22).
【0015】一方、データベースアクセス手段41は,
データベース5の該当する排他制御単位5iに対して排
他ロックを行い(ステップ12)、アクセス要求Bを送
出してデータのアクセスを開始し、アクセス結果Cを受
けると分散データベースクライアントシステム1にアク
セス結果Dを返却するデータベースアクセス処理を開始
する(ステップ13)。On the other hand, the database access means 41 is
An exclusive lock is applied to the corresponding exclusive control unit 5i of the database 5 (step 12), an access request B is sent to start data access, and when the access result C is received, the access result D is sent to the distributed database client system 1. Then, the database access process for returning is started (step 13).
【0016】処理開始後、分散データベースクライアン
トシステム1からトランザクション終了要求Eを受ける
と(ステップ14)、排他制御単位5iに対する排他ロ
ックを解除し(ステップ18)、アクセス要求にかかる
トランザクション処理を終了する。When the transaction end request E is received from the distributed database client system 1 after starting the processing (step 14), the exclusive lock for the exclusive control unit 5i is released (step 18), and the transaction processing relating to the access request is ended.
【0017】処理開始後、一定時間経過しても分散デー
タベースクライアントシステム1からトランザクション
終了要求Eの送信がなく無応答の状態でトランザクショ
ンタイマ監視手段42からタイムアウト通知を受けると
(ステップ14,15)、通知を受けたデータベースア
クセス手段41は排他アンロックを行った後(ステップ
16)、トランザクションタイマエラーにより異常終了
したことを通信制御手段2を介して分散データベースク
ライアントシステム1に返却しトランザクション処理を
終了する(ステップ17)。When a timeout notification is received from the transaction timer monitoring means 42 without any response from the distributed database client system 1 even after a lapse of a fixed time after the start of processing and there is no response (steps 14 and 15), After receiving the notification, the database access means 41 performs the exclusive unlock (step 16), and then returns the fact that it has abnormally ended due to the transaction timer error to the distributed database client system 1 via the communication control means 2 and ends the transaction processing. (Step 17).
【0018】以上のように、アクセス要求を受けてから
一定時間経過してもトランザクション終了要求が送信さ
れない場合、異常終了として排他ロックを解除すること
により、分散データベースクライアントシステム1や通
信制御手段2の障害でトランザクション終了要求が送信
されなかった場合や、アクセス中になんらかの原因でデ
ータベース5からの無応答状態が発生した場合に、他の
プログラムが同一排他制御単位にアクセスしようとした
とき、永久にアクセス待ち状態となることを回避するこ
とができる。As described above, when the transaction end request is not transmitted within a certain time after the access request is received, the exclusive lock is released as an abnormal end so that the distributed database client system 1 and the communication control means 2 can be operated. When a transaction termination request is not sent due to a failure, or when there is no response from the database 5 for some reason during access, other programs try to access the same exclusive control unit forever It is possible to avoid waiting.
【0019】[0019]
【発明の効果】以上説明したように、本発明の分散デー
タベース制御方式は、トランザクションタイマ監視手段
をサーバプロセスに設け、トランザクション処理開始後
一定時間が経過してもトランザクション終了要求が送信
されなかった場合、排他ロックを解除して以上終了させ
るため、データベースアクセス中に発生する無応答状態
の継続を回避し、同一排他制御単位に対する他のプログ
ラムのアクセス待ち状態の長期継続を防止できる効果が
ある。As described above, according to the distributed database control method of the present invention, when the transaction timer monitoring means is provided in the server process and the transaction end request is not transmitted even after a fixed time has elapsed after the transaction processing is started. Since the exclusive lock is released and the processing is terminated as described above, it is possible to avoid continuation of a non-responsive state that occurs during database access and prevent a long-term continuation of an access waiting state of another program for the same exclusive control unit.
【図1】本発明の一実施例の構成を示すブロック図であ
る。FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention.
【図2】本実施例の動作を示すフローチャートである。FIG. 2 is a flowchart showing the operation of this embodiment.
【図3】従来の分散データベース制御方式の一例を示す
ブロック図である。FIG. 3 is a block diagram showing an example of a conventional distributed database control method.
1 分散データベースクライアントシステム 2 通信制御手段 3,3a 分散データベースサーバシステム 4,4a サーバプロセス 5 データベース 5a,5b……5n 排他制御単位 41,41a データベースアクセス手段 42 トランザクションタイマ監視手段 1 distributed database client system 2 communication control means 3, 3a distributed database server system 4, 4a server process 5 database 5a, 5b ... 5n exclusive control unit 41, 41a database access means 42 transaction timer monitoring means
Claims (1)
介して依頼する分散データベースクライアントシステム
と、その依頼を受け処理を実行する分散データベースサ
ーバシステムとから成る分散データベースシステムで、
前記分散データベースサーバシステムのサーバプロセス
内のデータベースアクセス手段が排他制御を行なって前
記アクセス要求に対するトランザクション処理を実行す
る分散データベース制御方式において、前記サーバプロ
セスがトランザクション処理の時間を監視するトランザ
クションタイマ監視手段を備え、前記データベースアク
セス手段が、トランザクション処理の開始後一定時間が
経過しても前記分散データベースクライアントシステム
からトランザクション終了要求が送信されないときは、
排他制御を解除して実行中のトランザクション処理を異
常終了させることを特徴とする分散データベース制御方
式。1. A distributed database system comprising a distributed database client system for requesting an access request from a user through a communication means, and a distributed database server system for receiving the request and executing processing.
In a distributed database control method in which database access means in a server process of the distributed database server system performs exclusive control to execute transaction processing for the access request, transaction timer monitoring means for monitoring the transaction processing time by the server process is provided. When the database access means does not send a transaction end request from the distributed database client system even after a fixed time has elapsed after the start of transaction processing,
A distributed database control method characterized by canceling exclusive control and abnormally ending the transaction processing being executed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP4252435A JPH06103142A (en) | 1992-09-22 | 1992-09-22 | Distributed data base control system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP4252435A JPH06103142A (en) | 1992-09-22 | 1992-09-22 | Distributed data base control system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH06103142A true JPH06103142A (en) | 1994-04-15 |
Family
ID=17237336
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP4252435A Withdrawn JPH06103142A (en) | 1992-09-22 | 1992-09-22 | Distributed data base control system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH06103142A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH08235098A (en) * | 1995-02-22 | 1996-09-13 | Mitsubishi Electric Corp | Distributed application commuinication system |
JP2000293426A (en) * | 1999-04-01 | 2000-10-20 | Nec Soft Ltd | Record lock system |
US6493746B1 (en) | 1998-03-11 | 2002-12-10 | Nec Corporation | Multi-operator network management system and method using transaction processing |
WO2019202888A1 (en) | 2018-04-19 | 2019-10-24 | 村田機械株式会社 | Exclusive control system and exclusive control method |
-
1992
- 1992-09-22 JP JP4252435A patent/JPH06103142A/en not_active Withdrawn
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH08235098A (en) * | 1995-02-22 | 1996-09-13 | Mitsubishi Electric Corp | Distributed application commuinication system |
US6493746B1 (en) | 1998-03-11 | 2002-12-10 | Nec Corporation | Multi-operator network management system and method using transaction processing |
JP2000293426A (en) * | 1999-04-01 | 2000-10-20 | Nec Soft Ltd | Record lock system |
WO2019202888A1 (en) | 2018-04-19 | 2019-10-24 | 村田機械株式会社 | Exclusive control system and exclusive control method |
US12019774B2 (en) | 2018-04-19 | 2024-06-25 | Murata Machinery, Ltd. | Exclusive control system and exclusive control method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3887160B2 (en) | External job scheduling method and system in distributed processing system with local job control system | |
US7127635B2 (en) | Method for correcting a program running on a computer system | |
US5134712A (en) | System for recovering failure of online control program with another current online control program acting for failed online control program | |
US7594070B2 (en) | Management of access to storage area of storage system | |
US5884022A (en) | Method and apparatus for controlling server activation in a multi-threaded environment | |
US20040148610A1 (en) | Methods, systems and computer program products for monitoring a task on a computer | |
JPH06202996A (en) | Extended function of subscriber distributed two phase commit protocol | |
JP2002324047A (en) | Method and system for automated session resources cleanup in distributed client/server environment | |
JPH11328066A (en) | Method and device for supporting transaction of network management operation, and computer program product | |
JPH07200441A (en) | Start and stop generalization system for decentralized processing system | |
US7546604B2 (en) | Program reactivation using triggering | |
US5737515A (en) | Method and mechanism for guaranteeing timeliness of programs | |
JPH06103142A (en) | Distributed data base control system | |
JP4009192B2 (en) | Efficient timer management system | |
US6735716B1 (en) | Computerized diagnostics and failure recovery | |
US6957361B2 (en) | Method, system, and program for error handling in a dual adaptor system | |
JP2003006018A (en) | System, method for restoring processing request, client device and server device | |
US20030212736A1 (en) | System and method for activating and pausing a component | |
JP2002297535A (en) | Method of system setting change and program thereof in transaction processing system | |
JP2732688B2 (en) | Management host switching control method | |
JPH0512205A (en) | Computer system | |
JP2733878B2 (en) | Remote maintenance monitoring method | |
JPH0619846A (en) | Resumption processing system for online system | |
JPH064175A (en) | Timer managing system | |
JPH04262428A (en) | Hot standby system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A300 | Application deemed to be withdrawn because no request for examination was validly filed |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 19991130 |