JPH10283319A - On-line transaction processing method and system therefor and medium - Google Patents

On-line transaction processing method and system therefor and medium

Info

Publication number
JPH10283319A
JPH10283319A JP9091081A JP9108197A JPH10283319A JP H10283319 A JPH10283319 A JP H10283319A JP 9091081 A JP9091081 A JP 9091081A JP 9108197 A JP9108197 A JP 9108197A JP H10283319 A JPH10283319 A JP H10283319A
Authority
JP
Japan
Prior art keywords
transaction
server
information
data
update
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
JP9091081A
Other languages
Japanese (ja)
Inventor
Noriyoshi Koizumi
徳善 小泉
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.)
N T T DATA KK
NTT Data Group Corp
Original Assignee
N T T DATA KK
NTT Data 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 N T T DATA KK, NTT Data Corp filed Critical N T T DATA KK
Priority to JP9091081A priority Critical patent/JPH10283319A/en
Publication of JPH10283319A publication Critical patent/JPH10283319A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To reduce transmission and reception information amounts, to reduce traffic, and to improve a transaction response in a network between a client and a server at the time of processing a transaction. SOLUTION: A data generating part 12 transmits transaction information in a batch to a server 2 based on the data of a slip. A transaction preserving part 21 preserves the transaction data of the slip in a slip transaction file 22 based on the received telegraphic message, and supplies information for updating another table to definition information 23. The definition information 23 generates a trigger for defining the update of another table using the stored procedure of a data base management system(DBMS) 24. The DBMS 24 calls the stored procedure based on the applied trigger, and updates a pertinent master table in a master table file 25.

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、クライアントサ
ーバシステムにおけるオンライントランザクション処理
に係り、特に、サーバにデータベース管理システムを搭
載しているクライアントサーバシステムにおけるオンラ
イントランザクション処理の高速化技術に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to online transaction processing in a client-server system, and more particularly, to a technique for speeding up online transaction processing in a client-server system in which a server has a database management system.

【0002】[0002]

【従来の技術】サーバにデータベースを格納し、複数の
クライアントからこのサーバにアクセスして、必要なデ
ータを読み出し或いは更新するデータベースシステムが
知られている。
2. Description of the Related Art A database system is known in which a database is stored in a server and a plurality of clients access the server to read or update necessary data.

【0003】この種のデータベースシステムは、クライ
アントからSQL(Structured Query Language)を発
行してサーバのデータベース(DB)にアクセスする方
式を採用している。
[0003] This type of database system adopts a system in which a client issues a SQL (Structured Query Language) to access a database (DB) of a server.

【0004】しかし、この方式では、オンライントラン
ザクション処理において、クライアントとサーバとの間
で多数のSQLが送受され、ネットワーク上のトラヒッ
クが増大し、トランザクションのレスポンスが遅くなる
場合があるという問題がある。
However, this method has a problem that in the online transaction processing, a large number of SQLs are transmitted and received between the client and the server, so that the traffic on the network increases and the response of the transaction may be delayed.

【0005】この点を図15を参照して具体的に説明す
る。ここでは、ある商品コードを有する商品が販売さ
れ、その売上を図14に示すフォーマットのAA伝票に
登録するものとする。
[0005] This point will be specifically described with reference to FIG. Here, it is assumed that a product having a certain product code is sold, and the sales are registered in an AA slip having a format shown in FIG.

【0006】(1) AA伝票の入力に際して、「商品コ―
ド」をキーにして、サーバの商品マスタファイルF2を
検索して、該当レコードの「商品名」及び「単価」を参
照して取り込む。 (2) 次に、販売「数量」が入力され、単価×数量から
「金額」を求め、商品マスタファイルF2から「在庫
数」を読み出し、ここから販売数量を減算することによ
り、新たな在庫数を求める。 (3) AA伝票が完成すると、入力されたAA伝票のトラ
ンザクションデータを、サーバ上のAA伝票のトランザ
クションF1に保存するとともに、商品マスタファイル
F2の在庫数を更新する。
(1) When inputting an AA slip, a "product code
Using the "" as a key, the server searches the product master file F2 of the server, and retrieves the product by referring to the "product name" and "unit price" of the record. (2) Next, the sales “quantity” is input, the “amount” is calculated from the unit price × the quantity, the “stock quantity” is read from the product master file F2, and the sales quantity is subtracted therefrom to obtain a new stock quantity. Ask for. (3) When the AA slip is completed, the entered transaction data of the AA slip is stored in the transaction F1 of the AA slip on the server, and the stock quantity in the product master file F2 is updated.

【0007】[0007]

【発明が解決しようとする課題】AA伝票の保存に伴っ
て商品マスタファイルF2等を更新する場合のように、
トランザクションの保存の延長で、他のテーブルを更新
する場合には、トランザクションキー、他テーブル名、
他テーブルキー、他テーブル更新アイテム及び更新スク
リプト等の情報が必要になる。
As in the case where the product master file F2 or the like is updated along with the storage of the AA slip,
When updating other tables as an extension of saving the transaction, the transaction key, other table name,
Information such as another table key, another table update item, and update script is required.

【0008】これらの情報は、クライアントが保持して
いる情報であり、これらの情報を授受するため、クライ
アントとサーバとの間で相当な量のSQLが授受され
る。従って、ネットワーク上のトラヒックが増大し、ト
ランザクションのレスポンスが遅くなってしまう。すな
わち、更新されるデータを保存して、次の入力モードに
なるまでの時問が長くなる。
[0008] These pieces of information are information held by the client, and a considerable amount of SQL is exchanged between the client and the server to exchange the information. Therefore, traffic on the network increases, and the response of the transaction becomes slow. That is, it takes a longer time to save the updated data and enter the next input mode.

【0009】また、伝票上(画面上)の各項目はリレー
ショナルデータベースで相互に関連付けて管理されてい
る。従って、各項目のデータは、正規化されて、複数の
テーブルに分けられて存在する。このため、自票(テー
ブル)を保存する場合にも、クライアントとサーバとの
間で、複数のテーブルへのアクセスが必要になる。従っ
て、クライアントとサーバとの間で多数のSQLが送受
信され、ネットワーク上のトラヒックが増大し、その結
果、レスポンスが悪化する。
The items on the slip (on the screen) are managed in a relational database in association with each other. Therefore, the data of each item is normalized and exists in a plurality of tables. For this reason, even when the own vote (table) is stored, it is necessary to access a plurality of tables between the client and the server. Therefore, a large number of SQLs are transmitted and received between the client and the server, and the traffic on the network increases, and as a result, the response deteriorates.

【0010】この発明は、上述した事情に鑑みてなされ
たもので、トランザクション処理を高速で行うことがで
きるオンライントランザクション処理方法及びシステム
を提供することを目的とする。また、この発明は、トラ
ンザクション処理時のクライアント−サーバ間のネット
ワークにおける送受信情報量を低減して、トラヒックを
軽減し得るオンライントランザクション処理方法及びシ
ステムを提供することを目的とする。また、この発明
は、これらの方法及びシステムを実現することを可能と
するプログラムを記憶した媒体を提供することにより、
これらの方法及びシステムを実現可能とすることを目的
とする。
[0010] The present invention has been made in view of the above circumstances, and has as its object to provide an online transaction processing method and system capable of performing transaction processing at high speed. It is another object of the present invention to provide an online transaction processing method and system capable of reducing the amount of information transmitted and received in a network between a client and a server at the time of transaction processing to reduce traffic. In addition, the present invention provides a medium storing a program capable of realizing these methods and systems,
The purpose is to make these methods and systems feasible.

【0011】[0011]

【課題を解決するための手段】上記目的を達成するた
め、この発明の第1の観点にかかるオンライントランザ
クション処理システムは、クライアントと該クライアン
トに接続されたサーバとより構成されるクライアントサ
ーバシステムにおいて、前記クライアントは、新たなト
ランザクション情報を入力する入力手段と、前記入力手
段により入力された新たなトランザクション情報を前記
サーバに送信するデータ送信手段と、を備え、前記サー
バは、データベース管理システムを備えるデータベース
と、前記クライアントからトランザクション情報を受信
する受信手段と、前記受信手段により受信されたトラン
ザクション情報に基づくトランザクションデータを保存
する保存手段と、前記保存に応答し、予め定められた処
理定義情報に従って前記データベース管理システムのス
トアードプロシージャを実行し、前記データベースを更
新するデータベース更新手段と、を具備することを特徴
とする。
To achieve the above object, an online transaction processing system according to a first aspect of the present invention provides a client-server system comprising a client and a server connected to the client. The client includes: input means for inputting new transaction information; and data transmission means for transmitting the new transaction information input by the input means to the server. The server includes a database including a database management system. Receiving means for receiving transaction information from the client, storing means for storing transaction data based on the transaction information received by the receiving means, and responding to the storing, according to predetermined processing definition information Serial run a stored procedure in the database management system, characterized by comprising a database update means for updating the database.

【0012】この発明に係るオンライントランザクショ
ン処理システムは、トランザクションの保存に関連する
データベースの更新を、クライアントで行うのではな
く、新たなトランザクション情報をサーバに送信し、サ
ーバでデータベース管理システムのストアードプロシー
ジャを行う。従って、クライアントとサーバ間で多量の
SQL文の送受信を行う必要がない。従って、従来の更
新処理を伴うオンライントランザクション処理と比較し
て、レスポンスが向上する。
In the online transaction processing system according to the present invention, instead of updating the database related to the storage of the transaction by the client, the new transaction information is transmitted to the server, and the stored procedure of the database management system is executed by the server. Do. Therefore, there is no need to transmit and receive a large amount of SQL statements between the client and the server. Therefore, the response is improved as compared with the conventional online transaction processing involving update processing.

【0013】前記クライアントの前記データ送信手段
は、前記トランザクション情報を含む電文を生成し、前
記サーバに送信する手段を備え、前記サーバの前記受信
手段は、前記電文を受信し、該電文に含まれているトラ
ンザクション情報を抽出する抽出手段を含み、前記保存
手段は、前記抽出手段により抽出されたトランザクショ
ン情報を保存する。
[0013] The data transmitting means of the client includes means for generating a message including the transaction information and transmitting the message to the server, and the receiving means of the server receives the message and includes the message. Extracting means for extracting the transaction information stored in the storage means, and the storage means stores the transaction information extracted by the extracting means.

【0014】この構成では、トランザクション情報がク
ライアントからサーバにまとめて電文で送信される。従
って、SQL文を交信する場合に比較して通信量を大幅
に低減することができ、トラヒックが減少し、レスポン
スが速くなる。
[0014] In this configuration, the transaction information is transmitted from the client to the server collectively by electronic message. Therefore, the communication traffic can be greatly reduced as compared with the case of exchanging the SQL sentence, the traffic decreases, and the response speeds up.

【0015】前記処理定義情報は、例えば、前記トラン
ザクションの保存に応答して、前記データベース管理シ
ステムのストアードプロシージャにより前記データベー
スを更新するための処理の内容を定義する情報である。
前記処理定義情報は、例えば、トランザクションの対象
となるテーブル及びそれに関連する他のテーブルのキー
定義情報と、データ更新のための更新式を記述する更新
式情報と、条件を判定して前記更新式を振り分けるため
の条件付き更新式情報と、更新アイテムのクリア周期及
び初期値の設定のためのクリア条件情報と、履歴アイテ
ムを指定するための履歴情報と、エラー及び警告の発生
時に返すリターン値を設定するチェック条件情報と、オ
ンライン更新かバッチ更新かを指定する更新時期情報
と、のうちの少なくとも1つを含んでもよい。このよう
な情報を生成することにより、各テーブルを更新するこ
とができる。また、前記サーバに、前記処理定義情報を
生成して、前記データベース管理システムに予め登録す
る定義生成手段を配置してもよい。
The process definition information is, for example, information that defines the content of a process for updating the database by a stored procedure of the database management system in response to storing the transaction.
The process definition information includes, for example, key definition information of a table to be subjected to a transaction and other tables related thereto, update formula information describing an update formula for updating data, and the update formula by determining a condition. Update condition information for sorting the update items, clear condition information for setting the update item clear cycle and initial value, history information for specifying the history item, and the return value to be returned when an error or warning occurs. At least one of check condition information to be set and update time information to specify online update or batch update may be included. By generating such information, each table can be updated. The server may further include a definition generation unit that generates the process definition information and registers the process definition information in the database management system in advance.

