JP3575236B2 - Database exclusive control method and system and storage medium storing database exclusive control program - Google Patents

Database exclusive control method and system and storage medium storing database exclusive control program Download PDF

Info

Publication number
JP3575236B2
JP3575236B2 JP20506297A JP20506297A JP3575236B2 JP 3575236 B2 JP3575236 B2 JP 3575236B2 JP 20506297 A JP20506297 A JP 20506297A JP 20506297 A JP20506297 A JP 20506297A JP 3575236 B2 JP3575236 B2 JP 3575236B2
Authority
JP
Japan
Prior art keywords
database
update
exclusive control
started
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.)
Expired - Lifetime
Application number
JP20506297A
Other languages
Japanese (ja)
Other versions
JPH1153241A (en
Inventor
伸幸 小林
真 鬼塚
史和 小西
秀一 西岡
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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone 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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP20506297A priority Critical patent/JP3575236B2/en
Publication of JPH1153241A publication Critical patent/JPH1153241A/en
Application granted granted Critical
Publication of JP3575236B2 publication Critical patent/JP3575236B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

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

Description

【0001】
【発明の属する技術分野】
本発明は、データベース排他制御方法及びシステム及びデータベース排他制御プログラムを格納した記憶媒体に係り、特に、データベース管理システムにおける複数のデータベースアクセス処理が同一のデータベースをアクセスするとき、データベースに格納されているデータの一貫性を保証するためのデータベース排他制御方法及びシステム及びデータベース排他制御プログラムを格納した記憶媒体に関する。
【0002】
【従来の技術】
データベースにアクセスする処理の単位をトランザクションと呼ぶ。一般的に、複数のトランザクションが同時に走行するとき、トランザクション内で更新中のデータを、他のトランザクションから参照できないように制御し、また、トランザクション内で参照及び更新しているデータについて他のトランザクションから更新できないように制御する。これを行わない場合、例えば、ある利用者が発行したトランザクションがデータ更新を行っている最中に、さらに他の利用者が発行したトランザクションが同じデータを更新した場合、元の利用者の意図がデータベースに反映されない結果になる。このように、個々のトランザクションの観点からデータベースの一貫性を保証する制御を排他制御と呼ぶ。
【0003】
従来の排他制御方法では、一般に、トランザクションにおける操作対象データについて参照するときは、共有施錠を行い、更新する時は、排他施錠を行う。共有施錠を行ったデータについては、他のトランザクションからの共有施錠を可能とし、多重施錠を行う。個々の利用者は、他の利用者から共有施錠が行われていない場合のみ、共有施錠から排他施錠への変更を可能とする。また、排他施錠を行ったデータについては、自己の参照及び更新は可能とするが、他者からの共有施錠は認めない。これらの制御によりあるトランザクションが使用しているデータについては、施錠中は他のトランザクションによって変更されることなく、また、他のトランザクションが使用しているデータを更新することを抑制できる。これにより一貫性を保証する。
【0004】
【発明が解決しようとする課題】
しかしながら、上記の従来の技術により排他制御処理を行った場合、トランザクションの処理対象のデータ個数だけ施錠を行う必要がある。しかし、実際には、X.500ディレクトリサービス[CCITTブルーブック第VIII−6−8参照]などのように、参照のみの処理が多いシステムが存在する。このような参照処理のみ動作中の場合、あるトランザクションから参照されているデータが、他のトランザクションから更新されることはないため、排他制御処理は、余剰な処理となる。
【0005】
本発明は、上記の点に鑑みなされたもおで、参照処理時における余剰な排他制御を削減することが可能なデータベース排他制御方法及びシステム及びデータベース排他制御プログラムを格納した記憶媒体を提供することを目的とする。
【0006】
【課題を解決するための手段】
本発明は、複数のデータベースアクセス処理が同一のデータベースをアクセスするとき、データベースに格納されているデータの一貫性を保証するための制御を行うデータベース排他制御方法において、
全ての更新処理未動作中に開始した参照処理の終了後に更新処理を開始し、
更新処理においてデータベースデータに対する排他制御を行い、
更新処理動作中に参照処理が開始された場合には、データベースデータに対する排他制御を行い、
更新処理未動作中に参照処理が開始された場合には、データベースデータに対する排他制御を行わない。
【0007】
本発明は、データベースデータに対する排他制御手段を有するデータベース管理システムにおけるデータベース排他制御システムであって、
排他制御手段は、
全ての更新処理未動作中に開始した参照処理の終了後に更新処理を開始し、開始された該更新処理においてデータベースデータに対する排他制御を行う更新処理開始手段と、
更新処理動作中に参照処理が開始された場合には、データベースデータに対する排他制御を行う更新動作中参照手段と、
更新処理未動作中に参照処理が開始された場合には、データベースデータに対する排他制御を行わない更新未動作中参照手段とを有する。
【0008】
本発明は、データベースデータに対する排他制御手プロセスを有するデータベース管理システムにおけるデータベース排他制御プログラムを格納した記憶媒体であって、
排他制御プロセスは、
全ての更新処理未動作中に開始した参照処理の終了後に更新処理を開始し、開始された該更新処理においてデータベースデータに対する排他制御を行う更新処理開始制御プロセスと、
更新処理動作中に参照処理が開始された場合には、データベースデータに対する排他制御を行う更新動作中参照制御プロセスと、
更新処理未動作中に参照処理が開始された場合には、データベースデータに対する排他制御を行わない更新未動作中参照制御プロセスとを有する。
【0009】
上記のように、本発明によれば、更新処理は、全ての更新処理未動作中に開始した参照処理の終了後に処理を開始するように制御することにより、更新処理と更新処理未走行中に開始した参照処理が同時には動作しないように制御する。
さらに、更新処理と、更新処理動作中に開始した参照処理は、データベースデータに対する排他制御を行い、更新処理が未動作中に開始した参照処理は、データベースデータに対する排他制御処理を行わないことにより、更新処理が未動作中に動作する参照処理に伴う排他制御処理を抑止でき、余剰となる排他制御処理を削減することが可能となる。
【0010】
【発明の実施の形態】
図1は、本発明の排他制御システムの構成を示す。
排他制御システム100には、データベース管理システム101があり、当該データベース管理システム101は、個々のトランザクションごとに設定され、当該トランザクションが現在動作中であるか未動作であるかの状態を把握するための開始状態フラグ104、現在更新中の更新トランザクションのカウントをとる更新カウンタ105、現在参照中の参照トランザクションのカウントをとる参照カウンタ106、排他制御を実現する排他制御部107、及び当該データベース管理システム101に格納されているデータ108から構成される。さらに、当該データベース管理システム101に格納されるデータ108の参照処理のみを行う参照トランザクション102と、当該データ108に対する更新処理を含む更新トランザクション103とがある。
【0011】
排他制御部107は、全ての更新未動作中に参照トランザクション102が開始されると排他制御を行わずに、当該参照トランザクション102が終了後に更新トランザクション103の処理を開始し、データベースデータ108に対する排他制御処理を行う。つまり、いくつかの更新トランザクションが動作中の状態である場合には、当該更新トランザクションの開始状態フラグ104が“動作中”となり、これらのトランザクションが未動作の状態である場合には当該開始状態フラグ104が“未動作”となる。また、参照トランザクションが動作中、未動作の状態である場合も同様である。さらに、更新カウンタ105が0であれば更新中のトランザクションがないことを示し、参照カウンタ106が0であれば参照中のトランザクションがないことを示す。従って、排他制御部107は、開始状態フラグ104と更新カウンタ105、及び参照カウンタ106を参照して排他処理を行う。
【0012】
【実施例】
以下、図面と共に本発明の実施例を説明する。
最初に、更新処理のみから構成されるトランザクションの開始処理について説明する。
図2は、本発明の一実施例の更新処理のみから構成されるトランザクション(更新トランザクション)の開始処理のフローチャートである。
【0013】
ステップ101) 更新処理を含む動作中のトランザクション数を示す更新カウンタ105が0か否かを確認し、0の場合にはステップ102に移行し、0でない場合には、ステップ104に移行する。
ステップ102) 自トランザクションの開始状態フラグ104を更新処理が未動作であることを示す“未動作”に設定する。
【0014】
ステップ103) 更新処理を含むトランザクションが未動作中に開始した参照処理のみから構成されるトランザクション数を示す更新カウンタに1を加算する。
ステップ104) 自トランザクションの開始状態フラグ104を、更新処理が動作中であることを示す“動作中”に設定する。
【0015】
ステップ105) 通常の開始処理を行う。
次に、参照処理のみから構成されるトランザクションの参照処理について説明する。
図3は、本発明の一実施例の参照処理のみから構成されるトランザクションの参照処理のフローチャートである。
【0016】
ステップ201) 開始状態フラグ104を確認し、開始状態フラグが“動作中”であるときステップ202に移行し、“未動作”であるとき、ステップ203に移行する。
ステップ202) 参照処理の対象データについて、排他制御部107に依頼し、共有施錠を行う。
【0017】
ステップ203) 対象データについて参照処理を行う。
次に、更新処理のみから構成されるトランザクションの開始処理について説明する。
図4は、本発明の一実施例の参照処理のみから構成されるトランザクションの終了処理のフローチャートである。
【0018】
ステップ301) 開始状態フラグ104を確認し、開始状態フラグ104が“動作中”であるとき、ステップ302に移行し、“未動作”であるとき、ステップ303に移行する。
ステップ302) 排他制御部107に依頼し、自処理でおこなった全ての共有施錠について、施錠解除を依頼する。
【0019】
ステップ303) 参照カウンタから1を減算する。
ステップ304) 開始状態フラグを初期化し、通常の終了処理を行う。
次に、更新処理のみから構成されるトランザクションの開始処理について説明する。
図5は、本発明の一実施例の更新処理のみから構成されるトランザクションの開始処理のフローチャートである。
【0020】
ステップ401) 参照カウンタ106が0かを確認し、0であればステップ403に移行し、そうでない場合にはステップ402に移行する。
ステップ402) 処理をスリープし、その後ステップ401に移行する。
ステップ403) 更新カウンタ105に1を加算し、通常の開始処理を行う。
【0021】
次に、更新処理のみから構成されるトランザクションの終了処理について説明する。
図6は、本発明の一実施例の更新処理のみから構成されるトランザクションの終了処理のフローチャートである。
ステップ501) 更新カウンタ105から1を減算し、通常の終了処理を行う。
【0022】
上記の処理フローにより、更新処理を含むトランザクションは、排他制御を実行しない参照処理のみから構成されるトランザクション実行中は動作を開始しない。
また、更新処理を含むトランザクションが動作中に走行を開始した参照処理のみから構成されるトランザクションは、参照処理時に排他制御を行う。そのため、更新処理が動作中には、参照処理に伴う排他制御を行うため、データの一貫性は保証される。
【0023】
また、排他制御を実行しない参照処理が動作中は、更新処理は動作しないため、排他制御を行わずにデータの一貫性は保証される。
また、上記の図2から図6の処理をプログラムとして構築し、データベース管理システムのコンピュータに接続されるディスク装置に格納しておき、データベースの排他制御時にインストールする、または、フロッピーディスクやCD−ROM等の可搬記憶媒体に格納しておき、排他制御が必要となるコンピュータにインストールして汎用的に利用することも可能である。
【0024】
つまり、全ての更新処理未動作中に開始した参照処理の終了後に更新処理を開始し、更新処理においてデータベースデータに対する排他制御を行い、更新処理動作中に参照処理が開始された場合には、前記データベースデータに対する排他制御を行い、更新処理未動作中に参照処理が開始された場合には、データベースデータに対する排他制御を行わないというロジックをプログラミングし、当該プログラムを記憶媒体に格納しておけばよい。
【0025】
なお、本発明は、上記の実施例に限定されることなく、特許請求の範囲内で種々変更・応用が可能である。
【0026】
【発明の効果】
上述のように、本発明のデータベース排他制御方法及びシステム及びデータベース排他制御プログラムを格納した記憶媒体によれば、更新処理を含むトランザクションは、排他制御を実行しない参照処理のみから構成されるトランザクション実行中には動作しない。また、更新処理を含むトランザクションが動作中に走行を開始した参照処理のみから構成されるトランザクションは、参照処理時に排他制御を行い、それ以外の時に開始した場合は、参照処理に伴う排他制御は行わない。これにより、従来は、トランザクションにおける全ての参照処理で必要になった排他制御を、参照処理のみ走行中の時は実行せず、更新処理の動作中のみに削減できる。
【図面の簡単な説明】
【図1】本発明の排他制御システムの構成図である。
【図2】本発明の一実施例の更新処理のみから構成されるトランザクション(更新トランザクション)の開始処理のフローチャートである。
【図3】本発明の一実施例の参照処理のみから構成されるトランザクションの参照処理のフローチャートである。
【図4】本発明の一実施例の参照処理のみから構成されるトランザクションの終了処理のフローチャートである。
【図5】本発明の一実施例の更新処理のみから構成されるトランザクションの開始処理のフローチャートである。
【図6】本発明の一実施例の更新処理のみから構成されるトランザクションの終了処理のフローチャートである。
【符号の説明】
100 排他制御システム
101 データベース管理システム
102 参照トランザクション
103 更新トランザクション
104 開始状態フラグ
105 更新カウンタ
106 参照カウンタ
107 排他制御部
108 データ
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a database exclusion control method and system, and a storage medium storing a database exclusion control program, and in particular, when a plurality of database access processes in a database management system access the same database, data stored in the database. The present invention relates to a database exclusion control method and system for guaranteeing consistency of a database and a storage medium storing a database exclusion control program.
[0002]
[Prior art]
A unit of processing for accessing a database is called a transaction. Generally, when a plurality of transactions run at the same time, the data being updated in the transaction is controlled so as not to be referenced by other transactions, and the data being referenced and updated in the transaction is controlled by other transactions. Control so that it cannot be updated. If this is not done, for example, if a transaction issued by one user is updating data and another transaction issued by another user updates the same data, the original user's intention is The result is not reflected in the database. Control that guarantees database consistency from the viewpoint of individual transactions is called exclusive control.
[0003]
In the conventional exclusive control method, generally, when referring to operation target data in a transaction, shared locking is performed, and when updating, exclusive locking is performed. For data that has been shared locked, shared locking from other transactions is enabled, and multiple locking is performed. Each user can change from shared lock to exclusive lock only when shared lock is not performed by another user. In addition, data that has been exclusively locked can be referenced and updated by itself, but cannot be shared locked by others. With these controls, data used by a certain transaction is not changed by another transaction during locking, and updating of data used by another transaction can be suppressed. This ensures consistency.
[0004]
[Problems to be solved by the invention]
However, when exclusive control processing is performed by the above-described conventional technique, it is necessary to lock the number of data to be processed in a transaction. However, in practice, X. There are systems such as the 500 Directory Service [see CCITT Blue Book No. VIII-6-8], which have a large number of read-only processes. When only such a reference process is in operation, data referred to by a certain transaction is not updated by another transaction, so the exclusive control process is a surplus process.
[0005]
The present invention has been made in view of the above points, and provides a database exclusion control method and system capable of reducing redundant exclusion control during reference processing, and a storage medium storing a database exclusion control program. With the goal.
[0006]
[Means for Solving the Problems]
The present invention relates to a database exclusion control method for performing control for guaranteeing consistency of data stored in a database when a plurality of database access processes access the same database,
Start the update process after the end of the reference process started while all update processes are not running,
Performs exclusive control on database data in the update process,
When the reference process is started during the update process operation, exclusive control is performed on the database data,
If the reference process is started while the update process is not operating, exclusive control on the database data is not performed.
[0007]
The present invention is a database exclusive control system in a database management system having exclusive control means for database data,
Exclusive control means,
Update processing start means for starting the update processing after the end of the reference processing started while all update processing is not operating, and performing exclusive control on database data in the started update processing;
When the reference processing is started during the update processing operation, an update operation reference means for performing exclusive control on the database data;
When the reference process is started while the update process is not operating, there is provided an update-inactive reference unit that does not perform exclusive control on the database data.
[0008]
The present invention is a storage medium storing a database exclusive control program in a database management system having an exclusive control process for database data,
The exclusive control process
An update process start control process that starts the update process after the end of the reference process started while all update processes are not operating, and performs exclusive control on database data in the started update process,
When the reference process is started during the update process operation, an update operation reference control process that performs exclusive control on the database data;
When the reference process is started while the update process is not operating, there is an update-inactive reference control process that does not perform exclusive control on the database data.
[0009]
As described above, according to the present invention, the update processing is performed during the update processing and when the update processing is not running by controlling the update processing to be started after the end of the reference processing started while all the update processing is not operating. Control is performed so that the started reference processes do not operate at the same time.
Further, the update process and the reference process started during the update process operation perform exclusive control on the database data, and the reference process started while the update process is not operating does not perform the exclusive control process on the database data. Exclusive control processing associated with reference processing that operates while the update processing is not operating can be suppressed, and redundant exclusive control processing can be reduced.
[0010]
BEST MODE FOR CARRYING OUT THE INVENTION
FIG. 1 shows the configuration of the exclusive control system of the present invention.
The exclusive control system 100 includes a database management system 101. The database management system 101 is set for each individual transaction, and is used to determine whether the transaction is currently operating or not operating. The start state flag 104, the update counter 105 for counting the number of update transactions currently being updated, the reference counter 106 for counting the number of reference transactions currently being referenced, the exclusive control unit 107 for implementing exclusive control, and the database management system 101 It consists of stored data 108. Further, there are a reference transaction 102 that performs only a reference process on the data 108 stored in the database management system 101, and an update transaction 103 that includes an update process on the data 108.
[0011]
The exclusive control unit 107 does not perform the exclusive control when the reference transaction 102 is started while all the updates are not operating, starts the processing of the update transaction 103 after the reference transaction 102 ends, and performs the exclusive control on the database data 108. Perform processing. In other words, when some update transactions are in operation, the start status flag 104 of the update transaction becomes “operating”, and when these transactions are inactive, the start status flag 104 becomes 104 becomes "inactive". The same applies to a case where the reference transaction is in operation and in a non-operation state. Further, if the update counter 105 is 0, it indicates that there is no transaction being updated, and if the reference counter 106 is 0, it indicates that there is no transaction being referenced. Therefore, the exclusion control unit 107 performs exclusion processing with reference to the start state flag 104, the update counter 105, and the reference counter 106.
[0012]
【Example】
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
First, a description will be given of a transaction start process consisting of only an update process.
FIG. 2 is a flowchart of a transaction (update transaction) start process composed of only the update process according to one embodiment of the present invention.
[0013]
Step 101) It is checked whether or not the update counter 105 indicating the number of active transactions including the update process is 0. If the update counter 105 is 0, the process proceeds to step 102; otherwise, the process proceeds to step 104.
Step 102) The start state flag 104 of the own transaction is set to “not operating” indicating that the updating process is not operating.
[0014]
Step 103) 1 is added to the update counter indicating the number of transactions composed only of the reference process started while the transaction including the update process is not operating.
Step 104: The start state flag 104 of the own transaction is set to “operating” indicating that the update process is operating.
[0015]
Step 105) A normal start process is performed.
Next, a transaction reference process consisting of only the reference process will be described.
FIG. 3 is a flowchart of a transaction reference process including only the reference process according to the embodiment of the present invention.
[0016]
Step 201) The start state flag 104 is confirmed. If the start state flag is “operating”, the process proceeds to step 202. If the start state flag is “not operating”, the process proceeds to step 203.
Step 202) Request the exclusive control unit 107 for the target data of the reference processing, and perform the shared locking.
[0017]
Step 203) A reference process is performed on the target data.
Next, a description will be given of a transaction start process including only the update process.
FIG. 4 is a flowchart of a transaction end process composed of only the reference process according to the embodiment of the present invention.
[0018]
Step 301) The start state flag 104 is checked. If the start state flag 104 is “operating”, the process proceeds to step 302. If the start state flag 104 is “not operating”, the process proceeds to step 303.
Step 302) Request the exclusive control unit 107 to request unlocking of all shared locks performed in the self-processing.
[0019]
Step 303) Subtract 1 from the reference counter.
Step 304) Initialize the start state flag and perform normal end processing.
Next, a description will be given of a transaction start process including only the update process.
FIG. 5 is a flowchart of a transaction start process including only the update process according to the embodiment of the present invention.
[0020]
Step 401) Check whether the reference counter 106 is 0, and if it is 0, proceed to Step 403; otherwise, proceed to Step 402.
Step 402) Sleep the process, and then proceed to Step 401.
Step 403) One is added to the update counter 105, and a normal start process is performed.
[0021]
Next, a description will be given of a transaction end process including only an update process.
FIG. 6 is a flowchart of a transaction end process including only the update process according to the embodiment of the present invention.
Step 501) 1 is subtracted from the update counter 105, and normal end processing is performed.
[0022]
According to the above process flow, the transaction including the update process does not start its operation during the execution of the transaction including only the reference process that does not execute the exclusive control.
Also, a transaction including only a reference process that starts running while a transaction including an update process is running performs exclusive control at the time of the reference process. Therefore, while the update process is in operation, exclusive control accompanying the reference process is performed, so that data consistency is guaranteed.
[0023]
In addition, since the update process does not operate while the reference process that does not execute the exclusive control is in operation, the data consistency is guaranteed without performing the exclusive control.
Also, the processing of FIGS. 2 to 6 is constructed as a program, stored in a disk device connected to the computer of the database management system, and installed during exclusive control of the database, or a floppy disk or CD-ROM. It is also possible to store it in a portable storage medium such as the above, install it on a computer that requires exclusive control, and use it for general purposes.
[0024]
That is, the update process is started after the end of the reference process started while all update processes are inactive, exclusive control is performed on the database data in the update process, and when the reference process is started during the update process, If exclusive control is performed on the database data and the reference process is started while the update process is not operating, logic for not performing the exclusive control on the database data may be programmed, and the program may be stored in the storage medium. .
[0025]
It should be noted that the present invention is not limited to the above-described embodiment, but can be variously modified and applied within the scope of the claims.
[0026]
【The invention's effect】
As described above, according to the database exclusion control method and system of the present invention and the storage medium storing the database exclusion control program, a transaction including an update process is executed during a transaction including only a reference process that does not execute the exclusion control. Does not work. In addition, a transaction including only a reference process that starts running while a transaction including an update process is running performs exclusive control at the time of the reference process, and if started at any other time, exclusive control accompanying the reference process is performed. Absent. As a result, in the related art, the exclusive control required for all the reference processes in the transaction can be reduced only during the operation of the update process without being executed when only the reference process is running.
[Brief description of the drawings]
FIG. 1 is a configuration diagram of an exclusive control system of the present invention.
FIG. 2 is a flowchart of a process of starting a transaction (update transaction) including only an update process according to an embodiment of the present invention.
FIG. 3 is a flowchart of a transaction reference process including only a reference process according to an embodiment of the present invention;
FIG. 4 is a flowchart of a transaction end process including only a reference process according to an embodiment of the present invention.
FIG. 5 is a flowchart of a transaction start process including only an update process according to an embodiment of the present invention.
FIG. 6 is a flowchart of a transaction end process including only an update process according to an embodiment of the present invention.
[Explanation of symbols]
100 Exclusive control system 101 Database management system 102 Reference transaction 103 Update transaction 104 Start status flag 105 Update counter 106 Reference counter 107 Exclusive control unit 108 Data

