JPH0476744A - Computer system with shared memory table recovering function - Google Patents

Computer system with shared memory table recovering function

Info

Publication number
JPH0476744A
JPH0476744A JP2190306A JP19030690A JPH0476744A JP H0476744 A JPH0476744 A JP H0476744A JP 2190306 A JP2190306 A JP 2190306A JP 19030690 A JP19030690 A JP 19030690A JP H0476744 A JPH0476744 A JP H0476744A
Authority
JP
Japan
Prior art keywords
shared memory
file
memory table
computer system
memory
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
JP2190306A
Other languages
Japanese (ja)
Inventor
Takatomo Nishiyama
西山 尚智
Kazuhiko Ito
和彦 伊藤
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP2190306A priority Critical patent/JPH0476744A/en
Publication of JPH0476744A publication Critical patent/JPH0476744A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To improve the productivity, maintenance and operability of an application program for accessing a shared table by providing the computer system with a memory filing means for simulating a disk file interface. CONSTITUTION:The computer system is provided with the memory filing means 1 for simulating the disk file interface, a data base recovering means 2 for executing data base recovery control, a shared memory table 3, a data base file 4, and the application program 5. Since a means for allowing the table 3 in a storage device to pretend to be a file in a magnetic disk device, i.e. the memory filing means 1 for simulating the disk file interface, is used, the contents of the table 3 can be held at an always matched state with a data base without requiring a specific means in each user. Consequently, the productivity, maintenance and operability of the application program for accessing the shared memory table 3 can be improved.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はデータベースリカバリ機能を有する計算機シス
テムに関し、特に共有メモリテーブルのリカバリ機能を
有する計算機システムに関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a computer system having a database recovery function, and more particularly to a computer system having a shared memory table recovery function.

〔従来の技術〕[Conventional technology]

従来のデータベースリカバリ機能を有する計算機システ
ムでは、記憶装置に保持されている共有テーブル内容と
磁気ディスク装置に保持されているデータベースファイ
ル内容とを自動的に整合させる機能を持たなかった。
A conventional computer system having a database recovery function does not have a function to automatically match the contents of a shared table held in a storage device with the contents of a database file held in a magnetic disk device.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

従来のデータベースリカバリ機能を有する計算← 機システムでは、プログラムアボード時に、リカバリ処
理される磁気ディスク装置に保持されているデータベー
スファイルと、リカバリ処理されない記憶装置内のメモ
リ上の共有テーブルとの間に、不整合が生ずる。このた
め、中途更新のままとなっている共有テーブルを定期的
にユーザ毎に定められている特別な手段で復元する必要
があり、共有テーブルをアクセスするアプリケーション
フログラムの生産性、保守性、運用性上問題があった。
In a computer system with a conventional database recovery function, when a program is aborted, a file is created between the database file held in the magnetic disk device undergoing recovery processing and the shared table in memory in the storage device that is not undergoing recovery processing. , an inconsistency occurs. Therefore, it is necessary to periodically restore shared tables that have been updated in the middle using special means determined for each user, which improves the productivity, maintainability, and operability of application programs that access shared tables. There was a problem above.

〔課題を解決するための手段〕[Means to solve the problem]

本発明の共有メモリテーブルリカバリ機能付き計算機シ
ステムは、データベースリカバリ機能を有スる計算機シ
ステムにおいて、磁気ディスク装置のディスクファイル
インタフェースを模擬することにより記憶装置上のメモ
リテーブルを前記磁気ディスク装置上のファイルにみせ
かけるメモリファイル化手段と、前記磁気ディスク装置
上のデータベースファイルと前記ディスクファイルイン
タフェースが模擬された前記メモリテーブルとを区別せ
ずデータリカバリ制御を行なうデータベースリカバリ手
段とを有している。
A computer system with a shared memory table recovery function of the present invention is a computer system having a database recovery function, in which a memory table on a storage device is converted into a file on a magnetic disk device by simulating a disk file interface of a magnetic disk device. and a database recovery means that performs data recovery control without distinguishing between the database file on the magnetic disk device and the memory table in which the disk file interface is simulated.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は、本発明の1実施例の機能ブロック図であり、
ディスクファイルインタフェースを模擬するメモリファ
イル化手段1と、データベースリカバリ制御を行うデー
タベースリカバリ手段2と、共有メモリテーブル3と、
データベースファイル4と、アプリケーションプログラ
ム5とを有している。
FIG. 1 is a functional block diagram of one embodiment of the present invention,
A memory file conversion means 1 that simulates a disk file interface, a database recovery means 2 that performs database recovery control, a shared memory table 3,
It has a database file 4 and an application program 5.