【0016】トランザクションに基づくデータ処理の過
程でエラーが発生した際に、当該トランザクションに係
るデータ処理を無効として、該トランザクションに係る
サーバにおける更新データを全て元に戻すとともにクラ
イアントにエラー情報を送信するサーバエラー処理手段
と、前記サーバからエラー情報を受信すると、当該トラ
ンザクションに係るデータ処理を無効として、該トラン
ザクションに係るクライアントにおける更新データを全
て元に戻すクライアントエラー処理手段と、を配置して
もよい。このような構成とすることにより、エラーが発
生してもデータの一貫性を確保できる。
When an error occurs in the course of data processing based on a transaction, a server which invalidates the data processing relating to the transaction, restores all the update data in the server relating to the transaction, and transmits error information to the client. An error processing unit and a client error processing unit that, when error information is received from the server, invalidates data processing relating to the transaction and returns all update data in the client relating to the transaction to the original state may be arranged. With this configuration, data consistency can be ensured even if an error occurs.

【0017】上記目的を達成するため、この発明の第2
の観点にかかるオンライントランザクション処理システ
ムは、トランザクションが発生する毎に、当該トランザ
クションに係るデータをサーバに保存するため、該トラ
ンザクションに係るデータを含む電文を生成して、前記
サーバに送信する送信データ生成手段を含むクライアン
トシステムと、前記電文に基づいてデータ保存を含む所
定処理を実行するデータ処理手段を含むサーバシステム
と、を具備することを特徴とする。
In order to achieve the above object, a second aspect of the present invention is provided.
The online transaction processing system according to the aspect of the present invention generates a transmission message including data relating to the transaction and saves the transmission data to the server in order to store the data relating to the transaction in the server every time the transaction occurs. And a server system including data processing means for executing predetermined processing including data storage based on the message.

【0018】この構成によれば、クライアントで発生し
たトランザクションに関するデータを電文に含めて一括
してサーバに送信するので、サーバはデータの保存等に
必要なデータを一括して受信し、処理することができ
る。従って、サーバとクライアントとの間のデータの授
受を低減し、トラヒックを低減し、レスポンスを高速化
することができる。
According to this configuration, since the data relating to the transaction generated by the client is included in the message and transmitted collectively to the server, the server collectively receives and processes the data necessary for storing the data. Can be. Therefore, transmission and reception of data between the server and the client can be reduced, traffic can be reduced, and the response can be speeded up.

【0019】前記サーバシステムは、例えば、データベ
ース管理システムを備えるデータベースと、前記電文を
受信する受信手段と、前記受信手段により受信されたト
ランザクション情報に基づくトランザクションデータを
保存する保存手段と、前記保存手段に応働して、更新内
容を定義するための処理定義情報に従ってストアードプ
ロシージャを実行し、前記データベースを更新するデー
タベース更新手段と、を具備する。
The server system includes, for example, a database provided with a database management system, receiving means for receiving the message, storing means for storing transaction data based on the transaction information received by the receiving means, and storing means And a database updating means for executing a stored procedure in accordance with the process definition information for defining the update content and updating the database.

【0020】この構成によれば、電文に含まれているト
ランザクション情報に基づいてトランザクションデータ
を保存すると共にストアードプロシージャにより関連す
るデータベースを更新することができる。この構成で
は、他票更新のために、サーバとクライアント間のSQ
L文の送受信がほとんど必要なく、通信量を低減するこ
とができる。
According to this configuration, the transaction data can be stored based on the transaction information included in the message, and the related database can be updated by the stored procedure. In this configuration, the SQ between the server and the client
There is almost no need to send and receive L-sentences, and the amount of communication can be reduced.

【0021】上記目的を達成するため、この発明の第3
の観点にかかるオンライントランザクション処理システ
ムは、データベース管理システムを備えるデータベース
と、外部よりトランザクション情報を受信する受信手段
と、前記受信手段により受信されたトランザクション情
報に基づくトランザクションデータを保存する保存手段
と、前記保存手段に応働して、前記データベースの更新
内容を定義するために予め定められている処理定義情報
に従ってストアードプロシージャを実行し、前記データ
ベースを更新するデータベース更新手段と、を具備する
ことを特徴とする。
In order to achieve the above object, a third aspect of the present invention is provided.
An online transaction processing system according to the aspect of the present invention comprises: a database including a database management system; a receiving unit that receives transaction information from outside; a storage unit that stores transaction data based on the transaction information received by the receiving unit; In response to a storage unit, executing a stored procedure in accordance with predetermined process definition information to define the update content of the database, and updating the database by a database update unit. I do.

【0022】この構成によれば、外部からのトランザク
ション情報に従って、トランザクションデータを保存す
ると共にストアードプロシージャを用いてデータベース
を更新することができる。このような構成とすることに
より、このシステムと外部装置との間の交信量を低減す
ることができる。
According to this configuration, the transaction data can be stored and the database can be updated using the stored procedure according to external transaction information. With such a configuration, the amount of communication between the system and the external device can be reduced.

【0023】上記目的を達成するため、この発明の第4
の観点にかかるオンライントランザクション処理方法
は、クライアントにおいて、新たなトランザクション情
報をトランザクション毎にサーバに送信する送信ステッ
プと、前記サーバにおいて、前記クライアントから受信
したトランザクション情報に基づくトランザクションデ
ータを保存する保存ステップと、前記保存ステップに連
動して、予め定められている処理定義情報に従ってスト
アードプロシージャを実行し、データベースを更新する
更新ステップと、を有することを特徴とする。
In order to achieve the above object, a fourth aspect of the present invention is provided.
The online transaction processing method according to the aspect of the present invention comprises a client transmitting a new transaction information to a server for each transaction, and a server storing transaction data based on the transaction information received from the client in the server. And updating the database by executing a stored procedure in accordance with predetermined process definition information in conjunction with the storing step.

【0024】この方法によれば、トランザクションの保
存に関連するデータベースの更新を、クライアントで行
うのではなく、新たなトランザクション情報をサーバに
送信し、サーバでデータベース管理システムのストアー
ドプロシージャを行う。従って、クライアントとサーバ
間で多量のSQL文の送受信を行う必要がない。従っ
て、従来の更新処理を伴うオンライントランザクション
処理と比較して、レスポンスが向上する。
According to this method, the database related to the storage of the transaction is not updated by the client, but new transaction information is transmitted to the server, and the stored procedure of the database management system is performed by the server. Therefore, there is no need to transmit and receive a large amount of SQL statements between the client and the server. Therefore, the response is improved as compared with the conventional online transaction processing involving update processing.

【0025】前記処理定義情報は、通常、トランザクシ
ョンの対象となるテーブル及びそれに関連する他のテー
ブルのキー定義情報と、データ更新のための更新式を記
述する更新式情報と、条件を判定して前記更新式を振り
分けるための条件付き更新式情報と、更新アイテムのク
リア周期及び初期値の設定のためのクリア条件情報と、
履歴アイテムを指定するための履歴情報と、エラー及び
警告の発生時に返すリターン値を設定するチェック条件
情報と、オンライン更新かバッチ更新かを指定する更新
時期情報等を含む。また、前記処理定義情報を生成し
て、前記サーバのデータベース管理システムに予め登録
するステップを配置してもよい。
The process definition information is usually obtained by determining key definition information of a table to be subjected to a transaction and other tables related thereto, update formula information describing an update formula for updating data, and conditions. Conditional update formula information for distributing the update formula, clear condition information for setting a clear cycle and an initial value of the update item,
It includes history information for specifying a history item, check condition information for setting a return value to be returned when an error or a warning occurs, update time information for specifying whether to perform online update or batch update, and the like. Further, a step of generating the process definition information and registering it in advance in the database management system of the server may be arranged.

【0026】トランザクションに基づくデータ処理の過
程でエラーが発生した際に、データ更新を無効として、
当該トランザクションに係るデータを全て元に戻すエラ
ー処理ステップを、配置してもよい。このステップを配
置することにより、エラーの有無にかかわらずデータの
同期を取ることができる。
When an error occurs in the course of data processing based on a transaction, invalidating data update,
An error processing step for restoring all data related to the transaction may be arranged. By arranging this step, data can be synchronized regardless of the presence or absence of an error.

【0027】上記目的を達成するため、この発明の第5
の観点にかかるオンライントランザクション処理方法
は、クライアントにおいて、トランザクションに係るデ
ータをサーバに保存するため、トランザクションが発生
する毎に、該トランザクションに係る全てのデータを含
む電文を生成して、サーバに送信し、サーバにおいて、
前記電文に基づいてデータ保存を含む所定処理を実行す
ることを特徴とする。
In order to achieve the above object, a fifth aspect of the present invention is provided.
In the online transaction processing method according to the aspect of the present invention, a client stores data related to a transaction in a server, so that every time a transaction occurs, a message including all data related to the transaction is generated and transmitted to the server. , On the server,
A predetermined process including data storage is executed based on the message.

【0028】この構成によれば、クライアントで発生し
たトランザクションに関するデータを電文に含めて一括
してサーバに送信するので、サーバはデータの保存等に
必要なデータを一括して受信し、処理することができ
る。従って、サーバとクライアントとの間のデータの授
受を低減し、トラヒックを低減し、レスポンスを高速化
することができる。
According to this configuration, since the data relating to the transaction generated by the client is included in the message and transmitted collectively to the server, the server collectively receives and processes the data necessary for storing the data. Can be. Therefore, transmission and reception of data between the server and the client can be reduced, traffic can be reduced, and the response can be speeded up.

【0029】前記サーバにおいて、前記電文を受信し、
受信された電文に含まれているトランザクション情報に
基づくトランザクションデータを保存し、この保存をト
リガとして、データベースの更新内容を定義する処理定
義情報に従ってストアードプロシージャを実行し、デー
タベースを更新する等の処理を行っても良い。
In the server, the message is received,
Transaction data based on the transaction information contained in the received message is stored, and triggered by this storage, the stored procedure is executed in accordance with the process definition information that defines the update content of the database, and processing such as updating the database is performed. You may go.

【0030】上記目的を達成するため、この発明の第6
の観点にかかるオンライントランザクション処理方法
は、トランザクション情報を含む電文を受信し、受信し
た電文に含まれているトランザクション情報に基づくト
ランザクションデータを保存し、この保存をトリガとし
て、データベース管理システムのストアードプロシージ
ャを起動し、予め定められた更新処理定義情報に従って
ストアードプロシージャを実行し、データベースを更新
する、ことを特徴とする。
To achieve the above object, the sixth aspect of the present invention is described.
An online transaction processing method according to the aspect of the present invention receives a message including transaction information, saves transaction data based on the transaction information included in the received message, and triggers the stored procedure of the database management system with the saving as a trigger. It starts up, executes a stored procedure according to predetermined update process definition information, and updates the database.

【0031】この構成によれば、外部からのトランザク
ション情報に従って、トランザクションデータを保存す
ると共にストアードプロシージャを用いてこのトランザ
クションに関連するデータベースを更新できる。このよ
うな構成とすることにより、このシステムと外部装置と
の間の交信量を低減することができる。
According to this configuration, transaction data can be stored and a database related to the transaction can be updated using a stored procedure in accordance with external transaction information. With such a configuration, the amount of communication between the system and the external device can be reduced.

【0032】通常のコンピュータに上述の機能を有する
サーバ又はクライアントして機能させるためのプログラ
ム(OSの一部又は全部を含んでもよく、OS上で動作
するプログラムのみでもよい)やデータの全部又は一部
を記録媒体(FD、CD−ROM等)に格納して配布
し、これをコンピュータにインストールすることによ
り、上記サーバ又はクライアントを構成してもよい。
A program (which may include a part or the whole of the OS, or may be a program operated on the OS) and / or all or one of the data for causing a normal computer to function as a server or a client having the above functions. The server or the client may be configured by storing and distributing the unit in a recording medium (FD, CD-ROM, or the like) and installing this in a computer.

