JPH11219306A - System for storing record of file - Google Patents

System for storing record of file

Info

Publication number
JPH11219306A
JPH11219306A JP10020642A JP2064298A JPH11219306A JP H11219306 A JPH11219306 A JP H11219306A JP 10020642 A JP10020642 A JP 10020642A JP 2064298 A JP2064298 A JP 2064298A JP H11219306 A JPH11219306 A JP H11219306A
Authority
JP
Japan
Prior art keywords
file
record
target
update
reorganization
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
JP10020642A
Other languages
Japanese (ja)
Inventor
Nobuaki Akama
宣昭 赤間
Katsuya Tokuda
勝也 徳田
Tetsuro Sato
哲朗 佐藤
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP10020642A priority Critical patent/JPH11219306A/en
Publication of JPH11219306A publication Critical patent/JPH11219306A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To execute reorganization processing of a file without suppressing an access to a file. SOLUTION: A record being a retrieval/update object is stored in an objective file. A retrieval file 105 manages to which objective file in files 103, 104, 108 and 109 the record being the retrieval/update object is stored. A storage condition table 102 manages the storage condition of the record in the objective file. In the system, the record being a reorganization object is stored in one objective file and the extraction processing of the record being the reformation object is not required. The objective file is blocked by changing the storage condition and it can temporarily be removed from the object of retrieval, addition and update. Thus, a processing can be executed in parallel to the retrieval/ addition/update of the other objective file during reorganization of the record stored in the objective file. Namely, it is not necessary to suppress an access to the record during reorganization.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、ファイルの再編成
方式に関し、特にオンライン処理中であっても、処理を
停止することなく、格納されている不要となったレコー
ドの削除を行うことができるレコードの格納方式に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a file reorganization method, and in particular, can delete stored unnecessary records without stopping the processing even during online processing. Regarding the record storage method.

【0002】[0002]

【従来の技術】一般にファイルは、レコードの追加、更
新、削除を行っていく。特にレコードの追加、更新は必
要に応じて逐次処理されるが、削除は特に該当レコード
があることで、不都合が生じる場合を除いて処理される
ことは希である。そのため、ファイルには不要となった
レコードがいつまでも格納されており、ファイルのレコ
ード格納領域が増大してしまう。更に、レコードの格納
される記憶装置上の物理的な配置の乱れが生じる場合も
あり、レコードのアクセス性能を低下させる要因にもな
る。そこで、ある一定の条件を決めて、不要になったレ
コードを削除することが必要になる。これをファイルの
再編成とよぶ。これらの再編成では、格納されているす
べてのレコードを読み出し、別の記憶装置にバックアッ
プした後、一定の条件で、格納対象となるレコードを抜
き出し、レコードを元の記憶装置に再格納する。しか
し、このような処理では再格納対象となるレコードの抜
き出し途中に、格納条件となる項目が変更されると正し
く再編成されなくなるため、再編成中のレコードの追
加、更新、削除を抑止する必要があった。このため、2
4時間運用しているシステム(たとえば、休日夜間も稼
動する病院オンラインシステムなど)では、再編成時間
を決めて、システム停止し再編成処理をおこなってき
た。また、再編成中のレコードのアクセス抑止の範囲を
局所化する事を目的とした発明として、「データベース
管理システムおよびデータベース管理方法」(特開平6
−13911)が公報に記載されている。
2. Description of the Related Art Generally, records are added, updated, and deleted in a file. In particular, the addition and updating of records are processed sequentially as necessary, but the deletion is rarely processed except for the case where inconvenience occurs due to the presence of the relevant record. Therefore, unnecessary records are stored in the file forever, and the record storage area of the file increases. Further, the physical arrangement on the storage device in which the record is stored may be disturbed, which may cause a decrease in the access performance of the record. Therefore, it is necessary to determine certain conditions and delete unnecessary records. This is called file reorganization. In these reorganizations, all stored records are read out, backed up to another storage device, and then, under certain conditions, records to be stored are extracted and the records are stored again in the original storage device. However, in such a process, if the item that becomes the storage condition is changed during the extraction of the record to be re-stored, it will not be reorganized correctly, so it is necessary to suppress the addition, update, and deletion of records during reorganization was there. Therefore, 2
In a system that operates for four hours (for example, a hospital online system that operates even on holidays and nights), a reorganization time is determined, the system is stopped, and reorganization processing is performed. Further, as an invention aimed at localizing the range of access suppression of records during reorganization, a “database management system and a database management method” (Japanese Patent Laid-Open No.
-13911) is described in the official gazette.

