JPH05108452A - Data base management system - Google Patents

Data base management system

Info

Publication number
JPH05108452A
JPH05108452A JP3295191A JP29519191A JPH05108452A JP H05108452 A JPH05108452 A JP H05108452A JP 3295191 A JP3295191 A JP 3295191A JP 29519191 A JP29519191 A JP 29519191A JP H05108452 A JPH05108452 A JP H05108452A
Authority
JP
Japan
Prior art keywords
lock
request
database
server
client
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
JP3295191A
Other languages
Japanese (ja)
Inventor
Suguru Kawakami
英 川上
Takashi Nakayama
敬 中山
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP3295191A priority Critical patent/JPH05108452A/en
Publication of JPH05108452A publication Critical patent/JPH05108452A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To provide a data base management system that transmits a lock request from a client computer to a server computer for the number of communication times, which is less than the number of lock request times, and that can shorten the response time of transaction. CONSTITUTION:In the client computer 2, a lock request accumulation part 22 is provided at a DBMS interface part 21 used in a business program 5 and it accumulates the lock requests and collectively transmits them to the server computer 3. It is composed of a request reception part 31, a retrieval/update control part 32, a lock control part 33 and a transaction control part 34. The client computer 2 and the server computer 3 are connected by a communication network 4, and the received lock requests are collectively processed.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、デ−タベ−スアクセス
を制御するためのデ−タベ−ス管理方式に関するもので
ある。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a database management system for controlling database access.

【0002】[0002]

【従来技術】図2にクライアント・サ−バモデルのデ−
タベ−スシステムの概念図を示す。複数のデ−タファイ
ルを組織的に統合して、デ−タ項目の重複をなくするデ
−タの管理システムとして、デ−タベースシステムを挙
げることができる。このデ−タベ−スシステムには、デ
−タを集中して管理するデ−タベ−スサ−バと、応用プ
ログラムにデ−タベ−スをアクセスするインタフェ−ス
を提供するデ−タベ−スクライアントからなる機能分散
型のシステムがある。
2. Description of the Related Art FIG. 2 shows a client / server model data.
The conceptual diagram of a tabular system is shown. A data base system can be mentioned as a data management system that systematically integrates a plurality of data files and eliminates duplication of data items. This database system is a database server that centrally manages data and a database that provides an interface for accessing the database to application programs. There is a function-distributed system consisting of clients.

【0003】クライアント・サ−バモデルのデ−タベ−
スシステム1は、図2のように複数のクライアント計算
機2−1、2−2、2−3等とサ−バ計算機3が通信網
4によって接続されている。クライアント計算機2−
1、2−2、2−3等には、それぞれデ−タベ−スクラ
イアント(DBクライアント)6−1、6−2、6−3
が設けてあり、各々の業務プログラム5−1、5−2、
5−3等からのデ−タベ−ス要求を受け付ける。
Client server model database
In the server system 1, a plurality of client computers 2-1, 2-2, 2-3 and the server computer 3 are connected by a communication network 4 as shown in FIG. Client computer 2-
Data base clients (DB clients) 6-1, 6-2, 6-3 are provided for 1, 2-2, 2-3, etc., respectively.
Is provided for each of the business programs 5-1, 5-2,
A data base request from 5-3 etc. is accepted.

【0004】サ−バ計算機3には、デ−タベ−ス8に対
する検索及び更新要求を処理するデ−タベ−スサ−バ
(DBサ−バ)7が設けられている。デ−タベ−スは、
表9−1、9−2等から構成されている。さらに、表
は、行10等から構成される。
The server computer 3 is provided with a database server (DB server) 7 for processing retrieval and update requests to the database 8. The database is
It is composed of Tables 9-1 and 9-2. Further, the table is composed of rows 10 and the like.

【0005】ここでデ−タベ−スサ−バ7が業務プログ
ラム5−1、5−2、5−3等からのアクセス要求に基
づいて、デ−タベ−ス8のアクセスを施し、さらに業務
プログラムからの解放要求に基づいてデ−タベ−ス8の
アクセスを完了するまでの一連のデ−タベ−ス8に対す
る処理操作をトランザクションと呼ぶことにする。
Here, the database server 7 accesses the database 8 based on the access request from the business programs 5-1, 5-2, 5-3, etc., and further the business program. A series of processing operations for the database 8 until the access of the database 8 is completed based on the release request from the database will be referred to as a transaction.