【0033】[0033]

【発明の実施の形態】以下、この発明の実施の形態を図
面を参照して説明する。図1及び図2を参照して、この
発明の第1の実施の形態に係るオンライントランザクシ
ョン処理システムを説明する。図1は、この発明の第1
の実施の形態に係るオンライントランザクション処理シ
ステムを構築するクライアントサーバシステムの構成を
模式的に示している。
Embodiments of the present invention will be described below with reference to the drawings. 1 and 2, an online transaction processing system according to a first embodiment of the present invention will be described. FIG. 1 shows a first embodiment of the present invention.
1 schematically shows the configuration of a client-server system that constructs an online transaction processing system according to an embodiment.

【0034】図1に示すオンライントランザクション処
理システムは、ネットワークNWにより互いに結合され
たクライアント1及びサーバ2からなるクライアントサ
ーバシステムから構成されている。
The online transaction processing system shown in FIG. 1 comprises a client-server system consisting of a client 1 and a server 2 connected to each other by a network NW.

【0035】クライアント1は、伝票入力部11及びデ
ータ生成部12を具備している。サーバ2は、トランザ
クション保存部21、伝票トランザクションファイル2
2、定義情報23、DBMS24及びマスタテーブルフ
ァイル25を具備している。
The client 1 includes a slip input unit 11 and a data generation unit 12. The server 2 includes a transaction storage unit 21, a slip transaction file 2,
2, a definition information 23, a DBMS 24 and a master table file 25.

【0036】伝票入力部11は、キーボード、マウス等
からなり、伝票の各項目のデータを入力するためのもの
である。例えば、クライアントの画面上に伝票のフォー
マットを表示し、伝票の各項目に伝票入力部11からデ
ータを入力することにより、1つの伝票を完成する。伝
票入力の際、商品コード等をキーにして、サーバ2のマ
スタテーブルファイル25の商品マスタテーブルから商
品名、単価及び在庫数を参照できる。伝票が完成し、保
存が指示されると、伝票入力部11は、入力された伝票
のデータをデータ生成部12に与える。
The slip input unit 11 includes a keyboard, a mouse, and the like, and is used to input data of each item of the slip. For example, one slip is completed by displaying the format of the slip on the client screen and inputting data from the slip input unit 11 to each item of the slip. When inputting a slip, the product name, unit price and stock quantity can be referenced from the product master table of the master table file 25 of the server 2 using the product code and the like as keys. When the slip is completed and storage is instructed, the slip input unit 11 gives the data of the input slip to the data generation unit 12.

【0037】データ生成部12は、与えられた伝票のデ
ータをもとにして、入力されたトランザクション情報を
一括して送信するための電文を生成し、ネットワークNW
を介してサーバ2に送信する。
The data generation unit 12 generates a message for transmitting the input transaction information in a lump based on the data of the given slip,
To the server 2 via.

【0038】サーバ2のトランザクション保存部21
は、クライアント1のデータ生成部12から送信された
電文を受信する。トランザクション保存部21は、受信
した電文に基づき、伝票のトランザクションデータを伝
票トランザクションテーブルとして伝票トランザクショ
ンファイル22に保存する。
The transaction storage unit 21 of the server 2
Receives the message transmitted from the data generation unit 12 of the client 1. The transaction storage unit 21 stores the transaction data of the slip in the slip transaction file 22 as a slip transaction table based on the received message.

【0039】さらに、トランザクション保存部21は、
他のテーブルを更新するための定義情報23を参照す
る。この定義情報23は、システムの開発時等に予め生
成されて、DBMS24のストアードプロシージャテー
ブルに予め登録されている。この定義情報23は、トラ
ンザクション保存部21から与えられたトランザクショ
ンデータに基づき、DBMS24(DBMS:Database
Management System〜いわゆる、「リレーショナルデー
タベース」)のストアードプロシージャを用いて他のテ
ーブルを更新する際の更新内容を定義する情報である。
トランザクション保存部21は、この定義情報23に従
って、定義時に予め生成されて登録されているトリガを
DBMS24に与える。
Further, the transaction storage unit 21
Reference is made to definition information 23 for updating another table. The definition information 23 is generated in advance at the time of system development or the like, and is registered in the stored procedure table of the DBMS 24 in advance. The definition information 23 is based on the transaction data given from the transaction storage unit 21 and is based on a DBMS 24 (DBMS: Database).
This is information that defines the update content when another table is updated using a stored procedure of the Management System (a so-called “relational database”).
The transaction storage unit 21 gives a trigger generated and registered in advance at the time of definition to the DBMS 24 according to the definition information 23.

【0040】DBMS24は、与えられたトリガに基づ
き、ストアードプロシージャをコールして、マスタテー
ブルファイル25内の該当するマスタテーブルを更新さ
せる。
The DBMS 24 calls a stored procedure based on the given trigger to update the corresponding master table in the master table file 25.

【0041】ストアードプロシージャは、周知のよう
に、DBMSの機能の一つであり、データベースのメタ
データとともに格納されるプログラムであり、DBMS
のアプリケーションからコールすることも、SQL内で
使用することもできる。
As is well known, the stored procedure is one of the functions of the DBMS, and is a program stored together with the metadata of the database.
Can be called from any application or used within SQL.

【0042】ストアードプロシージャは、選択プロシー
ジャと実行可能プロシージャに大別される。
Stored procedures are broadly divided into selection procedures and executable procedures.

【0043】選択プロシージャは、例えばSELECT
文により、アプリケーションがテーブルやビューの代わ
りに使用することができる。選択プロシージャは、1つ
又は複数の値(出力パラメータ)あるいはエラー結果を
返すように定義される。
The selection procedure is, for example, SELECT
Statements allow applications to substitute tables and views. The selection procedure is defined to return one or more values (output parameters) or an error result.

【0044】実行可能プロシージャは、実行可能なプロ
シージャであり、例えば、EXECUTE PROCE
DURE文により、アプリケーションが直接コールする
ことができる。実行可能プロシージャは、コールするプ
ログラムに値を返す場合も返さない場合もある。
The executable procedure is an executable procedure, for example, EXECUTE PROCE
The DURE statement allows the application to call directly. An executable procedure may or may not return a value to the calling program.

【0045】これらのプロシージャは、本質的には同様
の構文を有しており、例えばCREATE PROCE
DURE文を用いて定義される。ただし、両者は、プロ
シージャの作成方法及び予定される用途に相違がある。
選択プロシージャは、複数の行を返すことができ、コー
ルしたプログラムからは、テーブル又はビューのように
見える。実行可能プロシージャは、プログラムによって
コールされる単なるルーチンであり、値を返すことも返
さないこともある。
These procedures have essentially the same syntax, for example, CREATE PROCE
Defined using the DURE statement. However, they differ in the procedure creation method and the intended use.
The select procedure can return multiple rows and looks like a table or view to the calling program. An executable procedure is simply a routine called by a program, and may or may not return a value.

【0046】ストアードプロシージャを定義するCRE
ATE PROCEDURE文は、ヘッダと本文で構成
される。ヘッダは、ストアードプロシージャの名前、入
力パラメータのリスト、プロシージャがコールされたプ
ログラムから受け取るデータ型、及びコールしたプログ
ラムに値を返す場合の出力パラメータのリストとデータ
型等を含む情報を有している。プロシージャ本文は、ロ
ーカル変数のリストとデータ型、プロシージャ及びトリ
ガを記述した文のブロックからなっている。
CRE defining stored procedure
The ATE PROCEDURE statement is composed of a header and a body. The header has information including the name of the stored procedure, a list of input parameters, a data type to be received from the program in which the procedure is called, and a list and data type of output parameters when returning a value to the called program. . The procedure body consists of a list of local variables and a block of statements describing the data type, procedure and trigger.

【0047】この実施の形態で用いるストアードプロシ
ージャは、実行可能プロシージャであり、予め用意して
おく。
The stored procedure used in this embodiment is an executable procedure and is prepared in advance.

【0048】次に、図1のトランザクション処理システ
ムの一般的な動作について、図2に示すフローチャート
を参照して説明する。
Next, a general operation of the transaction processing system shown in FIG. 1 will be described with reference to a flowchart shown in FIG.

【0049】トランザクション処理が開始されると、オ
ペレータ等が、クライアント1の伝票入力部11によ
り、例えば伝票入力を行う(ステップS1)。この伝票
入力においては、クライアントの端末装置画面上に表示
された伝票の各項目に所要のデータを入力して、1つの
伝票を完成する。
When the transaction processing is started, an operator or the like performs, for example, a slip input using the slip input unit 11 of the client 1 (step S1). In this slip input, required data is input into each item of the slip displayed on the terminal screen of the client to complete one slip.

【0050】伝票入力部11は、必要に応じて、商品コ
ード等をキーにして、マスタテーブルファイル25等の
商品マスタテーブルに登録されている商品名、単価及び
在庫数等を問い合わせる電文を生成し、サーバ2に送信
する。サーバ2(サーバ2上のプロセス)は、電文を解
釈(翻訳)して、SQL文を組み立てて、マスタテーブ
ルファイル25をアクセスし、回答に相当するデータを
取得する。サーバ2は、取得したデータを含む電文を生
成し、クライアント1のデータ生成部12に送信する。
伝票入力部11は、受信した電文中のデータを適宜伝票
内に挿入する。伝票のデータの入力が完了し、オペレー
タ等が保存を指示すると、入力された伝票のデータが伝
票入力部11からデータ生成部12に与えられる。
The slip input unit 11 generates a message for inquiring about the product name, unit price, stock quantity, and the like registered in the product master table such as the master table file 25 by using the product code and the like as a key, if necessary. , To the server 2. The server 2 (process on the server 2) interprets (translates) the message, assembles the SQL statement, accesses the master table file 25, and acquires data corresponding to the answer. The server 2 generates a message including the acquired data and transmits the message to the data generation unit 12 of the client 1.
The slip input unit 11 appropriately inserts the data in the received message into the slip. When the input of the slip data is completed and the operator or the like instructs to save, the input slip data is provided from the slip input unit 11 to the data generation unit 12.

【0051】データ生成部12は、与えられた伝票のデ
ータをもとにして、入力されたトランザクション情報を
一括して送信するための電文を生成し、送信する(ステ
ップS2)。
The data generating unit 12 generates and transmits a message for transmitting the input transaction information in a lump based on the data of the given slip (step S2).

【0052】この電文は、ネットワークNWを介してサー
バ2に伝送され、サーバ2のトランザクション保存部2
1で受信される。
This message is transmitted to the server 2 via the network NW, and the transaction storage unit 2 of the server 2
1 is received.

【0053】トランザクション保存部21は、受信した
電文に基づき、伝票のトランザクションデータを伝票ト
ランザクションテーブルとして伝票トランザクションフ
ァイル22に保存する(ステップS3)。トランザクシ
ョン保存部21は、さらに、受信した電文から、他のテ
ーブルを更新するための予め定められた情報を抽出する
と共に定義情報23を参照する。トランザクション保存
部21は、DBMS24のストアードプロシージャテー
ブルに登録されている定義情報23を参照し、与えられ
たトランザクションデータに基づき、DBMS24のス
トアードプロシージャを用いた他のテーブルの更新を定
義するトリガをDBMS24に供給する。DBMS24
は、トリガに応答し、ストアードプロシージャをコール
する(ステップS4)。このストアードプロシージャの
コールに関してエラーが発生したか否かがチェックされ
る(ステップS5)。
The transaction storage unit 21 stores the transaction data of the slip in the slip transaction file 22 as a slip transaction table based on the received message (step S3). The transaction storage unit 21 further extracts predetermined information for updating another table from the received message and refers to the definition information 23. The transaction storage unit 21 refers to the definition information 23 registered in the stored procedure table of the DBMS 24, and based on the given transaction data, sends a trigger to the DBMS 24 for defining the update of another table using the stored procedure of the DBMS 24. Supply. DBMS24
Calls the stored procedure in response to the trigger (step S4). It is checked whether an error has occurred with respect to the call of the stored procedure (step S5).

