JPH0552537B2 - - Google Patents

Info

Publication number
JPH0552537B2
JPH0552537B2 JP60181225A JP18122585A JPH0552537B2 JP H0552537 B2 JPH0552537 B2 JP H0552537B2 JP 60181225 A JP60181225 A JP 60181225A JP 18122585 A JP18122585 A JP 18122585A JP H0552537 B2 JPH0552537 B2 JP H0552537B2
Authority
JP
Japan
Prior art keywords
database
transaction
processing
mode
personal mode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP60181225A
Other languages
Japanese (ja)
Other versions
JPS6240552A (en
Inventor
Hiroshi Nakano
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP60181225A priority Critical patent/JPS6240552A/en
Publication of JPS6240552A publication Critical patent/JPS6240552A/en
Publication of JPH0552537B2 publication Critical patent/JPH0552537B2/ja
Granted legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 〔概要〕 パブリツクモードとパーソナルモードのデータ
ベース管理態様を有するデータベースシステム
で、両モードのデータベースのアクセスを混用す
るためのトランザクシヨン管理方式である。パブ
リツクモードのデータベースに対するアクセスの
管理単位であるトランザクシヨンの終了におい
て、該トランザクシヨン中にアクセスしたパーソ
ナルモードのデータベースの占有終了処理を同期
させることにより、両モードのデータベースを混
用する場合の、データベース間の整合性を保証可
能にする。
DETAILED DESCRIPTION OF THE INVENTION [Summary] This is a database system having database management modes of public mode and personal mode, and a transaction management method for mixedly using the database accesses of both modes. At the end of a transaction, which is the unit of management of access to a public mode database, synchronizing the exclusive end processing of the personal mode database that was accessed during the transaction allows database management when both modes of databases are used together. It is possible to guarantee consistency between

〔産業上の利用分野〕[Industrial application field]

本発明は、計算機システムにおける、パブリツ
クモードとパーソナルモードのデータベース管理
態様を有するデータベースシステムで、両モード
のデータベースのアクセスを混用するためのトラ
ンザクシヨン管理方式に関する。
The present invention relates to a database system in a computer system having database management modes of public mode and personal mode, and to a transaction management method for mixedly using database accesses of both modes.

データベースには一般に、広範囲の利用者に共
用されるものと、限定された利用のみを予定する
ものがある。
Generally, some databases are shared by a wide range of users, while others are intended for limited use only.

前者に属するデータベースについては、内容の
保全とアクセス効率等を考慮した、システムレベ
ルのアクセス管理が、十分サポートされる必要が
ある。このためにアクセスに当たつては、システ
ムで規定する諸制御情報を準備することが必要に
なり、且つ管理のためのオーバヘツドも大きくな
り易い。
For databases belonging to the former category, system-level access management that takes into account content preservation and access efficiency needs to be fully supported. For this reason, when accessing, it is necessary to prepare various control information defined by the system, and the overhead for management tends to be large.

後者については、このような管理を利用者に任
せることにより、利用の容易性、効率を向上する
ことができる。
Regarding the latter, ease of use and efficiency can be improved by leaving such management to the user.

このため、公知のように、データベースシステ
ムには、管理態様として、前者のようにシステム
規模で共用される共用データベースのためのパブ
リツクモードと、後者のように個人または小人数
のグループの業務でローカルに作成し使用される
データベースのためのパーソナルモードとを設
け、パブリツクモードのデータベースについて
は、アクセスにおいて内容保全等を重視し、且つ
多人数による利用が効率よく行えるように考慮し
た高度の管理をシステムの管理機能として提供
し、パーソナルモードのデータベースについて
は、内容保全等の管理を殆ど応用プログラム等の
自由にして、各業務等の必要に応じた適切な処置
が効率よくできるようにする。
For this reason, as is well known, database systems have two management modes: the former, which is a shared database that is shared on a system scale, and the latter, which is a public mode that is used for the work of individuals or small groups. A personal mode is provided for databases that are created and used locally, and for public mode databases, advanced management is provided that emphasizes content preservation during access and allows for efficient use by a large number of people. is provided as a system management function, and with respect to the personal mode database, management such as content preservation is left mostly free to application programs, etc., so that appropriate measures can be efficiently taken according to the needs of each business.

〔従来の技術と発明が解決しようとする問題点〕[Problems to be solved by conventional technology and invention]

第2図は、データベースシステムを有する計算
機システムの一構成例を示すブロツク図である。
FIG. 2 is a block diagram showing an example of the configuration of a computer system having a database system.

処理装置1で実行されるデータベースシステム
2は、データベース4に対するアクセスを制御す
るシステムであつて、適当に起動された応用プロ
グラム3における、データベースアクセスマクロ
命令の実行等の公知の方法によつて制御を渡さ
れ、応用プログラム3のデータベースアクセスを
サポートし、その結果を要求元に返す。
The database system 2 executed by the processing device 1 is a system for controlling access to the database 4, and is controlled by a known method such as execution of a database access macro instruction in an appropriately started application program 3. It supports the application program 3's database access and returns the results to the request source.

こゝで、応用プログラム3が、前記パブリツク
モードで管理されるデータベースを利用する場合
には、トランザクシヨン管理部5を経てアクセス
する。
Here, when the application program 3 uses the database managed in the public mode, it accesses it via the transaction management section 5.

応用プログラム3は、そのために予めシステム
所定の構成の制御情報を作成して、データベース
4に登録し、該制御情報を指定する指定情報6を
パラメータとして、トランザクシヨン管理部5に
トランザクシヨンの開始を要求する。この制御情
報には、対象データベースの指定に関する情報、
及び外部ログフアイルの指定等を含む。
For this purpose, the application program 3 creates control information with a predetermined system configuration in advance, registers it in the database 4, and instructs the transaction management unit 5 to start a transaction using the specification information 6 that specifies the control information as a parameter. request. This control information includes information about specifying the target database,
and the specification of external log files.

トランザクシヨン管理部5はトランザクシヨン
開始/終了処理8において、データベースアクセ
ス制御部7のサポート機能を使用して、指定のデ
ータベースの所要領域の占有による排他制御等の
処理を行う。
In transaction start/end processing 8, transaction management section 5 uses the support functions of database access control section 7 to perform processing such as exclusive control by occupying a required area of a specified database.

又、データベースへのアクセスにおいては、ア
クセス処理9において、更新されるデータベース
の保全のためのログの採取等を行う。
Furthermore, in accessing the database, in access processing 9, logs are collected to maintain the updated database.

このトランザクシヨンの終了が要求されると、
トランザクシヨン開始/終了処理8は、該トラン
ザクシヨン中の処理による、データベースに対す
る更新/追加/削除等を、そのまゝ有効化して、
占有を解除することにより、他のアクセスを可能
にする。
When this transaction is requested to end,
The transaction start/end processing 8 enables updates/additions/deletions, etc. to the database by processing during the transaction, and
By releasing the possession, other access is possible.

こゝで、トランザクシヨン中に扱うデータベー
スが、複数指定されている場合には、例えば2つ
のデータベースの更新を要する第1の処理があつ
た場合に、その第1の処理で一方のデータベース
を更新し、他方を未更新の時に、別の第2の処理
にその両データベースを参照するようなことを許
すと、第2の処理は両データベース間で矛盾する
内容を使用することになる可能性があるので、そ
れらの占有解除等の処理を同期させ、データベー
ス間の内容の不整合によつて、後続のデータベー
ス利用で矛盾を生じることの無いように制御する
必要がある。
Here, if multiple databases are specified to be handled during a transaction, for example, if there is a first process that requires updating two databases, the first process will update one database. However, if you allow another second process to refer to both databases while the other one has not been updated, there is a possibility that the second process will use inconsistent content between the two databases. Therefore, it is necessary to synchronize the processes such as releasing the exclusive use of these databases, and to control such that there is no inconsistency in the subsequent use of the databases due to inconsistencies in the contents between the databases.

又、トランザクシヨンの取消要求があつた場合
には、トランザクシヨン取消処理10が、トラン
ザクシヨン中のデータベースに対する更新/追
加/削除等を無効とし、ログフアイル等を使用し
て以前のデータベースを復元する。
Furthermore, when a transaction cancellation request is made, the transaction cancellation processing 10 invalidates updates/additions/deletions to the database during the transaction and restores the previous database using a log file or the like. .

パーソナルモードの管理によるデータベースを
利用する応用プログラム11が、該データベース
にアクセスする場合には、応用プログラム11が
直接に、データベースアクセス制御部7のサポー
ト機能を使用して、所要のデータベースアクセス
するので、排他制御の設定/解除の契機、ログの
採取等は応用プログラム11に任される。
When the application program 11 that uses a database managed in the personal mode accesses the database, the application program 11 directly uses the support function of the database access control unit 7 to access the required database. The trigger for setting/cancelling exclusive control, collection of logs, etc. are left to the application program 11.

このように、パブリツクモードのデータベース
とパーソナルモードのデータベースでは、システ
ムによるサポートが異なるために、1つの応用プ
ログラムで両モードのデータベースにアクセスし
た場合にも、両モードのデータベース間で、アク
セス終了処理の同期をとることが困難であり、そ
の結果、例えば次のような状況が起こり得る。
In this way, because the system support for public mode databases and personal mode databases is different, even when a single application program accesses databases in both modes, the access termination process is different between databases in both modes. As a result, the following situations may occur, for example:

即ち、例えばパーソナルモードのデータベース
Sと、Sに関係のあるパブリツクモードのデータ
ベースBとを使用して、Bのデータaを入力デ
ータに従つて更新し、次いでSのデータa′もデ
ータaに合わせて更新し、Bのデータbを次の
入力データに従つて更新し、Sのデータb′もデ
ータbに合わせて更新するという処理を1トラン
ザクシヨンの中で行う業務があるとする。
That is, for example, using a personal mode database S and a public mode database B related to S, update data a in B according to the input data, and then update data a' in S to data a. Assume that there is a task in which the processing of updating data b of B in accordance with the next input data and updating data b' of S in accordance with data b is performed in one transaction.

以上が正常に完了すれば何も問題は無いが、も
しのBの更新で何等かの異常事象が発生した場
合には、パブリツクモードのデータベースBにつ
いては、トランザクシヨン中の更新(即ち及び
の更新)を無効にして元の内容が保証される
が、パーソナルモードのデータベースSではの
更新が完了したまゝになり、データベースBとの
実質内容上の整合性が維持できなくなる。
If the above is completed normally, there will be no problem, but if some abnormal event occurs when updating database B, database B in public mode will be updated during the transaction (i.e., Although the original content is guaranteed by invalidating the update), the update in the database S in the personal mode remains completed, and consistency in terms of actual content with the database B cannot be maintained.

従つて、このような状況を考慮すると一般には
両モードのデータベースを混用することができな
いという問題があつた。
Therefore, considering this situation, there has been a problem that databases of both modes cannot generally be used together.

〔問題点を解決するための手段〕[Means for solving problems]

第1図は、本発明の構成を示すブロツク図であ
る。
FIG. 1 is a block diagram showing the configuration of the present invention.

26は本発明のデータベースシステムであり、
そのトランザクシヨン管理部20には、従来のト
ランザクシヨン開始/終了処理8、トランザクシ
ヨン取消処理10と対に、パーソナルモード・ト
ランザクシヨン終了処理21及びパーソナルモー
ド・トランザクシヨン取消処理22が設けられ、
トランザクシヨン終了時に、何れの処理を実行す
るかは、判定処理23または24で判定される。
26 is a database system of the present invention,
The transaction management unit 20 is provided with a personal mode transaction end process 21 and a personal mode transaction cancel process 22, in contrast to the conventional transaction start/end process 8 and transaction cancel process 10.
At the end of the transaction, a determination process 23 or 24 determines which process is to be executed.

〔作用〕[Effect]

トランザクシヨンの終了要求によつて、応用プ
ログラム25から制御が渡ると、判定処理23は
該トランザクシヨン中にアクセスされたパーソナ
ルモードのデータベースがあるか判定し、ある場
合にはパーソナルモード・トランザクシヨン終了
処理21により、該当のデータベースについて、
トランザクシヨン終了処理に準じて、更新等の有
効化及び排他的占有の解除等を実行し、次いでト
ランザクシヨン開始/終了処理8により、パブリ
ツクモードのデータベースの終了処理を実行す
る。
When control is passed from the application program 25 due to a transaction termination request, the determination processing 23 determines whether there is a personal mode database accessed during the transaction, and if so, terminates the personal mode transaction. Through process 21, for the corresponding database,
In accordance with the transaction end process, validation of updates, release of exclusive occupancy, etc. are executed, and then the transaction start/end process 8 executes the end process of the database in public mode.

トランザクシヨンの取消も前記終了処理の場合
に準じたパーソナルモードのデータベースの処理
が、判定処理24を経て実行される。
For transaction cancellation, personal mode database processing similar to the above-mentioned termination processing is executed through the determination processing 24.

なお、トランザクシヨン中でアクセスする、パ
ーソナルモードのデータベースは、例えば指定情
報6によつて指定される前記制御情報によつて指
定されるものとする。
It is assumed that the personal mode database to be accessed during a transaction is specified by the control information specified by the specification information 6, for example.

以上の構成により、パブリツクモードのデータ
ベースとパーソナルモードのデータベースの混用
において、トランザクシヨン終了処理における終
了処理の同期が可能になる。又、前記従来の説明
において述べたと同様に管理態様としてパブリツ
クモードとパーソナルモードの区別があるので、
パブリツクモードのデータベースを使用しない
で、パーソナルモードのデータベースのみで行う
処理においては、従来と同様に管理オーバヘツド
の少ない状態でアクセスすることができる。
With the above configuration, it is possible to synchronize the transaction termination process when a public mode database and a personal mode database are used together. Also, as mentioned in the conventional explanation, there is a distinction between public mode and personal mode as management modes.
When processing is performed using only the personal mode database without using the public mode database, access can be performed with less management overhead as in the past.

〔実施例〕〔Example〕

第1図において、応用プログラム25は、指定
情報6によつて指定する前記制御情報に、従来と
同様のパブリツクモードのデータベースに関する
各種情報の他に、アクセスを要するパーソナルモ
ードのデータベースの指定を含める。
In FIG. 1, the application program 25 includes, in the control information specified by the specification information 6, a specification of a personal mode database to be accessed, in addition to various information regarding the public mode database as in the past. .

トランザクシヨンの開始において、トランザク
シヨン開始/終了処理8が、従来と同様にパブリ
ツクモードのデータベースについて、トランザク
シヨンの開始処理をする。
At the start of a transaction, the transaction start/end processing 8 performs transaction start processing for the database in public mode, as in the prior art.

応用プログラム25は、パーソナルモードのデ
ータベースについては、従来と同様にデータベー
スアクセス制御部7のサポートを直接使用して制
御する。
The application program 25 directly uses the support of the database access control section 7 to control the database in the personal mode, as in the past.

トランザクシヨンの終了要求によつて、トラン
ザクシヨン管理部20に制御が渡ると、判定処理
23は該トランザクシヨン中にアクセスされたパ
ーソナルモードのデータベースがあるか判定し、
ある場合にはパーソナルモード・トランザクシヨ
ン終了処理21を実行する。
When control is passed to the transaction management unit 20 in response to a transaction end request, the determination processing 23 determines whether there is a personal mode database accessed during the transaction,
If so, personal mode transaction end processing 21 is executed.

パーソナルモード・トランザクシヨン終了処理
21は、該当のデータベースについて、トランザ
クシヨン終了処理に準じて、更新等の有効化及び
排他的占有の解除等を実行し、次いでトランザク
シヨン開始/終了処理8により、パブリツクモー
ドのデータベースの終了処理を実行する。
Personal mode transaction end processing 21 executes validation of updates and release of exclusive possession, etc. for the corresponding database in accordance with transaction end processing, and then transaction start/end processing 8 executes public release. Execute the termination process of the database in tsuku mode.

トランザクシヨンの取消要求の場合も同様に、
判定処理24で判定して、パーソナルモードのデ
ータベースの処理を要する場合は、パーソナルモ
ード・トランザクシヨン取消処理22により、パ
ーソナルモードのデータベースの更新等を無効化
した後、トランザクシヨン取消処理10により、
パブリツクモードのデータベースを従来と同様に
処理する。
Similarly, for transaction cancellation requests,
If it is determined in the determination process 24 that processing of the personal mode database is required, the personal mode transaction cancellation process 22 invalidates the personal mode database update, etc., and then the transaction cancellation process 10 performs the following steps:
Process databases in public mode as before.

以上の構成により、パブリツクモードのデータ
ベースとパーソナルモードのデータベースの混用
において、トランザクシヨン終了処理における終
了処理の同期が可能になる。
With the above configuration, it is possible to synchronize the transaction termination process when a public mode database and a personal mode database are used together.

なお、パーソナルモードのデータベースのみを
使用する処理を行う応用プログラムの場合には、
応用プログラム11として示すように、従来と同
様にデータベースアクセス制御部7のサポート機
能を直接利用することにより、管理オーバヘツド
の少ない状態でアクセスすることができる。
In addition, in the case of an application program that performs processing using only the personal mode database,
As shown in the application program 11, by directly utilizing the support functions of the database access control unit 7 as in the past, access can be achieved with less management overhead.

〔発明の効果〕〔Effect of the invention〕

以上の説明から明らかなように、本発明によれ
ば、パブリツクモードとパーソナルモードのデー
タベースを有する計算機システムにおいて、両モ
ードのデータベースを混用する処理が利用可能に
なるので、データベースの利用性を向上するとい
う著しい工業的効果がある。
As is clear from the above description, according to the present invention, in a computer system having databases in public mode and personal mode, processing that mixes the databases in both modes can be used, thereby improving the usability of the database. This has a significant industrial effect.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の実施例構成ブロツク図、第2
図は従来の一構成例ブロツク図である。 図において、1は処理装置、2,26はデータ
ベースシステム、3,11,25は応用プログラ
ム、4はデータベース、5,20はトランザクシ
ヨン管理部、6は指定情報、7はデータベースア
クセス制御部、8はトランザクシヨン開始/終了
処理、9はアクセス処理、10はトランザクシヨ
ン取消処理、21はパーソナルモード・トランザ
クシヨン終了処理、22はパーソナルモード・ト
ランザクシヨン取消処理、23,24は判定処理
を示す。
Fig. 1 is a block diagram of an embodiment of the present invention;
The figure is a block diagram of an example of a conventional configuration. In the figure, 1 is a processing device, 2 and 26 are database systems, 3, 11, and 25 are application programs, 4 is a database, 5 and 20 are transaction management units, 6 is specification information, 7 is a database access control unit, and 8 9 indicates transaction start/end processing, 9 indicates access processing, 10 indicates transaction cancellation processing, 21 indicates personal mode transaction termination processing, 22 indicates personal mode transaction cancellation processing, and 23 and 24 indicate determination processing.

Claims (1)

【特許請求の範囲】 1 トランザクシヨン管理部が所定のトランザク
シヨン管理を実行し、該トランザクシヨン管理
は、トランザクシヨンを単位として、データベー
スの占有制御を行い、該データベースに対して該
トランザクシヨン中に行われた更新処理を当該ト
ランザクシヨンの終了時に有効化する処理であ
り、 該トランザクシヨン管理部を介してアクセスす
ることを必須とするパブリツクモードのデータベ
ースと、該トランザクシヨン管理部を介すること
無くアクセスすることを可能とするパーソナルモ
ードのデータベースとに区分して管理する該デー
タベースを有する計算機システムにおいて、 該トランザクシヨン中で、該パブリツクモード
のデータベースと該パーソナルモードのデータベ
ースとが共にアクセスされる場合には、 該トランザクシヨン管理部が、当該パブリツク
モードのデータベースと共に、当該パーソナルモ
ードのデータベースについても該トランザクシヨ
ン管理を実行するように構成されていることを特
徴とするトランザクシヨン管理方式。
[Claims] 1. A transaction management unit executes predetermined transaction management, and the transaction management performs database occupancy control on a transaction-by-transaction basis, and controls the database during the transaction. This is a process that validates the update process that has been performed at the end of the transaction, and allows access to the public mode database that must be accessed through the transaction management unit and without going through the transaction management unit. In a computer system having a database that is managed separately from a personal mode database that can be accessed, both the public mode database and the personal mode database are accessed during the transaction. In this case, the transaction management unit is configured to execute transaction management for the personal mode database as well as the public mode database.
JP60181225A 1985-08-19 1985-08-19 Transaction managing system Granted JPS6240552A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60181225A JPS6240552A (en) 1985-08-19 1985-08-19 Transaction managing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60181225A JPS6240552A (en) 1985-08-19 1985-08-19 Transaction managing system

Publications (2)

Publication Number Publication Date
JPS6240552A JPS6240552A (en) 1987-02-21
JPH0552537B2 true JPH0552537B2 (en) 1993-08-05

Family

ID=16096998

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60181225A Granted JPS6240552A (en) 1985-08-19 1985-08-19 Transaction managing system

Country Status (1)

Country Link
JP (1) JPS6240552A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02163474A (en) * 1988-12-19 1990-06-22 Ishikawajima Harima Heavy Ind Co Ltd Wave energy utilizer

Also Published As

Publication number Publication date
JPS6240552A (en) 1987-02-21

Similar Documents

Publication Publication Date Title
US20200250333A1 (en) Data management system and data management method
JPH02165241A (en) File access system
JP3002242B2 (en) CAD system
JPH0552537B2 (en)
JP3093609B2 (en) Apparatus and method for controlling storage consistency of cache memory
JPH04186453A (en) File transfer system
JP2002215443A (en) Exclusion controlling method between plurality of operations
JPH04260141A (en) Data shared processor
JPH02128246A (en) Control system in discrete data base system
JPS6150356B2 (en)
JP2623968B2 (en) Commit synchronization control method for journalless files
JPS6277667A (en) Access method for host file from intelligent terminal
JPH03265947A (en) File back-up system
JPH02294855A (en) Sub-file using right managing system
JPH0455955A (en) Access control system for its own site
JP3006527B2 (en) Client / server type database system
JPH0414161A (en) Transaction processing system
JPH04220733A (en) File control system with independent utilization right
JPH02122359A (en) Remote file access system
JPH01180651A (en) Commit synchronization control system for report file output
JPH04113414A (en) Automatic application system for disk cache
JPH02271413A (en) Date setting system for computer
JPH07117926B2 (en) Communication application program interface device
JPH03237554A (en) Multiprocessor control system
JPH02227755A (en) File control system

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term