第2図は、メモリファイル化手段1が内蔵するメモリフ
ァイル化管理テーブル20の構成例を示す図である。管
理テーブルのレコード数は、ここでは(2”−1)=2
55としている。メモリファイル化管理テーブル20の
第1番目の各レコードは、共有メモリテーブル情報を保
持する。そして、テーブル名フィールド21と、レコー
ド長フィールド22と、レコード数フィールド23と、
共有メモリテーブル管理部ロケーションフィールド24
と、共有メモリテーブル本体部ロケーションフィールド
25とから構成される。
FIG. 2 is a diagram showing an example of the configuration of a memory filing management table 20 built into the memory filing means 1. As shown in FIG. The number of records in the management table is (2”-1) = 2
It is set at 55. Each first record of the memory filing management table 20 holds shared memory table information. Then, a table name field 21, a record length field 22, a record number field 23,
Shared memory table management section location field 24
and a shared memory table main body location field 25.

第3図は、共有メモリテーブル3の構成例を示す図であ
る。共有メモリテーブル3は、実際の磁気ディスク装置
のディスクファイルインタフェースを模擬する構成にな
っており、共有メモリテーブル管理部31と、共有メモ
リテーブル本体部32とから成る。共有メモリテーブル
管理部31には、ディスク装置管理情報として、ディス
ク名、ディスクID、シリンダ数、トラック数およびセ
クタ数が格納され、ファイル管理情報として、ファイル
名2格納ロケーシヨン、サイズおよび属性が格納されて
いる。共有メモリテーブル本体部32には、共有される
べきメモリテーブルの本来の内容が入り、模擬されたデ
ィスク装置の中に唯−含まれるファイルに対応する。
FIG. 3 is a diagram showing an example of the configuration of the shared memory table 3. The shared memory table 3 has a configuration that simulates the disk file interface of an actual magnetic disk device, and consists of a shared memory table management section 31 and a shared memory table main body section 32. The shared memory table management unit 31 stores a disk name, disk ID, number of cylinders, number of tracks, and number of sectors as disk device management information, and stores a file name 2 storage location, size, and attributes as file management information. ing. The shared memory table body section 32 contains the original contents of the memory table to be shared, and corresponds to files only included in the simulated disk device.

第4図は、メモリファイル化手段1が共有メモリテーブ
ル3を作成する処理手順を示すフローチャートである。
FIG. 4 is a flowchart showing the processing procedure by which the memory file creation means 1 creates the shared memory table 3.

共有メモリテーブル作成処理が開始される(ステップ4
1)と、メモリファイル化手段1は起動時の指定パラメ
ータを解析する(ステップ42)。そして、メモリファ
イル化管理テーブル20の第iレコードのテーブル名フ
ィールド21と、レコード長フィールド22と、レコー
ド数フィールド23とに指定パラメータ値が格納される
(ステップ43)。次に指定レコード長とレコード数に
従って、共有メモリテーブル3のメモリ領域を確認し、
共有メモリテーブル管理部31に必要情報を格納し、共
有メモリチーフル本体部32の内容のすべての値をゼロ
に初期化する(ステップ44)。次にメモリファイル管
理テーブル20の共有メモリチーフル管理部ロケーショ
ンフィールド24と、共有メモリテーブル本体部ロケー
ションフィールド25の値を格納しくステップ45)、
共有メモリテーブル作成処理を終了する(ステップ46
)。
Shared memory table creation processing starts (step 4)
1), the memory file creation means 1 analyzes the specified parameters at startup (step 42). Then, the designated parameter value is stored in the table name field 21, record length field 22, and record number field 23 of the i-th record of the memory file management table 20 (step 43). Next, check the memory area of shared memory table 3 according to the specified record length and number of records,
Necessary information is stored in the shared memory table management section 31, and all values of the contents of the shared memory table main body section 32 are initialized to zero (step 44). Next, store the values of the shared memory full management section location field 24 and the shared memory table main body location field 25 of the memory file management table 20 (step 45),
Ending the shared memory table creation process (step 46
).

第5図は、共有メモリテーブル作成処理が完了した後の
メモリファイル化管理テーブル20と、共有メモリテー
ブル3の関係例を示す図である。
FIG. 5 is a diagram showing an example of the relationship between the memory file management table 20 and the shared memory table 3 after the shared memory table creation process is completed.

