JP3048181B2 - Update processing method for relational database with history information - Google Patents

Update processing method for relational database with history information

Info

Publication number
JP3048181B2
JP3048181B2 JP3038761A JP3876191A JP3048181B2 JP 3048181 B2 JP3048181 B2 JP 3048181B2 JP 3038761 A JP3038761 A JP 3038761A JP 3876191 A JP3876191 A JP 3876191A JP 3048181 B2 JP3048181 B2 JP 3048181B2
Authority
JP
Japan
Prior art keywords
update
history information
database
application
transaction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP3038761A
Other languages
Japanese (ja)
Other versions
JPH04277867A (en
Inventor
満夫 長岡
義一 岸本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP3038761A priority Critical patent/JP3048181B2/en
Publication of JPH04277867A publication Critical patent/JPH04277867A/en
Application granted granted Critical
Publication of JP3048181B2 publication Critical patent/JP3048181B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、履歴情報を伴うリレー
ショナルデータベースの更新処理方式に関し、更に詳し
くは、更新対象が月別、組織別等によって変動する場合
のリレーショナルデータベース(以下、RDBと略称す
る)の更新処理方式においてアプリケーション(以下、
APと略称する)と分離してデータ中心型のトランザク
ション処理を実現するためのメカニズムと当該トランザ
クション記述が予めコンパイルされて静的な動作を行う
ことによってトランザクションとしての性能を確保する
メカニズムを取り入れたRDBの更新処理方式に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method of updating a relational database with history information, and more particularly, to a relational database (hereinafter abbreviated as RDB) in a case where an object to be updated varies by month, organization, or the like. Application in the update processing method of
RDB incorporating a mechanism for realizing data-centric transaction processing separately from the AP and a mechanism for securing the performance as a transaction by compiling the transaction description in advance and performing a static operation. Update processing method.

【0002】[0002]

【従来の技術】従来のAP設計は、業務対応にAPを開
発し、かつそのAP間で共通的な部分をサブルーチン化
する程度に止まった部品化指向の生産性向上対策が試み
られているが、RDBに対するアクセスに関しては、テ
ーブル名をAPに記述するため、共通化の対象となって
いなかった。
2. Description of the Related Art In the conventional AP design, an attempt has been made to improve the productivity of a component-oriented system by developing an AP corresponding to a business and converting a common part between the APs into a subroutine. For access to RDB,
Table name is described in the AP,
did not exist.

【0003】しかし、RDBによる情報システム化の構
築が進展するにつれて、重複データの存在等いわゆるR
DBの構成に伴って顕在化する性能条件への影響、更新
処理の整合性、一貫性等の問題が生産性向上に大きく影
響する様になってきた。
However, as the construction of information systems using RDBs has progressed, so-called R
Problems such as the influence on the performance conditions that become apparent with the configuration of the DB, the consistency of the update processing, and the consistency have been greatly affecting the improvement in productivity.

【0004】年月、組織などを単位として同一カラム構
成の別テーブルに分割されているDB構造において、ア
クセス対象のテーブルを意識するAPを開発することは
生産性の低下をまねく。このために、更新対象が組織
別、月別等のような可変となるRDBの更新に伴っては
特に生産性向上が望まれている。
[0004] The same column structure is used in units of years, organizations, etc.
In a DB structure divided into separate tables,
Developing an AP that is aware of the table to be accessed
It leads to a drop in productivity. For this reason, productivity improvement is particularly desired with the update of the RDB in which the update target is variable such as by organization or by month.

【0005】従来の方式によるRDB更新処理方式につ
いて図8を用いて説明する。
A conventional RDB update processing method will be described with reference to FIG.

【0006】図8において、ホスト言語組み込み型デー
タベースアクセス言語(以下、SQLと略称する)記述
アプリケーション群11,12はリレーショナルデータ
ベース管理システム(以下、DBMSと略称する)15
を介してアクセスするテーブル群16に各アプリケーシ
ョン群からの検索、更新イベントを行う。ここでは、ア
プリケーション内に直接データベースアクセス言語(S
QL)を記述するインタフェースを取っており、トラン
ザクション的にも事前にコンパイルされて実行時性能を
向上させている。
In FIG. 8, a host language embedded database access language (hereinafter abbreviated as SQL) description application group 11 and 12 is a relational database management system (hereinafter abbreviated as DBMS) 15.
A search and update event from each application group is performed on the table group 16 accessed via the. Here, the database access language (S
QL), which is pre-compiled in a transactional manner to improve runtime performance.

【0007】[0007]

【発明が解決しようとする課題】従来のRDB更新処理
方式では、RDB更新処理が多くのパターンによって各
業務対応に構築されているために、多くのプログラマ間
でのトランザクション間の整合性、検索更新の性能条件
の影響等の点で各アプリケーション間での競合の回避を
各AP内で解決する必要があるとともに、また運用条件
(例えば、年度切り替え、組織変更など)によってRD
Bの構成を変更することがAPに影響(例えば、APに
記述されたSQLの変更)を与える問題がある。
In the conventional RDB update processing method, since the RDB update processing is constructed for each business according to many patterns, consistency between transactions among many programmers, search update, and so on. conditions with the avoidance of conflicts between each application must be resolved in each AP in terms of influence of performance conditions, also operate
(Eg, year change, organization change, etc.)
Changing the configuration of B affects the AP (for example,
(Change of the described SQL).

【0008】本発明は、上記に鑑みてなされたもので、
その目的とするところは、従来のトランザクション処理
という性能を犠牲にすることなく、かつデータ中心型に
よってトランザクションを設計するメカニズムを取り入
れた履歴情報を伴うリレーショナルデータベースの更新
処理方式を提供することにある。
[0008] The present invention has been made in view of the above,
It is an object of the present invention to provide a relational database update processing method with history information that incorporates a mechanism for designing transactions in a data-centric manner without sacrificing the performance of conventional transaction processing.

【0009】[0009]

【課題を解決するための手段】上記目的を達成するた
め、本発明の履歴情報を伴うリレーショナルデータベー
スの更新処理方式は、ローカル系とセンタ系からなる垂
直分散重複データベース環境にて、センタ系/ローカル
系のデータベース更新同期がトランザクション内では取
れないセパレートトランザクションに対して、履歴情報
を基に更新情報を各系のデータベースに反映するリレー
ショナルデータベースの更新同期処理において、アプリ
ケーションから独立して、トランザクション内での履歴
情報の取得を伴うホスト言語組み込み型データベースア
クセス言語適用更新処理を行うシステム共通の更新トラ
ンザクションアプリケーションと、前記アプリケーショ
ンから、各種イベントに対応したデータをデータベース
アクセスのためのパラメータとして受けて、前記システ
ム共通の更新トランザクションアプリケーションにその
パラメータを引き継ぐドライバインターフェイスとを備
え、前記システム共通 の更新トランザクションアプリケ
ーションが、更新の対応種別、イベント種別に対応して
更新対象テーブルを決定するアクセス対象決定部と、更
新対象の種別対応に更新履歴情報を格納する履歴情報編
集処理部と、前記ドライバインターフェイスから前記パ
ラメータを受けて、このパラメータに基づき、前記アク
セス対象決定部に更新対象テーブルの検索指示を出力す
ると共に、前記履歴情報編集処理部にその更新対象の履
歴情報を出力指示し、取得した更新対象の種別対応更新
履歴情報に基づき対象テーブルを更新して格納するテー
ブル対応更新処理部とを具備することを要旨とする。
Means for Solving the Problems] To achieve the above object, the update processing method of the relational database with history information of the present invention, in vertical distributed redundant database environment of the local system and the center system, the center system / local
System database update synchronization takes place within a transaction.
History information for separate transactions
Relays update information to each system's database based on the
In the synchronous update process of the
History within a transaction, independent of the application
Host language embedded database with information acquisition
Update log common to systems that perform access language application update processing
A transaction application and said application
Data corresponding to various events from the database
Received as a parameter for access,
System update transaction application
A driver interface that inherits parameters is provided.
The update transaction application common to the system
Options correspond to the update support type and event type.
An access target determination unit that determines an update target table;
History information that stores update history information corresponding to the type of new target
From the driver interface.
Parameter, and based on this parameter,
Output search instruction of update target table to access target determination unit
In addition, the history information editing processing unit
Instructed to output history information and updated the type corresponding to the acquired update target
A table that updates and stores the target table based on the history information
And an update processing unit corresponding to the table.

【0010】[0010]

【作用】本発明の履歴情報を伴うリレーショナルデータ
ベースの更新処理方式では、APに共通なデータアクセ
ス部分、アクセス対象テーブル群に対する振り分けおよ
び履歴情報に関する部分をソフト構成上でブラックボッ
クス化し、その間をCOBOLのリンケージセクション
によってメインプログラムからポインタで引き継ぎ、更
にデータベースアクセス部分を従来の性能条件を満足さ
せるために静的にSQLを記述し、予めコンパイル処理
によって機械語レベルまでに実行モジュールを作成する
ことによって生産性とともに性能に関しての向上手段を
活用する。
According to the relational database update processing method with history information of the present invention, the data access portion common to the APs, the distribution to the access target table group, and the portion related to the history information are black-boxed on the software configuration, and the BOX is defined between the portions. The linkage section inherits pointers from the main program, pointers to the database access part are statically described in SQL to satisfy the conventional performance conditions, and productivity is achieved by creating execution modules up to the machine language level by compiling in advance. In addition, take advantage of performance improvements.

【0011】[0011]

【実施例】以下、図面を用いて本発明の実施例を説明す
る。
Embodiments of the present invention will be described below with reference to the drawings.

【0012】図1は本発明の一実施例に係わる履歴情報
を伴うリレーショナルデータベース(RDB)の更新処
理方式を実施するためのソフト構成を示す概略図であ
る。同図においては、業務を実装するアプリケーション
群1、RDBの各テーブル6に対応して、テーブル検索
更新に実際の処理ロジック部分をAPより分離してテー
ブル対応更新処理部3を実現し、当該テーブル対応更新
処理部3内からアクセス対象、即ち年度別、組織関連で
のアクセス対象の決定を行うアクセス対象決定部4
歴情報編集処理部5を呼ぶ形態として、アプリケーショ
ン群から完全に隠蔽している。
FIG. 1 is a schematic diagram showing a software configuration for implementing a relational database (RDB) update processing method with history information according to an embodiment of the present invention. In the figure, in response to application group 1, each table 6 the RDB that implements the business, the actual processing logic part table search update is separated from the AP tape
Table corresponding update processing unit 3 to realize the table corresponding update.
Processor accessed from within 3, i.e. by year, and the access object determining unit 4 performs the determination of the access target in the tissue related footwear
As a form of calling the history information editing processing unit 5 , the history information editing processing unit 5 is completely hidden from the application group.

【0013】また、アプリケーションに見える論理情報
(イベント情報、データ、年度別、組織関連等)を実際
RDBの構造にマッピングするために外部制御表7を
与えることとする。
An external control table 7 is provided for actually mapping logical information (event information, data, year-by-year, organization-related information, etc.) visible to the application to the RDB structure.

【0014】さらに、アプリケーションインタフェース
を同一とし、各テーブル対応更新処理部3の共通トラン
ザクションAPに制御を移すためにドライバ2を設ける
こととする。
Further, a driver 2 is provided to make the application interface the same and to transfer control to the common transaction AP of each table corresponding update processing unit 3 .

【0015】図8との対比からも明らかな様に、本RD
B更新処理方式に関しては、従来のRDBアクセスに特
化して、アプリケーションから独立し、さらにドライバ
を介在させることによってアプリケーションインタフェ
ースを簡易化させている。
As is clear from the comparison with FIG.
With regard to the B update processing method, the application interface is simplified by specializing in the conventional RDB access, being independent of the application, and further interposing a driver.

【0016】次に、図2〜図5に示すフローチャートを
参照して、RDB更新処理方式に関わるAP、ドライ
バ、RDB更新処理の概略処理について説明する。
Next, with reference to the flowcharts shown in FIGS. 2 to 5, an outline of the AP, driver, and RDB update processing related to the RDB update processing method will be described.

【0017】図2はアプリケーションが直接端末から電
文入力し、その電文内容に基づく処理を示している。ま
ず、電文が端末から直接入力されると(ステップ11
0)、アプリケーション内では電文内容が予め規定値の
範囲内にあるか否かを属性の正当性に関してチェックし
(ステップ120)、電文内の各フィールドの値を基に
図6のに示すドライバインタフェースに対するドライ
バパラメータに値を設定し(ステップ130)、ドライ
バ2をコールする(ステップ140)。次に、ドライバ
2の処理結果(正常・異常)に基づき、業務内容処理
(ステップ150)を行う。なお、業務内容処理でのド
ライバ2の処理結果の判定を統一的に行うため、処理結
果、リターンコードをパラメータの先頭に持つ。
FIG. 2 shows a process in which an application inputs a message directly from a terminal and the process is based on the message content. First, when a message is directly input from the terminal (step 11).
0), the application checks in advance whether the content of the message is within the range of the specified value with respect to the validity of the attribute (step 120), and based on the value of each field in the message, the driver shown in the table of FIG. set the value in the driver parameters for the interface (step 130), dry
Call the bus 2 (step 140). Next, the driver
Business content processing based on the processing result of 2 (normal / abnormal)
(Step 150) is performed. Note that the process
In order to unify the judgment of the processing result of driver 2,
As a result, it has a return code at the beginning of the parameter.

