JP2000293426A - Record lock method - Google Patents

Record lock method

Info

Publication number
JP2000293426A
JP2000293426A JP11095402A JP9540299A JP2000293426A JP 2000293426 A JP2000293426 A JP 2000293426A JP 11095402 A JP11095402 A JP 11095402A JP 9540299 A JP9540299 A JP 9540299A JP 2000293426 A JP2000293426 A JP 2000293426A
Authority
JP
Japan
Prior art keywords
database
cgi
lock
record
access control
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
JP11095402A
Other languages
Japanese (ja)
Inventor
Kazuaki Mogi
一明 茂木
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 Solution Innovators Ltd
Original Assignee
NEC Solution Innovators 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 NEC Solution Innovators Ltd filed Critical NEC Solution Innovators Ltd
Priority to JP11095402A priority Critical patent/JP2000293426A/en
Publication of JP2000293426A publication Critical patent/JP2000293426A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

(57)【要約】 【課題】CGIによるデータベース更新の際に必要とな
るロックが行える様にすることにより、データベースの
信頼性を向上させ、ブラウザからのCGIを経由したデ
ータベースアクセスの操作性を向上させる。 【解決手段】本発明は、データベースアクセス制御実行
手段(CGIプログラム)と、トランザクション管理手
段と、時間監視手段と、ロック管理制御構造体と、デー
タベースアクセス制御手段とを備え、CGIがデータベ
ースレコードへの自由なロック制御を可能にするように
動作する。
(57) [Summary] [PROBLEMS] To improve the reliability of a database and to improve the operability of database access from a browser via a CGI by enabling a lock required for updating a database by a CGI. Let it. The present invention includes a database access control execution unit (CGI program), a transaction management unit, a time monitoring unit, a lock management control structure, and a database access control unit, and the CGI is configured to access a database record. Operate to enable free lock control.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、クライアントコン
ピュータ上のブラウザからのWWW(World WideWeb)サ
ーバに存在するHTML(Hyper Text Markup Language)
ファイルのアクセスにおいて、CGIを動作させてデー
タベースを参照、更新する技術に関し、特にこのCGI
によるデータベースレコードをロックする際のレコード
ロック方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an HTML (Hyper Text Markup Language) existing in a WWW (World Wide Web) server from a browser on a client computer.
The present invention relates to a technique for operating a CGI to refer to and update a database when accessing a file.
Record locking method for locking database records by the system.

【0002】[0002]

【従来の技術】従来の技術では、ブラウザからCGIを
経由してデータベースをアクセスする際に、ブラウザが
ユーザによって終了される可能性が高いため、CGIが
データベースをロック中に、CGIプロセスが終了して
しまうことが想定されるため、CGIはデータベースを
更新する際に必要となるロックが行えず、データベース
の信頼性、操作性に問題があった。
2. Description of the Related Art In the prior art, when accessing a database from a browser via a CGI, there is a high possibility that the browser is terminated by a user. Therefore, the CGI process is terminated while the CGI is locking the database. Therefore, the CGI cannot perform a lock required when updating the database, and there is a problem in reliability and operability of the database.

【0003】[0003]

【発明が解決しようとする課題】CGIによる処理で
は、データベースを更新する際に必要となるロックが行
えないという問題があった。その理由は、CGIによる
処理ではクライアントからの要求毎にCGIプロセスが
実行されるため、データベースをロックしても、ユーザ
からの要求でCGIプロセスが終了した場合、データベ
ースをアンロックできなくなってしまうためである。
In the processing by the CGI, there is a problem that a lock necessary for updating a database cannot be performed. The reason is that in the processing by CGI, the CGI process is executed for each request from the client, so that even if the database is locked, if the CGI process is terminated by the request from the user, the database cannot be unlocked. It is.

【0004】本発明の目的は、CGIによるデータベー
ス更新の際に必要となるロックが行える様にすることに
より、データベースの信頼性を向上させ、ブラウザから
のCGIを経由したデータベースアクセスの操作性を向
上させることを目的とする。
An object of the present invention is to improve the reliability of a database and to improve the operability of database access via a CGI from a browser by enabling a lock required for updating a database by the CGI. The purpose is to let them.

【0005】[0005]