メモリファイル化管理テーブル20の共有メモリテーブ
ル管理部ロケーションフィールド24と共有メモリテー
ブル3の共有メモリテーブル管理部31とが、共有メモ
リテーブル本体部ロケーションフィールド25と共有メ
モリテーブル本体部32とが対応している。共有メモリ
テーブル3の削除は、メモリファイル化手段1の共有メ
モリテーブル作成処理が終了する時に、自動的に行われ
る。
The shared memory table management section location field 24 of the memory filing management table 20 corresponds to the shared memory table management section 31 of the shared memory table 3, and the shared memory table body section location field 25 and the shared memory table body section 32 correspond to each other. There is. The deletion of the shared memory table 3 is automatically performed when the shared memory table creation process of the memory file creation means 1 is completed.

第6図は、アプリケーションプログラム5からの要求で
行なわれるデータベースアクセス処理手順を説明するフ
ローチャートである。データベースアクセス処理を關始
しくステップ61)、アプリケーションプログラム5か
らデータベースリカバリ手段2にデータベースアクセス
要求(入力。
FIG. 6 is a flowchart illustrating the database access processing procedure performed in response to a request from the application program 5. At the beginning of the database access process (step 61), the application program 5 issues a database access request (input) to the database recovery means 2.

出力要求)が行なわれる(ステップ62)。データベー
スリカバリ手段2は、アクセス前処理を行ない(ステッ
プ63)、次に該当ディスク装置へのファイルI10要
求を行ない、ディスク装置の識別を行なう(ステップ6
4)。該当ディスク装置が、実際の磁気ディスク装置で
あるなら、データベースファイル4において、通常のフ
ァイルI10が行なわれる(ステップ65〜67)。デ
ィスク装置が、メモリファイル化手段1であるなら、メ
モリファイル化手段1を介して共有メモリテーブル3へ
のアクセスが行なわれる(ステップ70〜72)。いず
れにせよ、データベースファイルエ10結果通知がデー
タベースリカバリ手段2に返される(ステップ67又は
72)。データベースリカバリ手段1では、その後、ア
クセス後処理を行ない(ステップ68)、データベース
アクセスは終了する(ステップ69)。
Output request) is made (step 62). The database recovery means 2 performs access preprocessing (step 63), then issues a file I10 request to the relevant disk device, and identifies the disk device (step 6).
4). If the relevant disk device is an actual magnetic disk device, normal file I10 is performed in database file 4 (steps 65 to 67). If the disk device is the memory filing means 1, the shared memory table 3 is accessed via the memory filing means 1 (steps 70 to 72). In any case, the database file 10 result notification is returned to the database recovery means 2 (step 67 or 72). The database recovery means 1 then performs post-access processing (step 68), and the database access ends (step 69).