【0018】次に、ステップ150の業務内容処理結果
で処理全体が終わると、ステップ110の電文入力から
ステップ150の業務内容処理のデータベースの更新情
報および履歴情報を各々実媒体へ反映したり、またはス
テップ110の電文入力からステップ150の業務内容
処理の間での異常系の処理時更新情報および履歴情報を
各々破棄するために救済宣言を行う(ステップ16
0)。そして、救済宣言の成否によって端末電文を編集
し、正常、異常系の電文を端末に送信出力する(ステッ
プ170)。
Next, when the entire process is completed with the business content processing result of step 150, the update information and the history information of the database of the business content processing of step 150 are reflected on the actual medium from the input of the message of step 110, or A rescue declaration is made to discard the abnormal processing update information and the history information from the message input in step 110 to the business content processing in step 150 (step 16).
0). Then, the terminal message is edited according to the success or failure of the rescue declaration, and the normal and abnormal message is transmitted and output to the terminal (step 170).

【0019】次に、図3に示すドライバ2の処理につい
て説明する。図3においては、まずアプリケーションか
ら受け取ったパラメータの値の範囲、キー識別パターン
のチェックを行い(ステップ210)、図6のに示す
P2パラメータの中の処理対象テーブル名に対応したD
B更新処理としてテーブル対応更新処理分3をコールす
る(ステップ220)。このコールに関しては、パラメ
ータのムーブ処理を削除するために、COBOLのリン
ケージセクションに設定され、アプリケーションから直
接DB更新処理へパラメータ引き継ぎを行う。
Next, the processing of the driver 2 shown in FIG. 3 will be described. In FIG. 3, first, the range of the value of the parameter received from the application and the key identification pattern are checked (step 210), and D corresponding to the processing target table name in the P2 parameter shown in the table of FIG.
As the B update processing , a table corresponding update processing 3 is called (step 220). This call is set in the COBOL linkage section in order to delete the parameter move processing, and the parameter is directly transferred from the application to the DB update processing.

