JP2017167958A - Database client, database client program, database client control method, and database system - Google Patents

Database client, database client program, database client control method, and database system Download PDF

Info

Publication number
JP2017167958A
JP2017167958A JP2016054335A JP2016054335A JP2017167958A JP 2017167958 A JP2017167958 A JP 2017167958A JP 2016054335 A JP2016054335 A JP 2016054335A JP 2016054335 A JP2016054335 A JP 2016054335A JP 2017167958 A JP2017167958 A JP 2017167958A
Authority
JP
Japan
Prior art keywords
database
registration number
client
maximum
current
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.)
Granted
Application number
JP2016054335A
Other languages
Japanese (ja)
Other versions
JP6583076B2 (en
Inventor
阿部 哲也
Tetsuya Abe
哲也 阿部
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 JP2016054335A priority Critical patent/JP6583076B2/en
Publication of JP2017167958A publication Critical patent/JP2017167958A/en
Application granted granted Critical
Publication of JP6583076B2 publication Critical patent/JP6583076B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a database client capable of executing a process on a database at such as data registration time without being affected by other database clients.SOLUTION: A database client according to the present invention comprises: maximum registration count acquisition means for acquiring the maximum number of items that can be registered in a database server; current registration count acquisition means for acquiring the current number of items currently registered in the database server from a registration count table which is managed for each database client; current registration count update means for updating a current registration count corresponding to the database client in the registration count table held by the database server; comparison means for comparing the maximum number of registered items with the sum of the current registration count of each database client; and control means for issuing a database processing request according to the comparison result of the comparison means.SELECTED DRAWING: Figure 1

Description

本発明は、データベースクライアント、データベースクライアントプログラム、データベースクライアント制御方法及びデータベースシステムに関し、例えば、データベースに登録するデータ(レコード)数の上限を管理するデータベースシステムに適用し得る。   The present invention relates to a database client, a database client program, a database client control method, and a database system, and can be applied to, for example, a database system that manages the upper limit of the number of data (records) registered in a database.

一般に、データベースサーバ・クライアントシステム(以下、「DB−S/Cシステム」と呼ぶ)では、データベースクライアント(以下、「DBクライアント」と呼ぶ)からデータベースサーバ(以下、「DBサーバ」と呼ぶ)に対して接続セッションを生成し、データ登録要求や更新要求、すなわち、トランザクションを送信し、結果を受信する。   Generally, in a database server / client system (hereinafter referred to as “DB-S / C system”), a database client (hereinafter referred to as “DB client”) to a database server (hereinafter referred to as “DB server”). A connection session is generated, a data registration request or an update request, that is, a transaction is transmitted, and a result is received.

また、DB−S/Cシステムにおいて、DBクライアントのアプリケーション(以下、「APL」とも呼ぶ))は、DBサーバが保持するリソースの上限値を超えないように、トランザクションを制御する必要がある。   In the DB-S / C system, a DB client application (hereinafter also referred to as “APL”) needs to control transactions so as not to exceed the upper limit value of resources held by the DB server.

例えば、図4で示すように、2台のDBクライアントと、データベースを保持するDBサーバから構成される従来のDB−S/Cシステムにおいて、システムとしてデータベースに登録できるデータ(レコード)の最大数が1000件となっている場合、各DBクライアント(DBクライアントAPL)は、自身の登録要求が閾値(リソースの上限値)である1000件を超えないための制御が必要となる。   For example, as shown in FIG. 4, in a conventional DB-S / C system composed of two DB clients and a DB server that holds a database, the maximum number of data (records) that can be registered in the database as a system is When the number is 1000, each DB client (DB client APL) needs to be controlled so that its own registration request does not exceed 1000 that is a threshold value (resource upper limit value).

閾値となる最大登録数(1000件)は、例えば、システム構築時に、データベース(登録最大数表)に登録される。なお、この最大登録数は、通常、値の変更はないものであり、各DBクライアントAPLは、このデータを参照するだけである。また、システムにおける現在の登録数(登録数表)は、各DBクライアントAPLによって、データ登録処理が実施される度に更新(データ登録時は+1、データ削除時は、−1)されるものである。そして、登録数の更新と併せて、データ登録(データ表にレコードの追加)が実施される。   The maximum registration number (1000 cases) serving as a threshold is registered in a database (maximum registration number table) at the time of system construction, for example. Note that the maximum number of registrations usually does not change, and each DB client APL only refers to this data. Further, the current registration number (registration number table) in the system is updated by each DB client APL every time data registration processing is performed (+1 when data is registered, -1 when data is deleted). is there. Data registration (addition of records to the data table) is performed in conjunction with the update of the number of registrations.