【0006】又、業務プログラム5−1、5−2、5−
3等がデ−タベ−ス8を構成する表9−1の行10をア
クセスするとき、これらをアクセスできる状態にしてか
らアクセスする。この状態を表及び行のロック状態と呼
ぶことにする。
The business programs 5-1, 5-2, 5-
When the third or the like accesses the row 10 of the table 9-1 which constitutes the database 8, these are made accessible and then accessed. This state will be called a table and row lock state.

【0007】デ−タベ−スサ−バ7は、同じ表や行に対
して複数のユ−ザからのロック要求を認識した場合、ロ
ックモ−ドが競合しないかぎりアクセスを許す。このよ
うにして各トランザクションの相互の干渉なしに、各業
務プログラムの要求を正しく処理することができる。
When the database server 7 recognizes a lock request from a plurality of users for the same table or row, the database server 7 allows access unless the lock mode conflicts. In this way, the requests of the business programs can be correctly processed without mutual interference of the transactions.

【0008】図3に、従来のDBクライアント6とDB
サ−バ7のブロック図を示す。図に示すようにDBクラ
イアント6は、DBMSインタフェ−ス部21が設けら
れている。DBサ−バ7は、要求受付部31、検索/更
新制御部32、ロック制御部33、トランザクション制
御部34が設けられている。
FIG. 3 shows a conventional DB client 6 and DB.
The block diagram of the server 7 is shown. As shown in the figure, the DB client 6 is provided with a DBMS interface unit 21. The DB server 7 is provided with a request receiving unit 31, a search / update control unit 32, a lock control unit 33, and a transaction control unit 34.

【0009】DBMSインタフェ−ス部21は、業務プ
ログラム5からのデ−タベ−スの要求を受付けDBサ−
バ7に送る。さらにDBMSインタフェ−ス部21は、
DBサ−バ7からの処理結果を受け、業務プログラム5
に処理結果を応答する。
The DBMS interface unit 21 accepts a database request from the business program 5 and receives a database service.
Send to BA 7. Further, the DBMS interface unit 21
The business program 5 receives the processing result from the DB server 7.
Respond with the processing result.

【0010】要求受付部31は、クライアントからの要
求を受付け、要求の内容に応じて検索/更新制御32、
ロック制御部33トランザクション、制御部34に要求
を渡す。要求を受け付けた各制御部は、要求に応じた処
理をした後、結果を応答する。
The request receiving unit 31 receives a request from a client, and according to the content of the request, a search / update control 32,
The transaction is passed to the lock control unit 33 transaction and the control unit 34. Each control unit that receives the request responds with the result after performing the process according to the request.

【0011】[0011]

【発明が解決しようとする課題】しかしながら、従来の
DBクライアント6では、DBMSインタフェ−ス部2
1が業務プログラム5からの表9や行10へのロック要
求を受け付けると、すぐにその要求をDBサ−バ7に通
信網4を介して送っていた。従って通常1つのトランザ
クションで検索や更新する表は、複数存在するため、1
つのトランザクションの中でロック要求の為にDBクラ
イアント6とDBサ−バ7の間で複数の通信が必要にな
っていた。このため、通信に時間が取られ、1つのトラ
ンザクションの応答時間が遅れると云った問題が生じて
いた。
However, in the conventional DB client 6, the DBMS interface unit 2 is used.
When 1 receives a lock request to the table 9 or the row 10 from the business program 5, the request is immediately sent to the DB server 7 via the communication network 4. Therefore, there are usually multiple tables that can be searched or updated in one transaction, so 1
In one transaction, a plurality of communications are required between the DB client 6 and the DB server 7 for a lock request. Therefore, there is a problem that communication takes time and the response time of one transaction is delayed.