【0020】次に、図4に示すDB更新処理について説
明する。図4は実際にデータベースの検索、追加、削除
に関してSQLを介してデータベースをアクセスした
り、または追加、更新、削除に伴う各種履歴情報(図6
の表でのP2,P3,P4パラメータに対応する項目)
を編集して履歴情報を取得するための制御を行う処理内
容を示すフローチャートである。
Next, the DB update processing shown in FIG. 4 will be described. FIG. 4 shows an actual database access via SQL for searching, adding, and deleting a database, or various history information associated with addition, update, and deletion ( FIG. 6 ) .
Items corresponding to P2, P3, and P4 parameters in the table above )
9 is a flowchart showing processing contents for performing control for acquiring history information by editing.

【0021】図4において、まずパラメータチェックを
行い、対象テーブルの整合性のチェックを行う(ステッ
プ310,320)。これは、更新カラム数と更新カラ
ム名群、更新カラム値群との対応関係を正当性検証する
ことで行う。それから、図6の表のパラメータP2の内
容から処理種別、キーパターンによって処理対象SQL
処理ルーチンをコールする(ステップ330,34
0)。
In FIG. 4, first, a parameter check is performed to check the consistency of the target table (steps 310 and 320). This is performed by verifying the correspondence between the number of update columns, the update column name group, and the update column value group. Then, according to the processing type and the key pattern from the contents of the parameter P2 in the table of FIG.
Call the processing routine (steps 330 and 34)
0).