【0054】エラーが発生していなければ、DBMS2
4は、コールしたストアードプロシージャを実行し、マ
スタテーブルファイル25内の該当するマスタテーブル
を更新させる(ステップS6)。この更新作業に際して
エラーが発生したか否かがチェックされる(ステップS
7)。エラーが発生していなければ処理を終了する。
If no error has occurred, the DBMS2
4 executes the called stored procedure to update the corresponding master table in the master table file 25 (step S6). It is checked whether an error has occurred during this updating work (step S).
7). If no error has occurred, the process ends.

【0055】ステップS5及びS7で、エラーが検出さ
れた場合には、全ての更新情報を無効として、トランザ
クション保存部21によるトランザクションデータの保
存情報もロールバックされて(ステップS8)、最新の
トランザクションの発生前の状態に復旧される。
If an error is detected in steps S5 and S7, all update information is invalidated, and the storage information of the transaction data by the transaction storage unit 21 is rolled back (step S8), and the latest transaction is updated. It is restored to the state before the occurrence.

【0056】このように、データベースの更新処理にD
BMSのストアードプロシージャを採用することによ
り、クライアント/サーバ間でのSQLの送受信は、伝
票入力時の例えば商品コードや在庫数の参照以外には、
ほとんど無くなる。このため、従来の更新処理を伴うオ
ンライントランザクション処理のレスポンスと比較する
と顕著にレスポンスが向上する。
As described above, D is used for updating the database.
By adopting the stored procedure of BMS, the transmission and reception of SQL between the client and the server can be performed in addition to the reference of, for example, the product code and the stock quantity when inputting the slip.
Almost gone. For this reason, the response is remarkably improved as compared with the response of the online transaction processing involving the conventional update processing.

【0057】また、更新系処理の定義については、更新
される側での一括定義としたため、トランザクションの
デザインとは独立した形で定義することができる。
Further, the definition of the update-related processing is collectively defined on the side to be updated, so that it can be defined independently of the transaction design.

【0058】従来の方式では、例えば修正のようなメイ
ンテナンスが発生した場合、各トランザクション側、す
なわち更新する側、の定義にも変更が加えられるが、図
1のシステムではマスタ側、すなわち更新される側を変
更するだけで済む。また、図1のシステムでは、入力さ
れた伝票トランザクション等の自テーブルの保存につい
ても、クライアント/サーバ間でSQLのやり取りを行
うのではなく、自票データを1つの電文として組立てて
伝送するので、クライアント/サーバ間でのデータ転送
負荷も軽減される。
In the conventional system, for example, when maintenance such as correction occurs, the definition of each transaction side, that is, the side to be updated is also changed, but in the system of FIG. 1, the master side, that is, the update is made. You only need to change the side. Also, in the system shown in FIG. 1, for storing the own table of the input slip transaction and the like, instead of exchanging the SQL between the client and the server, the own slip data is assembled and transmitted as one message. The data transfer load between the client / server is also reduced.

【0059】次に、図3、図4を参照して、図1及び図
2に示したオンライントランザクション処理システムの
応用例を説明する。
Next, an application example of the online transaction processing system shown in FIGS. 1 and 2 will be described with reference to FIGS.

【0060】図3は、この応用例の構成を模式的に示し
ている。図4はこの応用例のハードウェア構成、ソフト
ウェア構成及びデータ通信の論理モデルを模式的に示し
ている。
FIG. 3 schematically shows the configuration of this application example. FIG. 4 schematically shows a hardware configuration, a software configuration, and a logical model of data communication of this application example.

【0061】図3に示すオンライントランザクション処
理システムは、クライアント100及びサーバ200を
具備している。
The online transaction processing system shown in FIG. 3 includes a client 100 and a server 200.

【0062】クライアント100は、オペレータの操作
等により、トランザクション処理、例えばAA伝票の入
力及び保存処理を行う。
The client 100 performs a transaction process, for example, an AA slip input and storage process by an operation of an operator or the like.

【0063】サーバ200は、クライアント100にお
けるAA伝票の保存処理により、AA伝票トランザクシ
ョンテーブル201を保存する。サーバ200には、予
め他テーブル更新定義系ツールを利用して、サーバ20
0のDBMSのストアードプロシージャテーブルにトリ
ガが登録されている。サーバ200は、クライアント1
00のAA伝票の保存操作により、AA伝票トランザク
ションテーブル201の挿入(Insert)あるいは更新
(Update)と共にトリガ202を発生する。
The server 200 stores the AA slip transaction table 201 by the AA slip saving process in the client 100. The server 200 uses another table update definition tool in advance, and
The trigger is registered in the stored procedure table of the DBMS 0. The server 200 is the client 1
In response to the AA slip saving operation of 00, a trigger 202 is generated together with the insertion (Insert) or update (Update) of the AA slip transaction table 201.

【0064】トリガ202の記載に従い、所要のテーブ
ルの更新用ストアードプロシージャ、例えばストアード
プロシージャX203及びストアードプロシージャY2
04がコールされる。ストアードプロシージャX203
は、Xマスタテーブル205を更新又は挿入するストア
ードプロシージャであり、ストアードプロシージャY2
04は、Yマスタテーブル206を更新又は挿入するス
トアードプロシージャである。
According to the description of the trigger 202, a stored procedure for updating a required table, for example, a stored procedure X203 and a stored procedure Y2
04 is called. Stored procedure X203
Is a stored procedure for updating or inserting the X master table 205, and stored procedure Y2
A stored procedure 04 updates or inserts the Y master table 206.

【0065】ストアードプロシージャX203及びスト
アードプロシージャY204は、予め他テーブル更新定
義系ツールにより、DBMSのストアードプロシージャ
テーブルに登録されており、AA伝票トランザクション
テーブル201の挿入/保存時に生成されるトリガ20
2により、パラメータ等で指定される。
The stored procedure X203 and the stored procedure Y204 are registered in the stored procedure table of the DBMS in advance by another table update definition tool, and the trigger 20 generated when the AA slip transaction table 201 is inserted / saved.
2 designates a parameter or the like.

【0066】上述した更新処理をサーバ200側のDB
MSのストアードプロシージャを使用して実行する処理
について、さらに具体的に説明する。
The above-described update processing is performed by the DB on the server 200 side.
The processing executed using the stored procedure of the MS will be described more specifically.

【0067】(1)DBMS機能のトリガ及びストアー
ドプロシージャを使用する。DBMSの他テーブル更新
定義系ツールを使用して、次のような情報を定義/生成
して、DBMSのストアードプロシージャテ―ブルに、
トリガを登録する。この場合、定義は、更新される側で
の定義となり、以下の情報を定義する。
(1) Use the trigger and stored procedure of the DBMS function. Using the other table update definition tool of DBMS, the following information is defined / generated and stored in the DBMS stored procedure table.
Register a trigger. In this case, the definition is a definition on the side to be updated, and defines the following information.

【0068】(a) キー定義:自テーブルマスタキー/他
テーブルキー(複数の他テーブルトランザクションから
更新することが可能となる) 例えば、AA伝票が売上伝票で、データベースが商品マ
スタであり、AA伝票上の売上個数により商品マスタ上
の在庫数を更新するような場合には、例えば、商品コー
ドがキーとなる。
(A) Key definition: own table master key / other table key (can be updated from a plurality of other table transactions) For example, the AA slip is a sales slip, the database is a product master, and the AA slip is In the case where the number of stocks on the product master is updated based on the number of products sold, for example, the product code is the key.

【0069】(b) 更新式:通常の更新式 例えば、AA伝票が売上伝票で、データベースが売上マ
スタであり、AA伝票上の売上額により売上マスタ上の
総売上額を更新するような場合には、例えば、数式1に
示す更新式を設定する。
(B) Update formula: Normal update formula For example, when the AA slip is a sales slip, the database is a sales master, and the total sales on the sales master is updated by the sales on the AA slip. Sets, for example, an update expression shown in Expression 1.

【0070】[0070]

【数1】売上マスタ上の総売上額=売上マスタ上の総売
上額+AA伝票上の売上額
[Equation 1] Total sales on sales master = total sales on sales master + sales on AA slip

【0071】(c) 条件付き更新式:条件について、真/
偽を判定して更新式を振り分けるタイプの更新式 例えば、データベースが商品マスタであり、AA伝票上
の商品数により商品マスタ上の在庫数を更新するような
場合には、AA伝票が売上伝票ならば、数式2に示す更
新式を選択し、AA伝票が納品伝票ならば数式3に示す
更新式を選択するような条件付き更新式が設定される。
(C) Conditional updating formula: true /
Update formula of the type that determines false and distributes the update formula For example, if the database is the product master and the number of products on the product master is updated based on the number of products on the AA voucher, if the AA voucher is a sales voucher For example, a conditional update formula is set such that the update formula shown in Formula 2 is selected, and if the AA slip is a delivery slip, the update formula shown in Formula 3 is selected.

【0072】[0072]

【数3】商品マスタ上の在庫数=商品マスタ上の在庫数
−AA伝票上の商品数
[Equation 3] The number of stocks on the product master = the number of stocks on the product master-the number of products on the AA slip

【数4】商品マスタ上の在庫数=商品マスタ上の在庫数
+AA伝票上の商品数
[Equation 4] Number of stocks on product master = number of stocks on product master + number of products on AA slip

【0073】(d) クリア条件:更新アイテムのクリア周
期及び初期値の設定 例えば、月単位で売上データを集計する場合には、クリ
ア周期は1月、初期値は0等に定義される。
(D) Clear condition: setting of clear cycle and initial value of update item For example, when totaling sales data on a monthly basis, the clear cycle is defined as one month and the initial value is defined as zero.

【0074】(e) 履歴:履歴アイテムの指定 月単位で売上データを集計する場合に、過去のデータを
クリアするのではなく、保存する場合等に、保存すべき
アイテムが定義される。
(E) History: Designation of History Item When totaling sales data on a monthly basis, an item to be saved is defined, for example, when saving past data instead of clearing past data.

【0075】(f) チェック条件:エラー時/警告(ウォ
ーニング)時のリターン値の設定 何らかのエラーが発生した時の警告時のリターン値が定
義される。
(F) Check condition: setting of return value at the time of error / warning (warning) The return value at the time of warning when any error occurs is defined.

【0076】(g) 更新時期:オンライン更新かバッチ更
新かの指定 オンラインで更新するかバッチ処理で更新するかの別を
定義する。
(G) Update time: designation of online update or batch update Defines whether to update online or in batch processing.

【0077】(2)実行時の動作 (1) クライアント100で自テーブルの「保存」操作を
する。この操作により、サーバ200の自テーブルのト
ランザクションテーブル、例えば、AA伝票トランザク
ションテーブル201を挿入又は更新する。
(2) Operation at Execution (1) The client 100 performs a “save” operation on its own table. By this operation, the transaction table of the own table of the server 200, for example, the AA slip transaction table 201 is inserted or updated.

【0078】(2) AA伝票トランザクションテーブル2
01の挿入又は更新のタイミングで、他テーブルの更新
又は挿入のためのトリガ202が起動される。 (3) トリガ202には、ストアードプロシージャX及び
ストアードプロシージャY(203又は204)等のう
ちのどのストアードプロシージャをコールをするかが記
述されており、該当するストアードプロシージャをコー
ルする。
(2) AA slip transaction table 2
At the timing of inserting or updating 01, a trigger 202 for updating or inserting another table is activated. (3) The trigger 202 describes which stored procedure of the stored procedure X and the stored procedure Y (203 or 204) is to be called, and calls the corresponding stored procedure.

【0079】(4) ストアードプロシージャX又はY(2
03又は204)で指定されたテーブル、すなわちXマ
スタテーブル205又はYマスタテーブル206を更新
又は挿入する。 (5) 更新/挿入でエラーが発生した場合、更新/挿入は
無効となり、自テーブルに係る保存情報もロールバック
されて、保存前の状態に復旧される。
(4) Stored procedure X or Y (2
03 or 204), that is, the X master table 205 or the Y master table 206 is updated or inserted. (5) If an error occurs in the update / insert, the update / insert is invalidated, the save information related to the own table is rolled back, and the state before the save is restored.