ところで、DB−S/Cシステムにおいて、複数台(図4では2台)のDBクライアントAPLが、同時にデータ登録を実施する際、データの整合性を保つために排他制御が必要となる(例えば、特許文献1参照)。例えば、図4で示すように、あるDBクライアントAPLは、登録数表のデータをロックし、他のDBクライアントAPLのトランザクション処理を排除してから、データ登録を行う。   By the way, in the DB-S / C system, when a plurality (two in FIG. 4) of DB clients APL perform data registration at the same time, exclusive control is required to maintain data consistency (for example, Patent Document 1). For example, as shown in FIG. 4, a certain DB client APL performs data registration after locking the data in the registration number table and eliminating the transaction processing of other DB clients APL.

特開平11−272536号公報JP-A-11-272536

しかしながら、ロックを受ける側のDBクライアントは、このロックがボトルネックとなり、DBクライアントAPLの登録処理性能が抑制されることになる。   However, this lock becomes a bottleneck in the DB client on the lock receiving side, and the registration processing performance of the DB client APL is suppressed.

つまり、ロックを受ける側のDBクライアントは、登録数のロックが解除されるまで、自身の登録処理が待たされることになる。これは、全DBクライアントのデータ登録処理が、登録数というデータの更新に集中、競合することを意味し、DB−S/Cシステムとして十分な性能を発揮できているとは言い難いものであった。   That is, the DB client on the lock receiving side waits for its own registration process until the number of registrations is unlocked. This means that the data registration processing of all DB clients concentrates and competes for data update of the number of registrations, and it is difficult to say that the DB-S / C system can exhibit sufficient performance. It was.

そのため、他のデータベースクライアントに影響されること無く、データ登録等のデータベースに対する処理を実行できるデータベースクライアント、データベースクライアントプログラム、データベースクライアント制御方法及びデータベースシステムが望まれている。   Therefore, there is a demand for a database client, a database client program, a database client control method, and a database system that can execute processing on a database such as data registration without being affected by other database clients.

第1の本発明は、データベースサーバに接続して、データベース処理要求を行うデータベースクライアントにおいて、(1)前記データベースサーバに登録できるデータ数の最大値である最大登録数を取得する最大登録数取得手段と、(2)前記データベースサーバに現在登録しているデータ数である現在登録数を、複数のデータベースクライアント毎に管理している登録数表から取得する現在登録数取得手段と、(3)前記データベースサーバが保持する前記登録数表の当該データベースクライアントに対応する現在登録数を更新する現在登録数更新手段と、(4)前記最大登録数取得手段により取得した前記最大登録数と、前記現在登録数取得手段により取得した各データベースクライアントの現在登録数の合計値を比較する比較手段と、(5)前記比較手段の比較結果に応じて、前記データベース処理要求を行う制御手段とを有することを特徴とする。   In the first aspect of the present invention, in a database client that connects to a database server and makes a database processing request, (1) maximum registration number acquisition means for acquiring a maximum registration number that is the maximum number of data items that can be registered in the database server (2) current registration number acquisition means for acquiring a current registration number, which is the number of data currently registered in the database server, from a registration number table managed for each of a plurality of database clients; (3) Current registration number updating means for updating the current registration number corresponding to the database client in the registration number table held by the database server; (4) the maximum registration number acquired by the maximum registration number acquisition means; and the current registration Comparison means for comparing the total number of current registration numbers of each database client acquired by the number acquisition means; (5) according to the comparison result of the comparison means, and having a control unit for performing the database processing request.

第2の本発明のデータベースクライアントプログラムは、データベースサーバに接続して、データベース処理要求を行うデータベースクライアントに搭載されるコンピュータを、(1)前記データベースサーバに登録できるデータ数の最大値である最大登録数を取得する最大登録数取得手段と、(2)前記データベースサーバに現在登録しているデータ数である現在登録数を、複数のデータベースクライアント毎に管理している登録数表から取得する現在登録数取得手段と、(3)前記データベースサーバが保持する前記登録数表の当該データベースクライアントに対応する現在登録数を更新する現在登録数更新手段と、(4)前記最大登録数取得手段により取得した前記最大登録数と、前記現在登録数取得手段により取得した各データベースクライアントの現在登録数の合計値を比較する比較手段と、(5)前記比較手段の比較結果に応じて、前記データベース処理要求を行う制御手段として機能させることを特徴とする。   The database client program according to the second aspect of the present invention is a database client program for connecting to a database server and registering a computer mounted on the database client that makes a database processing request. Maximum registration number acquisition means for acquiring the number, and (2) current registration for acquiring the current registration number, which is the number of data currently registered in the database server, from a registration number table managed for each of the plurality of database clients Number acquisition means; (3) current registration number update means for updating the current registration number corresponding to the database client in the registration number table held by the database server; and (4) acquired by the maximum registration number acquisition means. The maximum registration count and each database acquired by the current registration count acquisition means. Comparing means for comparing the current number of registered sum of the client, characterized in that function as (5) in accordance with the comparison result of the comparing means, control means for performing the database processing request.