Claims (3)

複数のデータベースアクセス処理が同一のデータベースをアクセスするとき、データベースに格納されているデータの一貫性を保証するための制御を行うデータベース排他制御方法において、
全ての更新処理未動作中に開始した参照処理の終了後に更新処理を開始し、
前記更新処理においてデータベースデータに対する排他制御を行い、
更新処理動作中に参照処理が開始された場合には、前記データベースデータに対する排他制御を行い、
更新処理未動作中に参照処理が開始された場合には、前記データベースデータに対する排他制御を行わないことを特徴とするデータベース排他制御方法。
When a plurality of database access processes access the same database, in a database exclusion control method for performing control for guaranteeing consistency of data stored in the database,
Start the update process after the end of the reference process started while all update processes are not running,
Performing exclusive control on the database data in the update processing,
If the reference process is started during the update process operation, perform exclusive control on the database data,
A database exclusion control method, wherein when the reference process is started while the update process is not operating, the exclusion control is not performed on the database data.
データベースデータに対する排他制御手段を有するデータベース管理システムにおけるデータベース排他制御システムであって、
前記排他制御手段は、
全ての更新処理未動作中に開始した参照処理の終了後に更新処理を開始し、開始された該更新処理においてデータベースデータに対する排他制御を行う更新処理開始手段と、
更新処理動作中に参照処理が開始された場合には、前記データベースデータに対する排他制御を行う更新動作中参照手段と、
更新処理未動作中に参照処理が開始された場合には、前記データベースデータに対する排他制御を行わない更新未動作中参照手段とを有することを特徴とするデータベース排他制御システム。
A database exclusive control system in a database management system having exclusive control means for database data,
The exclusive control means,
Update processing start means for starting the update processing after the end of the reference processing started while all update processing is not operating, and performing exclusive control on database data in the started update processing;
When the reference processing is started during the update processing operation, an update operation reference means for performing exclusive control on the database data,
A database exclusion control system comprising: a non-updated reference unit that does not perform exclusive control on the database data when the reference process is started while the update process is not operating.
データベースデータに対する排他制御手プロセスを有するデータベース管理システムにおけるデータベース排他制御プログラムを格納した記憶媒体であって、
前記排他制御プロセスは、
全ての更新処理未動作中に開始した参照処理の終了後に更新処理を開始し、開始された該更新処理においてデータベースデータに対する排他制御を行う更新処理開始制御プロセスと、
更新処理動作中に参照処理が開始された場合には、前記データベースデータに対する排他制御を行う更新動作中参照制御プロセスと、
更新処理未動作中に参照処理が開始された場合には、前記データベースデータに対する排他制御を行わない更新未動作中参照制御プロセスとを有することを特徴とするデータベース排他制御プログラムを格納した記憶媒体。
A storage medium storing a database exclusive control program in a database management system having an exclusive control process for database data,
The exclusive control process includes:
An update process start control process that starts the update process after the completion of the reference process started while all update processes are not operating, and performs exclusive control on database data in the started update process;
When a reference process is started during the update process operation, an update operation reference control process for performing exclusive control on the database data,
A storage medium storing a database exclusion control program, comprising: a non-updated reference control process that does not perform exclusive control on the database data when the reference process is started while the update process is not operating.
JP20506297A 1997-07-30 1997-07-30 Database exclusive control method and system and storage medium storing database exclusive control program Expired - Lifetime JP3575236B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20506297A JP3575236B2 (en) 1997-07-30 1997-07-30 Database exclusive control method and system and storage medium storing database exclusive control program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20506297A JP3575236B2 (en) 1997-07-30 1997-07-30 Database exclusive control method and system and storage medium storing database exclusive control program