【課題を解決するための手段】本発明の第1のレコード
ロック方式は、データベースアクセス制御実行手段と、
トランザクション管理手段と、時間監視手段と、ロック
管理制御構造体と、データベースアクセス制御手段とを
備え、CGI(Common Gateway Interface)がデータベー
スレコードへ自由にロック制御ができるようにすること
を特徴とする。
According to a first record lock method of the present invention, a database access control execution means includes:
A transaction management unit, a time monitoring unit, a lock management control structure, and a database access control unit are provided, and a CGI (Common Gateway Interface) can freely control a lock on a database record.

【0006】[0006]

【発明の実施の形態】以下、本発明の実施の形態につい
て図面を参照して詳細に説明する。
Embodiments of the present invention will be described below in detail with reference to the drawings.

【0007】図1を参照すると、本発明の実施の形態
は、ブラウザ101が動作するクライアントコンピュー
タ100と、HTMLファイル102を保持しブラウザ
からのHTMLファイル参照を制御管理するWWWサー
バ管理手段104を有するサーバコンピュータ103
と、WWWサーバ管理手段の基にHTMLファイルの参
照により適宜実行されるデータベースアクセス制御実行
手段(以後CGIと呼ぶ)105と、CGIからのデータ
ベースアクセス実行単位(以後トランザクションと呼ぶ)
を管理するトランザクション管理手段106と、トラン
ザクション管理手段の基にCGIからのトランザクショ
ン毎に起動されるデータベースアクセス制御手段109
と、データベースアクセス制御手段がCGIのデータベ
ースロック状態を制御するために必要な情報を記録する
ロック管理制御構造体108と、データベースレコード
ロック状態を時間監視し必要なロック制御を行う時間監
視手段107と、ブラウザからHTMLファイルおよび
CGIを経由して参照・更新されるデータを保持するデ
ータベース110とを含む。
Referring to FIG. 1, the embodiment of the present invention includes a client computer 100 on which a browser 101 operates, and a WWW server management means 104 which holds an HTML file 102 and controls and controls the reference of the HTML file from the browser. Server computer 103
A database access control execution unit (hereinafter referred to as CGI) 105 which is appropriately executed by referring to the HTML file based on the WWW server management unit, and a database access execution unit (hereinafter referred to as transaction) from the CGI
Management means 106 for managing the transaction, and database access control means 109 activated for each transaction from the CGI based on the transaction management means.
A lock management control structure 108 for recording information necessary for the database access control means to control the database lock state of the CGI, a time monitoring means 107 for monitoring the database record lock state and performing the necessary lock control. And a database 110 that stores data that is referenced and updated from a browser via an HTML file and a CGI.

【0008】これらの手段は次のように動作する。[0008] These means operate as follows.

【0009】あるユーザがブラウザから、HTMLファ
イルを参照しデータベース内の特定のテーブルのレコー
ドを更新を伴う参照を行った場合、WWWサーバ管理手
段104は、この参照に必要なCGIを起動し、ユーザ
情報、テーブル情報及びレコード情報をこの手段に入力
する。
When a user refers to an HTML file from a browser and refers to a record of a specific table in a database with updating, the WWW server management means 104 activates a CGI required for the reference, and Information, table information and record information are input to this means.

【0010】CGIは、トランザクション管理手段10
6に対して、このユーザのデータベースアクセスを可能
にするために、データベースへのアクセス実行単位識別
子(以後トランザクション識別子と呼ぶ)を獲得する。
[0010] The CGI is used by the transaction management means 10.
In order to allow the user to access the database, an access execution unit identifier (hereinafter, referred to as a transaction identifier) for the database is acquired for the user.

【0011】手段106は、トランザクション識別子、
テーブル情報、レコード情報を入力情報として、データ
ベースをアクセスする処理手段であるデータベースアク
セス制御手段109を起動する。
The means 106 comprises a transaction identifier,
Using the table information and the record information as input information, the database access control means 109, which is a processing means for accessing the database, is started.

【0012】手段109は、CGIが先に獲得したトラ
ンザクション識別子を添えて、データベースをアクセス
する毎に、指定されたテーブルの指定されたレコードに
対して、このCGIが更新を伴う参照を実行しているこ
とをロック管理制御構造体108に記録し(ロック中状
態をセットする)、データベース110に対してレコー
ド検索を実行すると共に、時間監視手段107を使って
時間監視を開始する。
[0012] The means 109 adds a transaction identifier acquired earlier by the CGI and executes a reference to the specified record of the specified table with an update to the specified record of the specified table every time the database is accessed. Is recorded in the lock management control structure 108 (locked state is set), a record search is executed on the database 110, and time monitoring is started using the time monitoring means 107.