第3の本発明は、データベースサーバに接続して、データベース処理要求を行うデータベースクライアントに使用するデータベースクライアント制御方法おいて、最大登録数取得手段、現在登録数取得手段、現在登録数更新手段、比較手段、及び制御手段を有し、(1)前記最大登録数取得手段は、前記データベースサーバに登録できるデータ数の最大値である最大登録数を取得し、(2)前記現在登録数取得手段は、前記データベースサーバに現在登録しているデータ数である現在登録数を、複数のデータベースクライアント毎に管理している登録数表から取得し、(3)前記現在登録数更新手段は、前記データベースサーバが保持する前記登録数表の当該データベースクライアントに対応する現在登録数を更新し、(4)前記比較手段は、前記最大登録数取得手段により取得した前記最大登録数と、前記現在登録数取得手段により取得した各データベースクライアントの現在登録数の合計値を比較し、(5)前記制御手段は、前記比較手段の比較結果に応じて、前記データベース処理要求を行うことを特徴とする。   According to a third aspect of the present invention, there is provided a database client control method used for a database client that makes a database processing request by connecting to a database server, and includes a maximum registration number acquisition unit, a current registration number acquisition unit, a current registration number update unit, And (1) the maximum registration number acquisition unit acquires a maximum registration number that is a maximum value of the number of data that can be registered in the database server, and (2) the current registration number acquisition unit includes: A current registration number which is the number of data currently registered in the database server is obtained from a registration number table managed for each of a plurality of database clients, and (3) the current registration number update means includes the database server Updating the number of current registrations corresponding to the database client in the registration number table held by (4) The maximum registration number acquired by the maximum registration number acquisition unit is compared with the total value of the current registration number of each database client acquired by the current registration number acquisition unit. (5) The control unit includes: The database processing request is made according to the comparison result.

第4の本発明は、複数のデータベースクライアントと、前記データベースクライアントのそれぞれからのデータベース処理要求に応じたデータベース処理を実行するデータベースサーバとを備えるデータベースシステムにおいて、前記データベースシステムの構成要素となる前記データベースクライアントとして、第1の本発明のデータベースクライアントを適用したことを特徴とする。   The fourth aspect of the present invention is a database system comprising a plurality of database clients and a database server that executes database processing in response to a database processing request from each of the database clients, and the database serving as a component of the database system The database client according to the first aspect of the present invention is applied as a client.

本発明によれば、他のデータベースクライアントに影響されること無く、データ登録等のデータベースに対する処理を実行できる。   According to the present invention, it is possible to execute processing for a database such as data registration without being influenced by other database clients.

実施形態のDB−S/Cシステムの全体構成を示すブロック図である。It is a block diagram which shows the whole structure of the DB-S / C system of embodiment. 実施形態のデータベースに記憶されるデータベース表を示す説明図である。It is explanatory drawing which shows the database table memorize | stored in the database of embodiment. 実施形態のDBクライアントAPLの特徴動作を示すフローチャートである。It is a flowchart which shows the characteristic operation | movement of DB client APL of embodiment. 従来のDB−S/Cシステムの全体構成を示すブロック図である。It is a block diagram which shows the whole structure of the conventional DB-S / C system.

(A)主たる実施形態
以下、本発明によるデータベースクライアント、データベースクライアントプログラム、データベースクライアント制御方法及びデータベースシステムの一実施形態を、図面を参照しながら詳述する。
(A) Main Embodiment Hereinafter, an embodiment of a database client, a database client program, a database client control method, and a database system according to the present invention will be described in detail with reference to the drawings.

(A−1)実施形態の構成
図1は、この実施形態のDB−S/Cシステム1の全体構成を示すブロック図である。
(A-1) Configuration of Embodiment FIG. 1 is a block diagram showing the overall configuration of the DB-S / C system 1 of this embodiment.

DB−S/Cシステム1は、2台のDBクライアント10(10−1、10−2)、及びDBサーバ20を有している。また、DBクライアント10(10−1、10−2)、DBサーバ20は、それぞれネットワークNに接続しているものとする。なお、以下では、DBクライアントに共通する処理や構成を説明するときには、DBクライアント10と表現して説明する。   The DB-S / C system 1 includes two DB clients 10 (10-1, 10-2) and a DB server 20. The DB client 10 (10-1, 10-2) and the DB server 20 are connected to the network N, respectively. In the following description, the processing and configuration common to the DB clients will be described as the DB client 10.

DB−S/Cシステム1は、DBクライアント10から、DBサーバ20にデータベースのデータ更新や登録などのトランザクションが与えられ、処理が行われる環境である。   The DB-S / C system 1 is an environment in which a transaction such as database data update or registration is given from the DB client 10 to the DB server 20 and processing is performed.