【0003】この発明によれば、データをM(M>1)
個に分割し、分割したM個のデータをN(N>M)個の
記憶装置に分割して記憶させ、このN個の記憶装置内
で、M個を順次移動することで、移動中のデータのみア
クセス抑止し局所化を実現している。
According to the present invention, data is M (M> 1)
The M pieces of data are divided and stored in N (N> M) storage devices, and the M pieces of data are sequentially moved in the N storage devices, so Access only to data is suppressed to achieve localization.

【0004】[0004]

【発明が解決しようとする課題】本発明は、レコードの
追加、更新、削除を抑止することなく、レコードの再編
成を可能にすることにある。
SUMMARY OF THE INVENTION It is an object of the present invention to enable a record to be reorganized without inhibiting addition, update and deletion of a record.

【0005】[0005]

【課題を解決するための手段】本発明は、レコードを格
納している複数個の対象ファイルと、レコードの格納さ
れている対象ファイルの名称を格納している検索用ファ
イルと、対象ファイルの格納条件を管理している格納条
件表からなっている。
According to the present invention, a plurality of target files storing records, a search file storing the name of the target file storing the records, and a storage of the target files are provided. It consists of a storage condition table that manages conditions.

【0006】本発明は、再編成対象となるレコードが1
つの対象ファイルに格納されており、再編成対象レコー
ドの抽出処理が不要である。さらに、格納条件表を変更
することで、上記対象ファイルを閉塞し、検索、追加、
更新対象から一時的に除くことができるため、その対象
ファイルに格納されているレコードの再編成中でも、ほ
かの対象ファイルの検索、追加、更新と並行して処理す
ることができる。すなわち、再編成中にもレコードアク
セスを抑止する必要がない。
According to the present invention, if the record to be reorganized is one,
Are stored in two target files, and the process of extracting the reorganization target records is unnecessary. Further, by changing the storage condition table, the target file is blocked, and search, addition,
Since it can be temporarily removed from the update target, it can be processed in parallel with the search, addition, and update of other target files even during reorganization of the records stored in the target file. That is, there is no need to suppress record access during reorganization.

【0007】[0007]

【発明の実施の形態】以下、本発明に関わるファイル格
納方式の一実施例を示す。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of a file storage system according to the present invention will be described below.

【0008】図1は本発明におけるファイルの構造を示
したものである。101は検索用ファイルである。10
2は格納条件表である。103,104,108,10
9はレコードを格納する対象ファイルである。この例で
は対象ファイルを4つとしているが、対象ファイルの数
は2つ以上であればいくつでもよい。検索表105は、
検索・更新対象となるレコードがどの対象ファイル(1
03,104,108,109)に格納されているかを
管理している。格納条件表(102)は対象ファイルの
格納条件を管理している。この例では、対象ファイルを
4つ用意しており、格納条件として、検索・更新対象と
なるレコード(106)中のレコード更新日(107)
が、何月になっているかを判断するようにしてある。フ
ァイル1は8月更新分を格納する。ファイル2は9月更
新分を格納する、ファイル3は10月更新分を格納する
ように設定してある。また、ファイル4の格納条件OF
Fは対象ファイルが閉塞状態にある事を示している。ま
た、この例での再編成の条件であるが、レコード更新日
が3ヵ月以上(10月なら7月の更新分、11月なら8
月更新分)になると削除するものとする。対象ファイル
には検索・更新対象となるレコードが格納されている。
FIG. 1 shows the structure of a file according to the present invention. Reference numeral 101 denotes a search file. 10
2 is a storage condition table. 103, 104, 108, 10
Reference numeral 9 denotes a target file for storing records. In this example, there are four target files, but the number of target files may be any number as long as it is two or more. The search table 105 is
Which target file (1
03, 104, 108, and 109). The storage condition table (102) manages the storage conditions of the target file. In this example, four target files are prepared, and the record update date (107) in the record (106) to be searched / updated is stored as the storage condition.
Is trying to determine what month it is. File 1 stores the August update. File 2 stores the September update, and file 3 stores the October update. Also, the storage condition OF of the file 4
F indicates that the target file is in a blocked state. The condition of the reorganization in this example is that the record update date is 3 months or more (in October, the update in July, and in November, the update date is 8 months).
Monthly update) will be deleted. The target file stores records to be searched and updated.