【0013】他のユーザからの当該レコードの参照は、
ロック管理制御構造体108の情報により、手段109
によって拒否することができる。
Reference of the record from another user is as follows:
According to the information of the lock management control structure 108, the means 109
Can be rejected by

【0014】通常は、ユーザからのHTMLファイル参
照終了により、CGIが実行するロック解除要求によ
り、手段109はロック管理制御構造体に記録されたロ
ック中状態をリセットし、手段109を停止する。
Normally, in response to an end of reference to an HTML file from a user, a lock release request executed by the CGI causes the means 109 to reset the locked state recorded in the lock management control structure and stop the means 109.

【0015】またユーザが当該レコードにロックをかけ
たままブラウザを終了させた場合、時間監視手段107
が一定の時間ユーザからのレコードロック解除がなされ
ていないことを検出し、ロック中状態をリセットすると
同時に、手段109を停止させる。
If the user terminates the browser with the record locked, the time monitoring means 107
Detects that the record lock has not been released by the user for a certain period of time, resets the locked state, and simultaneously stops the means 109.

【0016】次に、図2及び図3のフローチャートを参
照して本実施形態のロック制御処理について詳細に説明
する。
Next, the lock control processing of the present embodiment will be described in detail with reference to the flowcharts of FIGS.

【0017】図2では、データベースアクセス制御手段
109のロック制御処理の流れ図である。
FIG. 2 is a flowchart of the lock control process of the database access control means 109.

【0018】CGIからデータベースアクセス要求が手
段109に対して実行された場合、指定されたテーブル
情報とレコード情報から、このレコードがロック中かを
ロック管理制御構造体から確認する。ロック中の場合
は、指定されたトランザクション識別子を確認して、こ
の要求が、当該レコードにロックをかけたユーザからの
要求であるかを確認する。
When a database access request is issued from the CGI to the means 109, it is confirmed from the specified table information and record information whether the record is locked from the lock management control structure. If the record is locked, the designated transaction identifier is checked to determine whether the request is a request from the user who locked the record.

【0019】同一ユーザである場合はこのデータベース
アクセス要求を処理する。
If the users are the same user, this database access request is processed.

【0020】別ユーザである場合は、この要求を拒否す
る。
If the user is another user, the request is rejected.

【0021】当該レコードがロック中でない場合は、ト
ランザクション識別子、テーブル情報、レコード情報を
ロック管理制御構造体に記録し、当該レコードをロック
中状態とし、時間監視手段107により一定時間のタイ
マーをスタートさせ、当該レコードのアクセスを実行す
る。
If the record is not locked, the transaction identifier, table information, and record information are recorded in the lock management control structure, the record is locked, and the time monitoring means 107 starts a timer for a fixed time. Then, the access of the record is executed.

【0022】図3では、ロック解除処理の流れ図であ
る。データベースアクセス制御手段109が、CGIか
らロック解除の要求を受け取った場合、ロック管理制御
構造体の該当する情報をクリアし、当該レコードをロッ
ク解除の状態とし、手段109を停止させる。また、ユ
ーザがロックをかけたままデータベースへのアクセスを
終了した場合、時間監視手段107が、タイマーのタイ
ムアウトでこの事象を検知し、手段109に対して擬似
的に、ロック解除要求を行う。この要求を受けた手段1
09は、通常のCGIからのロック解除要求と同様の処
理を行う。
FIG. 3 is a flowchart of the lock release processing. When the database access control unit 109 receives a lock release request from the CGI, it clears the corresponding information in the lock management control structure, puts the record in the unlocked state, and stops the unit 109. Further, when the user terminates the access to the database while the lock is applied, the time monitoring unit 107 detects this event by the timeout of the timer, and makes a pseudo unlock request to the unit 109. Means 1 receiving this request
09 performs the same processing as a lock release request from a normal CGI.

【0023】次に、本発明の第2の実施の形態について
図面を参照して詳細に説明する。
Next, a second embodiment of the present invention will be described in detail with reference to the drawings.