DBクライアント10は、DBサーバ20にデータベースに係るトランザクションを与えるものである。なお、図1においては、DBクライアント10は2つとなっているが、その数は限定されないものである。DBクライアント10は、例えば、パソコン等の情報処理装置(1台に限定されず、複数台を分散処理し得るようにしたものであっても良い。)上に、クライアントプログラムをインストールすることにより、構築される。また、DBクライアント10は、DBクライアントAPL10Aを有する。   The DB client 10 gives a database transaction to the DB server 20. In FIG. 1, the number of DB clients 10 is two, but the number is not limited. The DB client 10 is installed by installing a client program on an information processing apparatus such as a personal computer (not limited to one, but may be configured to be able to perform a plurality of distributed processing), for example. Built. The DB client 10 includes a DB client APL 10A.

DBクライアントAPL10Aは、データベースに対する種々様々な処理(SQLの処理等)を実行するアプリケーションである。この実施形態のDBクライアントAPL10Aは、データベース22に対して、データの登録又は削除を行う場合、後述する登録数表T2の自クライアントに該当する登録数を更新した後に、データベース22に対する処理を行う。なお、このDBクライアントAPL10Aの詳しい動作については、後述する動作の項において明らかにする。   The DB client APL 10A is an application that executes various types of processing (SQL processing, etc.) on a database. When registering or deleting data in the database 22, the DB client APL 10 </ b> A according to this embodiment performs processing on the database 22 after updating the number of registrations corresponding to its own client in a registration number table T <b> 2 described later. The detailed operation of the DB client APL 10A will be clarified in the operation section described later.

DBサーバ20は、DBクライアント10(DBクライアントAPL10A)から与えられたトランザクションの処理を行うものであり、RDBMS21とデータベース22を有している。   The DB server 20 performs processing of a transaction given from the DB client 10 (DB client APL 10A), and has an RDBMS 21 and a database 22.

RDBMS21は、リレーショナルデータベース管理システムの機能を担っており、例えば、DBクライアント10から受けた取ったトランザクションの処理を行うものである。   The RDBMS 21 has a function of a relational database management system and, for example, processes a transaction received from the DB client 10.

データベース22は、データ(レコード)の記憶部である。図2は、データベース22に記憶されるデータベース表を示す説明図である。   The database 22 is a data (record) storage unit. FIG. 2 is an explanatory diagram showing a database table stored in the database 22.

図2(A)における登録最大数表T1は、データベース22(後述するデータ表T3)に登録できる最大データ数を定めるテーブルである。登録最大数表T1には、システム構築時に1件データが登録される。DBクライアントAPL10Aは、このデータを参照することにより、データベース22に登録できる上限を知ることができる。   The registration maximum number table T1 in FIG. 2A is a table that determines the maximum number of data that can be registered in the database 22 (a data table T3 described later). In the registration maximum number table T1, one piece of data is registered at the time of system construction. The DB client APL 10A can know the upper limit that can be registered in the database 22 by referring to this data.

図2(B)における登録数表T2は、DBクライアント10毎に、現在、データベース(データ表T3)に登録されているデータ数を示すテーブルである。登録数表T2は、各DBクライアント10を識別する「DBクライアント」の項目と、各DBクライアント10が現在登録しているデータ数を示す「登録数」の項目を有する。DBクライアントAPL10Aは、自身のDBクライアント10に該当するデータの「登録数」を参照することにより、データベース22に現在登録しているデータ数を知ることができる。   A registration number table T2 in FIG. 2B is a table showing the number of data currently registered in the database (data table T3) for each DB client 10. The registered number table T2 includes an item “DB client” for identifying each DB client 10 and an item “registered number” indicating the number of data currently registered by each DB client 10. The DB client APL 10A can know the number of data currently registered in the database 22 by referring to the “number of registrations” of the data corresponding to its own DB client 10.

図3(C)におけるデータ表T3は、各DBクライアントAPL10Aによって、所定のデータの登録や削除等が実施されるテーブルである。なお、図3(C)で示すデータ表T3の項目(項目C1〜C3)は、例示であって、項目の数はこれに限定されるものでは無い。また、この例では、説明を簡易とするために、データ表T3を一つ設ける例を示すが、複数保持しても良いことは言うまでも無い。登録最大数表T1の最大数は、データ表T3に登録できる閾値を示すことになる。   A data table T3 in FIG. 3C is a table in which predetermined data is registered or deleted by each DB client APL 10A. The items (items C1 to C3) in the data table T3 shown in FIG. 3C are examples, and the number of items is not limited to this. Further, in this example, for the sake of simplicity, an example in which one data table T3 is provided is shown, but it goes without saying that a plurality of data tables may be held. The maximum number in the registration maximum number table T1 indicates a threshold value that can be registered in the data table T3.

(A−2)実施形態の動作
次に、以上のような構成を有するこの実施形態のDB−S/Cシステム1の動作を説明する。以下では、DBクライアント10−1が、DBサーバ20(データベース22)に対して、データを登録する場合を例に挙げて、説明を行う。なお、データを削除する場合も、基本的に、データを登録する場合と同様の処理を行うので、併せて適宜説明を行う。
(A-2) Operation | movement of embodiment Next, operation | movement of DB-S / C system 1 of this embodiment which has the above structures is demonstrated. In the following, a description will be given by taking as an example the case where the DB client 10-1 registers data in the DB server 20 (database 22). Note that, when deleting data, basically, the same processing as that for registering data is performed, and therefore a description will be given as appropriate.