【0009】図2は、図1に示したファイル構造におい
て、対象ファイルのレコードを参照する場合のフローチ
ャートを示したものである。検索プログラムが対象ファ
イルのレコードのキーを指定して、対象ファイルのレコ
ード参照指示を行うと、はじめに、検索用ファイル(1
01)中のキーの一致するレコードを検索する(ステッ
プ201)。検索用ファイル(101)中の該当キーの
レコードの有無を判定し(ステップ202)、レコード
がない場合は該当レコードなしの情報をプログラムへ返
し(ステップ206)、終了する(ステップ207)。
レコードがある場合は、格納条件表(102)から該当
レコードのファイル名と一致する格納条件を検索後(ス
テップ203)、格納条件を判定し(ステップ20
4)、OFFのとき、すなわち当該レコードが再編成処
理後の状態にあるときは、該当レコードなしをプログラ
ムへ返し(ステップ206)、終了する(ステップ20
7)。OFF以外のときは検索用ファイル(101)の
該当レコードのファイル名の対象ファイルのレコードを
参照し(ステップ205)、レコード情報をプログラム
へ返し、終了する(ステップ207)。
FIG. 2 shows a flowchart in the case of referring to the record of the target file in the file structure shown in FIG. When the search program specifies the record key of the target file and instructs the record reference of the target file, first, the search file (1
01) A search is made for a record that matches the key in (step 201). It is determined whether or not there is a record of the corresponding key in the search file (101) (step 202). If there is no record, information indicating that there is no corresponding record is returned to the program (step 206), and the process ends (step 207).
If there is a record, the storage condition table (102) is searched for a storage condition that matches the file name of the record (step 203), and the storage condition is determined (step 20).
4) If the record is OFF, that is, if the record is in a state after the reorganization processing, the absence of the record is returned to the program (step 206), and the process ends (step 20).
7). If it is not OFF, reference is made to the record of the target file having the file name of the record of the search file (101) (step 205), the record information is returned to the program, and the process ends (step 207).