【0080】次に、上述した処理に関連して、クライア
ント−サーバ間でのデータ送受信方式について、図4を
参照して、具体的に説明する。
Next, in connection with the above-described processing, a data transmission / reception system between the client and the server will be specifically described with reference to FIG.

【0081】図4に、図3のシステムのハードウェア構
成、ソフトウェア構成及びデータ通信の論理モデルを模
式的に示す。クライアント(クライアントマシン)10
0のソフトウェアは、オペレーティングシステム(以
下、「OS」と称する)111、データベースアクセス
クライアント112及びアプリケーション113を含
む。
FIG. 4 schematically shows a hardware configuration, a software configuration, and a logical model of data communication of the system shown in FIG. Client (client machine) 10
0 includes an operating system (hereinafter, referred to as “OS”) 111, a database access client 112, and an application 113.

【0082】データベースアクセスクライアント112
及びアプリケーション113は、クライアント100の
OS111上で動作するアプリケーションである。アプ
リケーション113は、例えば伝票入力等のような処理
を行うプログラムであり、データに関連する処理は、デ
ータベースアクセスクライアント112を介してサーバ
200のデータベースアクセスサーバ212との間で電
文を送受して行われる。
Database access client 112
The application 113 is an application that operates on the OS 111 of the client 100. The application 113 is, for example, a program for performing processing such as slip input, and processing relating to data is performed by transmitting / receiving a message to / from the database access server 212 of the server 200 via the database access client 112. .

【0083】サーバ(サーバマシン)200のソフトウ
ェアは、OS211、データベースアクセスサーバ21
2及びDBMS213を含む。
The software of the server (server machine) 200 is an OS 211, a database access server 21
2 and the DBMS 213.

【0084】データベースアクセスサーバ212及びD
BMS213は、サーバ200のOS211上で動作す
るアプリケーションである。DBMS213は、サーバ
マシン200に従属するデータベース221を制御管理
するいわゆるリレーショナルデータベースであり、デー
タベースの構成要素を、リレーショナルに管理する。デ
ータベースに関連する処理は、データベースアクセスサ
ーバ212を介してクライアント100のデータベース
アクセスクライアント112との間で行われる。すなわ
ち、クライアント100とサーバ200との間のデータ
ベースに係るデータの電文の送受信は、主として、デー
タベースアクセスクライアント112とデータベースア
クセスサーバ212との間で行われる。
Database access server 212 and D
The BMS 213 is an application that runs on the OS 211 of the server 200. The DBMS 213 is a so-called relational database that controls and manages the database 221 that depends on the server machine 200, and manages the components of the database in a relational manner. Processing related to the database is performed between the client 100 and the database access client 112 via the database access server 212. That is, transmission / reception of data related to the database between the client 100 and the server 200 is mainly performed between the database access client 112 and the database access server 212.

【0085】図4のシステムでも、従来のようなクライ
アント−サーバ間でのSQL文の送受信をやめ、1つの
トランザクション処理における送受信の回数を少なくす
るために、独自の電文DP1とDP2を作成して利用す
る。この電文は、トランザクション処理単位毎に一括し
たデータをクライアント−サーバ間で送受信できる形式
となっている。
The system shown in FIG. 4 also creates original messages DP1 and DP2 in order to stop transmission / reception of an SQL statement between a client and a server as in the related art and to reduce the number of transmission / reception in one transaction process. Use. This message has a format in which data collectively for each transaction processing unit can be transmitted and received between the client and the server.

【0086】次に、この実施の形態で使用される電文に
ついて説明する。電文(パケット)は、その使用用途に
あわせて図5に示すように、複数種類用意されている。
また、各電文のフォーマットもその使用用途に合わせて
複数種類用意されている。図6は、電文のフォーマット
の基本形態を示す。図示するように、パケットフィール
ドF1、F2…F8のうちのF4〜F8で始まる一連の
フィールドをブロックとすると、ブロックは複数個存在
する。また、それらのブロック中にはフィールドF6〜
F8がn(1又は複数)個連続で存在する。
Next, messages used in this embodiment will be described. As shown in FIG. 5, a plurality of types of messages (packets) are prepared according to the intended use.
Also, a plurality of types of formats of each message are prepared according to the intended use. FIG. 6 shows a basic form of a message format. As shown, when a series of fields starting from F4 to F8 among the packet fields F1, F2,. In addition, fields F6 to
There are n (one or more) F8s in a row.

【0087】パケットフィールドF1、F2、F3、F
4、F5、F6、F7及びF8には、図7に示すよう
に、それぞれ、「Pkt_id」、「Pkt_len」、「Prc_i
d」、「View_Name」、「Rec_num」、「Ope_id」、「Lev
el」及び「data」というフィールド名が付されている。
これら各パケットフィールドF1、F2、F3、F4、
F5、F6、F7及びF8には、それぞれ、パケットを
識別するID(identifier:識別子)であるパケットI
D、パケット全体の長さであるパケット長、プロセスを
識別するIDであるプロセスID、ビュー名、ビュー名
毎のレコード数、更新操作を識別するIDである更新操
作ID、挿入時のビュー名のレベル及びデータが格納さ
れる。
The packet fields F1, F2, F3, F
As shown in FIG. 7, “Pkt_id”, “Pkt_len”, and “Prc_i” are assigned to F4, F5, F6, F7, and F8, respectively.
d "," View_Name "," Rec_num "," Ope_id "," Lev
Field names "el" and "data" are given.
Each of these packet fields F1, F2, F3, F4,
Each of F5, F6, F7 and F8 has a packet I which is an ID (identifier) for identifying the packet.
D, packet length which is the length of the entire packet, process ID which is an ID for identifying a process, view name, number of records for each view name, update operation ID which is an ID for identifying an update operation, and view name at the time of insertion Level and data are stored.

【0088】パケットフィールドF1に格納されるパケ
ットIDは、図5に示すパケットの種類に対応してい
る。具体的に説明すると、図5に示す「UP」及び「D
OWN」はそれぞれクライアント100からサーバ20
0へのパケット及びサーバ200からクライアント10
0へのパケットを示す。データベース(DB)への接
続、接続の終了、レコードセットのセレクト、一覧表示
用レコードセットのセレクト、アイテム値のセレクト、
レコードの編集、レコードの編集取消、レコードの既存
チエック、レコードセットの更新、発番取得、発番取消
及びダミー等の種類がある。
The packet ID stored in the packet field F1 corresponds to the packet type shown in FIG. More specifically, “UP” and “D” shown in FIG.
"OWN" means that each of the clients 100 to the server 20
0 and the server 200 to the client 10
Indicates a packet to 0. Connection to database (DB), termination of connection, selection of record set, selection of record set for list display, selection of item value,
There are types such as record edit, record edit cancel, record existing check, record set update, issue number acquisition, issue number cancellation, and dummy.

【0089】「レコードセットの更新」(RUDUP:
クライアントからサーバへ)の電文は、図6に示すフォ
ーマットをそのまま使用する。 「レコードセットの更新」(RUDDOWN:サーバか
らクライアントへ)の電文は、図8に示すフォーマット
を有する。
"Update Record Set" (RUDUP:
The message from the client to the server) uses the format shown in FIG. 6 as it is. The message of “Update Record Set” (RUDDOWN: from server to client) has the format shown in FIG.

【0090】図9に、権限のチェック用の電文の構成を
示す。図9(A)はクライアントからサーバに送信され
るパケットの構成、図9(B)はサーバからクライアン
トに送信されるパケットの構成を示す。
FIG. 9 shows the structure of a message for checking authority. FIG. 9A shows a configuration of a packet transmitted from the client to the server, and FIG. 9B shows a configuration of a packet transmitted from the server to the client.

【0091】さらに、図10に、レコードセットのセレ
クト用の電文の構成を示す。図10(A)はクライアン
トからサーバに送信されるパケットの構成、図10
(B)はサーバからクライアントに送信されるパケット
の構成を示す。
FIG. 10 shows the structure of a message for selecting a record set. FIG. 10A shows the structure of a packet transmitted from the client to the server.
(B) shows the configuration of a packet transmitted from the server to the client.

【0092】図11に、アイテム値のセレクト用の電文
の構成を示す。図11(A)はクライアントからサーバ
に送信されるパケットの構成、図11(B)はサーバか
らクライアントに送信されるパケットの構成を示す。
FIG. 11 shows the structure of a message for selecting an item value. FIG. 11A shows a configuration of a packet transmitted from the client to the server, and FIG. 11B shows a configuration of a packet transmitted from the server to the client.

【0093】以上説明した動作を具体例に基づいて図1
2を参照して説明する。図12は処理及びデータの流れ
を示す。ここでは、ある商品コードを有する商品が販売
され、その売上を図13に示すフォーマットの売上伝票
に登録するものとする。このような場合、リレーショナ
ルデータベースでは、日付、伝票番号、顧客コード、合
計金額等を含むヘッダ部(1レコード)を記憶すると、
商品コード、数量、金額、在庫数等を含む明細部を記憶
する明細部テーブルに分けてデータを管理する。
The operation described above will be described with reference to FIG.
This will be described with reference to FIG. FIG. 12 shows the processing and the flow of data. Here, it is assumed that a product having a certain product code is sold, and the sales are registered in a sales slip in a format shown in FIG. In such a case, the relational database stores a header portion (one record) including a date, a slip number, a customer code, a total amount, and the like.
Data is managed in a detailed section table storing detailed sections including a product code, a quantity, an amount, a stock quantity, and the like.

【0094】(1) まず、操作者は、伝票入力部11を操
作して、売上伝票のフォームを外部記憶装置等から読み
出し、例えば、図13に示すように画面に表示する。次
に、伝票入力部11から、販売された商品の「商品コ―
ド」を入力する。入力された商品番号は表示されたフォ
ームに組み込まれる。さらに、伝票入力部11は、入力
された商品コードをキーにして、サーバの商品マスタフ
ァイルF2を検索して、該当レコードの「商品名」及び
「単価」を取り込むための電文を生成する。
(1) First, the operator operates the slip input unit 11 to read the form of the sales slip from an external storage device or the like, and displays it on the screen, for example, as shown in FIG. Next, from the slip input unit 11, the "product code" of the sold product is displayed.
". The entered product number is incorporated in the displayed form. Further, the slip input unit 11 searches the product master file F2 of the server using the input product code as a key, and generates a message for capturing the “product name” and “unit price” of the record.

【0095】この電文は、図11(A)に示すフォーマ
ットを有し、第1フィールドF1には、アイテム値のセ
レクトを示すID(ISLDN:8)が設定され、キーとして
の「商品コード」、アイテム値としての「商品名」及び
「単価」等がデータF8として設定される。伝票入力部
11は、生成した電文を図4に示す電文DP1として、
サーバ2に送信する。
This message has the format shown in FIG. 11A. In the first field F1, an ID (ISLDN: 8) indicating selection of an item value is set, and a "product code" as a key, “Product name” and “unit price” as item values are set as data F8. The slip input unit 11 converts the generated message into a message DP1 shown in FIG.
Send to server 2.

【0096】サーバ2はこの電文を受信し、サーバ上の
プロセス(データベースアクセスサーバ)は電文のパケ
ットIDからこの電文がアイテム値を取得するためのパ
ケットであることを判別し、データF8からキー及びア
イテムを判別し、対象とするデータを取得するためのS
QL文を生成する。DBMS24は、このSQL文を実
行し、クライアント1が要求したデータを取得する。サ
ーバ2は、取得したデータを含む電文を生成する。この
電文は図11(B)に示すフォーマットを有し、第1フ
ィールドF1には、アイテム値のセレクトを示すID
(ISLUP:9)が設定され、キーとしての「商品コード」、
アイテム値としての「商品名」及び「単価」等がデータ
F8として設定される。サーバ2は、生成した電文を図
4に示す電文DP2として、クライアント1に送信す
る。
The server 2 receives this message, and a process (database access server) on the server determines from the packet ID of the message that this message is a packet for acquiring an item value, and from the data F8, a key and S for determining an item and acquiring target data
Generate a QL sentence. The DBMS 24 executes the SQL statement and acquires the data requested by the client 1. The server 2 generates a message including the acquired data. This message has the format shown in FIG. 11B, and the first field F1 contains an ID indicating selection of an item value.
(ISLUP: 9) is set, and "Product code"
“Product name” and “unit price” as item values are set as data F8. The server 2 sends the generated message to the client 1 as a message DP2 shown in FIG.