図3は、実施形態のDBクライアントAPL10Aの特徴動作を示すフローチャートである。   FIG. 3 is a flowchart illustrating the characteristic operation of the DB client APL 10A according to the embodiment.

DBクライアントAPL10Aは、登録数表T2から「DBクライアント」の項目が自身に該当するデータの「登録数」を更新(データ登録時は+1、データ削除時は−1)する(S101)。例えば、DBクライアントAPL10Aは、データの登録処理を行う場合、「DBクライアント」の項目の値が、「DBクライアント10−1」であるデータの「登録数」の項目の値を現在の「401」から「402」へ更新する。なお、この段階では、まだ、登録最大数表T1に実際にデータは登録されておらず、この登録数の更新処理は、これからデータを登録する予約的な意味合いである。   The DB client APL 10A updates the “number of registrations” of data corresponding to the item “DB client” from the registration number table T2 (+1 at the time of data registration, −1 at the time of data deletion) (S101). For example, when the DB client APL 10A performs data registration processing, the value of the item “DB client” is “DB client 10-1”, and the value of the item “registration number” of the data is “401”. To “402”. At this stage, no data is actually registered in the maximum registration number table T1, and this update processing of the registration number is a reserved meaning for registering data from now on.

次に、DBクライアントAPL10Aは、現在、データベース22に登録されているデータ数を取得する(S102)。具体的に、DBクライアントAPL10Aは、登録数表T2の全データの「登録数」の項目の値の合計値を求める。例えば、DBクライアントAPL10Aは、登録数表T2から、「DBクライアント」の項目が、「DBクライアント10−1」であるデータの「登録数」の項目の値「402」(この値は、ステップS101の処理により図2(B)で示す値より、「1」加算されている)と、「DBクライアント10−2」であるデータの「登録数」の項目の値「302」とを取得して、各クライアントの登録数を足した合計値(704)を求める。   Next, the DB client APL 10A acquires the number of data currently registered in the database 22 (S102). Specifically, the DB client APL 10A obtains the total value of the values of the “registration number” item of all the data in the registration number table T2. For example, the DB client APL 10A determines from the registration number table T2 that the “DB client” item is “DB client 10-1”, the value “402” (the value of the “registration number” item). In this process, “1” is added from the value shown in FIG. 2B) and the value “302” of the “registration number” item of the data “DB client 10-2” is acquired. Then, a total value (704) obtained by adding the number of registrations of each client is obtained.

次に、DBクライアントAPL10Aは、データベース22に登録できるデータ数の最大値である最大登録数と、先述のステップS102の処理により求めた現在の登録数との比較を行う(S103)。DBクライアントAPL10Aは、現在の登録数が、最大登録数以下の場合には次のステップS104の処理を行い、最大登録数を超えている場合には、後述するステップS105の処理を行う。   Next, the DB client APL 10A compares the maximum number of registrations, which is the maximum number of data that can be registered in the database 22, with the current number of registrations obtained by the process of step S102 described above (S103). The DB client APL 10A performs the process of the next step S104 when the current number of registrations is less than or equal to the maximum number of registrations, and performs the process of step S105 described later when the number of registrations exceeds the maximum number of registrations.

なお、最大登録数とは、登録最大数表T1の最大登録数の項目に入力された値であって、図2(A)では、「1000」である。例えば、先述のステップS102で求めた登録数が704である場合、DBクライアントAPL10Aは、現在の登録数が、最大登録数(1000)以下であると判定して、次のステップS104の処理を実行する。   The maximum registration number is a value input in the item of maximum registration number in the registration maximum number table T1, and is “1000” in FIG. For example, when the number of registrations obtained in step S102 is 704, the DB client APL 10A determines that the current number of registrations is equal to or less than the maximum number of registrations (1000), and executes the process of the next step S104. To do.

DBクライアントAPL10Aは、登録最大数表T1に対して、実際にデータを登録(又は削除)する処理をDBサーバ20へ要求する(S104)。   The DB client APL 10A requests the DB server 20 to perform a process of actually registering (or deleting) data with respect to the maximum registration number table T1 (S104).

また、DBクライアントAPL10Aは、先述のステップS103の処理で、現在の登録数が、最大登録数を超えていると判定した場合には、登録エラー(登録数オーバー)と判断する(S105)。   If the DB client APL 10A determines that the current number of registrations exceeds the maximum number of registrations in the process of step S103, the DB client APL 10A determines that the registration error (registration number over) (S105).