【0024】図4を参照すると、本発明の第2の実施の
形態は、図1の手段105のCGIプログラムを、マイ
クロソフト社が提供するActivX開発環境により実
現されたデータベースアクセス制御実行手段(Acti
vXプログラム)205に置き換えたものである。手段
105と手段205の果たす役割は同一であるが、プロ
グラムの実現手段が異なる。
Referring to FIG. 4, according to a second embodiment of the present invention, the CGI program of the means 105 of FIG. 1 is replaced with a database access control executing means (Active) implemented by an ActiveX development environment provided by Microsoft Corporation.
vX program) 205. The means 105 and 205 play the same role, but differ in the means of implementing the program.

【0025】次に、本発明の第3の実施の形態について
図面を参照して詳細に説明する。
Next, a third embodiment of the present invention will be described in detail with reference to the drawings.

【0026】図5を参照すると、本発明の第3の実施の
形態は、図1の手段105のCGIプログラムを、サン
マイクロシステムズ社が提供するJava開発環境によ
り実現されたデータベースアクセス制御実行手段(Ja
vaプログラム)305に置き換えたものである。
Referring to FIG. 5, in a third embodiment of the present invention, the CGI program of the means 105 shown in FIG. 1 is executed by a database access control execution means (A) realized by a Java development environment provided by Sun Microsystems. Ja
va program) 305.

【0027】手段105と手段305の機能は同一であ
るが、プログラムの実現手段が異なる。
The functions of the means 105 and 305 are the same, but the means for realizing the program is different.

【0028】[0028]

【発明の効果】本効果は、CGIによるデータベース更
新の際に必要となるロックが行えるようにしたことによ
り、データベースの信頼性を向上させ、ブラウザからの
CGIを経由したデータベースの操作性が向上させるこ
とである。その理由はデータベースのロックを実行する
CGIを、処理要求毎に記録し、ロック状態を時間監視
することにより、データベースにロックをかけたままC
GIプロセスが終了しても、自動的にデータベースをア
ンロックできる様にしたためである。
According to the present invention, the lock required for updating the database by the CGI can be performed, thereby improving the reliability of the database and improving the operability of the database from the browser via the CGI. That is. The reason is that the CGI for locking the database is recorded for each processing request, and the lock state is monitored over time, so that the CGI can be performed while the database is locked.
This is because the database can be automatically unlocked even after the GI process ends.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の第1の実施の形態の構成を示すブロッ
ク図である。
FIG. 1 is a block diagram showing a configuration of a first exemplary embodiment of the present invention.

【図2】本発明の第1の実施の形態の動作の一部を示す
流れ図である。
FIG. 2 is a flowchart showing a part of the operation of the first exemplary embodiment of the present invention.

【図3】本発明の第1の実施の形態の動作の一部を示す
流れ図である。
FIG. 3 is a flowchart showing a part of the operation of the first exemplary embodiment of the present invention.

【図4】本発明の第2の実施の形態の構成を示すブロッ
ク図である。
FIG. 4 is a block diagram showing a configuration of a second exemplary embodiment of the present invention.

【図5】本発明の第3の実施の形態の構成を示すブロッ
ク図である。
FIG. 5 is a block diagram showing a configuration of a third exemplary embodiment of the present invention.

【符号の説明】[Explanation of symbols]

100 クライアントコンピュータ 101 ブラウザ 102 サーバコンピュータ 103 HTMLファイル 104 WWWサーバ管理手段 105 データベースアクセス制御手段(CGIプロ
グラム) 106 トランザクション管理手段 107 時間監視手段 108 ロック管理制御構造体 109 データベースアクセス制御手段 110 データベース 205 データベースアクセス制御手段(Activ
Xプログラム) 305 データベースアクセス制御手段(Javaプ
ログラム)
Reference Signs List 100 client computer 101 browser 102 server computer 103 HTML file 104 WWW server management unit 105 database access control unit (CGI program) 106 transaction management unit 107 time monitoring unit 108 lock management control structure 109 database access control unit 110 database 205 database access control Means (Active
X program) 305 Database access control means (Java program)

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 データベースアクセス制御実行手段と、
トランザクション管理手段と、時間監視手段と、ロック
管理制御構造体と、データベースアクセス制御手段とを
備え、CGI(Common Gateway Interface)がデータベー
スレコードへ自由にロック制御ができるようにすること
を特徴とするレコードロック方式。
1. A database access control execution means,
A record comprising a transaction management means, a time monitoring means, a lock management control structure, and a database access control means, wherein a CGI (Common Gateway Interface) can freely control a lock on a database record. Lock method.
JP11095402A 1999-04-01 1999-04-01 Record lock method Pending JP2000293426A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11095402A JP2000293426A (en) 1999-04-01 1999-04-01 Record lock method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11095402A JP2000293426A (en) 1999-04-01 1999-04-01 Record lock method