【0010】図3は、図1に示したファイル構造におい
て、対象ファイルのレコードを更新する場合のフローチ
ャートを示したものである。更新プログラムが対象ファ
イルのレコードのキーを指定して、対象ファイルのレコ
ード更新指示を行うと、検索用ファイル(101)を更
新指示のキーを使って、キーの一致するレコードを検索
する(ステップ301)。検索用ファイル(101)中
の該当レコードの有無を判定し(ステップ302)、レ
コードのない場合は該当レコードなしを更新プログラム
へ返し(ステップ306)、終了する(ステップ31
1)。該当レコードがある場合は、格納条件表(10
2)から該当レコードのファイル名と一致する格納条件
を検索後(ステップ303)、格納条件を判定し(ステ
ップ304)、OFFのときは該当レコードなしを更新
プログラムへ返し(ステップ306)、終了する(ステ
ップ311)。これは、既にプログラムへ返し(ステッ
プ306)、終了する(ステップ311)。これは、既
にレコード再編成処理が行われていて、レコード更新が
できない状態である。OFF以外のときは、更新プログ
ラムからレコードの更新要求を受けた日が、格納条件表
(102)のどこにあてはまるか判定し、該当するファ
イル名を取得する(ステップ305)。この例では、プ
ログラムから更新要求のあったレコードのレコード更新
日が9月中であればファイル2が、10月中であればフ
ァイル3が決定される。検索用ファイルの該当レコード
のファイル名と、ステップ305で求めた対象ファイル
を比較し(ステップ307)、一致する場合はステップ
305で求めた対象ファイルのレコードを更新し(ステ
ップ310)、終了する(ステップ311)。検索用フ
ァイルの該当レコードのファイル名と、ステップ305
で求めた対象ファイルが一致しない場合は、ステップ3
05で求めた対象ファイルにレコードを追加し(ステッ
プ308)、検索用ファイルのレコードのファイル名を
ステップ305で求めた対象ファイル名に変更して更新
し(ステップ309)、終了する(ステップ311)。
これにより、最新のレコード更新日に対応した対象ファ
イルに更新レコードが移動し、それ以前に格納されてい
たレコードは不要レコードになる。なお、不要レコード
はファイル再編成処理時に削除される。図1の検索用フ
ァイル、対象ファイルに対し、キーが「000−001
−7」、「000−002−4」、「000−003−
1」、「000−004−8」について10月1日に更
新処理を行った場合の、検索表、対象ファイルを図7に
示す(701,702,703,704,705,70
6)。ただし、「000−004−8」の更新処理は、
該当レコードなしとなる(ステップ306)となるた
め、対象ファイルへのレコード更新は行わない。
FIG. 3 shows a flowchart in the case of updating the record of the target file in the file structure shown in FIG. When the update program designates a record key of the target file and issues a record update instruction of the target file, the search file (101) is searched for a record having the same key using the update instruction key (step 301). ). The presence or absence of the corresponding record in the search file (101) is determined (step 302). If there is no record, the absence of the corresponding record is returned to the update program (step 306), and the process ends (step 31).
1). If there is a corresponding record, the storage condition table (10
After searching for a storage condition that matches the file name of the relevant record from 2) (step 303), the storage condition is determined (step 304). If it is OFF, no record is returned to the update program (step 306), and the process ends. (Step 311). This is already returned to the program (step 306), and the process ends (step 311). This is a state in which record reorganization processing has already been performed and record updating cannot be performed. If it is not OFF, it is determined where the date when the record update request is received from the update program in the storage condition table (102), and the corresponding file name is acquired (step 305). In this example, if the record update date of the record requested to be updated by the program is during September, file 2 is determined, and if it is during October, file 3 is determined. The file name of the corresponding record in the search file is compared with the target file determined in step 305 (step 307). If they match, the record of the target file determined in step 305 is updated (step 310), and the process ends (step 310). Step 311). Step 305: the file name of the corresponding record in the search file
If the target files obtained in step do not match, step 3
A record is added to the target file obtained in step 05 (step 308), the file name of the record of the search file is changed to the target file name obtained in step 305, updated (step 309), and the process is terminated (step 311). .
As a result, the updated record is moved to the target file corresponding to the latest record update date, and the record stored before that becomes an unnecessary record. Unnecessary records are deleted during the file reorganization process. The key is “000-001” for the search file and target file in FIG.
-7 "," 000-002-4 "," 000-003-
FIG. 7 shows a search table and target files when the update processing was performed on October 1 for “1” and “000-004-8” (701, 702, 703, 704, 705, and 70).
6). However, the update process of “000-004-8”
Since there is no corresponding record (step 306), the record is not updated to the target file.

【0011】図4は、図1に示したファイル構造におい
て、対象ファイルにレコードを追加する場合のフローチ
ャートを示したものである。追加プログラムがキーを指
定して対象ファイルのレコードの追加指示を行うと、検
索用ファイル(101)から、キーの一致するレコード
を検索する(ステップ401)。検索用ファイル中の該
当レコードの有無を判定し(ステップ402)、該当レ
コードがない場合は、追加プログラムからレコードの更
新要求を受けた日が、格納条件表(102)のどこにあ
てはまるか判定し、該当するファイル名を取得する(ス
テップ405)。
FIG. 4 is a flowchart showing a case where a record is added to a target file in the file structure shown in FIG. When the additional program designates a key and instructs to add a record of the target file, a search is made for a record having the same key from the search file (101) (step 401). It is determined whether or not there is a corresponding record in the search file (step 402). If there is no corresponding record, it is determined where in the storage condition table (102) the date when the record update request is received from the additional program is applicable, The corresponding file name is obtained (step 405).