〔発明の効果つ 以上説明したように本発明は、データベースリカバリ機
能を有する計算機システムにおいて、記憶装置上の共有
メモリテーブルを磁気ディスク装置上のファイルにみせ
かける手段、即ちティスフファイルインタフェースを模
擬するメモリファイル化手段を導入することにより、ユ
ーザ毎に特別な手段を講することなく、共有メモリテー
ブルの内容を常にデータベースと整合性のとれた状態に
保つことができる。このため、共有メモリをアクセスす
るアプリケーションプログラムの生産性。
[Effects of the Invention As explained above, the present invention provides a means for making a shared memory table on a storage device appear to be a file on a magnetic disk device, that is, simulating a file interface in a computer system having a database recovery function. By introducing the memory file conversion means, the contents of the shared memory table can always be kept consistent with the database without requiring special measures for each user. This reduces the productivity of application programs that access shared memory.

保守性、運用性が高まるという効果がある。This has the effect of improving maintainability and operability.

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

第1図は本発明の1実施例の機能ブロック図、第2図は
メモリファイル化管理テーブルの構成例を示す図、第3
図は共有メモリテーブルの構成例を示す図、第4図は第
2図の共有メモリテーブルの作成処理手順を示すフロー
チャート、第5図はメモリファイル化管理テーブルと共
有メモリテーブルの関係例を示す図、第6図はアプリケ
ーションプログラムからの要求で行なわれるデータベー
スアクセス処理手順を示すフローチャートである。 1・・・・・・メモリファイル化手段、2・・・・・・
データベースリカバリ手段、3・・・・・・共有メモリ
テーブル、4・・・・・・メモリファイル化手段、5・
・・・・・アプリケーションプログラム、20・・・・
・・メモリファイル化管理テーブル、21・・・・・・
テーブル名フィールド、22・・・・・レコード長フィ
ールド、23・・・・・・レコード数フィールド、24
・・・・・・共有メモリテーブル管理部ロケーションフ
ィールド、25・・・・・・共有テーブル本体部ロケー
ションフィールド、31・・・・・・共有メモリテーブ
ル管理部、32・・・・・・共有メモリテーブル本体部
。 代理人 弁理士  内 原   晋
FIG. 1 is a functional block diagram of one embodiment of the present invention, FIG. 2 is a diagram showing an example of the configuration of a memory file management table, and FIG.
The figure shows an example of the configuration of a shared memory table, FIG. 4 is a flowchart showing the procedure for creating the shared memory table in FIG. 2, and FIG. 5 shows an example of the relationship between the memory file management table and the shared memory table. , FIG. 6 is a flowchart showing the database access processing procedure performed in response to a request from an application program. 1...Memory file conversion means, 2...
Database recovery means, 3... Shared memory table, 4... Memory file conversion means, 5.
...Application program, 20...
...Memory file management table, 21...
Table name field, 22...Record length field, 23...Number of records field, 24
. . . Shared memory table management section location field, 25 . . . Shared table body section location field, 31 . . . Shared memory table management section, 32 . . . Shared memory Table main body. Agent Patent Attorney Susumu Uchihara

Claims (1)

【特許請求の範囲】[Claims] データベースリカバリ機能を有する計算機システムにお
いて、磁気ディスク装置のディスクファイルインタフェ
ースを模擬することにより記憶装置上のメモリテーブル
を前記磁気ディスク装置上のファイルにみせかけるメモ
リファイル化手段と、前記磁気ディスク装置上のデータ
ベースファイルと前記ディスクファイルインタフェース
が模擬された前記メモリテーブルとを区別せずデータリ
カバリ制御を行なうデータベースリカバリ手段とを有す
ることを特徴とする共有メモリテーブルリカバリ機能付
き計算機システム。
In a computer system having a database recovery function, a memory file conversion means for making a memory table on a storage device appear to be a file on the magnetic disk device by simulating a disk file interface of the magnetic disk device; A computer system with a shared memory table recovery function, comprising: a database recovery means that performs data recovery control without distinguishing between a database file and the memory table in which the disk file interface is simulated.
JP2190306A 1990-07-18 1990-07-18 Computer system with shared memory table recovering function Pending JPH0476744A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2190306A JPH0476744A (en) 1990-07-18 1990-07-18 Computer system with shared memory table recovering function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2190306A JPH0476744A (en) 1990-07-18 1990-07-18 Computer system with shared memory table recovering function

Publications (1)

Publication Number Publication Date
JPH0476744A true JPH0476744A (en) 1992-03-11

Family

ID=16255968

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2190306A Pending JPH0476744A (en) 1990-07-18 1990-07-18 Computer system with shared memory table recovering function

Country Status (1)

Country Link
JP (1) JPH0476744A (en)

Similar Documents

Publication Publication Date Title
JPH04227550A (en) Data processing apparatus
JPH0476744A (en) Computer system with shared memory table recovering function
JPS63156477A (en) image file device
McLellan Effective data management for VLSI design
JP2836093B2 (en) Database search device
JPH04314129A (en) File managing system
JP3143909B2 (en) File processing device
JPH05257775A (en) Data processing device
JP2658097B2 (en) Secondary file creation method
JP2852162B2 (en) Database management device
JP2000123038A (en) Database device, database access method, and recording medium recording database access program
JPH02116936A (en) Reorganizing system
JPH04336341A (en) File access control system
JPH0816369A (en) Method and system for clustering
JPS63304338A (en) Logical file access method
JP2004302840A (en) Database access method
JPH02208750A (en) File access system
JPH05127965A (en) Design information restoring method
JPH04188339A (en) Control system for deleted record
JPS62120534A (en) Management system of sequence property of data
JPS6312044A (en) Data managing system for electronic computer system
JPS63269224A (en) Data base access system
JPS6398776A (en) File retrieving system
JPH03127140A (en) Program dynamic generation system
JPH03211636A (en) Method for controlling file of floppy disk