【0022】次に、ステップ350において、キーパタ
ーン1のSQL処理部、キーパターン2のSQL処理
部、・・・キーパターンnのSQL処理部の中のいずれ
かのキーパターンによる処理対象SQL処理を行う。こ
のステップ350の処理は、図5に詳細に示されている
ものであるので、図5のフローチャートを参照して説明
する。図5においては、既にプログラムに記述している
RDBの各カラム名に相当するホスト変数とパラメータ
で引き継がれた更新カラム名との対応をとるために、
部定義表7を参照して更新カラム名から対応するホスト
変数名の対応を取る(ステップ410)。この時、外部
定義表7はテーブル毎の更新カラム名を高速に識別可能
とするために昇順でエントリされており、バイナリサー
チによって検索可能となっている。なお、実際のSQL
とリレーショナルDBMSの間でのデータ転送の変数域
であるホスト変数が決められているが、電文入力からく
る更新カラムに関しては必ずしもホスト変数の順番と対
応つけられているとは限らないので、ホスト変数と更新
カラム名との対応情報を外部制御表7として有すること
によってホスト変数に指定された更新値が設定される
(ステップ420)。それから、更新SQLを発行し
(ステップ430)、SQLの発行後にリターンコード
の判定/設定を行う(ステップ440)。
Next, at step 350, the key pattern
SQL processing unit for key pattern 1, SQL processing for key pattern 2
Any of the SQL processing units of the key pattern n
Performs the processing target SQL processing by Kano key pattern. Since the processing in step 350 is shown in detail in FIG. 5, it will be described with reference to the flowchart in FIG. In FIG. 5, it has already been described in the program.
To take the correspondence and updating the column names taken over by the host variables and parameters corresponding to each column name RDB, outer
With reference to the part definition table 7 , correspondence between the corresponding host variable name and the updated column name is determined (step 410). At this time, external
The definition table 7 is entered in ascending order so that updated column names of each table can be identified at high speed, and can be searched by a binary search. Note that the actual SQL
Although the host variable which is a variable area of data transfer between the and the relational DBMS is determined, the update column coming from the message input is not always associated with the order of the host variable, so the host variable The update value specified as the host variable is set by having the correspondence information between the and the update column name as the external control table 7 (step 420). Then issue an update SQL
(Step 430) Return code after SQL issuance
Is determined / set (step 440).