【0097】クライアント1は、電文DP2を受信し、
電文のパケットIDからこの電文がアイテム値を取得す
るための電文の返信であることを判別し、データF8か
らキー及びアイテム値(「商品名」及び「単価」)を取
得し、伝票入力部11に提供する。伝票入力部11は、
受信した「商品名」及び「単価」をフォーム内に挿入す
る。
The client 1 receives the message DP2,
From the packet ID of the message, it is determined that the message is a reply of a message for acquiring an item value, and a key and an item value (“product name” and “unit price”) are acquired from the data F8, and the slip input unit 11 To provide. The slip input unit 11
Insert the received "product name" and "unit price" into the form.

【0098】(2) 次に、伝票入力部11から販売「数
量」が入力される。伝票入力部11は、単価×数量から
「金額」を求め、伝票内に挿入する。さらに、伝票入力
部11は、商品コードをキーにして、サーバの商品マス
タファイルF2を検索して、該当する商品の在庫数を取
り込む電文を作成し、サーバ2に送信する。サーバ2は
この電文からSQL文を生成する。サーバ2のDBMS
24は、このSQL文を実行し、サーバの商品マスタフ
ァイルF2を検索して、該当する商品コードに対応付け
られた「在庫数」を読み出し、電文に挿入して伝票入力
部11に送信する。伝票入力部11は、受信した「在庫
数」から販売数量を減算することにより、新たな在庫数
を求め、伝票のフォーム内に納める。
(2) Next, the sales “quantity” is input from the slip input unit 11. The slip input unit 11 obtains “amount” from unit price × quantity and inserts it into the slip. Further, the slip input unit 11 searches the product master file F2 of the server using the product code as a key, creates a message that captures the stock quantity of the corresponding product, and transmits the message to the server 2. The server 2 generates an SQL sentence from this message. DBMS of server 2
24 executes this SQL statement, searches the product master file F2 of the server, reads out the “stock quantity” associated with the corresponding product code, inserts it into a message, and sends it to the slip input unit 11. The slip input unit 11 obtains a new stock quantity by subtracting the sales quantity from the received "stock quantity", and stores the new stock quantity in the slip form.

【0099】(3) 画面上で売上伝票が完成すると、操作
者は、作成した売上伝票の保存を指示する。この指示に
応答して、データ生成部12は、売上伝票のトランザク
ションデータを含む電文であることを示すID(RUD
DN:17)をパケットIDに設定し、商品コード、商
品名、単価、数量、金額、在庫数等をデータF8に含む
電文を生成し、トランザクション保存部21に送信す
る。なお、日時、操作者ID等を電文に含めても良い。
前述のように、リレーショナルデータベースでは、ヘッ
ダ部テーブルと明細部テーブルに分けてデータを管理す
る。この場合、クライアント側で組み立てる電文は、図
7に示す「レコードセット更新操作系」であり、その具
体的なフォーマットは、例えば、図14に示すようにな
る。
(3) When the sales slip is completed on the screen, the operator instructs to save the generated sales slip. In response to this instruction, the data generation unit 12 transmits an ID (RUD) indicating that the message is a message including transaction data of a sales slip.
DN: 17) is set as the packet ID, a message including the product code, the product name, the unit price, the quantity, the amount, the stock number, and the like in the data F8 is generated, and transmitted to the transaction storage unit 21. The date, the operator ID, and the like may be included in the message.
As described above, in a relational database, data is managed in a header part table and a detail part table. In this case, the message assembled on the client side is the “record set update operation system” shown in FIG. 7, and the specific format is as shown in FIG. 14, for example.

【0100】サーバ2のトランザクション保存部21
は、この電文を受信し、電文のIDから売上伝票用の電
文であることを判別し、この電文から商品コード、商品
名、単価、数量、金額、在庫数等のデータを抽出し、伝
票トランザクション22に格納する。
Transaction storage unit 21 of server 2
Receives the message, determines from the message ID that the message is a sales slip message, extracts data such as a product code, a product name, a unit price, a quantity, an amount, and the number of stocks from the message, and executes the slip transaction. 22.

【0101】この格納に応答して、商品マスタテーブル
と売上マスタテーブルのストアードプロシージャが起動
(コール)される。商品マスタテーブルのストアードプ
ロシージャには、例えば、自票キーとして商品コード、
他票キーとして商品コード、更新式として「在庫数=在
庫数−売上個数」、更新時期としてオンライン更新が定
義されている。売上マスタテーブルのストアードプロシ
ージャには、例えば、自票キーとして商品コード、他票
キーとして商品コード、更新式として「総売上額=総売
上額+売上額」、「総売上個数=総売上個数+売上個
数」、更新時期としてオンライン更新等が定義されてい
る。
In response to this storage, the stored procedures of the product master table and the sales master table are started (called). In the stored procedure of the product master table, for example, the product code,
The product code is defined as the key of the other form, the “stock quantity = stock quantity−sales quantity” is defined as the update formula, and the online update is defined as the update time. In the stored procedure of the sales master table, for example, a product code as a self-vote key, a product code as another vote key, and an update formula of “total sales amount = total sales amount + sales amount”, “total sales unit = total sales unit + "Online renewal" is defined as the "sales quantity" and the renewal time.

【0102】商品マスタテーブルのストアードプロシー
ジャは、定義に従い、商品コードをキーにして商品マス
タテーブルを検索し、その商品に関する在庫データを読
み出し、ここから売上個数を減算し、新たな在庫を計算
し、これを商品マスタテーブルに格納する。
According to the definition, the stored procedure of the product master table searches the product master table using the product code as a key, reads out the stock data relating to the product, subtracts the sales quantity from this, calculates a new stock, This is stored in the product master table.

【0103】売上マスタテーブルのストアードプロシー
ジャは、定義に従い、売上マスタテーブルから「総売上
額」と「総売上個数」を読み出し、「総売上額+売上
額」と「総売り上げ個数+売上個数」を計算し、これを
新たな「総売上額」及び「総売り上げ個数」、として、
売上マスタテーブルに格納する。以上で更新動作は終了
する。
The stored procedure of the sales master table reads “total sales amount” and “total sales unit” from the sales master table according to the definition, and calculates “total sales amount + sales amount” and “total sales unit + sales unit”. And calculate them as new "total sales" and "total sales units"
Store in sales master table. Thus, the update operation ends.

【0104】例えば、商品マスタテーブルの在庫数を更
新する場合に、ストアードプロシージャが計算した在庫
数と電文に含まれていた在庫数が一致した場合のみ、商
品マスタテーブル上の在庫数を更新するように条件付更
新式を定義することも可能である。例えば、両在庫数が
一致しない場合には、サーバ2は、エラーであると判別
し、売上マスタテーブル206と商品マスタテーブル2
05のストアードプロシージャは、更新した内容を全て
もとに戻し、売上伝票トランザクションも元に戻す。さ
らに、警告(エラーメッセージ)がクライアント100
に送信され、表示される。
For example, when updating the stock quantity in the product master table, the stock quantity in the product master table is updated only when the stock quantity calculated by the stored procedure matches the stock quantity included in the message. It is also possible to define a conditional update expression in For example, if the two stock quantities do not match, the server 2 determines that an error has occurred, and the sales master table 206 and the product master table 2
The stored procedure 05 restores all the updated contents, and also restores the sales slip transaction. Further, a warning (error message) is issued to the client 100.
Sent to and displayed.

【0105】他テーブル更新系ツールを使用せずに更新
系処理を実現することも可能である。例えば、他テーブ
ル更新系の定義情報と同等の情報をもとにして、ストア
ードプロシージャ及びトリガに相当する操作をSQL文
等でコーディングする。この場合に必要となるストアー
ドプロシージャの数は、更新テーブル数に相当し、トリ
ガの数は、トランザクション数に相当する。そして、デ
ータベース上でクエリ(問い合わせ)を実行し、上述の
ようにして作成したストアードプロシージャ及びトリガ
を、データベースとテーブルに登録する。以上の作業で
よいが、ストアードプロシージャ及びトリガのコーディ
ンゲ量は相当な量である。すなわち、他テーブル更新系
ツールは、これらの処理を半自動的に、行うものであ
る。
It is also possible to realize update processing without using other table update tools. For example, based on information equivalent to the definition information of the other table update system, an operation corresponding to a stored procedure and a trigger is coded by an SQL statement or the like. The number of stored procedures required in this case corresponds to the number of update tables, and the number of triggers corresponds to the number of transactions. Then, a query is executed on the database, and the stored procedure and the trigger created as described above are registered in the database and the table. Although the above operation is sufficient, the amount of coding of the stored procedure and the trigger is considerable. That is, the other table updating tool performs these processes semi-automatically.

【0106】以上の説明では、トランザクションデータ
を電文に含めてクライアントからサーバに送信し、さら
に、サーバでストアードプロシージャを用いて他票(デ
ータベース)を更新している。しかし、他票更新を含ま
ず、トランザクションデータを電文に含めてクライアン
トからサーバに送信し、受信したトランザクションをサ
ーバに格納するだけでも良い。また、トランザクション
データを電文を用いずにクライアントからサーバに送信
し、受信したトランザクションをサーバに格納すると共
にストアードプロシージャを用いて他票を更新するよう
にしても良い。
In the above description, the transaction data is included in the message and transmitted from the client to the server, and the server updates another vote (database) using the stored procedure. However, the transaction data may be included in the message, transmitted from the client to the server, and the received transaction may be stored in the server without updating the other votes. Alternatively, the transaction data may be transmitted from the client to the server without using a telegram, the received transaction may be stored in the server, and the other votes may be updated using the stored procedure.

【0107】このようにすれば、ネットワーク上のトラ
ヒックを軽減することができ、クライアント−サーバ間
のレスポンスが向上する。また、データベースにアクセ
スする処理を、クライアント側とサーバ側とに分離した
ため、従来のシステムに比して、ポータビリティが高ま
りメンテナンス性が向上する。
In this way, traffic on the network can be reduced, and the response between the client and the server is improved. Further, since the process of accessing the database is separated into the client side and the server side, portability is improved and maintainability is improved as compared with the conventional system.

【0108】なお、この発明のクライアントサーバシス
テムは、専用のシステムによらず、通常のコンピュータ
システムを用いて実現可能である。例えば、ネットワー
クを介して相互に接続されたコンピュータに上述の動作
を実行するためのプログラム(OSの全部又は一部を含
んでもよい)を格納した媒体(フロッピーディスク、C
D−ROM等)から該プログラムをインストールするこ
とにより、上述の処理を実行する各端末(クライアント
又はサーバ)を構成することができる。
The client server system of the present invention can be realized by using a general computer system without using a dedicated system. For example, a medium (floppy disk, C, etc.) storing a program (which may include all or part of the OS) for executing the above-described operation in a computer mutually connected via a network.
By installing the program from a D-ROM or the like, each terminal (client or server) that executes the above processing can be configured.

【0109】また、コンピュータにプログラムを供給す
るための媒体は、通信媒体(通信回線、通信ネットワー
ク、通信システムのように、一時的且つ流動的にプログ
ラムを保持する媒体)でも良い。例えば、通信ネットワ
ークの掲示板(BBS)に該プログラムを掲示し、これ
をネットワークを介して配信してもよい。そして、この
プログラムを起動し、OSの制御下に、他のアプリケー
ションプログラムと同様に実行することにより、上述の
処理を実行することができる。
The medium for supplying the program to the computer may be a communication medium (a medium that temporarily and fluidly stores the program, such as a communication line, a communication network, or a communication system). For example, the program may be posted on a bulletin board (BBS) of a communication network and distributed via the network. Then, by starting this program and executing it in the same manner as other application programs under the control of the OS, the above-described processing can be executed.

【0110】[0110]