Publications (1)

Publication Number Publication Date
JP2000293426A true JP2000293426A (en) 2000-10-20

Family

ID=14136683

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11095402A Pending JP2000293426A (en) 1999-04-01 1999-04-01 Record lock method

Country Status (1)

Country Link
JP (1) JP2000293426A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020037399A (en) * 2000-11-14 2002-05-21 구자홍 method for processing a transaction of the database management system
KR100439342B1 (en) * 2000-12-30 2004-07-07 한국전자통신연구원 A Processing Scheme of SET Type Attribute in Object Relational MMDBMS
EP1316898A3 (en) * 2001-11-28 2004-11-10 Siemens Aktiengesellschaft Simple and secure method for locking data sets from CGI scripts

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0512094A (en) * 1991-07-05 1993-01-22 Shimadzu Corp Transaction management device
JPH06103142A (en) * 1992-09-22 1994-04-15 Hokkaido Nippon Denki Software Kk Distributed database control method
JPH1097483A (en) * 1996-06-07 1998-04-14 Internatl Business Mach Corp <Ibm> Method and apparatus for saving state in stateless network protocols
JPH10198596A (en) * 1997-01-14 1998-07-31 Oki Electric Ind Co Ltd Information transmission device and information transmission method
JPH1131126A (en) * 1997-05-08 1999-02-02 Internatl Business Mach Corp <Ibm> How to coordinate operations between server groups

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0512094A (en) * 1991-07-05 1993-01-22 Shimadzu Corp Transaction management device
JPH06103142A (en) * 1992-09-22 1994-04-15 Hokkaido Nippon Denki Software Kk Distributed database control method
JPH1097483A (en) * 1996-06-07 1998-04-14 Internatl Business Mach Corp <Ibm> Method and apparatus for saving state in stateless network protocols
JPH10198596A (en) * 1997-01-14 1998-07-31 Oki Electric Ind Co Ltd Information transmission device and information transmission method
JPH1131126A (en) * 1997-05-08 1999-02-02 Internatl Business Mach Corp <Ibm> How to coordinate operations between server groups

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020037399A (en) * 2000-11-14 2002-05-21 구자홍 method for processing a transaction of the database management system
KR100439342B1 (en) * 2000-12-30 2004-07-07 한국전자통신연구원 A Processing Scheme of SET Type Attribute in Object Relational MMDBMS
EP1316898A3 (en) * 2001-11-28 2004-11-10 Siemens Aktiengesellschaft Simple and secure method for locking data sets from CGI scripts

Similar Documents

Publication Publication Date Title
US5095421A (en) Transaction processing facility within an operating system environment
US6490624B1 (en) Session management in a stateless network system
US5659682A (en) Scheme to determine completion of directory operations for server recovery
US7281050B2 (en) Distributed token manager with transactional properties
EP2928160B1 (en) Idempotence for database transactions
US7089561B2 (en) Methods and systems for creating and communicating with computer processes
JP4028233B2 (en) Server agent system
US7810034B2 (en) Backup reporting framework graphical user interface
US20030112271A1 (en) Method of controlling a browser session
US20050234936A1 (en) Asynchronous database API
US20070198728A1 (en) Generating and launching remote method invocation servers for individual client applications
JP3524187B2 (en) Shared window operation right management system and control method therefor
JP4037058B2 (en) Electronic information exclusive control apparatus, exclusive control method, and computer-readable recording medium recording exclusive control program
JP4009192B2 (en) Efficient timer management system
SPS SAP HANA administration guide
JP4604032B2 (en) One-stage commit in non-shared database system
JPH09146762A (en) System file backup method and restoration method
JP2001350777A (en) Distributed database system
JP3330006B2 (en) Network system including information storage system, input system of the system, and
JP2000305832A (en) Memory sharing device and method in cluster system composed of multiple hosts
CN103488854A (en) Configurable parameter maintenance device and method
Johnson et al. Issues in the development of transactional Web applications
JP2569918B2 (en) Deadlock generator
Chen et al. Oracle Database Platform Guide, 10g Release 2 (10.2) for Microsoft Windows Itanium (64-Bit) B14305-05
Chen et al. Oracle Database Platform Guide, 10g Release 2 (10.2) for Microsoft Windows (32-Bit) B14304-06

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20040803