【0012】本発明は上述の点に鑑みてなされたもの
で、上記問題点を除去し、ロック要求回数以下の通信回
数でロック要求をクライアントからサ−バに送り、トラ
ンザクションの応答時間を短縮することが可能なデータ
ベース管理方式を提供することを目的としている。
The present invention has been made in view of the above points, and eliminates the above problems and shortens the transaction response time by sending a lock request from a client to a server with a communication count less than or equal to the lock request count. The purpose is to provide a database management method capable of doing so.

【0013】[0013]

【課題を解決するための手段】上記課題を解決するため
本発明は、図1に示すようにDBクライアント6のDB
MSインタフェ−ス部21にロック要求蓄積部22を設
け、業務プログラムからのロック要求を蓄積し一括して
DBサ−バ7へ送信する手段を講じた。
In order to solve the above problems, the present invention provides a DB of a DB client 6 as shown in FIG.
A lock request accumulating unit 22 is provided in the MS interface unit 21, and means for accumulating the lock requests from the business programs and transmitting them to the DB server 7 in a lump.

【0014】[0014]

【作用】本発明では、複数のロック要求を蓄積してお
き、一括してサ−バに要求を送るため、ロック要求が1
回の通信で送ることができ、トランザクションの応答時
間を短縮することができる。
According to the present invention, since a plurality of lock requests are accumulated and the requests are sent to the server in a lump, the number of lock requests is one.
It can be sent in a single communication, and the response time of the transaction can be shortened.

【0015】[0015]

【実施例】以下本発明の一実施例を図面に基づいて詳細
に説明する。図1に本発明によるクライアント計算機2
とサ−バ計算機3の機能ブロック図を示す。本発明のデ
−タベ−ス管理方式では、業務プログラム5から連続し
てなされるロック要求を、ロック要求蓄積部22に蓄積
しておく。ロック要求でない要求がなされたとき、先ず
蓄積しておいたロック要求を一括してDBサ−バ7に送
り、これが成功した後、業務プログラムからの要求をD
Bサ−バ7に送る。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described in detail below with reference to the drawings. FIG. 1 shows a client computer 2 according to the present invention.
A functional block diagram of the server computer 3 is shown. In the database management system of the present invention, lock requests successively issued by the business program 5 are stored in the lock request storage unit 22. When a request that is not a lock request is made, the accumulated lock requests are first sent to the DB server 7 in succession, and after this succeeds, the request from the business program is sent to D
Send to B server 7.

【0016】本発明は、先に図2で示したデ−タベ−ス
システム1のDBクライアント6−1、6−2、6−3
等において実現する。従って、先に説明した図2及び図
3において説明した箇所と同一符号を付し、重複する説
明は省略する。
The present invention is based on the DB clients 6-1, 6-2, 6-3 of the database system 1 shown in FIG.
Etc. will be realized. Therefore, the same parts as those described above with reference to FIGS. 2 and 3 are designated by the same reference numerals, and the duplicate description will be omitted.

【0017】図1に、本発明によるクライアント計算機
とサ−バ計算機の機能ブロック図を示す。図に示すよう
に、DBクライアント部6にはDBMSインタフェ−ス
21、ロック要求蓄積部22が設けられている。
FIG. 1 shows a functional block diagram of a client computer and a server computer according to the present invention. As shown in the figure, the DB client unit 6 is provided with a DBMS interface 21 and a lock request accumulating unit 22.

【0018】図4は、本発明によるDBMSインタフェ
−ス部のフロ−チャ−トである。まず、業務プログラム
5からの要求を受け付ける(ステップST1)。この要
求が、表9−1、表9−2等へのロック要求かを判断す
る(テップST2)。
FIG. 4 is a flowchart of the DBMS interface section according to the present invention. First, a request from the business program 5 is accepted (step ST1). It is determined whether this request is a lock request for Table 9-1, Table 9-2, etc. (step ST2).

【0019】ロック要求である場合、要求をロック要求
蓄積部22に蓄積し(ステップST9)要求を受け付け
たことを業務プログラム5に応答(ステップST10)
し、終了する。
If the request is a lock request, the request is stored in the lock request storage unit 22 (step ST9), and the acceptance of the request is returned to the business program 5 (step ST10).
And then finish.