【発明の効果】以上説明したように、この発明に係るオ
ンライントランザクション処理方法及びシステムは、ク
ライアントから新たなトランザクション情報をサーバに
送信し、サーバでは、受信したトランザクション情報に
基づくトランザクションデータを保存するとともに、デ
ータベースの更新を定義するための処理定義情報を生成
して、サーバのDBMSに登録し、該DBMSが前記処
理定義情報に従ってストアードプロシージャを実行し、
データベースを更新する。
As described above, in the online transaction processing method and system according to the present invention, new transaction information is transmitted from a client to a server, and the server stores transaction data based on the received transaction information. Generating process definition information for defining the update of the database and registering it in the DBMS of the server, and the DBMS executes a stored procedure according to the process definition information;
Update the database.

【0111】このシステムでは、トランザクションに係
るデータを一括してサーバに送信し、サーバにおいてD
BMSのストアードプロシージャを用いて該トランザク
ションに関連するデータベースを処理するようにしたの
で、クライアント−サーバ間でのSQLのやり取りがほ
とんど無くなり、従来の更新処理を伴うオンライントラ
ンザクション処理と比較して、顕著にレスポンスが向上
する。
In this system, data relating to a transaction is transmitted to the server in a lump,
Since the database related to the transaction is processed using the stored procedure of the BMS, there is almost no exchange of SQL between the client and the server, which is remarkable as compared with the online transaction processing involving the conventional update processing. Response improves.

【0112】すなわち、この発明では、トランザクショ
ン処理時のクライアント−サーバ間のネットワークにお
ける送受信情報量を低減して、トラヒックを軽減し、ト
ランザクションレスポンスを向上し得るオンライントラ
ンザクション処理方法及びシステムを提供することがで
きる。
That is, the present invention provides an online transaction processing method and system capable of reducing the amount of information transmitted and received in a network between a client and a server during transaction processing, thereby reducing traffic and improving transaction response. it can.

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

【図1】この発明の第1の実施の形態に係るオンライン
トランザクション処理システムの構成を模式的に示すブ
ロック図である。
FIG. 1 is a block diagram schematically showing a configuration of an online transaction processing system according to a first embodiment of the present invention.

【図2】図1のオンライントランザクション処理システ
ムの動作を説明するためのフローチャートである。
FIG. 2 is a flowchart illustrating an operation of the online transaction processing system of FIG. 1;

【図3】この発明の第2の実施の形態に係るオンライン
トランザクション処理システムの構成を模式的に示すシ
ステムブロック図である。
FIG. 3 is a system block diagram schematically showing a configuration of an online transaction processing system according to a second embodiment of the present invention.

【図4】図3のオンライントランザクション処理システ
ムにおける作用を説明するためのハードウェア構成、ソ
フトウェア構成及びデータ通信の論理モデルを示す模式
図である。
FIG. 4 is a schematic diagram showing a hardware configuration, a software configuration, and a logical model of data communication for describing an operation in the online transaction processing system of FIG. 3;

【図5】電文(パケット)の種類とパケットIDを示す
図である。
FIG. 5 is a diagram showing types of messages (packets) and packet IDs.

【図6】電文の基本フォーマットを示す図である。FIG. 6 is a diagram showing a basic format of a message.

【図7】図6に示す電文のフィールドの内容を示す図で
ある。
FIG. 7 is a diagram showing the contents of fields of the message shown in FIG. 6;

【図8】「レコードセットの更新」(RUDDOWN:
サーバからクライアントへ)の電文のフォーマットを示
す図である。
FIG. 8: “Update record set” (RUDDOWN:
FIG. 4 is a diagram showing a format of a message from a server to a client).

【図9】権限のチェック用の電文の構成を示し、(A)
はクライアントからサーバに送信される電文の構成、
(B)はサーバからクライアントに送信される電文の構
成を示す。
FIG. 9 shows the structure of a message for checking authority, and FIG.
Is the composition of the message sent from the client to the server,
(B) shows the structure of a message transmitted from the server to the client.

【図10】レコードセットのセレクト用の電文の構成を
示し、(A)はクライアントからサーバに送信される電
文の構成、(B)はサーバからクライアントに送信され
る電文の構成を示す。
10A and 10B show a configuration of a message for selecting a record set, wherein FIG. 10A shows a configuration of a message transmitted from the client to the server, and FIG. 10B shows a configuration of a message transmitted from the server to the client.

【図11】アイテム値のセレクト用の電文の構成を示
し、(A)はクライアントからサーバに送信される電文
の構成、(B)はサーバからクライアントに送信される
電文の構成を示す。
11A and 11B show a configuration of a message for selecting an item value, wherein FIG. 11A shows a configuration of a message transmitted from the client to the server, and FIG. 11B shows a configuration of a message transmitted from the server to the client.

【図12】図3のオンライントランザクション処理シス
テムの具体的な動作を説明するための図である。
FIG. 12 is a diagram illustrating a specific operation of the online transaction processing system of FIG. 3;

【図13】売り上げ伝票入力用の画面の一例を示す図で
ある。
FIG. 13 is a diagram showing an example of a sales slip input screen.

【図14】図13に示す画面を用いて入力されたトラン
ザクションを送信するための電文のフォーマットを示す
図である。
FIG. 14 is a diagram showing a message format for transmitting a transaction input using the screen shown in FIG. 13;

【図15】従来のオンライントランザクション処理シス
テムを説明するための模式的ブロック図である。
FIG. 15 is a schematic block diagram for explaining a conventional online transaction processing system.

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

1 クライアントシステム(クライアント) 2 サーバシステム(サーバ) 11 伝票入力部 12 データ生成部 21 トランザクション保存部 22 伝票トランザクションファイル 23 定義情報 24 DBMS(データベース管理システム) 25 マスタテーブルファイル 100 クライアントマシン(クライアント) 111 OS(オペレーティングシステム) 112 データベースアクセスクライアント 113 アプリケーション 200 サーバマシン(サーバ) 201 AA伝票トランザクションテーブル 202 トリガ 203,204 ストアードプロシージャ 205,206 マスタテーブルファイル 212 データベースアクセスサーバ 213 DBMS(データベース管理システ
ム) 221 データベース
Reference Signs List 1 client system (client) 2 server system (server) 11 slip input section 12 data generation section 21 transaction storage section 22 slip transaction file 23 definition information 24 DBMS (database management system) 25 master table file 100 client machine (client) 111 OS (Operating system) 112 Database access client 113 Application 200 Server machine (server) 201 AA slip transaction table 202 Trigger 203, 204 Stored procedure 205, 206 Master table file 212 Database access server 213 DBMS (database management system) 221 Database

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 FI G06F 19/00 G06F 15/22 N ──────────────────────────────────────────────────続 き Continued on the front page (51) Int.Cl. 6 Identification code FI G06F 19/00 G06F 15/22 N

Claims (19)