【0012】この例では、追加レコードのレコード更新
日が、9月中であればファイル2が、10月中であれば
ファイル3が決定される。次に、ステップ405で求め
た対象ファイルにレコードを追加し(ステップ40
6)、検索用ファイルのレコード中のファイル名にステ
ップ405で求めた対象ファイル名をセットして、検索
用ファイルにレコード追加を行い(ステップ407)、
終了する(ステップ412)。検索用ファイル中の該当
レコードの有無を判定して(ステップ402)、該当レ
コードがある場合、格納条件表(102)から該当レコ
ードのファイル名と一致する格納条件を検索後(ステッ
プ403)、格納条件を判定し(ステップ404)、格
納条件がOFF以外のときは追加するレコードがすでに
対象ファイルに格納されている状態のため、レコード重
複エラーを更新プログラムへ返し(ステップ411)、
終了する(ステップ412)。格納条件がOFFのとき
は、すなわち過去に一度格納していたが、再編成処理に
より削除された場合である。このときは、追加プログラ
ムからレコードの更新要求を受けた日が、格納条件表
(102)のどこにあてはまるか判定し、該当するファ
イル名を取得する(ステップ408)。ステップ408
で求めた対象ファイルにレコードを追加し(ステップ4
09)、検索用ファイルのレコードのファイル名にステ
ップ408で求めた対象ファイル名をセットして更新を
行い(ステップ410)、終了する(ステップ41
2)。図1の検索用ファイル、対象ファイルに対し、キ
ーが「000−001−7」、「000−004−
8」、「000−006−2」について、10月1日に
追加処理を行った場合の、検索表、対象ファイルを図8
に示す(801,802,803,804,805,8
06)。ただし、「000−001−7」はステップ4
11でレコード重複エラーとなる。
In this example, if the record update date of the additional record is in September, file 2 is determined, and if the record update date is in October, file 3 is determined. Next, a record is added to the target file obtained in step 405 (step 40).
6) The target file name obtained in step 405 is set as the file name in the record of the search file, and the record is added to the search file (step 407).
The process ends (step 412). The presence or absence of the corresponding record in the search file is determined (step 402). If there is the corresponding record, the storage condition table (102) is searched for a storage condition that matches the file name of the record (step 403), and stored. The condition is determined (step 404). If the storage condition is not OFF, a record duplication error is returned to the update program because the record to be added is already stored in the target file (step 411).
The process ends (step 412). When the storage condition is OFF, that is, when the data has been stored once in the past but has been deleted by the reorganization process. At this time, it is determined where the date when the record update request is received from the additional program in the storage condition table (102), and the corresponding file name is obtained (step 408). Step 408
Add a record to the target file determined in (4)
09), the target file name obtained in step 408 is set as the file name of the record of the search file, the update is performed (step 410), and the process ends (step 41).
2). The keys for the search file and the target file in FIG. 1 are “000-001-7” and “000-004-”.
8 and “000-006-2”, the search table and the target file are shown in FIG.
(801, 802, 803, 804, 805, 8
06). However, “000-001-7” corresponds to step 4
11, a record duplication error occurs.

【0013】図5は、図1に示したファイル構造におい
て、対象ファイルのレコードを削除する場合のフローチ
ャートを示したものである。削除プログラムがレコード
削除指示を行うと、検索用ファイル中のキーと一致する
レコードを検索する(ステップ501)。検索用ファイ
ル中の該当レコードの有無を判定し(ステップ50
2)、該当レコードがない場合は、削除プログラムに削
除エラーを返し(ステップ503)、終了する(ステッ
プ508)。該当レコードがある場合は、格納条件表
(102)から該当レコードのファイル名と一致する格
納条件を検索後(ステップ504)、格納条件を判定し
(ステップ505)、格納条件がOFFのときは削除エ
ラーを削除プログラムに返し(ステップ503)、終了
する(ステップ508)。格納条件がOFF以外のとき
は、対象ファイルのレコードを削除し(ステップ50
6)、検索用ファイルの該当レコードを削除し(ステッ
プ507)、終了する(ステップ508)。
FIG. 5 shows a flowchart in the case of deleting the record of the target file in the file structure shown in FIG. When the deletion program issues a record deletion instruction, a record matching the key in the search file is searched (step 501). It is determined whether or not the corresponding record exists in the search file (step 50).
2) If there is no corresponding record, a deletion error is returned to the deletion program (step 503), and the process ends (step 508). If there is a corresponding record, after searching the storage condition table (102) for a storage condition that matches the file name of the record (step 504), the storage condition is determined (step 505), and if the storage condition is OFF, it is deleted. The error is returned to the deletion program (step 503), and the process ends (step 508). If the storage condition is not OFF, the record of the target file is deleted (step 50).
6), the corresponding record in the search file is deleted (step 507), and the process ends (step 508).

【0014】以上により、格納条件表に設定された格納
条件に従い、対象ファイルが決定され、レコードの追
加、更新、削除が行われる。その結果各対象ファイルの
レコードは同じ格納条件をもつ。この格納条件は、あら
かじめ再編成条件と一致しているため、ある対象ファイ
ルの中に含まれる全レコードは再編成条件により抽出さ
れたと同じ状態にある。
As described above, the target file is determined in accordance with the storage conditions set in the storage condition table, and records are added, updated, and deleted. As a result, the records of each target file have the same storage conditions. Since this storage condition matches the reorganization condition in advance, all records included in a certain target file are in the same state as extracted by the reorganization condition.