【0020】ステップST2で要求がロック要求以外の
要求であれば、ロック要求蓄積部にロック要求が蓄積さ
れているか判断する(ステップST3)。蓄積されてい
れば蓄積されているロック要求をDBサ−バ7へ送り
(ステップST4)、ロック要求蓄積部22のロック要
求をクリアする(ステップST5)。DBサ−バ7から
の応答を判断し(ステップST6)、ロックが不許可で
あれば、ロック不可を業務プログラム5に応答する(ス
テップST11)。ステップST6でロックが許可され
ればステップST7に制御が移る。
If the request is a request other than the lock request in step ST2, it is determined whether the lock request is stored in the lock request storage unit (step ST3). If stored, the stored lock request is sent to the DB server 7 (step ST4), and the lock request stored in the lock request storage unit 22 is cleared (step ST5). The response from the DB server 7 is judged (step ST6), and if the lock is not permitted, the lock is returned to the business program 5 (step ST11). If the lock is permitted in step ST6, the control proceeds to step ST7.

【0021】ステップST3でロック要求蓄積部22に
ロック要求が蓄積されていないと判断した場合は、ステ
ップST7に制御が移る。業務プログラム5からの要求
をDBサ−バ7に送り(ステップST7)、その結果を
業務プログラム5に応答する(ステップST8)。
When it is determined in step ST3 that the lock request is not stored in the lock request storage unit 22, the control proceeds to step ST7. The request from the business program 5 is sent to the DB server 7 (step ST7), and the result is returned to the business program 5 (step ST8).

【0022】[0022]

【発明の効果】以上、詳細に説明したように本発明によ
れば、下記のような効果が期待される。複数のロック要
求を蓄積しておき、一括してサ−バに要求を送るため、
ロック要求が1回の通信で送ることができ、トランザク
ションの応答時間を短縮することができる。デビットク
レジットベンチマ−クによる性能試験の結果、3レコ−
ド更新1レコ−ド追加の要求を出した場合、従来の方法
では4回のロックが必要であったが、本発明の方法では
1回のロックで処理できた。
As described in detail above, according to the present invention, the following effects are expected. Since multiple lock requests are stored and sent to the server all at once,
The lock request can be sent in a single communication, and the transaction response time can be shortened. Result of performance test by debit credit bench mark, 3 records
When a request to add one record update 1 record is issued, the conventional method requires four locks, but the method of the present invention can be processed by one lock.

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

【図1】本発明によるクライアント計算機とサ−バ計算
機の機能ブロック図である。
FIG. 1 is a functional block diagram of a client computer and a server computer according to the present invention.

【図2】クライアントサ−バモデルのデ−タベ−スシス
テムの概念図である。
FIG. 2 is a conceptual diagram of a client server model database system.

【図3】従来のクライアント計算機とサ−バ計算機の機
能ブロック図である。
FIG. 3 is a functional block diagram of a conventional client computer and server computer.

【図4】DBMSインタフェ−ス部の制御フロ−チャ−
トである。
FIG. 4 is a control flow chart of a DBMS interface unit.
It is

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

1 デ−タベ−スシステム 2−1 クライアント計算機 2−2 クライアント計算機 2−3 クライアント計算機 4 通信網 5−1 業務プログラム 5−2 業務プログラム 5−3 業務プログラム 6−1 デ−タベ−ス・クライアント 6−2 デ−タベ−ス・クライアント 6−3 デ−タベ−ス・クライアント 7 デ−タベ−ス・サ−バ 8 デ−タベ−ス 9−1 表 9−2 表 1 Data Base System 2-1 Client Computer 2-2 Client Computer 2-3 Client Computer 4 Communication Network 5-1 Business Program 5-2 Business Program 5-3 Business Program 6-1 Data Base Client 6-2 Data Base Client 6-3 Data Base Client 7 Data Base Server 8 Data Base 9-1 Table 9-2 Table

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 デ−タを集中して管理するデ−タベ−ス
サ−バと、応用プログラムにデ−タベ−スをアクセスす
るインタフェ−スを提供するデ−タベ−スクライアント
からなる機能分散型のデ−タベ−スシステムにおいて、 ロック制御によって複数のトランザクションの並行的な
実行を制御する場合に、連続してなされるロック要求を
蓄積し、ロック要求でない要求が出されたとき、この要
求を処理する前に、前述の蓄積されたロック要求を一括
してデ−タベ−スサ−バヘ送信し、ロック処理すること
によって送信回数を減少させることを特徴とするデ−タ
ベ−ス管理方式。
1. A function distribution consisting of a database server for centrally managing data and a database client for providing an interface for accessing the database to an application program. Type database system, when controlling parallel execution of multiple transactions by lock control, it accumulates consecutive lock requests, and when non-lock requests are issued, this request is issued. Prior to processing, the accumulated lock requests are collectively transmitted to the database server, and the number of transmissions is reduced by performing the lock processing, and the database management method is characterized. ..
JP3295191A 1991-10-15 1991-10-15 Data base management system Pending JPH05108452A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3295191A JPH05108452A (en) 1991-10-15 1991-10-15 Data base management system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3295191A JPH05108452A (en) 1991-10-15 1991-10-15 Data base management system