そして、DBクライアントAPL10Aは、登録数表T2から「DBクライアント」の項目が自身に該当するデータの「登録数」を更新する(S106)。具体的に、DBクライアントAPL10Aは、先述のステップS101で、「1」加算した登録数を「1」減算して、先述のステップS101の処理を実行する前の状態に戻す。   Then, the DB client APL 10A updates the “registration number” of data corresponding to the item “DB client” from the registration number table T2 (S106). Specifically, the DB client APL 10A subtracts “1” from the number of registrations obtained by adding “1” in the above-described step S101, and returns to the state before executing the process in the above-described step S101.

(A−3)実施形態の効果
第1の実施形態によれば、各DBクライアントAPL10Aは、登録数表T2の自身のクライアントに該当するデータの登録数を更新すれば、他のクライアントに影響を受けることなくデータの登録(又は削除)を行えることになった。つまり、従来各クライアントが共通に参照する登録数を管理するデータの排他制御が不要になったことにより、各DBクライアント10は、待ち時間を生じることなく、各々データの登録(又は削除)が可能となった。
(A-3) Effect of Embodiment According to the first embodiment, each DB client APL 10A affects other clients if the number of registered data corresponding to its own client in the registered number table T2 is updated. You can register (or delete) data without receiving it. In other words, each DB client 10 can register (or delete) data without causing any waiting time by eliminating the need for exclusive control of data for managing the number of registrations commonly referred to by each client. It became.

(B)他の実施形態
上記の実施形態に加えて、さらに、以下に例示するような変形実施形態も挙げることができる。
(B) Other Embodiments In addition to the above-described embodiments, the following modified embodiments can be exemplified.

(B−1)上記の実施形態では、DB−S/Cシステム1全体として、データベース22に登録できる最大データ数を、最大登録数として設けていたが、変形例として、各DBクライアントが、個別に登録できる最大のデータ数をDBクライアント毎に設けて、このDBクライアント毎の最大登録数と現在の自クライアントの登録数とを比較することにより、データの上限を管理する構成としても良い。   (B-1) In the above embodiment, the maximum number of data that can be registered in the database 22 is provided as the maximum number of registrations as the entire DB-S / C system 1, but as a modification, each DB client is individually The maximum number of data that can be registered in each DB client is provided for each DB client, and the upper limit of data is managed by comparing the maximum number of registrations for each DB client and the current number of registered clients.

(B−2)上記の実施形態では、DBクライアントAPL10Aは、データの登録又は削除する場合に、現在の登録数を求めて、最大登録数と比較する処理(S102、S103)を行っていたが、変形例として、データを削除する場合には、この処理を省略して、ステップS101の後に、ステップS104の処理を行う構成としても良い。   (B-2) In the above embodiment, when the DB client APL 10A registers or deletes data, the DB client APL 10A obtains the current number of registrations and compares the maximum number of registrations (S102, S103). As a modification, when deleting data, this process may be omitted, and the process of step S104 may be performed after step S101.

(B−3)上記の実施形態では、最大登録数は、登録最大数表T1として、データベース22に記憶する形で管理していたが、変形例として、DBサーバ20が所定の形式のファイルで管理(保持)する構成としても良い。この場合、DBクライアント10は、DBサーバ20が管理しているファイルにアクセスすることにより、最大登録数を取得する。また、各DBクライアント10は、最大登録数を予め取得して内部のファイルに保持する構成としても良い。   (B-3) In the above embodiment, the maximum registration number is managed in the form stored in the database 22 as the registration maximum number table T1, but as a modification, the DB server 20 is a file of a predetermined format. It is good also as a structure to manage (hold). In this case, the DB client 10 acquires the maximum registration number by accessing a file managed by the DB server 20. Further, each DB client 10 may be configured to acquire the maximum registration number in advance and store it in an internal file.

1…DB−S/Cシステム、10(10−1、10−2)…DBクライアント、10A(10A−1、10A−2)…DBクライアントAPL、20…DBサーバ、21…RDBMS、22…データベース、T1…登録最大数表、T2…登録数表、T3…データ表。   DESCRIPTION OF SYMBOLS 1 ... DB-S / C system, 10 (10-1, 10-2) ... DB client, 10A (10A-1, 10A-2) ... DB client APL, 20 ... DB server, 21 ... RDBMS, 22 ... Database , T1... Registered maximum number table, T2. Registered number table, T3.

Claims (6)