【0015】図6は、図1に示したファイル構造におい
て、再編成処理を実行する場合のフローを示したもので
ある。再編成を行う日(この例では11月1日とする)
になると、格納条件表から格納条件がOFFのものすな
わち、ファイル4の格納条件を変更する(ステップ60
1)。この例では「レコード更新日が11月」と設定す
る。この事で、いままで閉塞されていた対象ファイルを
アクセス対象にする。次に、再編成対象となるファイル
(11月から3ヵ月以上であるから、8月更新分のファ
イル、すなわちファイル1)の更新条件をOFFに変更
する(ステップ602)。OFFにした対象ファイルを
閉塞後、対象ファイルの初期化を行い(ステップ60
3)、終了する(ステップ604)。
FIG. 6 shows a flow when a reorganization process is executed in the file structure shown in FIG. Date of reorganization (November 1 in this example)
Then, the storage condition of the file 4 is changed from the storage condition table to OFF, that is, the storage condition of the file 4 is changed (step 60).
1). In this example, “the record update date is November” is set. As a result, the target file that has been blocked is set as an access target. Next, the update condition of the file to be reorganized (the file updated in August since it is three months or more from November, that is, file 1) is changed to OFF (step 602). After closing the target file that has been turned off, the target file is initialized (step 60).
3), end (step 604).

【0016】[0016]

【発明の効果】本発明のファイルのレコード格納方式
は、ファイルの再編成処理とファイルのセクセスを並行
して行うことが可能であるため、オンラインシステムを
停止することなくファイルの再編成処理ができる。
According to the file record storage method of the present invention, the file reorganization processing and the file access can be performed in parallel, so that the file reorganization processing can be performed without stopping the online system. .

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

【図1】本発明におけるファイルの構造を示す説明図で
ある。
FIG. 1 is an explanatory diagram showing the structure of a file according to the present invention.

【図2】ファイル格納方式におけるレコードの参照手順
を示すフローチャートである。
FIG. 2 is a flowchart showing a record reference procedure in a file storage method.

【図3】ファイル格納方式におけるレコードの更新手順
を示すフローチャートである。
FIG. 3 is a flowchart showing a record update procedure in a file storage method.

【図4】ファイル格納方式におけるレコードの追加手順
を示すフローチャートである。
FIG. 4 is a flowchart showing a procedure for adding a record in the file storage method.

【図5】ファイル格納方式におけるレコードの削除手順
を示すフローチャートである。
FIG. 5 is a flowchart showing a record deletion procedure in the file storage method.

【図6】ファイル格納方式における削除対象となったフ
ァイルの再編成手順を示すフローチャートである。
FIG. 6 is a flowchart showing a procedure for reorganizing a file to be deleted in the file storage method.

【図7】図1のファイルに対して、更新処理を行った後
のファイルである。
FIG. 7 is a file after performing an update process on the file of FIG. 1;

【図8】図1のファイルに対して、追加処理を行った後
のファイルである。
FIG. 8 is a file obtained by performing an addition process on the file of FIG. 1;

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