Publications (1)

Publication Number Publication Date
JPH05108452A true JPH05108452A (en) 1993-04-30

Family

ID=17817383

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3295191A Pending JPH05108452A (en) 1991-10-15 1991-10-15 Data base management system

Country Status (1)

Country Link
JP (1) JPH05108452A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08305621A (en) * 1995-05-02 1996-11-22 Nippon Telegr & Teleph Corp <Ntt> Data base access sharing system
US6185650B1 (en) 1998-08-28 2001-02-06 International Business Machines Corporation High performance locking facility
US6253274B1 (en) 1998-08-28 2001-06-26 International Business Machines Corporation Apparatus for a high performance locking facility
US8527501B2 (en) 2010-07-01 2013-09-03 International Business Machines Corporation Method, system, and program for combining and processing transactions

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08305621A (en) * 1995-05-02 1996-11-22 Nippon Telegr & Teleph Corp <Ntt> Data base access sharing system
US6185650B1 (en) 1998-08-28 2001-02-06 International Business Machines Corporation High performance locking facility
US6253274B1 (en) 1998-08-28 2001-06-26 International Business Machines Corporation Apparatus for a high performance locking facility
US8527501B2 (en) 2010-07-01 2013-09-03 International Business Machines Corporation Method, system, and program for combining and processing transactions

Similar Documents

Publication Publication Date Title
KR100625595B1 (en) Parallel Logging Method of Transaction Processing System
US8504523B2 (en) Database management system
US7162467B2 (en) Systems and methods for managing distributed database resources
US10838935B2 (en) Automating the logging of table changes in a database
US6816860B2 (en) Database load distribution processing method and recording medium storing a database load distribution processing program
US7328213B2 (en) Transaction processing method, transaction control apparatus and program thereof
US8041674B2 (en) Method and system for data processing with data replication for the same
US6526434B1 (en) System and method for efficient transfer of data blocks from client to server
JP3503957B2 (en) Method and apparatus for controlling remote database
US20070083488A1 (en) Undo hints to speed up segment extension and tuning of undo retention
JPH0833857B2 (en) System database sharing system system system
JPH11510660A (en) Response time measuring device and method
US7107291B2 (en) Information system and data access method
CN110196759B (en) Distributed transaction processing method and device, storage medium and electronic device
US20100153346A1 (en) Data integrity in a database environment through background synchronization
CN110019469A (en) Distributed data base data processing method, device, storage medium and electronic device
CN108573063A (en) A kind of data query method and system
JPH05108452A (en) Data base management system
US20060093124A1 (en) Techniques for performing multi-media call center functionality in a database management system
JP3330006B2 (en) Network system including information storage system, input system of the system, and
CN111488333B (en) Data processing method and device, storage medium and electronic equipment
US7660785B1 (en) Techniques for managing interactions between applications and a data store
US8972346B2 (en) Method and system for minimizing synchronization efforts of parallel database systems
JPH0431936A (en) File control system for decentralized file system
CN115373880A (en) Shared-nothing architecture-oriented distributed database high-conflict transaction processing method and system