Publications (2)

Publication Number Publication Date
JPH1153241A JPH1153241A (en) 1999-02-26
JP3575236B2 true JP3575236B2 (en) 2004-10-13

Family

ID=16500810

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20506297A Expired - Lifetime JP3575236B2 (en) 1997-07-30 1997-07-30 Database exclusive control method and system and storage medium storing database exclusive control program

Country Status (1)

Country Link
JP (1) JP3575236B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6318065B2 (en) * 2014-09-26 2018-04-25 株式会社野村総合研究所 Database lock control system and method

Also Published As

Publication number Publication date
JPH1153241A (en) 1999-02-26

Similar Documents

Publication Publication Date Title
JP3140906B2 (en) How to update and restore system files
US6044461A (en) Computer system and method of selectively rebooting the same in response to a system program code update
US5924102A (en) System and method for managing critical files
US5717950A (en) Input/output device information management system for multi-computer system
JPS63138433A (en) Apparatus for providing communication between processors
JPH0713813B2 (en) Data access method and data processing system
JP3113841B2 (en) Parallel transaction processing system
JPH0728679A (en) Locking system of checkin/checkout model
JPH08504528A (en) Optimization method of memory space in database
JPH08328933A (en) File access control system for parallel processing system
US6009414A (en) Computer system with checkpoint facility and accounting facility indicating charges payable for processes
US6336215B1 (en) Apparatus and method for on-line code only replacement of a running program using checkpoints
US7203670B2 (en) Method and system for maintaining enhanced file availability
JP3575236B2 (en) Database exclusive control method and system and storage medium storing database exclusive control program
JP3970524B2 (en) Exclusive control method between multiple operations
JPH09269912A (en) Information processing method and information processor
JP2001134338A (en) User management method for hibernation function and information processor
JP3992767B2 (en) Computer processing system
JPH0962493A (en) Software installation system
JP3475783B2 (en) Method for controlling sharing of database definition information between processes
JPH04190434A (en) Device and method for data base control
JPH06231026A (en) Updating method for system file
JP2000010692A (en) Application device and method provided with redo/undo function and automatic preservation function of work
JP3483662B2 (en) Computer backup method
JPH0546452A (en) Commitment control system

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040602

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20040615

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040628

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080716

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080716

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090716

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090716

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100716

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100716

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110716

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120716

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130716

Year of fee payment: 9

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

EXPY Cancellation because of completion of term