101…検索用ファイル、 102…格納条件
表、103…対象ファイル ファイル1、104…対象
ファイル ファイル2、105…検索表、
106…対象ファイルのレコード、107…対象
ファイルのレコードのレコード更新日、108…対象フ
ァイル ファイル3、109…対象ファイル ファイル
4、109…対象ファイル ファイル4、701…更新
処理後の検索表、702…更新処理後の対象ファイル
ファイル1、703…更新処理後の対象ファイル ファ
イル2、704…更新処理後の対象ファイル ファイル
3、705…更新処理後の対象ファイル ファイル4、
706…格納条件表、 801…追加処理
後の検索表、802…追加処理後の対象ファイル ファ
イル1、803…追加処理後の対象ファイル ファイル
2、804…追加処理後の対象ファイル ファイル3、
805…追加処理後の対象ファイル ファイル4、80
6…格納条件表。
101: Search file, 102: Storage condition table, 103: Target file File 1, 104: Target file File 2, 105: Search table,
106: Record of target file, 107: Record update date of record of target file, 108: Target file File 3, 109: Target file File 4, 109: Target file File 4, 701: Search table after update processing, 702 ... Target file after update processing
File 1, 703: Target file after update processing File 2, 704: Target file after update processing File 3, 705: Target file after update processing File 4,
706: Storage condition table, 801: Search table after addition processing, 802: Target file after addition processing File 1, 803 ... Target file after addition processing File 2, 804 ... Target file after addition processing File 3,
805: Target file after addition processing File 4, 80
6. Storage condition table.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】ファイルの再編成が必要となるシステムに
おいて、レコードを格納するための2つ以上の対象ファ
イルと、当該対象ファイルの名称と更新日を条件とする
格納条件を対とした格納条件表と、レコードのキー情報
と当該レコードを格納している対象ファイルの名称を対
とした検索用ファイルからなるファイル構造において、
検索用ファイルと格納条件表のどれか1つ以上の項目を
変更することで、対象ファイルに格納されたレコードの
再編成条件を変更できるようにしたことを特徴とするレ
コード格納方式。
In a system that requires reorganization of files, two or more target files for storing records, and storage conditions that are pairs of storage conditions based on the names of the target files and update dates In a file structure consisting of a table and a search file in which key information of a record and a name of a target file storing the record are paired,
A record storage method, wherein a reorganization condition of a record stored in a target file can be changed by changing at least one item of a search file and a storage condition table.
JP10020642A 1998-02-02 1998-02-02 System for storing record of file Pending JPH11219306A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10020642A JPH11219306A (en) 1998-02-02 1998-02-02 System for storing record of file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10020642A JPH11219306A (en) 1998-02-02 1998-02-02 System for storing record of file

Publications (1)

Publication Number Publication Date
JPH11219306A true JPH11219306A (en) 1999-08-10

Family

ID=12032890

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10020642A Pending JPH11219306A (en) 1998-02-02 1998-02-02 System for storing record of file

Country Status (1)

Country Link
JP (1) JPH11219306A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011150458A (en) * 2010-01-20 2011-08-04 Internatl Business Mach Corp <Ibm> Information processor, information processing system, data archiving method and data deletion method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011150458A (en) * 2010-01-20 2011-08-04 Internatl Business Mach Corp <Ibm> Information processor, information processing system, data archiving method and data deletion method
US8745009B2 (en) 2010-01-20 2014-06-03 International Business Machines Corporation Information processor, information processing system, data archiving method, and data deletion method
US8849766B2 (en) 2010-01-20 2014-09-30 International Business Machines Corporation Information processor, information processing system, data archiving method, and data deletion method

Similar Documents

Publication Publication Date Title
US9652519B2 (en) Replicating data across multiple copies of a table in a database system
US5727202A (en) Method and apparatus for synchronizing information on two different computer systems
US8386494B2 (en) Providing data structures for determining whether keys of an index are present in a storage system
US7933870B1 (en) Managing file information
US8938430B2 (en) Intelligent data archiving
US20010016853A1 (en) Method and apparatus for synchronizing information on two different computer systems
US7856436B2 (en) Dynamic holds of record dispositions during record management
US20100281005A1 (en) Asynchronous Database Index Maintenance
US20060129618A1 (en) Method and a computer system for synchronising backups of objects and of meta data about the objects
US8954407B2 (en) System and method for partially deferred index maintenance
CA2422161C (en) Decoupled object identification for object switching in database systems
US10776345B2 (en) Efficiently updating a secondary index associated with a log-structured merge-tree database
JP2004086872A (en) Method, apparatus, and processing program for managing database
US7188124B2 (en) Method, system, computer product for recovering dropped database table specifying one or more table spaces, recovering the table space being restored using the dropped table history data structure
US8452730B2 (en) Archiving method and system
US20060004877A1 (en) Method and system for data processing with data replication for the same
US7051051B1 (en) Recovering from failed operations in a database system
US11003540B2 (en) Method, server, and computer readable medium for index recovery using index redo log
US6768985B1 (en) Method and apparatus for administration of database partitions
JPH11219306A (en) System for storing record of file
KR100243113B1 (en) Database management system
US7010552B2 (en) Optimizing command execution in database systems that provide support for updatable scrollable cursors
US20060288340A1 (en) System for acquisition, representation and storage of streaming data
JPH05151056A (en) Data controller
JP3005476B2 (en) Dynamic change system of hash table