データベースサーバに接続して、データベース処理要求を行うデータベースクライアントにおいて、
前記データベースサーバに登録できるデータ数の最大値である最大登録数を取得する最大登録数取得手段と、
前記データベースサーバに現在登録しているデータ数である現在登録数を、複数のデータベースクライアント毎に管理している登録数表から取得する現在登録数取得手段と、
前記データベースサーバが保持する前記登録数表の当該データベースクライアントに対応する現在登録数を更新する現在登録数更新手段と、
前記最大登録数取得手段により取得した前記最大登録数と、前記現在登録数取得手段により取得した各データベースクライアントの現在登録数の合計値を比較する比較手段と、
前記比較手段の比較結果に応じて、前記データベース処理要求を行う制御手段と
を有することを特徴とするデータベースクライアント。
In the database client that connects to the database server and makes a database processing request,
Maximum registration number acquisition means for acquiring a maximum registration number that is the maximum number of data items that can be registered in the database server;
Current registration number acquisition means for acquiring a current registration number, which is the number of data currently registered in the database server, from a registration number table managed for each of a plurality of database clients;
Current registration number updating means for updating the current registration number corresponding to the database client in the registration number table held by the database server;
Comparison means for comparing the maximum registration number acquired by the maximum registration number acquisition means with the total value of the current registration numbers of each database client acquired by the current registration number acquisition means;
A database client comprising: control means for making the database processing request according to a comparison result of the comparison means.
前記データベース処理要求は、所定のデータ表に対して、データの登録処理を要求するものであり、
前記現在登録数更新手段は、前記登録数表の当該データベースクライアントに対応する現在登録数を、登録するデータ数に応じて更新し、
前記制御手段は、前記比較手段により前記合計値が前記最大登録数以下と判定された場合には、前記データベース処理要求を行い、前記合計値が前記最大登録数を超えると判定された場合には、前記データベース処理要求を中止する
ことを特徴とする請求項1に記載のデータベースクライアント。
The database processing request is a request for data registration processing for a predetermined data table,
The current registration number update means updates the current registration number corresponding to the database client in the registration number table according to the number of data to be registered,
The control means performs the database processing request when the comparison means determines that the total value is equal to or less than the maximum registration number, and when the total value exceeds the maximum registration number The database client according to claim 1, wherein the database processing request is canceled.
前記データベース処理要求は、所定のデータ表に対して、データの削除処理を要求するものであり、
前記現在登録数更新手段は、前記登録数表の当該データベースクライアントに対応する現在登録数を、削除するデータ数に応じて更新し、
前記制御手段は、前記比較手段の結果に関わらず、前記データベース処理要求を行う
ことを特徴とする請求項1又は2に記載のデータベースクライアント。
The database processing request is a request for data deletion processing for a predetermined data table,
The current registration number update means updates the current registration number corresponding to the database client in the registration number table according to the number of data to be deleted,
The database client according to claim 1, wherein the control unit makes the database processing request regardless of a result of the comparison unit.
データベースサーバに接続して、データベース処理要求を行うデータベースクライアントに搭載されるコンピュータを、
前記データベースサーバに登録できるデータ数の最大値である最大登録数を取得する最大登録数取得手段と、
前記データベースサーバに現在登録しているデータ数である現在登録数を、複数のデータベースクライアント毎に管理している登録数表から取得する現在登録数取得手段と、
前記データベースサーバが保持する前記登録数表の当該データベースクライアントに対応する現在登録数を更新する現在登録数更新手段と、
前記最大登録数取得手段により取得した前記最大登録数と、前記現在登録数取得手段により取得した各データベースクライアントの現在登録数の合計値を比較する比較手段と、
前記比較手段の比較結果に応じて、前記データベース処理要求を行う制御手段と
して機能させることを特徴とするデータベースクライアントプログラム。
Connect to the database server and connect the computer installed in the database client that makes database processing requests.
Maximum registration number acquisition means for acquiring a maximum registration number that is the maximum number of data items that can be registered in the database server;
Current registration number acquisition means for acquiring a current registration number, which is the number of data currently registered in the database server, from a registration number table managed for each of a plurality of database clients;
Current registration number updating means for updating the current registration number corresponding to the database client in the registration number table held by the database server;
Comparison means for comparing the maximum registration number acquired by the maximum registration number acquisition means with the total value of the current registration numbers of each database client acquired by the current registration number acquisition means;
A database client program that functions as a control unit that makes the database processing request in accordance with a comparison result of the comparison unit.
データベースサーバに接続して、データベース処理要求を行うデータベースクライアントに使用するデータベースクライアント制御方法おいて、
最大登録数取得手段、現在登録数取得手段、現在登録数更新手段、比較手段、及び制御手段を有し、
前記最大登録数取得手段は、前記データベースサーバに登録できるデータ数の最大値である最大登録数を取得し、
前記現在登録数取得手段は、前記データベースサーバに現在登録しているデータ数である現在登録数を、複数のデータベースクライアント毎に管理している登録数表から取得し、
前記現在登録数更新手段は、前記データベースサーバが保持する前記登録数表の当該データベースクライアントに対応する現在登録数を更新し、
前記比較手段は、前記最大登録数取得手段により取得した前記最大登録数と、前記現在登録数取得手段により取得した各データベースクライアントの現在登録数の合計値を比較し、
前記制御手段は、前記比較手段の比較結果に応じて、前記データベース処理要求を行う
ことを特徴とするデータベースクライアント制御方法。
In the database client control method used for database clients that connect to the database server and make database processing requests,
A maximum registration number acquisition means, a current registration number acquisition means, a current registration number update means, a comparison means, and a control means;
The maximum registration number acquisition means acquires a maximum registration number that is a maximum value of the number of data that can be registered in the database server,
The current registration number acquisition means acquires the current registration number, which is the number of data currently registered in the database server, from a registration number table managed for each of a plurality of database clients,
The current registration number update means updates the current registration number corresponding to the database client in the registration number table held by the database server,
The comparison unit compares the maximum registration number acquired by the maximum registration number acquisition unit with the total value of the current registration number of each database client acquired by the current registration number acquisition unit,
The database client control method, wherein the control means makes the database processing request according to a comparison result of the comparison means.
複数のデータベースクライアントと、前記データベースクライアントのそれぞれからのデータベース処理要求に応じたデータベース処理を実行するデータベースサーバとを備えるデータベースシステムにおいて、
前記データベースシステムの構成要素となる前記データベースクライアントとして、請求項1〜3のいずれかに記載のデータベースクライアントを適用したことを特徴とするデータベースシステム。
In a database system comprising a plurality of database clients, and a database server that executes database processing according to database processing requests from each of the database clients,
A database system according to any one of claims 1 to 3, wherein the database client according to any one of claims 1 to 3 is applied as the database client that is a component of the database system.
JP2016054335A 2016-03-17 2016-03-17 Database client, database client program, database client control method, and database system Active JP6583076B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016054335A JP6583076B2 (en) 2016-03-17 2016-03-17 Database client, database client program, database client control method, and database system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016054335A JP6583076B2 (en) 2016-03-17 2016-03-17 Database client, database client program, database client control method, and database system