【0023】図4に戻って、ステップ360では、図6
に示すのP2パラメータの履歴有無によって履歴情報
取得をコールするか否かを決定する。そして、履歴情報
のP2,P3,P4パラメータを基に取得する(ス
テップ370)。なお、履歴情報はのP2パラメータ
内の組織コードに従ってファイルブロックに取得され、
変更履歴が組織対応に情報編集し易くしている。それか
ら、リターンコードおよび検索結果を設定する(ステッ
プ380)。
Returning to FIG. 4, in step 360, FIG.
It is determined whether to call history information acquisition based on the presence or absence of the history of the P2 parameter in the table shown in FIG. Then, history information is acquired based on the P2, P3, and P4 parameters in the table (step 370). Note that the history information is obtained in a file block according to the organization code in the P2 parameter in the table ,
The change history makes it easy to edit information for the organization. Then, a return code and a search result are set (step 380).

【0024】なお、図6に示す表に関するすべてのパラ
メータは、電文入力時に電文内容の一部として存在する
ものである。但し、更新カラム数は処理種別がD,Uの
場合のみ必要であり、更新カラム群、更新値群は処理種
別がUの場合のみに必要となる。
All parameters relating to the table shown in FIG. 6 exist as a part of the contents of a message when the message is input . However, the number of update columns is necessary only when the processing type is D or U, and the update column group and the update value group are required only when the processing type is U.

【0025】以上からわかるように、純粋なAPはデー
タベースの物理的な構造を意識せずにデータベース更新
が可能となる。
As can be seen from the above, a pure AP can update a database without being aware of the physical structure of the database.
Becomes possible.

【0026】図7はキー識別パターン(キーパターン)
についての決定方法を明確に示すものである。
FIG. 7 shows a key identification pattern (key pattern).
This clearly shows how to determine

【0027】ここでキー識別パターンは予め更新対象業
務のアクセスイベントをテーブル対応に注目することに
よって(即ち、データベースを中心とした業務分析する
ことによって)明確になる検索・更新時のキーパターン
であり、このキーパターン対応にテーブル対象検索・更
新処理の検索・更新条件、SQLでのSELECT,U
PDATE,INSERT,DELETE等のWHER
E条件等の条件節を生成している。
Here, the key identification pattern is a key pattern at the time of search / update which becomes clear by focusing on the access event of the business to be updated in advance in correspondence with the table (that is, by performing business analysis centering on the database ) . , Search / update conditions of table target search / update processing corresponding to this key pattern, SELECT, U in SQL
WHERE such as PDATE, INSERT, DELETE
A conditional clause such as an E condition is generated.

【0028】従って、データベース設計が終了した段階
で、APとは完全に分離した設計手法が適用でき、かつ
APは論理的かつ業務的な情報のみを意識した設計が可
能となる。
Therefore, when the database design is completed, a design method completely separate from the AP can be applied, and the AP can be designed with only logical and business information in mind.