【特許請求の範囲】[Claims] 【請求項1】クライアントと該クライアントに接続され
たサーバとより構成されるクライアントサーバシステム
において、 前記クライアントは、新たなトランザクション情報を入
力する入力手段と、前記入力手段により入力された新た
なトランザクション情報を前記サーバに送信するデータ
送信手段と、を備え、 前記サーバは、データベース管理システムを備えるデー
タベースと、前記クライアントからトランザクション情
報を受信する受信手段と、前記受信手段により受信され
たトランザクション情報に基づくトランザクションデー
タを保存する保存手段と、 前記保存に応答し、予め定められた処理定義情報に従っ
て前記データベース管理システムのストアードプロシー
ジャを実行し、前記データベースを更新するデータベー
ス更新手段と、を具備することを特徴とするオンライン
トランザクション処理システム。
1. A client-server system comprising a client and a server connected to the client, wherein the client has input means for inputting new transaction information, and new transaction information input by the input means. Data transmitting means for transmitting to the server, the server comprising: a database having a database management system; receiving means for receiving transaction information from the client; and a transaction based on the transaction information received by the receiving means. Storage means for storing data; database update means for executing a stored procedure of the database management system in accordance with predetermined processing definition information in response to the storage and updating the database Online transaction processing system, characterized by comprising a.
【請求項2】前記クライアントの前記データ送信手段
は、前記トランザクション情報を含む電文を生成し、前
記サーバに送信する手段を備え、 前記サーバの前記受信手段は、前記電文を受信し、該電
文に含まれているトランザクション情報を抽出する抽出
手段を含み、 前記保存手段は、前記抽出手段により抽出されたトラン
ザクション情報を保存する、ことを特徴とする請求項1
に記載のオンライントランザクション処理システム。
2. The data transmission unit of the client includes a unit that generates a message including the transaction information and transmits the message to the server. The reception unit of the server receives the message and transmits the message to the server. 2. The apparatus according to claim 1, further comprising an extraction unit configured to extract the transaction information included therein, wherein the storage unit stores the transaction information extracted by the extraction unit.
An online transaction processing system according to claim 1.
【請求項3】前記処理定義情報は、前記トランザクショ
ンの保存に応答して、前記データベース管理システムの
ストアードプロシージャにより前記データベースを更新
するための処理の内容を定義する情報である、ことを特
徴とする請求項1又は2に記載のオンライントランザク
ション処理システム。
3. The process definition information is information that defines the content of a process for updating the database by a stored procedure of the database management system in response to storage of the transaction. The online transaction processing system according to claim 1.
【請求項4】前記処理定義情報は、 トランザクションの対象となるテーブル及びそれに関連
する他のテーブルのキー定義情報と、データ更新のため
の更新式を記述する更新式情報との少なくとも一方を含
む、ことを特徴とする請求項3に記載のオンライントラ
ンザクション処理システム。
4. The process definition information includes at least one of key definition information of a table to be subjected to a transaction and other tables related thereto, and update formula information describing an update formula for updating data. 4. The online transaction processing system according to claim 3, wherein:
【請求項5】前記処理定義情報は、 条件を判定して前記更新式を振り分けるための条件付き
更新式情報と、 更新アイテムのクリア周期及び初期値の設定のためのク
リア条件情報と、 履歴アイテムを指定するための履歴情報と、 エラー及び警告の発生時に返すリターン値を設定するチ
ェック条件情報と、 オンライン更新かバッチ更新かを指定する更新時期情報
と、のうちの少なくとも1つを含むことを特徴とする請
求項3に記載のオンライントランザクション処理システ
ム。
5. The process definition information includes: conditional update formula information for determining a condition and distributing the update formula; clear condition information for setting a clear cycle and an initial value of an update item; And at least one of the following: check information that sets a return value to be returned when an error or warning occurs, and update timing information that specifies whether to update online or batch. 4. The online transaction processing system according to claim 3, wherein:
【請求項6】前記サーバは、前記処理定義情報を生成し
て、前記データベース管理システムに予め登録する定義
生成手段を具備することを特徴とする請求項1乃至5の
いずれか1項に記載のオンライントランザクション処理
システム。
6. The server according to claim 1, wherein the server includes a definition generation unit that generates the process definition information and registers the process definition information in the database management system in advance. Online transaction processing system.
【請求項7】トランザクションに基づくデータ処理の過
程でエラーが発生した際に、当該トランザクションに係
るデータ処理を無効として、該トランザクションに係る
サーバにおける更新データを全て元に戻すとともに、ク
ライアントにエラー情報を送信するサーバエラー処理手
段と、 前記サーバからエラー情報を受信すると、当該トランザ
クションに係るデータ処理を無効として、該トランザク
ションに係るクライアントにおける更新データを全て元
に戻すクライアントエラー処理手段と、をさらに含むこ
とを特徴とする請求項1乃至6のうちのいずれか1項に
記載のオンライントランザクション処理システム。
7. When an error occurs in the course of data processing based on a transaction, data processing related to the transaction is invalidated, all update data in the server related to the transaction is restored, and error information is transmitted to the client. Further comprising: a server error processing unit for transmitting; and a client error processing unit for invalidating data processing relating to the transaction upon receiving error information from the server, and restoring all update data in a client relating to the transaction. The online transaction processing system according to any one of claims 1 to 6, wherein:
【請求項8】トランザクションが発生する毎に、当該ト
ランザクションに係るデータをサーバに保存するため、
該トランザクションに係るデータを含む電文を生成し
て、前記サーバに送信する送信データ生成手段を含むク
ライアントシステムと、 前記電文に基づいてデータ保存を含む所定処理を実行す
るデータ処理手段を含むサーバシステムと、を具備する
ことを特徴とするオンライントランザクション処理シス
テム。
8. Every time a transaction occurs, data relating to the transaction is stored in a server.
A client system that includes a transmission data generation unit that generates a message including data related to the transaction and transmits the message to the server; and a server system that includes a data processing unit that performs a predetermined process including data storage based on the message. An online transaction processing system comprising:
【請求項9】前記サーバシステムは、データベース管理
システムを備えるデータベースと、前記電文を受信する
受信手段と、前記受信手段により受信されたトランザク
ション情報に基づくトランザクションデータを保存する
保存手段と、前記保存手段に応働して、更新内容を定義
するための処理定義情報に従ってストアードプロシージ
ャを実行し、前記データベースを更新するデータベース
更新手段と、を具備することを特徴とする請求項8に記
載のオンライントランザクション処理システム。
9. The server system, comprising: a database having a database management system; receiving means for receiving the message; storing means for storing transaction data based on the transaction information received by the receiving means; 9. The online transaction processing according to claim 8, further comprising: a database update unit that executes a stored procedure in accordance with the process definition information for defining update content and updates the database. system.
【請求項10】データベース管理システムを備えるデー
タベースと、外部よりトランザクション情報を受信する
受信手段と、前記受信手段により受信されたトランザク
ション情報に基づくトランザクションデータを保存する
保存手段と、前記保存手段に応働して、前記データベー
スの更新内容を定義するために予め定められている処理
定義情報に従ってストアードプロシージャを実行し、前
記データベースを更新するデータベース更新手段と、を
具備することを特徴とするオンライントランザクション
処理システム。
10. A database having a database management system, receiving means for receiving transaction information from the outside, storage means for storing transaction data based on the transaction information received by said receiving means, and responsive to said storage means. And a database updating means for executing a stored procedure in accordance with predetermined process definition information for defining the update content of the database and updating the database. .
【請求項11】クライアントにおいて、新たなトランザ
クション情報をトランザクション毎にサーバに送信する
送信ステップと、 サーバにおいて、前記クライアントから受信したトラン
ザクション情報に基づくトランザクションデータを保存
する保存ステップと、前記保存ステップに連動して、予
め定められている処理定義情報に従ってストアードプロ
シージャを実行し、データベースを更新する更新ステッ
プと、を有することを特徴とするオンライントランザク
ション処理方法。
11. A client, comprising: a client for transmitting new transaction information to a server for each transaction; a server for storing transaction data based on the transaction information received from the client; An update step of executing a stored procedure according to predetermined process definition information and updating a database.
【請求項12】前記処理定義情報は、トランザクション
の対象となるテーブル及びそれに関連する他のテーブル
のキー定義情報と、データ更新のための更新式を記述す
る更新式情報と、条件を判定して前記更新式を振り分け
るための条件付き更新式情報と、更新アイテムのクリア
周期及び初期値の設定のためのクリア条件情報と、履歴
アイテムを指定するための履歴情報と、エラー及び警告
の発生時に返すリターン値を設定するチェック条件情報
と、オンライン更新かバッチ更新かを指定する更新時期
情報とのうちの少なくとも1つを含むことを特徴とする
請求項11に記載のオンライントランザクション処理方
法。
12. The processing definition information includes determining key definition information of a table to be subjected to a transaction and other tables related thereto, update expression information describing an update expression for updating data, and conditions. Conditional update formula information for distributing the update formula, clear condition information for setting the update item clear cycle and initial value, history information for specifying a history item, and returning when an error or warning occurs 12. The online transaction processing method according to claim 11, further comprising at least one of check condition information for setting a return value and update time information for specifying online update or batch update.
【請求項13】前記処理定義情報を生成して、前記サー
バのデータベース管理システムに予め登録するステップ
を具備することを特徴とする請求項11又は12に記載
のオンライントランザクション処理方法。
13. The online transaction processing method according to claim 11, further comprising the step of generating the processing definition information and registering the processing definition information in a database management system of the server in advance.
【請求項14】トランザクションに基づくデータ処理の
過程でエラーが発生した際に、データ更新を無効とし
て、当該トランザクションに係るデータを全て元に戻す
エラー処理ステップを、さらに含むことを特徴とする請
求項11、12又は13に記載のオンライントランザク
ション処理方法。
14. The method according to claim 1, further comprising, when an error occurs in the course of data processing based on the transaction, invalidating the data update and restoring all data relating to the transaction. 14. The online transaction processing method according to 11, 12, or 13.
【請求項15】クライアントにおいて、トランザクショ
ンに係るデータをサーバに保存するため、トランザクシ
ョンが発生する毎に、該トランザクションに係る全ての
データを含む電文を生成して、前記サーバに送信し、 サーバにおいて、前記電文に基づいてデータ保存を含む
所定処理を実行することを特徴とするオンライントラン
ザクション処理方法。
15. In a client, for storing data relating to a transaction in a server, each time a transaction occurs, a message including all data relating to the transaction is generated and transmitted to the server. An online transaction processing method, wherein a predetermined process including data storage is executed based on the message.
【請求項16】前記サーバにおいて、前記電文を受信
し、受信された電文に含まれているトランザクション情
報に基づくトランザクションデータを保存し、この保存
をトリガとして、データベースの更新内容を定義する処
理定義情報に従ってストアードプロシージャを実行し、
データベースを更新する、ことを特徴とする請求項15
に記載のオンライントランザクション処理方法。
16. The server receives the message, saves transaction data based on the transaction information included in the received message, and uses the save as a trigger to define processing update information of a database. Execute the stored procedure according to
16. The database according to claim 15, wherein the database is updated.
Online transaction processing method according to the above.
【請求項17】トランザクション情報を含む電文を受信
し、受信した電文に含まれているトランザクション情報
に基づくトランザクションデータを保存し、この保存を
トリガとして、データベース管理システムのストアード
プロシージャを起動し、予め定められた更新処理定義情
報に従ってストアードプロシージャを実行し、データベ
ースを更新する、ことを特徴とするオンライントランザ
クション処理方法。
17. Receiving a telegram including transaction information, storing transaction data based on the transaction information included in the received telegram, triggering a stored procedure of the database management system by using the storage as a trigger, and predetermining the stored procedure. Executing a stored procedure in accordance with the update process definition information and updating a database.
【請求項18】コンピュータを、 クライアントから受信したトランザクション情報に基づ
くトランザクションデータを保存する保存ステップと、
前記保存ステップに連動して、予め定められている処理
定義情報に従ってストアードプロシージャを実行し、デ
ータベースを更新する更新ステップと、を実行するサー
バとを備えるクライアントサーバシステムのサーバとし
て機能させるプログラムを記録した媒体。
18. A storage step for storing transaction data based on transaction information received from a client;
In conjunction with the saving step, a stored procedure is executed according to predetermined process definition information, and an update step of updating a database is recorded. Medium.
【請求項19】コンピュータを、 トランザクションに係るデータをサーバに保存するた
め、トランザクションが発生する毎に、該トランザクシ
ョンに係る全てのデータを含む電文を生成して、サーバ
に送信するクライアントと、前記電文に基づいてデータ
保存を含む所定処理を実行するサーバとより構成される
クライアントサーバシステムのクライアントとして機能
させるプログラムが記録された媒体。
19. A client for storing, in a server, data relating to a transaction, each time a transaction occurs, a computer that generates a message including all data relating to the transaction and transmits the message to a server; A medium on which is recorded a program that functions as a client of a client-server system that is configured by a server that executes a predetermined process including data storage based on a server.
JP9091081A 1997-04-09 1997-04-09 On-line transaction processing method and system therefor and medium Pending JPH10283319A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9091081A JPH10283319A (en) 1997-04-09 1997-04-09 On-line transaction processing method and system therefor and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9091081A JPH10283319A (en) 1997-04-09 1997-04-09 On-line transaction processing method and system therefor and medium

Publications (1)

Publication Number Publication Date
JPH10283319A true JPH10283319A (en) 1998-10-23

Family

ID=14016575

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9091081A Pending JPH10283319A (en) 1997-04-09 1997-04-09 On-line transaction processing method and system therefor and medium

Country Status (1)

Country Link
JP (1) JPH10283319A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1327367C (en) * 2003-03-24 2007-07-18 富士施乐株式会社 Combined processor and combined processing method
US7260747B2 (en) 2003-08-13 2007-08-21 Fuji Xerox Co., Ltd. Cooperative processing system, cooperative processing apparatus, and cooperative processing method
CN1333351C (en) * 2003-03-20 2007-08-22 富士施乐株式会社 United indication information forming device and united indication information forming method
JP2008059045A (en) * 2006-08-29 2008-03-13 Aisin Aw Co Ltd Data management system and method for updating data
KR101240332B1 (en) 2011-06-22 2013-03-11 주식회사 맥스 System for socket server of mobile terminal and method for processing socket server of mobile terminal
CN112669158A (en) * 2021-01-06 2021-04-16 深圳市金证科技股份有限公司 Transaction system and control method and device of transaction service thereof

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1333351C (en) * 2003-03-20 2007-08-22 富士施乐株式会社 United indication information forming device and united indication information forming method
CN1327367C (en) * 2003-03-24 2007-07-18 富士施乐株式会社 Combined processor and combined processing method
US7260747B2 (en) 2003-08-13 2007-08-21 Fuji Xerox Co., Ltd. Cooperative processing system, cooperative processing apparatus, and cooperative processing method
JP2008059045A (en) * 2006-08-29 2008-03-13 Aisin Aw Co Ltd Data management system and method for updating data
US8788198B2 (en) 2006-08-29 2014-07-22 Aisin Aw Co., Ltd. Data management system and method for updating data
KR101240332B1 (en) 2011-06-22 2013-03-11 주식회사 맥스 System for socket server of mobile terminal and method for processing socket server of mobile terminal
CN112669158A (en) * 2021-01-06 2021-04-16 深圳市金证科技股份有限公司 Transaction system and control method and device of transaction service thereof
CN112669158B (en) * 2021-01-06 2023-12-15 深圳市金证科技股份有限公司 Transaction system and control method and device of transaction service thereof

Similar Documents

Publication Publication Date Title
JPH04505977A (en) Object-oriented distributed processing system
CN111611207B (en) State data processing method and device and computer equipment
CN109710631A (en) Auxiliary generates method, apparatus, equipment and the computer storage medium of SQL code
CN111125496A (en) Price query method, device and system
CN115220773B (en) System and method for low-code, visual generation of background data management code
CN110569185A (en) front-end point burying method and device
CN109783137A (en) Inspection method, the device and system of fine arts resource
CN113076729A (en) Method and system for importing report, readable storage medium and electronic equipment
CN116088892A (en) Distributed service system configuration changing method, device, computer equipment and medium
JPH10283319A (en) On-line transaction processing method and system therefor and medium
CN111090803A (en) Data processing method and device, electronic equipment and storage medium
CN113420026A (en) Database table structure changing method, device, equipment and storage medium
CN112597123A (en) Data multi-version dynamic switching method and device
CN112596481B (en) MES management system and method supporting plug-in interactive nodes
US20040015521A1 (en) Non-intrusive, automated upgrading of electronic records
CN111459737B (en) Problem positioning method, device, computer equipment and storage medium
CN111680974B (en) Method and device for positioning problems of electronic underwriting process
CN114371870A (en) Code scanning and submitting method, code scanning server, client and server
CN113010208A (en) Version information generation method, version information generation device, version information generation equipment and storage medium
CN113239064A (en) Database updating method and device, electronic equipment and storage medium
CN114912880A (en) False duty processing method and device, computer equipment and storage medium
CN111242595A (en) Information exchange method and device between ERP platform and payment platform
CN106209453B (en) A kind of updating device, method and the server of plant engineering information
CN110837454A (en) Interface monitoring processing method and server
CN114661569B (en) Dynamic buried point acquisition method for user behavior data