Publications (2)

Publication Number Publication Date
JP2017167958A true JP2017167958A (en) 2017-09-21
JP6583076B2 JP6583076B2 (en) 2019-10-02

Family

ID=59913387

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016054335A Active JP6583076B2 (en) 2016-03-17 2016-03-17 Database client, database client program, database client control method, and database system

Country Status (1)

Country Link
JP (1) JP6583076B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11224184A (en) * 1998-02-05 1999-08-17 Nec Corp System and method for generating object-oriented database operation program
JP2002082955A (en) * 2000-09-11 2002-03-22 Dat Japan Kk Variable length data base device and access method
JP2003150419A (en) * 2001-11-14 2003-05-23 Hitachi Ltd Storage device having means for obtaining execution information of database management system
JP2015191533A (en) * 2014-03-28 2015-11-02 沖電気工業株式会社 Database system, database server, database server program, database client, and database client program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11224184A (en) * 1998-02-05 1999-08-17 Nec Corp System and method for generating object-oriented database operation program
JP2002082955A (en) * 2000-09-11 2002-03-22 Dat Japan Kk Variable length data base device and access method
JP2003150419A (en) * 2001-11-14 2003-05-23 Hitachi Ltd Storage device having means for obtaining execution information of database management system
JP2015191533A (en) * 2014-03-28 2015-11-02 沖電気工業株式会社 Database system, database server, database server program, database client, and database client program

Also Published As

Publication number Publication date
JP6583076B2 (en) 2019-10-02

Similar Documents

Publication Publication Date Title
US11514076B2 (en) Cooperative naming for configuration items in a distributed configuration management database environment
US11669321B2 (en) Automated database upgrade for a multi-tenant identity cloud service
CN108228817B (en) Data processing method, device and system
US10019536B2 (en) Snapshot-consistent, in-memory graph instances in a multi-user database
US10108914B2 (en) Method and system for morphing object types in enterprise content management systems
US11574070B2 (en) Application specific schema extensions for a hierarchical data structure
US8650274B2 (en) Virtual integrated management device for performing information update process for device configuration information management device
US20170124127A1 (en) Ensuring data maintenance within a ldap environment
WO2021046750A1 (en) Data redistribution method, device, and system
US11151081B1 (en) Data tiering service with cold tier indexing
US11281655B2 (en) Data migration validation
US8621072B2 (en) Providing notification of document repository events to external systems
US20160253361A1 (en) Incorporating external data into a database schema
US10205631B1 (en) Distributing an access control service to local nodes
US9122718B2 (en) Dynamic directory control execution
US20140025643A1 (en) Maintaining object and query result consistency in a triplestore database
US10185735B2 (en) Distributed database system and a non-transitory computer readable medium
JP6583076B2 (en) Database client, database client program, database client control method, and database system
Yaish et al. Multi-tenant elastic extension tables data management
KR20100113975A (en) Method of an xml document management to cancel a specific past operation selectively, and system using the same
US11768813B1 (en) Data migration framework
US11561958B2 (en) Information processing device and information processing system
US11461302B1 (en) Storing multiple instances of data items to implement key overloading in database tables
Pereira et al. Mediator framework for inserting xDRs into Hadoop
JP5625858B2 (en) Component management apparatus, management program, and management method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20181115

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190226

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190423

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: 20190806

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190819

R150 Certificate of patent or registration of utility model

Ref document number: 6583076

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150