【0029】また、予めトランザクションとして業務分
析を行った結果として、キーパターン対応に処理の事前
決定が可能となるため、静的にコンパイルして性能条件
を満たすことが可能となる。
Further, as a result of performing a business analysis as a transaction in advance, it is possible to predetermine processing corresponding to a key pattern, and thus it is possible to statically compile and satisfy performance conditions.

【0030】さらに、図8からの対比でも明らかな様
に、ドライバインタフェースの項目は全て、電文入力項
目内容に含まれており、APとしては完全に電文内容か
らドライバへのパラメータ引継ぎと業務にチューンした
内容を行っている。
Further, as is clear from the comparison from FIG. 8, all the items of the driver interface are included in the contents of the message input items, and the AP completely tunes the parameter transfer from the message contents to the driver and the operation. Have done the content.

【0031】従って、AP設計者は性能、DBに関する
更新整合性、テーブル変更等によっての影響は全く受け
ない構造とすることができる。
Therefore, the AP designer can adopt a structure that is not affected by the performance, the DB update consistency, the table change, and the like.

【0032】上述したように、APは正規化されたDB
構造を意識するだけであり、本方式により物理的な構造
の相違が吸収される。このことは、DB設計手法として
述べられている性能を考慮したDB構造の非正規化を実
施したとしても、APへの影響(DBの整合性保証のた
めの処理追加)を防止でき、データ中心のDB設計(正
規化されたDB)とそれに基づくAP設計が可能とな
る。
As mentioned above, the AP is a normalized DB
Just be aware of the structure.
The difference is absorbed. This is a DB design technique
Performs denormalization of DB structure taking into account the stated performance.
Even if this is done, the effect on the AP (DB integrity
Data-centric DB design (correct
Standardized DB) and AP design based on it
You.

【0033】[0033]

【発明の効果】以上説明したように、本発明によれば、
RDBの設計手法を有効に利用してAPと分離したトラ
ンザクションタイプのRDBアクセス共通化ができ、次
の様な効果を奏することができる。
As described above, according to the present invention,
By effectively utilizing the RDB design technique, transaction type RDB access common to the AP and separated can be achieved, and the following effects can be obtained.

【0034】(1)AP内に記述したトランザクション
タイプの構築方法では、データベース設計/構築/保守
工程における具体的な設計内容が、APプログラム群全
体に影響する以下のシステム条件をAPから分離して行
えるための設計/試験工数が大幅に削減できる。
(1) In the transaction type construction method described in the AP, the following system conditions, in which the specific design contents in the database design / construction / maintenance process affect the entire AP program group, are separated from the AP. The number of design / test man-hours required for this can be greatly reduced.

【0035】.RDBの検索・更新等の性能条件が満
足しなかった場合の変更の影響 .従来AP間に跨がっていたRDBに関する更新整合
性のチェックメカニズム .RDBの再構成等の構造の変更した場合の影響 (2)APとRDBに関するアクセスは、ドライバイン
タフェースによって仮想化しているために将来テーブル
追加等の拡張時には、APは特に影響なくRDB更新処
理部を含むテーブル対応共通処理部、RDB更新処理部
とインタフェースを持つドライバ部にのみ影響する。
って、拡張性に富むシステム構築が可能となる。
[0035] Effect of change when performance conditions such as search / update of RDB are not satisfied. Mechanism for checking update consistency of RDB that has been straddling between conventional APs. Influence of structure change such as RDB reconfiguration (2) AP and RDB accesses are virtualized by the driver interface. Therefore, when expansion such as adding a table in the future, the AP does not particularly affect the RDB update processing unit. It affects only the driver unit having an interface with the common processing unit corresponding to the table and the RDB update processing unit. Obedience
As a result, it is possible to construct a system that is highly expandable.

【0036】また、例えば、年月、組織などを単位とし
て同一カラム構成の別テーブルに分割されているDB構
造で、APがテーブルの違いを意識することなくDB更
新できる。
Also, for example, in units of year, month, organization, etc.
DB structure divided into different tables with the same column structure
The AP can update the DB without being aware of the differences between the tables.
Can be new.

【0037】(3)本発明は、垂直分散型で一部のRD
B内のテーブルが垂直分散形態で重複したデータを持つ
構成でAP構築を行う必要性があり、このようにシステ
ムに特化したRDBの構成条件をAPから隠蔽すること
によってデータの無矛盾性を排除することが可能とな
る。
(3) The present invention uses a vertical dispersion type and a part of RD
It is necessary to construct the AP in a configuration in which the tables in B have overlapping data in a vertically distributed form, and thus eliminate the inconsistency of data by concealing the configuration conditions of the RDB specialized for the system from the AP. It is possible to do.

【0038】(4)将来的には、APから見てドライバ
インタフェース配下の共通処理部はドライバをクライア
ントとして、各テーブル群対応にプロセッサを割り当て
るマルチプロセッサのサーバとする構成条件に於いて、
本ソフト構成では柔軟に移行することができる。
(4) In the future, the common processing unit under the driver interface as viewed from the AP will be a multi-processor server that assigns a processor to each table group, using the driver as a client.
With this software configuration, the transition can be made flexibly.

【0039】即ち、テーブル毎に構成されているRDB
更新処理共通部はマルチプロセッサ配下でパラレルに走
行可能な構成とするハードウェア構成にも適用すること
が可能である。
That is, the RDB configured for each table
The update processing common unit can also be applied to a hardware configuration that can run in parallel under the multiprocessor.

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

【図1】本発明の一実施例に係わる履歴情報を伴うRD
B更新処理方式を実施するソフト構成を示す概略図であ
る。
FIG. 1 shows an RD with history information according to an embodiment of the present invention.
It is the schematic which shows the software structure which implements B update processing method.

【図2】アプリケーションの処理を示すフローチャート
である。
FIG. 2 is a flowchart illustrating processing of an application.

【図3】ドライバの処理を示すフローチャートである。FIG. 3 is a flowchart illustrating processing of a driver.

【図4】RDB更新処理を示すフローチャートである。FIG. 4 is a flowchart illustrating an RDB update process.

【図5】キーパターンによる処理対象SQL処理を示す
フローチャートである。
FIG. 5 is a flowchart showing an SQL process to be processed by a key pattern.

【図6】RDB更新処理方式でのドライバインタフェー
スのパラメータを示す表である。
FIG. 6 is a table showing parameters of a driver interface in the RDB update processing method.

【図7】キー識別パターンの決定方法を示す表である。FIG. 7 is a table showing a method for determining a key identification pattern.

【図8】従来のRDB更新処理方式の構成図である。FIG. 8 is a configuration diagram of a conventional RDB update processing method.

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

1 アプリケーション群 2 ドライバ 3 テーブル対応更新処理部 4 アクセス対象決定部 5 履歴情報編集処理部 6 リレーショナルデータベースのテーブル 7 外部制御表 Reference Signs List 1 application group 2 driver 3 table correspondence update processing unit 4 access target determination unit 5 history information editing processing unit 6 relational database table 7 external control table

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平3−5846(JP,A) NTT R&D VOL.38 NO. 5(1989)、社団法人電気通信協会、岸 本義一 他「遠隔DBアクセスの実現方 式」P.565−572 (58)調査した分野(Int.Cl.7,DB名) G06F 12/00 G06F 17/30 ──────────────────────────────────────────────────続 き Continuation of front page (56) References JP-A-3-5846 (JP, A) NTT R & D VOL. 38 No. 5 (1989), Telecommunications Association of Japan, Yoshikazu Kishimoto et al. 565-572 (58) Field surveyed (Int. Cl. 7 , DB name) G06F 12/00 G06F 17/30

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 ローカル系とセンタ系からなる垂直分散
重複データベース環境にて、センタ系/ローカル系のデ
ータベース更新同期がトランザクション内では取れない
セパレートトランザクションに対して、履歴情報を基に
更新情報を各系のデータベースに反映するリレーショナ
ルデータベースの更新同期処理において、 アプリケーションから独立して、トランザクション内で
の履歴情報の取得を伴うホスト言語組み込み型データベ
ースアクセス言語適用更新処理を行うシステム共通の更
新トランザクションアプリケーションと、 前記アプリケーションから、各種イベントに対応したデ
ータをデータベースアクセスのためのパラメータとして
受けて、前記システム共通の更新トランザクションアプ
リケーションにそのパラメータを引き継ぐドライバイン
ターフェイスとを備え、 前記システム共通の更新トランザクションアプリケーシ
ョンが、 更新の対応種別、イベント種別に対応して更新対象テー
ブルを決定するアクセス対象決定部と、 更新対象の種別対応に更新履歴情報を格納する履歴情報
編集処理部と、 前記ドライバインターフェイスから前記パラメータを受
けて、このパラメータに基づき、前記アクセス対象決定
部に更新対象テーブルの検索指示を出力すると共に、前
記履歴情報編集処理部にその更新対象の履歴情報を出力
指示し、取得した更新対象の種別対応更新履歴情報に基
づき対象テーブルを更新して格納するテーブル対応更新
処理部とを具備する ことを特徴とする履歴情報を伴うリ
レーショナルデータベースの更新処理方式。
1. In a vertically distributed overlapping database environment comprising a local system and a center system, data of a center system / local system is
Database update synchronization is not possible within a transaction
For separate transactions, based on history information
A relationer that reflects update information in each system database
In the database update synchronization process, independent of the application, within the transaction
Language database with acquisition of history information
Update common to all systems that perform source access language application update processing
A new transaction application and data corresponding to various events from the application
Data as parameters for database access
Receiving the update transaction application common to the system
Driver in the application
And an update transaction application common to the system.
The update target table corresponds to the update type and event type.
Access target determination unit that determines the table, and history information that stores update history information corresponding to the type of update target
An editing processing unit for receiving the parameter from the driver interface;
The access target is determined based on this parameter.
Output a search instruction for the table to be updated to the
Output the history information to be updated to the history information editing processing unit
Instructed and based on the acquired update history information corresponding to the type of update target
Table update that updates and stores the target table
Relational database update processing method with history information, characterized by comprising a processing unit.
JP3038761A 1991-03-05 1991-03-05 Update processing method for relational database with history information Expired - Fee Related JP3048181B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3038761A JP3048181B2 (en) 1991-03-05 1991-03-05 Update processing method for relational database with history information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3038761A JP3048181B2 (en) 1991-03-05 1991-03-05 Update processing method for relational database with history information

Publications (2)

Publication Number Publication Date
JPH04277867A JPH04277867A (en) 1992-10-02
JP3048181B2 true JP3048181B2 (en) 2000-06-05

Family

ID=12534270

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3038761A Expired - Fee Related JP3048181B2 (en) 1991-03-05 1991-03-05 Update processing method for relational database with history information

Country Status (1)

Country Link
JP (1) JP3048181B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040042731A (en) * 2002-11-15 2004-05-20 엘지엔시스(주) File and registry monitoring method for host system

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3842360B2 (en) * 1997-01-30 2006-11-08 富士通株式会社 Workflow history information acquisition method, history server history information acquisition method, workflow history information acquisition system, workflow server, and history server

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
NTT R&D VOL.38 NO.5(1989)、社団法人電気通信協会、岸本義一 他「遠隔DBアクセスの実現方式」P.565−572

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040042731A (en) * 2002-11-15 2004-05-20 엘지엔시스(주) File and registry monitoring method for host system

Also Published As

Publication number Publication date
JPH04277867A (en) 1992-10-02

Similar Documents

Publication Publication Date Title
US5625815A (en) Relational database system and method with high data availability during table data restructuring
US6304867B1 (en) System and method for enhanced performance of a relational database management system through the use of application-specific memory-resident data
US5881378A (en) Device accessing a database using one of old definition information and new definition information based on an access request
US7324992B2 (en) Database processing method and system
US5640555A (en) Performance optimization in a heterogeneous, distributed database environment
US5627967A (en) Automated generation on file access control system commands in a data processing system with front end processing of a master list
US7672926B2 (en) Method and system for updating value correlation optimizations
US6381595B1 (en) System and method for compensation of functional differences between heterogeneous database management systems
US7188116B2 (en) Method and apparatus for deleting data in a database
US6240413B1 (en) Fine-grained consistency mechanism for optimistic concurrency control using lock groups
US6353833B1 (en) Caching of distributed dynamic SQL statements in a multiple node RDBMS
JP3512439B2 (en) Locking method in check-in / check-out model
US8396860B1 (en) Eliminating sequenced inner and outer joins using temporal sequenced referential integrity and temporal uniqueness
US5481703A (en) Database restructuring system for detecting functionally dependent relations and converting them into third normal form
US20080162445A1 (en) Determining satisfiability and transitive closure of a where clause
Haderle et al. IBM Database 2 overview
US6253213B1 (en) Method and system for automatically maintaining data consistency across various databases
JP3048181B2 (en) Update processing method for relational database with history information
JPH11265395A (en) Data base access system
JPH08235032A (en) Logical check system for data base updating
Auer et al. RDBM—A relational data base machine
JP3484440B2 (en) Distributed database update method
CN112817931A (en) Method and device for generating incremental version file
JPH08106473A (en) Data base management system
CA2249059C (en) Caching of distributed dynamic sql statements in a multiple node rdbms

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090324

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20090324

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20100324

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees