JP2012150547A - Management method for database, management device for database and program - Google Patents

Management method for database, management device for database and program Download PDF

Info

Publication number
JP2012150547A
JP2012150547A JP2011006909A JP2011006909A JP2012150547A JP 2012150547 A JP2012150547 A JP 2012150547A JP 2011006909 A JP2011006909 A JP 2011006909A JP 2011006909 A JP2011006909 A JP 2011006909A JP 2012150547 A JP2012150547 A JP 2012150547A
Authority
JP
Japan
Prior art keywords
management
data
database
segment
information
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.)
Granted
Application number
JP2011006909A
Other languages
Japanese (ja)
Other versions
JP5534461B2 (en
JP2011165178A6 (en
Inventor
博之 ▲高▼橋
Hiroyuki Takahashi
Koji Kimura
耕治 木村
Norihiro Hara
憲宏 原
Toru 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.)
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 JP2011006909A priority Critical patent/JP5534461B2/en
Priority to JP2011006909D priority patent/JP2011165178A/en
Publication of JP2011165178A6 publication Critical patent/JP2011165178A6/ja
Publication of JP2012150547A publication Critical patent/JP2012150547A/en
Application granted granted Critical
Publication of JP5534461B2 publication Critical patent/JP5534461B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To enable a user of a database to easily delete desired data without taking into consideration of a storage place of the data.SOLUTION: A computing machine performs the following steps: storing a storage position of data inserted into a database in storage position management information; associating information at the time of insertion of the data into the database with the storage position and storing it in control point information; accepting a deletion request including an element of the control point information as a request for deletion of the data in the database; retrieving the control point information based on the element included in the deletion request to specify the control point information; acquiring the storage position of the data of a deletion object from the specified control point information; extracting the storage position management information including the acquired storage position to initialize it; and deleting the specified control point information.

Description

本発明は、データベースにデータを登録し、データベース上のデータを削除するデータベースの管理方法及び装置の改良に関する。   The present invention relates to an improvement in a database management method and apparatus for registering data in a database and deleting data on the database.

近年のデータベースでは、データをペタ・バイト(以下、PByte)単位で取り扱う大規模なデータベースに対するニーズが高まりつつある。このような大規模データベースにおいては、数ギガ・バイト(以下、GByte)単位のデータを追加または削除するような運用が想定される。例えば、小売店における日々の売上データを追加し、古くなった売上データは削除する、といったような運用が挙げられる。このような場合、データ削除時には、削除したいデータをユーザが条件に指定して削除処理を行う。   In recent databases, there is a growing need for a large-scale database that handles data in petabyte (hereinafter referred to as PByte) units. In such a large-scale database, an operation of adding or deleting data in units of several gigabytes (hereinafter referred to as GByte) is assumed. For example, daily sales data at a retail store is added, and old sales data is deleted. In such a case, when deleting data, the user designates the data to be deleted as a condition and performs the deletion process.

従来のデータ削除方法として、データ一括挿入処理時に当該一括挿入処理にて挿入したデータレコード群の情報を管理する一括レコード型データを生成し、データ削除時には、一括レコード型データを条件に指定することで、条件に合致する一括レコード型データで管理しているデータレコード群の情報を削除する手法が知られている(例えば、特許文献1)。   As a conventional data deletion method, the batch record type data that manages the information of the data record group inserted by the batch insertion process is generated at the time of the batch data insertion process, and the batch record type data is specified as the condition at the time of data deletion Thus, there is known a method of deleting information of a data record group managed by collective record type data matching a condition (for example, Patent Document 1).

特開平11−065903号公報Japanese Patent Application Laid-Open No. 11-065903

しかしながら、上記従来例では、データの削除処理を行う前に、削除したいデータを管理している一括レコード型データのIDを確認する作業を必要とする。ここで、一括レコード型データでは、利用者に対してデータのIDが明示的に通知していないので、利用者は、いずれのIDにどのようなデータが格納されているかを確認する必要がある。このため、上述のような大規模なデータベースでは、IDの数が膨大であり利用者がデータの格納場所であるIDを特定するのに多大な労力を要するという問題があった。   However, in the above conventional example, before performing the data deletion process, it is necessary to confirm the ID of the batch record type data managing the data to be deleted. Here, in the batch record type data, since the data ID is not explicitly notified to the user, the user needs to check what data is stored in which ID. . For this reason, in the large-scale database as described above, there is a problem that the number of IDs is enormous, and it takes a lot of labor for the user to specify the ID that is the data storage location.

そこで本発明は、上記問題点に鑑みてなされたもので、データベースの利用者がデータの格納場所を意識することなく所望のデータを容易に削除可能にすることを目的とする。   Therefore, the present invention has been made in view of the above problems, and an object of the present invention is to enable a database user to easily delete desired data without being aware of the data storage location.

本発明は、プロセッサとメモリを備えた計算機が、前記計算機に接続された記憶装置に格納されたデータベースを管理するデータベース管理方法であって、前記計算機が、前記データベースに挿入したデータの格納位置を格納位置管理情報に格納する第1のステップと、前記計算機が、前記データベースにデータを挿入したときの情報を前記格納位置に関連づけて管理点情報に格納する第2のステップと、前記計算機が、前記データベースのデータを削除する要求として前記管理点情報の要素を含む削除要求を受け付ける第3のステップと、前記計算機が、前記削除要求に含まれる前記要素から前記管理点情報を検索し、管理点情報を特定する第4のステップと、前記計算機が、前記特定した管理点情報から削除対象のデータの格納位置を取得する第5のステップと、前記計算機が、前記取得した格納位置を含む前記格納位置管理情報を抽出する第6のステップと、前記計算機が、前記抽出した格納位置管理情報を初期化する第7のステップと、前記計算機が、前記特定した管理点情報を削除する第8のステップと、を含む。   The present invention is a database management method in which a computer having a processor and a memory manages a database stored in a storage device connected to the computer, and the storage location of data inserted into the database by the computer is determined. A first step of storing in storage location management information; a second step of storing information when the computer inserts data into the database in management point information in association with the storage location; and the computer, A third step of accepting a deletion request including an element of the management point information as a request to delete data in the database; and the computer searches the management point information from the element included in the deletion request, and A fourth step of identifying information; and the computer determines the storage location of the data to be deleted from the identified management point information. A fifth step in which the computer extracts the storage location management information including the acquired storage location, and a seventh step in which the computer initializes the extracted storage location management information. And an eighth step in which the computer deletes the specified management point information.

したがって、本発明は、データ挿入処理時にデータ格納領域管理用の管理点情報を生成し、データベースの利用者が理解可能な管理点情報の要素と、データの挿入位置を一意で対応させる。データベースのデータを削除する際にはデータベースの利用者が理解可能な管理情報の要素を削除条件として指定することで、格納位置を意識させずにデータの高速な一括削除を実現できる。   Therefore, the present invention generates management point information for managing the data storage area at the time of data insertion processing, and uniquely associates the element of management point information that can be understood by the database user with the data insertion position. When deleting data in the database, it is possible to realize high-speed batch deletion of data without being aware of the storage location by designating management information elements that can be understood by the database user as deletion conditions.

本発明の実施形態を示し、データベースを提供する計算機システムの一例を示すブロック図である。1 is a block diagram illustrating an example of a computer system that provides an embodiment of the present invention and provides a database. FIG. 本発明の実施形態を示し、データベースにデータを一括して挿入する処理の概要を示す流れ図である。It is a flowchart which shows embodiment of this invention and shows the outline | summary of the process which inserts data in a database collectively. 本発明の実施形態を示し、データベースにデータを一括して削除する処理の概要を示す流れ図である。It is a flowchart which shows embodiment of this invention and shows the outline | summary of the process which deletes data collectively to a database. 本発明の実施形態を示し、データベースにデータを一括して削除する指令の一例を示す説明図である。It is explanatory drawing which shows embodiment of this invention and shows an example of the instruction | command which deletes data collectively to a database. 本発明の実施形態を示し、データベースを管理する管理点管理表の一例を示す説明図である。It is explanatory drawing which shows embodiment of this invention and shows an example of the management point management table which manages a database. 本発明の実施形態を示し、データベースのセグメント情報を管理するセグメント情報管理テーブルの一例を示す説明図である。It is explanatory drawing which shows embodiment of this invention and shows an example of the segment information management table which manages the segment information of a database. 本発明の実施形態を示し、データベースの表情報を管理する表情報管理テーブルの一例を示す説明図である。It is explanatory drawing which shows embodiment of this invention and shows an example of the table information management table which manages the table information of a database. 本発明の実施形態を示し、データベース管理装置が行うデータベースの一括挿入処理の概要を示すフローチャートである。It is a flowchart which shows embodiment of this invention and shows the outline | summary of the batch insertion process of the database which a database management apparatus performs. 本発明の実施形態を示し、図8のステップS802で行われる必要セグメント数計算処理の一例を示すフローチャートである。FIG. 9 is a flowchart illustrating an example of necessary segment number calculation processing performed in step S802 in FIG. 8 according to the embodiment of this invention. 本発明の実施形態を示し、図8のステップS803で行われるデータ挿入セグメント確保処理の一例を示すフローチャートである。FIG. 9 is a flowchart illustrating an example of a data insertion segment securing process performed in step S803 in FIG. 8 according to the embodiment of this invention. 本発明の実施形態を示し、図8のステップS804で行われる管理点レコード生成処理の一例を示すフローチャートである。FIG. 9 is a flowchart illustrating an example of a management point record generation process performed in step S804 in FIG. 8 according to the embodiment of this invention. 本発明の実施形態を示し、図8のステップS805で行われるデータ挿入処理の一例を示すフローチャートである。FIG. 9 is a flowchart illustrating an example of data insertion processing performed in step S805 in FIG. 8 according to the embodiment of this invention. 本発明の実施形態を示し、図8のステップS807で行われる管理点レコード更新処理の一例を示すフローチャートである。9 is a flowchart illustrating an example of a management point record update process performed in step S807 of FIG. 8 according to the embodiment of this invention. 本発明の実施形態を示し、データベース管理装置が行うデータベースの一括削除処理の一例を示すフローチャートである。It is a flowchart which shows embodiment of this invention and shows an example of the batch deletion process of the database which a database management apparatus performs. 本発明の実施形態を示し、図14のステップS1403で行われる管理点レコード検索処理の一例を示すフローチャートである。It is a flowchart which shows embodiment of this invention and shows an example of the management point record search process performed by step S1403 of FIG. 本発明の実施形態を示し、図14のステップS1405で行われるセグメント情報管理テーブル初期化処理の一例を示すフローチャートである。It is a flowchart which shows embodiment of this invention and shows an example of the segment information management table initialization process performed by step S1405 of FIG. 本発明の実施形態を示し、図14のステップS1406で行われる表情報管理テーブル更新処理の一例を示すフローチャートである。It is a flowchart which shows embodiment of this invention and shows an example of the table information management table update process performed by step S1406 of FIG. 本発明の変形例を示し、図14のステップS1407で行われる管理点レコード削除処理の一例を示すフローチャートである。It is a flowchart which shows the modification of this invention and shows an example of the management point record deletion process performed by step S1407 of FIG.

以下、本発明の一実施形態を添付図面に基づいて説明する。   Hereinafter, an embodiment of the present invention will be described with reference to the accompanying drawings.

図1は、本発明の実施形態を示し、データベースを提供する計算機システムの一例を示すブロック図である。計算機システムは、データベース管理システム3130を実行するデータベース管理装置3100と、データベース300を格納する外部記憶装置(またはストレージ装置)3200と、データベース管理システム3130にアクセスを要求するクライアント計算機3000と、データベース管理装置3100と外部記憶装置3200及びクライアント計算機3000を接続するネットワーク3300を主体にして構成される。   FIG. 1 is a block diagram illustrating an embodiment of the present invention and an example of a computer system that provides a database. The computer system includes a database management device 3100 that executes the database management system 3130, an external storage device (or storage device) 3200 that stores the database 300, a client computer 3000 that requests access to the database management system 3130, and a database management device. The network 3300 connecting the 3100, the external storage device 3200, and the client computer 3000 is mainly configured.

データベース管理装置3100は、演算処理を行うプロセッサ3110と、データやプログラムを格納するメモリ3120とを備えてデータベース300をクライアント計算機3000に提供するデータベース管理システム3130を実行する。データベース管理装置3100は、外部記憶装置3200からデータベース管理システム3130のプログラムをメモリ3120へ読み込んで、プロセッサ3110が当該プログラムを実行する。   The database management apparatus 3100 includes a processor 3110 that performs arithmetic processing and a memory 3120 that stores data and programs, and executes a database management system 3130 that provides the database 300 to the client computer 3000. The database management device 3100 reads the program of the database management system 3130 from the external storage device 3200 into the memory 3120, and the processor 3110 executes the program.

ネットワーク3300を介してデータベース管理装置3100からアクセスされる外部記憶装置3200は、データベース300及び当該データベースの関連情報を格納する。   The external storage device 3200 accessed from the database management device 3100 via the network 3300 stores the database 300 and related information of the database.

データベース300は、表3220とインデックス3230から構成される。本実施形態では、データベース300は、レコード型のデータベースで構成される。   The database 300 includes a table 3220 and an index 3230. In the present embodiment, the database 300 is composed of a record type database.

データベース関連情報としては、表3220へ挿入するデータを有するデータ一括挿入ファイル3210と、データベース300に対する操作を管理する管理点管理表5100と、データベース300を操作するときに利用するセグメント情報管理テーブル6100と表情報管理テーブル7100とを含む。なお、セグメントは、データベース300におけるデータ格納領域の単位であり、データベース300は複数のセグメントを有し、各セグメント内にデータレコードを格納し、各セグメントはデータベース管理システム3130が付与した一意のIDを有する。セグメント情報管理テーブル6100はセグメントの情報に基づいてデータの格納位置を管理する。データベース管理システム3120は、表情報管理テーブル7100とセグメント情報管理テーブル6100を、データの格納位置管理情報として利用する。   The database related information includes a data batch insertion file 3210 having data to be inserted into the table 3220, a management point management table 5100 for managing operations on the database 300, and a segment information management table 6100 used when operating the database 300. A table information management table 7100. A segment is a unit of a data storage area in the database 300. The database 300 has a plurality of segments, stores data records in each segment, and each segment has a unique ID assigned by the database management system 3130. Have. The segment information management table 6100 manages the data storage location based on the segment information. The database management system 3120 uses the table information management table 7100 and the segment information management table 6100 as data storage location management information.

データ一括挿入ファイル3210は、データベース300の利用者(管理者やユーザなど)が操作するクライアント計算機3000が外部記憶装置3200に格納したデータである。   The data batch insertion file 3210 is data stored in the external storage device 3200 by the client computer 3000 operated by a user (such as an administrator or a user) of the database 300.

管理点管理表5100は、データ一括挿入処理においてデータを挿入したセグメントの範囲とデータ挿入対象表とデータ一括挿入処理の開始時刻及び終了時刻を管理する情報であり、データベース管理システム3130の管理点管理表処理部3134によって制御される。一回のデータ一括挿入処理で、ひとつのレコード(管理点レコード)が管理点管理表5100に追加される。   The management point management table 5100 is information for managing the range of segments into which data is inserted in the data batch insertion processing, the data insertion target table, the start time and the end time of the data batch insertion processing, and the management point management of the database management system 3130 It is controlled by the table processing unit 3134. One record (management point record) is added to the management point management table 5100 in one data batch insertion process.

セグメント情報管理テーブル6100は、データベース300のセグメントの状態を記憶するテーブルで、データベース管理システム3130によって管理される。   The segment information management table 6100 is a table that stores the state of segments in the database 300 and is managed by the database management system 3130.

表情報管理テーブル6100は、データベース300の表3220の状態を記憶するテーブルで、データベース管理システム3130によって管理される。   The table information management table 6100 is a table that stores the state of the table 3220 of the database 300 and is managed by the database management system 3130.

データベース管理装置3100は、データベース300を管理するデータベース管理システム3130を実行する。データベース管理システム3130は、クライアント計算機3000から受け付けたデータ一括挿入要求やデータ一括削除要求を処理する。なお、データベース管理システム3130は、クライアント計算機3000からのアクセス要求を受け付けて、外部記憶装置3200のデータベース300にアクセスする処理も行うが、この処理は公知または周知の処理を行えばよいので、本実施形態では説明を省略する。   The database management device 3100 executes a database management system 3130 that manages the database 300. The database management system 3130 processes the data batch insertion request and data batch deletion request received from the client computer 3000. The database management system 3130 also accepts an access request from the client computer 3000 and performs a process of accessing the database 300 of the external storage device 3200. This process may be a known or well-known process. Description is omitted in the form.

データベース管理システム3130は、クライアント計算機3000からデータ一括挿入処理要求またはデータ一括削除処理要求を受け付けるデータ操作要求受付部3131と、外部記憶装置3200の各情報管理テーブルのデータを管理する情報管理テーブル管理部3132と、データ一括挿入処理の際に表3220へのデータ挿入処理を行う表データ挿入部3133と、管理点管理表5100に対する処理を管理する管理点管理表処理部3134とを主体にして構成される。   The database management system 3130 includes a data operation request reception unit 3131 that receives a data batch insertion processing request or a data batch deletion processing request from the client computer 3000, and an information management table management unit that manages data in each information management table of the external storage device 3200. 3132, a table data insertion unit 3133 that performs data insertion processing into the table 3220 during data batch insertion processing, and a management point management table processing unit 3134 that manages processing for the management point management table 5100. The

管理点管理表処理部3134は、後述するように管理点レコード検索処理3135と、管理点レコード生成処理3136と、管理点レコード削除処理3137と、管理点レコード更新処理3138を含む。   The management point management table processing unit 3134 includes a management point record search process 3135, a management point record generation process 3136, a management point record deletion process 3137, and a management point record update process 3138, as will be described later.

メモリ3120には、データベース管理システム3130に加えて、データ一括挿入処理またはデータ一括削除処理の際に使用するデータが格納される。これらのデータは、例えば、データ一括挿入処理の際に全データの格納に必要なセグメントの個数を格納する総セグメント数3140と、データ一括挿入処理の際にデータを格納するセグメント範囲、またはデータ一括削除処理にて削除対象のデータが格納されたセグメントの範囲を格納するセグメント範囲3150と、データ一括挿入処理の際にデータ挿入の対象となる表3220を特定する表名3160と、現在の日時を保持するカレントタイムスタンプ3170と、最後にデータを格納したセグメントIDを保持する保持セグメント(保持SEG)3180を含む。なお、セグメント範囲3150は、先頭セグメントのIDを格納する開始セグメントID3151と、最終セグメントのIDを格納する終了セグメントID3152とを含む。   In addition to the database management system 3130, the memory 3120 stores data used in the data batch insertion process or the data batch deletion process. These data include, for example, the total number of segments 3140 for storing the number of segments necessary for storing all data in the data batch insertion process, the segment range for storing data in the data batch insertion process, or the data batch A segment range 3150 for storing a range of segments in which data to be deleted in the deletion process is stored, a table name 3160 for specifying a table 3220 for data insertion in the data batch insertion process, and the current date and time A current time stamp 3170 to be held and a holding segment (holding SEG) 3180 to hold the segment ID in which data is stored last are included. The segment range 3150 includes a start segment ID 3151 that stores the ID of the first segment and an end segment ID 3152 that stores the ID of the last segment.

図2は、データベース300にデータを一括して挿入する処理(データ一括挿入処理)の概要を示す流れ図である。   FIG. 2 is a flowchart showing an outline of a process for batch inserting data into the database 300 (data batch insertion process).

データベース管理システム3130のデータ操作要求受付部3131は、クライアント計算機3000からデータ一括挿入の処理要求1000を受け付ける。このデータ一括挿入要求には、外部記憶装置3200に格納されたデータ一括挿入ファイル3210を特定する情報(例えば、ファイル名)が含まれる。データ操作要求受付部3131は、データ一括挿入の処理要求1000を受け付けると、表データ挿入部3133を起動する。   The data operation request accepting unit 3131 of the database management system 3130 accepts a data batch insertion processing request 1000 from the client computer 3000. This data batch insertion request includes information (for example, a file name) for specifying the data batch insertion file 3210 stored in the external storage device 3200. The data operation request accepting unit 3131 activates the table data inserting unit 3133 when receiving the data batch insertion processing request 1000.

データベース管理システム3130の表データ挿入部3133は、現在の日時をカレントタイムスタンプ3170から取得して開始日時とする(S801)。次に、表データ挿入部3133は、データ一括挿入ファイル3210を読み込んで、挿入するデータの格納に必要なセグメントの個数を演算して(S802)、総セグメント数3140に格納する。   The table data insertion unit 3133 of the database management system 3130 acquires the current date and time from the current time stamp 3170 and sets it as the start date and time (S801). Next, the table data insertion unit 3133 reads the data batch insertion file 3210, calculates the number of segments necessary for storing the data to be inserted (S802), and stores it in the total number of segments 3140.

データベース管理システム3130の表データ挿入部3133は、総セグメント数3140の値となるセグメントをデータベース300に確保して、メモリ3120上のセグメント範囲3150に設定した開始セグメントID3151と終了セグメントID3152を格納する(S803)。   The table data insertion unit 3133 of the database management system 3130 secures a segment having the total segment number 3140 in the database 300 and stores the start segment ID 3151 and end segment ID 3152 set in the segment range 3150 on the memory 3120 ( S803).

次に、データベース管理システム3130は、管理点管理表処理部3134の管理点レコード生成処理3136を起動して、管理点管理表5100に新たなレコード(管理点レコード)を作成する(S804)。そして、管理点管理表処理部3134の管理点レコード生成処理3136が、上記ステップS804で生成したレコード(管理点レコード)の開始日時をS_TIME511へ格納し、データ一括挿入の開始セグメントID3151を開始セグメントS_SEG513へ格納し、終了セグメントID3152を終了セグメントF_SEG514に格納し、データ一括挿入を実施した表3220の名称をTABLE515に格納する。   Next, the database management system 3130 activates the management point record generation processing 3136 of the management point management table processing unit 3134 and creates a new record (management point record) in the management point management table 5100 (S804). Then, the management point record generation processing 3136 of the management point management table processing unit 3134 stores the start date / time of the record (control point record) generated in step S804 in the S_TIME 511, and sets the start segment ID 3151 for batch data insertion as the start segment S_SEG513. The end segment ID 3152 is stored in the end segment F_SEG 514, and the name of the table 3220 into which the data batch insertion has been performed is stored in the TABLE 515.

次に、データベース管理システム313の表データ挿入部3133は、データ一括挿入処理要求1000で指定されたデータ一括挿入ファイル3210のデータを、データベース300の表3220に確保した上記開始セグメントID3151から終了セグメントID3152へ加える。データ一括の一括挿入が完了すると、データベース管理システム3130は、カレントタイムスタンプ3170から現在の日時を取得して終了日時とする。最後に管理点管理表処理部3134の管理点レコード更新部3138が、上記ステップS804で生成したレコード(管理点レコード)の終了日時をF_TIME512へ格納して、管理点管理表5100の新たなレコードを更新する。   Next, the table data insertion unit 3133 of the database management system 313 receives the data of the data batch insertion file 3210 designated by the data batch insertion processing request 1000 from the start segment ID 3151 secured in the table 3220 of the database 300 to the end segment ID 3152. Add to. When the batch data insertion is completed, the database management system 3130 acquires the current date and time from the current time stamp 3170 and sets it as the end date and time. Finally, the management point record update unit 3138 of the management point management table processing unit 3134 stores the end date and time of the record (management point record) generated in step S804 in the F_TIME 512, and a new record of the management point management table 5100 is stored. Update.

以上のように、データ一括挿入処理では、新たな管理点レコードが管理点管理表5100に加えられて、データ一括挿入の開始日時S_TIME511及び終了日時F_TIME512と、一括挿入したデータの位置が開始セグメントS_SEG513と終了セグメントF_SEG514に格納され、表の名称がTABLE515に格納される。   As described above, in the data batch insertion process, a new management point record is added to the management point management table 5100, the data batch insertion start date and time S_TIME 511 and the end date and time F_TIME 512, and the position of the batch inserted data is the start segment S_SEG 513. And the end segment F_SEG 514, and the table name is stored in TABLE 515.

ここで、管理点管理表5100は、表名(TABLE)515とデータ一括挿入の開始日時S_TIME511及び終了日時F_TIME512と、データの挿入位置を示す開始セグメントS_SEG513及び終了セグメントF_SEG514を一意で対応付けて管理するのである。これにより、後日、管理者やユーザがデータの一括削除を行う際に、データ一括挿入の開始日時及び終了日時を検索条件として指定することで、データの格納位置を容易に知ることができる。   Here, the management point management table 5100 uniquely manages a table name (TABLE) 515, a start date / time S_TIME 511 and an end date / time F_TIME 512 of data batch insertion, and a start segment S_SEG 513 and an end segment F_SEG 514 indicating the data insertion position. To do. As a result, when the administrator or the user deletes the data at a later date, the data storage position can be easily known by specifying the start date / time and end date / time of the data batch insertion as search conditions.

図3は、データベース300からデータを一括して削除する処理(データ一括削除処理)の概要を示す流れ図である。   FIG. 3 is a flowchart showing an overview of a process for deleting data from the database 300 in a batch (data batch deletion process).

データベース管理システム3130のデータ操作要求受付部3131は、クライアント計算機3000からデータ一括削除の処理要求2000を受け付ける。このデータ一括削除要求2000には、図4で示すデータ一括削除要求4100のように、削除対象のテーブル名411と、削除対象とする管理点管理表5100のデータ一括挿入の開始日時(S_TIME)の範囲412が指定される。なお、図4は、クライアント計算機3000から送信されるデータ一括削除要求4100の一例を示す。データ一括削除要求には、管理点管理表5100が挿入されたデータを管理する要素である表名と挿入の開始日時(または開始日時の範囲)及び終了日時(または開始日時の範囲)が含まれる。   A data operation request accepting unit 3131 of the database management system 3130 accepts a data batch deletion processing request 2000 from the client computer 3000. In the data batch deletion request 2000, as in the data batch deletion request 4100 shown in FIG. 4, the table name 411 to be deleted and the start date (S_TIME) of the data batch insertion of the management point management table 5100 to be deleted. A range 412 is specified. FIG. 4 shows an example of a data batch deletion request 4100 transmitted from the client computer 3000. The data batch deletion request includes a table name, which is an element for managing data into which the management point management table 5100 is inserted, and the start date / time (or start date / time range) and end date / time (or start date / time range). .

データベース管理システム3130は、管理点管理表処理部3134の管理点レコード検索処理3135を起動して、データ一括削除要求4100で指定されたデータを管理点管理表5100から検索する(S1202)。   The database management system 3130 activates the management point record search processing 3135 of the management point management table processing unit 3134 to search the management point management table 5100 for the data specified by the data batch deletion request 4100 (S1202).

ここで、データ一括削除要求4100は、表の名称(TABLE411)とデータ一括挿入の開始日時(S_TIME)の範囲412という管理者やユーザが容易に理解可能な情報を用いる点が本発明の特徴である。   Here, the feature of the present invention is that the data batch deletion request 4100 uses information that can be easily understood by the administrator and the user, such as the range 412 of the table name (TABLE 411) and the start date and time (S_TIME) of the data batch insertion. is there.

管理点レコード検索処理3135(S1202)では、管理点管理表処理部3134が、表名411と、データ一括挿入の開始日時(S_TIME)の範囲412の検索条件に該当する管理点管理表5100のレコードを抽出する。そして、管理点管理表処理部3134は抽出した管理点管理表5100のレコードの開始セグメントS_SEG513と終了セグメントF_SEG514をセグメント範囲3150として取得し、セグメント範囲3150の開始セグメントID3151と終了セグメントID3152に格納する。この処理によって、管理者やユーザが指定した表名(TABLE411)とデータ一括挿入の開始日時の範囲412から削除するデータの位置を特定する。   In the management point record search processing 3135 (S1202), the management point management table processing unit 3134 records in the management point management table 5100 corresponding to the search condition of the table name 411 and the range 412 of the start date and time (S_TIME) of data batch insertion. To extract. Then, the management point management table processing unit 3134 acquires the start segment S_SEG 513 and the end segment F_SEG 514 of the extracted record of the management point management table 5100 as the segment range 3150 and stores them in the start segment ID 3151 and end segment ID 3152 of the segment range 3150. By this processing, the position of the data to be deleted is specified from the table name (TABLE 411) designated by the administrator or user and the start date / time range 412 of the batch data insertion.

次に、データベース管理システム3130は、情報管理テーブル管理部3132が、セグメント範囲3150に格納されたセグメントIDについて、セグメント情報管理テーブル6100のレコードを初期化してデータを削除する。この初期化は、後述するように、セグメント情報管理テーブル6100のテーブル名(TABLE_NAME)、次セグメントID(NEXTSEG_ID)、直前セグメントID(PREVSEG_ID)と残量(REST)を初期値(例えば、0)で更新する(S1204)。   Next, in the database management system 3130, the information management table management unit 3132 initializes the record of the segment information management table 6100 and deletes data for the segment ID stored in the segment range 3150. In this initialization, as will be described later, the table name (TABLE_NAME), the next segment ID (NEXTSEG_ID), the previous segment ID (PREVSEG_ID), and the remaining amount (REST) of the segment information management table 6100 are set to initial values (for example, 0). Update (S1204).

次に、情報管理テーブル管理部3132が、表情報管理テーブル7100を初期化する(S1205)。情報管理テーブル管理部3132は、表情報管理テーブル7100のSEGMENTのうち、セグメント範囲3150の開始セグメントID3151から終了セグメントID3152の値を削除する。   Next, the information management table management unit 3132 initializes the table information management table 7100 (S1205). The information management table management unit 3132 deletes the value of the end segment ID 3152 from the start segment ID 3151 of the segment range 3150 in the SEGMENT of the table information management table 7100.

次に、データベース管理システム3130は、管理点管理表処理部3134が検索処理S1202で抽出した管理点管理表5100のレコードを、管理点レコード削除処理3137を実行して削除する。   Next, the database management system 3130 deletes the record of the management point management table 5100 extracted by the management point management table processing unit 3134 in the search processing S1202 by executing the management point record deletion processing 3137.

以上のように、データ一括削除処理では、クライアント計算機3000から表名とデータ一括挿入の開始日時S_TIMEをキーとして、管理者やユーザが容易に理解可能な情報でデータを指定して、データベース300から削除するデータを特定することが可能となる。つまり、データベース300の管理者は、削除対象の表の名称と、データ一括挿入処理の日時を取得すれば、削除対象のデータの所在を特定することができ、前記従来例に比してデータの削除に要する労力を大幅に低減することができる。   As described above, in the data batch deletion process, data is specified from the database 300 using information that can be easily understood by the administrator or user, using the table name and the data batch insertion start date / time S_TIME as keys from the client computer 3000. It becomes possible to specify data to be deleted. In other words, the administrator of the database 300 can specify the location of the data to be deleted by acquiring the name of the table to be deleted and the date and time of the data batch insertion process. The labor required for deletion can be greatly reduced.

そして、データ一括削除では、セグメント情報管理テーブル6100と表情報管理テーブル7100の対象セグメントについて初期化し、管理点管理表5100の該当レコードを削除するだけであるので、極めて高速に大量のデータを一括して削除することが可能となる。   In the batch data deletion, only the target segments in the segment information management table 6100 and the table information management table 7100 are initialized and the corresponding record in the management point management table 5100 is deleted. Can be deleted.

なお、データ一括削除処理が完了した後にも、データ一括挿入処理でデータベース300に追加したデータ自体は外部記憶装置3200に残るが、表情報管理テーブル7100のセグメント情報及びセグメント情報管理テーブル6100を初期化することで、データベース管理システム3130はアクセスすることはできない。データ一括削除処理後にデータベース300に残ったデータについては、再編成処理などを適宜実行することで記憶領域を解放することができる。   Even after the data batch deletion processing is completed, the data itself added to the database 300 by the data batch insertion processing remains in the external storage device 3200, but the segment information in the table information management table 7100 and the segment information management table 6100 are initialized. As a result, the database management system 3130 cannot be accessed. For data remaining in the database 300 after the data batch deletion process, the storage area can be released by appropriately executing a reorganization process or the like.

図5は、管理点管理表5100の一例を示す説明図である。管理点管理表5100は管理点管理表処理部3134がメモリ3120上または外部記憶装置3200のデータベース300上に生成して管理する。   FIG. 5 is an explanatory diagram showing an example of the management point management table 5100. The management point management table 5100 is generated and managed by the management point management table processing unit 3134 on the memory 3120 or the database 300 of the external storage device 3200.

管理点管理表5100は、データの一括挿入を開始した日時を格納するS_TIME511と、データの一括挿入が終了した日時を格納するF_TIME512と、データの一括挿入を開始したセグメントのIDを格納するS_SEG513と、データの一括挿入が終了したセグメントのIDを格納するF_SEG514と、データの一括挿入処理の対象となった表の名称(または、識別子)を格納するTABLE515から一つのレコードが構成される。なお、S_SEG513及びF_SEG514は1レコードに対して複数の要素を保持することができる(繰り返し列)。図5の行516は、データ一括挿入の処理開始S_TIME511が2009年1月02日の6時0分16秒で、データ一括挿入の終了開始F_TIME512が2009年1月02日の8時5分16秒で、開始セグメントIDS_SEG513が「4501」で、終了セグメントIDF_SEG514が「5000」で、対象となった表が「T1」であることを示す。   The management point management table 5100 includes an S_TIME 511 for storing the date and time when the batch insertion of data is started, an F_TIME 512 for storing the date and time when the batch insertion of data is completed, and an S_SEG 513 for storing the ID of the segment at which the batch insertion of data is started. One record is composed of F_SEG 514 for storing the ID of the segment for which data batch insertion has been completed and TABLE 515 for storing the name (or identifier) of the table subjected to the batch data insertion processing. Note that S_SEG 513 and F_SEG 514 can hold a plurality of elements for one record (repetition sequence). The row 516 in FIG. 5 indicates that the data batch insertion process start S_TIME 511 is 6:01:16 on January 02, 2009, and the data batch insertion end start F_TIME 512 is 8:05:16 on January 02, 2009. In second, the start segment IDS_SEG 513 is “4501”, the end segment IDF_SEG 514 is “5000”, and the target table is “T1”.

図6は、セグメント情報管理テーブル6100の一例を示す説明図である。セグメント情報管理テーブル6100は、セグメントの識別子を格納するセグメントID(SEGMENT_ID)611と、当該セグメントが格納するテーブルの名称を格納するテーブル名(TABLE_NAME)612と、当該セグメントの次のセグメントの識別子を格納するNEXTSEG_ID613と、当該セグメントの前のセグメントの識別子を格納するPREVSEG_ID614と、当該セグメントに格納可能なデータ量(ページ数)を格納するREST615とから一つのエントリが構成される。このセグメント情報管理テーブル6100は、各セグメントごとに上記1テーブルが生成される。   FIG. 6 is an explanatory diagram showing an example of the segment information management table 6100. The segment information management table 6100 stores a segment ID (SEGMENT_ID) 611 for storing a segment identifier, a table name (TABLE_NAME) 612 for storing a table name stored in the segment, and an identifier of the next segment of the segment. NEXTSEG_ID 613, PREVSEG_ID 614 that stores the identifier of the segment preceding the segment, and REST 615 that stores the amount of data (number of pages) that can be stored in the segment are configured. In the segment information management table 6100, the one table is generated for each segment.

図7は、表情報管理テーブル7100の一例を示す説明図である。表情報管理テーブル7100は、表の名称を格納するテーブル名(TABLE_NAME)711と、当該表の識別子を格納するTABLE_ID712と、当該表が使用するセグメントの範囲を格納するSEGMENT713とから1テーブルが構成される。SEGMENT713には、表3220が使用する複数のセグメントの範囲を格納することができ、図示の例では、セグメントID=1−2000と4501−5000を使用している例を示す。この表情報管理テーブル7100は、各表ごとに上記1テーブルが生成される。   FIG. 7 is an explanatory diagram showing an example of the table information management table 7100. The table information management table 7100 is composed of a table name (TABLE_NAME) 711 for storing a table name, a TABLE_ID 712 for storing an identifier of the table, and a SEGMENT 713 for storing a segment range used by the table. The The SEGMENT 713 can store a range of a plurality of segments used by the table 3220. In the illustrated example, the segment ID = 1-2000 and 4501-5000 are used. In the table information management table 7100, one table is generated for each table.

図8は、データベース管理装置が行うデータベースの一括挿入処理の概要を示すフローチャートである。この処理は、データベース管理装置3100のデータ操作要求受付部3131がクライアント計算機3000から挿入対象のテーブル名と、挿入対象のデータ一括挿入ファイル3210の名称を受け付けたときに開始される。   FIG. 8 is a flowchart showing an overview of batch database insertion processing performed by the database management apparatus. This processing is started when the data operation request receiving unit 3131 of the database management apparatus 3100 receives the name of the insertion target table and the name of the data batch insertion file 3210 to be inserted from the client computer 3000.

ステップS801では、データベース管理システム3130の表データ挿入部3133が、現在の日時をカレントタイムスタンプ3170から取得する。ステップS802では、表データ挿入部3133が、指定されたデータ一括挿入ファイル3210のレコード数や容量を参照して、指定された表3220にデータ一括挿入ファイル3210を追加するのに必要なセグメントの数を後述するように演算する。そして、表データ挿入部3133は、求めたセグメント数をメモリ3120上の総セグメント数3140へ格納する。   In step S801, the table data insertion unit 3133 of the database management system 3130 acquires the current date and time from the current time stamp 3170. In step S802, the number of segments required for the table data insertion unit 3133 to add the data batch insertion file 3210 to the specified table 3220 with reference to the number of records and the capacity of the specified data batch insertion file 3210. Is calculated as described below. Then, the table data insertion unit 3133 stores the obtained number of segments in the total number of segments 3140 on the memory 3120.

そして、ステップS803では、表データ挿入部3133が外部記憶装置3200のデータベース300の領域に、挿入するデータを格納するセグメントを確保する。表データ挿入部3133は、確保したセグメントの先頭のセグメントの識別子をセグメント範囲3150の開始セグメントID3151に格納し、最後のセグメントの識別子を終了セグメントID3152に格納する。   In step S803, the table data insertion unit 3133 secures a segment for storing the data to be inserted in the database 300 area of the external storage device 3200. The table data insertion unit 3133 stores the identifier of the first segment of the secured segment in the start segment ID 3151 of the segment range 3150, and stores the identifier of the last segment in the end segment ID 3152.

ステップS804では、管理点管理表処理部3134の管理点レコード生成処理3136が、管理点管理表5100に新たなレコードを追加して、データの一括挿入を開始した日時を格納するS_TIME511に、ステップS801で取得したカレントタイムスタンプ3170の値を設定し、データの一括挿入を開始したセグメントのIDを格納するS_SEG513に、S803で取得した開始セグメントID3151の値を設定し、データの一括挿入を開始したセグメントのIDを格納するF_SEG514に、S803で取得した終了セグメントID3152の値を設定する。   In step S804, the management point record generation processing 3136 of the management point management table processing unit 3134 adds a new record to the management point management table 5100, and stores the date and time when the batch insertion of data is started. The value of the current time stamp 3170 acquired in step S3 is set, and the value of the start segment ID 3151 acquired in step S803 is set in S_SEG513 for storing the ID of the segment in which the batch insertion of data is started. The value of the end segment ID 3152 acquired in S803 is set in F_SEG 514 that stores the ID of ID.

ステップS805では、表データ挿入部3133が、管理者などがクライアント計算機3000から外部記憶装置3200に書き込んだデータ一括挿入ファイル3210を読み込んで、ステップS803で確保したセグメントにデータを追加する。   In step S805, the table data insertion unit 3133 reads the data batch insertion file 3210 written by the administrator or the like from the client computer 3000 to the external storage device 3200, and adds data to the segment secured in step S803.

ステップS806では、表データ挿入部3133が、カレントタイムスタンプ3170を取得して、ステップS807で管理点管理表処理部3134の管理点レコード更新処理3138が、管理点管理表5100のデータの一括挿入が終了した日時を格納するF_TIME512に格納し、上記ステップS804で追加した管理点管理表5100のレコードを更新する。   In step S806, the table data insertion unit 3133 acquires the current time stamp 3170, and in step S807, the management point record update processing 3138 of the management point management table processing unit 3134 performs batch insertion of data in the management point management table 5100. The record of the management point management table 5100 that is stored in the F_TIME 512 that stores the date and time of completion and added in step S804 is updated.

上記の処理によって、管理者などが用意したデータ一括挿入ファイル3210を表3220で一括して追加し、管理者が追加したレコードを識別する情報としてデータ一括挿入の開始日時と終了日時を管理点管理表5100に記録する。   Through the above processing, the data batch insertion file 3210 prepared by the administrator or the like is added in a batch in the table 3220, and the start date and end date and time of the data batch insertion are managed as management point information as information for identifying the record added by the administrator. Record in Table 5100.

図9は図8のステップS802で実行される必要セグメント数計算処理の一例を示すフローチャートである。   FIG. 9 is a flowchart showing an example of the required number of segments calculation process executed in step S802 of FIG.

ステップS901では、表データ挿入部3133がクライアント計算機3000から指示されたデータ一括挿入ファイル3210を読み込んで、挿入するデータの1件当たりのデータ長と、挿入するデータの件数を取得し、クライアント計算機3000から指示された挿入対象の表3220の名称を取得する。   In step S901, the table data insertion unit 3133 reads the data batch insertion file 3210 instructed from the client computer 3000, acquires the data length of the data to be inserted and the number of data to be inserted, and the client computer 3000. The name of the insertion target table 3220 instructed from is acquired.

ステップS902では、表データ挿入部3133がデータベース300の1セグメントあたりのデータ長(例えば、固定値)と、ステップS901で取得した挿入データの1件当たりのデータ長から、次式により、
X=TRUNC(1セグメントあたりのデータ長÷挿入データの1件当たりのデータ長)
………(1)
データベース300の1セグメントに格納可能なデータ一括挿入ファイル3210のデータ数Xを求める。なお、上記(1)式でTRUNCは、小数点以下を切り捨てる関数である。
In step S902, the table data insertion unit 3133 calculates from the data length per segment of the database 300 (for example, a fixed value) and the data length per insertion data acquired in step S901 by the following equation:
X = TRUNC (data length per segment ÷ data length per inserted data)
……… (1)
The number of data X of the data batch insertion file 3210 that can be stored in one segment of the database 300 is obtained. In the above equation (1), TRUNC is a function that truncates the decimal part.

ステップS903では、表データ挿入部3133が、ステップS901で取得した挿入するデータの件数と、ステップS902で求めた1セグメントに格納可能なデータ一括挿入ファイル3210のデータ数Xから、次式により、
Y=ROUNDUP(挿入データ件数/X) ………(2)
データ一括挿入処理必要なセグメントの数Yを求める。なお、上記(2)式でROUNDUPは、小数点以下を切り上げる関数である。そして、表データ挿入部3133は、データ一括挿入処理必要なセグメントの数Yを、総セグメント数として保持する。
In step S903, the table data insertion unit 3133 calculates the number of data to be inserted acquired in step S901 and the number of data X of the data batch insertion file 3210 that can be stored in one segment obtained in step S902 by the following equation:
Y = ROUNDUP (number of inserted data / X) (2)
The number Y of segments required for data batch insertion processing is obtained. In the above equation (2), ROUNDUP is a function that rounds up the decimal part. Then, the table data insertion unit 3133 holds the number Y of segments that require data batch insertion processing as the total number of segments.

図10は、図8のステップS803で行われるデータ挿入セグメント確保処理の一例を示すフローチャートである。   FIG. 10 is a flowchart showing an example of the data insertion segment securing process performed in step S803 of FIG.

表データ挿入部3133は、ステップS1001で、セグメント情報管理テーブル6100を読み込んで、セグメントID(611)=「1」の情報を参照する。ステップS1002では、表データ挿入部3133が、現在参照しているセグメント情報管理テーブル6100のNEXTSEG_ID613が0で、かつPREVSEG_IDT614が0であるか否かを判定する。この判定は、NEXTSEG_ID613=0、かつPREVSEG_ID614=0か否かを判定し、初期化されて使用されていないセグメントであるか否かを判定している。   In step S1001, the table data insertion unit 3133 reads the segment information management table 6100 and refers to the information of segment ID (611) = “1”. In step S1002, the table data insertion unit 3133 determines whether NEXTSEG_ID 613 of the currently referenced segment information management table 6100 is 0 and PREVSEG_IDT 614 is 0. This determination determines whether NEXTTSEG_ID 613 = 0 and PREVSEG_ID 614 = 0, and determines whether the segment is initialized and not used.

表データ挿入部3133は、初期化されていればデータを格納可能なセグメントであると判定してステップS1004へ進む。一方、初期化されていないセグメントであれば、使用中のセグメントIDであるのでステップS1003に進む。ステップS1003では、表データ挿入部3133は、現在参照しているセグメントID(611)に1を加算して次のセグメントID(611)へ移動する。そして、ステップS1014で次のセグメントID(611)の値が最後のセグメントIDを超えていれば、全てのセグメントIDについて判定を行ったので処理を終了する。一方、ステップS1014で次のセグメントID(611)が最後のセグメントID以下であれば、ステップS1002へ戻って上記判定を繰り返す。   If it is initialized, the table data insertion unit 3133 determines that the segment can store data, and the process advances to step S1004. On the other hand, if the segment is not initialized, it is a segment ID in use, and the process advances to step S1003. In step S1003, the table data insertion unit 3133 adds 1 to the currently referred segment ID (611) and moves to the next segment ID (611). Then, if the value of the next segment ID (611) exceeds the last segment ID in step S1014, the determination is made for all the segment IDs, and the process ends. On the other hand, if the next segment ID (611) is less than or equal to the last segment ID in step S1014, the process returns to step S1002 to repeat the above determination.

次に、ステップS1004では、表データ挿入部3133が保持しているデータ挿入開始セグメントIDとデータ挿入終了セグメントIDの個数が等しいか否かを判定する。個数が異なる場合には、ステップS1005へ進み、個数が等しい場合にはステップS1015へ進む。   In step S1004, it is determined whether the number of data insertion start segment IDs and data insertion end segment IDs held by the table data insertion unit 3133 is equal. If the numbers are different, the process proceeds to step S1005, and if the numbers are equal, the process proceeds to step S1015.

ステップS1005では、表データ挿入部3133が現在参照しているセグメント情報管理テーブル6100のセグメントID611を、データ挿入開始セグメントIDとして保持する。   In step S1005, the segment ID 611 of the segment information management table 6100 currently referenced by the table data insertion unit 3133 is held as the data insertion start segment ID.

ステップS1015では、表データ挿入部3133が、データ挿入対象表に既にデータが格納されているか否かを判定する。既にデータが格納されている場合はS1006へ進み、データが格納されていない場合には、S1016へ進む。   In step S1015, the table data insertion unit 3133 determines whether data is already stored in the data insertion target table. If data has already been stored, the process proceeds to S1006. If data has not been stored, the process proceeds to S1016.

ステップS1016で、情報管理テーブル管理部3132が、現在参照しているセグメントIDのセグメント情報管理テーブル6100のTABLE_NAME612に、上記ステップS901で取得した挿入対象の表名を設定し、PREVSEG_ID614に0を設定する。そして、表データ挿入部3133が、上記図8のステップS802で求めた総セグメント数から1を減じる。   In step S1016, the information management table management unit 3132 sets the table name to be inserted acquired in step S901 above in TABLE_NAME 612 of the segment information management table 6100 of the currently referenced segment ID, and sets 0 in PREVSEG_ID 614. . Then, the table data insertion unit 3133 subtracts 1 from the total number of segments obtained in step S802 in FIG.

ステップS1006では、保持セグメント3180で保持したセグメントID(前回値)のNEXTSEG_ID613を、表データ挿入部3133が現在参照しているセグメント情報管理テーブル6100のセグメントID611で更新する。   In step S1006, the NEXTSEG_ID 613 of the segment ID (previous value) held by the holding segment 3180 is updated with the segment ID 611 of the segment information management table 6100 currently referenced by the table data insertion unit 3133.

次に、ステップS1007では、表データ挿入部3133が、現在参照しているセグメントIDのセグメント情報管理テーブル6100のTABLE_NAME612に、上記ステップS901で取得した挿入対象の表名を設定し、PREVSEG_ID614に保持セグメント3180で保持した前回のSEGMENT_ID611を設定し、REST615に当該セグメントの領域長を設定し、当該セグメントIDのセグメント情報管理テーブル6100を更新する。   Next, in step S1007, the table data insertion unit 3133 sets the table name to be inserted acquired in step S901 above in TABLE_NAME 612 of the segment information management table 6100 of the segment ID currently being referenced, and the retained segment in PREVSEG_ID 614. The previous SEGMENT_ID 611 held in 3180 is set, the area length of the segment is set in REST 615, and the segment information management table 6100 of the segment ID is updated.

ステップS1008では、上記図8のステップS802で求めた総セグメント数から1を減じる。つまり、表データ挿入部3133は上記ステップS1007でひとつのセグメントをデータ一括挿入のために確保したので、残りの総セグメント数を1つ差し引く。   In step S1008, 1 is subtracted from the total number of segments obtained in step S802 of FIG. That is, the table data insertion unit 3133 secures one segment for data batch insertion in step S1007, and therefore subtracts the remaining total number of segments by one.

次に、ステップS1009では、表データ挿入部3133が、現在参照しているセグメントIDがPREVSEG_ID614に1を加えた値に等しいか否かを判定する。セグメントIDがPREVSEG_ID+1と等しければステップS1011へ進み、等しくなければステップS1010へ進む。   Next, in step S1009, the table data insertion unit 3133 determines whether or not the currently referred segment ID is equal to a value obtained by adding 1 to PREVSEG_ID 614. If the segment ID is equal to PREVSEG_ID + 1, the process proceeds to step S1011; otherwise, the process proceeds to step S1010.

ステップS1010では、現在参照しているセグメントIDのセグメント情報管理テーブル6100のPREVSEG_ID614をデータ挿入終了セグメントIDとして表データ挿入部3133が保持する。   In step S1010, the table data insertion unit 3133 holds PREVSEG_ID 614 of the segment information management table 6100 of the currently referred segment ID as the data insertion end segment ID.

ステップS1011では、表データ挿入部3133が、ステップS1008でデクリメントした総セグメント数が0になったか否かを判定する。総セグメント数が0であればステップS1013へ進み、総セグメント数が0でなければステップS1012へ進む。   In step S1011, the table data insertion unit 3133 determines whether the total number of segments decremented in step S1008 has become zero. If the total number of segments is 0, the process proceeds to step S1013. If the total number of segments is not 0, the process proceeds to step S1012.

ステップS1012では、表データ挿入部3133が、現在参照しているセグメントIDを保持セグメント3180に保持してステップS1003で次のセグメントIDに移行して上記処理を繰り返す。   In step S1012, the table data insertion unit 3133 holds the currently referenced segment ID in the holding segment 3180, moves to the next segment ID in step S1003, and repeats the above processing.

一方、ステップS1013では、表データ挿入部3133が、現在参照しているセグメントIDをデータ挿入終了セグメントIDとして表データ挿入部3133が保持セグメント3180に保持して処理を終了する。   On the other hand, in step S1013, the table data insertion unit 3133 uses the currently referenced segment ID as the data insertion end segment ID, and the table data insertion unit 3133 holds the data in the holding segment 3180, and the process ends.

以上の処理によって、セグメントID=1から順に、使用されていないセグメントが総セグメント数に達するまで、挿入対象の表名がTABLE_NAME612に格納され、前後のセグメントIDが、PREVSEG_ID614とNEXTSEG_ID613に格納されていく。そして、表データ挿入部3133は、データ一括挿入の開始セグメントIDと終了セグメントIDを保持する。   By the above processing, the table name to be inserted is stored in TABLE_NAME 612 and the previous and subsequent segment IDs are stored in PREVSEG_ID 614 and NEXTSEG_ID 613 in order from segment ID = 1 until the number of unused segments reaches the total number of segments. . Then, the table data insertion unit 3133 holds the start segment ID and end segment ID for batch data insertion.

図11は、図8のステップS804で行われる管理点レコード生成処理の一例を示すフローチャートである。ステップS1101では、管理点管理表処理部3134の管理点レコード生成処理3136が、管理点管理表5100に新たなレコードを追加して、上記ステップS801で取得したカレントタイムスタンプ3170を、データ一括挿入の開始日時S_TIME511に格納する。以下の処理も、新たに追加したレコードに対して行う。   FIG. 11 is a flowchart showing an example of the management point record generation process performed in step S804 of FIG. In step S1101, the management point record generation processing 3136 of the management point management table processing unit 3134 adds a new record to the management point management table 5100, and the current time stamp 3170 acquired in step S801 is used for data batch insertion. Stored in the start date and time S_TIME 511. The following processing is also performed on the newly added record.

ステップS1102では、管理点管理表処理部3134の管理点レコード生成処理3136がデータ一括挿入ファイル3210から挿入対象の表の名称を取得し、追加したレコードのTABLE515に格納する。   In step S1102, the management point record generation processing 3136 of the management point management table processing unit 3134 acquires the name of the table to be inserted from the data batch insertion file 3210 and stores it in the table 515 of the added record.

ステップS1103では、管理点管理表処理部3134の管理点レコード生成処理3136が上記図10のステップS1005で取得したデータ挿入開始セグメントIDを、管理点管理表5100の開始セグメントS_SEG513へ格納する。   In step S1103, the management point record generation processing 3136 of the management point management table processing unit 3134 stores the data insertion start segment ID acquired in step S1005 of FIG. 10 in the start segment S_SEG 513 of the management point management table 5100.

ステップS1104では、管理点管理表処理部3134の管理点レコード生成処理3136が上記図10のステップS1010で取得したデータ挿入終了セグメントIDを、管理点管理表5100の終了セグメントF_SEG514へ格納する。   In step S1104, the management point record generation processing 3136 of the management point management table processing unit 3134 stores the data insertion end segment ID acquired in step S1010 of FIG. 10 in the end segment F_SEG 514 of the management point management table 5100.

ステップS1105では、図10のデータ挿入セグメント確保処理で確保した全てのデータ挿入開始セグメントIDを管理点管理表5100の新たなレコードに登録したか否かを管理点管理表処理部3134の管理点レコード生成処理3136が判定する。全てのデータ挿入開始セグメントIDについて登録が完了していればステップS1107へ進み、全てのデータ挿入開始セグメントIDについて登録が完了していなければステップS1106へ進む。   In step S1105, the management point record of the management point management table processing unit 3134 indicates whether or not all the data insertion start segment IDs secured in the data insertion segment securing process of FIG. 10 are registered in the new record of the management point management table 5100. The generation process 3136 determines. If registration has been completed for all data insertion start segment IDs, the process proceeds to step S1107. If registration has not been completed for all data insertion start segment IDs, the process proceeds to step S1106.

ステップS1106では、管理点管理表処理部3134の管理点レコード生成処理3136が、新たに追加したレコードの開始セグメントS_SEG513と終了セグメントF_SEG514に新たな格納要素(繰り返し列)を追加してステップS1103へ戻る。そして、管理点管理表処理部3134の管理点レコード生成処理3136は、追加された格納要素にデータ挿入開始セグメントIDとデータ挿入終了セグメントIDを格納していく。本実施形態の管理点管理表5100では、ひとつのレコードで開始セグメントS_SEG513と終了セグメントF_SEG514に複数の格納要素(繰り返し列)を設ける例を示すが、複数のレコードに分割してもよい。   In step S1106, the management point record generation processing 3136 of the management point management table processing unit 3134 adds new storage elements (repetition columns) to the start segment S_SEG513 and the end segment F_SEG514 of the newly added record, and the process returns to step S1103. . Then, the management point record generation processing 3136 of the management point management table processing unit 3134 stores the data insertion start segment ID and the data insertion end segment ID in the added storage element. In the management point management table 5100 of this embodiment, an example in which a plurality of storage elements (repetition columns) are provided in the start segment S_SEG 513 and the end segment F_SEG 514 in one record is shown, but the record may be divided into a plurality of records.

一方、ステップS1107では、上記追加したレコードを管理点管理表5100に登録して処理を終了する。   On the other hand, in step S1107, the added record is registered in the management point management table 5100, and the process ends.

図12は、図8のステップS805で行われるデータ挿入処理の一例を示すフローチャートである。ステップS1201では、表データ挿入部3133が上記図11の処理で管理点管理表5100に追加したレコードのTABLE515の表3220をデータベース300で選択し、開始セグメントS_SEG513の値を読み込んで、該当するセグメントIDを選択する。   FIG. 12 is a flowchart showing an example of the data insertion process performed in step S805 of FIG. In step S1201, the table 300 of the table 515 of the record added by the table data insertion unit 3133 to the management point management table 5100 in the process of FIG. Select.

ステップS1202では、表データ挿入部3133が、ステップS1201で選択したセグメントIDのセグメント情報管理テーブル6100を読み込んで、REST615の値が挿入するデータの1件のデータ長以上であるか否かを判定する。すなわち、現在選択しているセグメントに格納可能なデータ量(空き容量)が、これから格納するデータ一括挿入ファイル3210の1レコード分以上あるか否かを判定する。現在選択しているセグメントに1レコードが格納可能であればステップS1204へ進み、格納できない場合はステップS1203へ進む。   In step S1202, the table data insertion unit 3133 reads the segment information management table 6100 of the segment ID selected in step S1201, and determines whether or not the value of REST 615 is equal to or longer than one data length of the data to be inserted. . That is, it is determined whether or not the data amount (free capacity) that can be stored in the currently selected segment is equal to or more than one record of the data batch insertion file 3210 to be stored. If one record can be stored in the currently selected segment, the process proceeds to step S1204; otherwise, the process proceeds to step S1203.

ステップS1203では、表データ挿入部3133が、現在選択しているセグメントIDのセグメント情報管理テーブル6100のNEXTSEG_ID613を読み込んで、次のセグメントIDへ移動する。   In step S1203, the table data insertion unit 3133 reads NEXTSEG_ID 613 in the segment information management table 6100 for the currently selected segment ID, and moves to the next segment ID.

ステップS1204では、表データ挿入部3133が、現在選択しているセグメントにデータ一括挿入ファイル3210の1レコードを挿入する。   In step S1204, the table data insertion unit 3133 inserts one record of the data batch insertion file 3210 into the currently selected segment.

ステップS1205では、表データ挿入部3133が、現在選択しているセグメントIDのセグメント情報管理テーブル6100のRESTの値から、ステップS1204で挿入したレコード長を差し引いて更新する。   In step S1205, the table data insertion unit 3133 updates by subtracting the record length inserted in step S1204 from the REST value of the segment information management table 6100 of the currently selected segment ID.

そして、ステップS1206では、表データ挿入部3133が、データ一括挿入ファイル3210の挿入データ件数から1を差し引いて更新する。   In step S1206, the table data insertion unit 3133 updates the number of inserted data items in the data batch insertion file 3210 by subtracting one.

ステップS1207では、表データ挿入部3133が挿入データ件数が0になったか否かを判定する。挿入データ件数が0であれば処理を終了し、挿入データ件数が0でなければステップS1202へ戻って上記処理を繰り返す。   In step S1207, the table data insertion unit 3133 determines whether or not the number of inserted data items has become zero. If the number of inserted data items is 0, the process ends. If the number of inserted data items is not 0, the process returns to step S1202 to repeat the above process.

上記図12の処理によって、確保されたセグメントにデータ一括挿入ファイル3210のレコードが挿入される。   Through the process of FIG. 12, the record of the data batch insertion file 3210 is inserted into the secured segment.

図13は、図8のステップS807で行われる管理点レコード更新処理の一例を示すフローチャートである。表データ挿入部3133は、図11の処理で追加した管理点管理表5100のレコードについて、図8のステップS806で取得したカレントタイムスタンプ3170の値をデータ挿入の終了日時F_TIME512に格納して処理を終了する。   FIG. 13 is a flowchart showing an example of the management point record update process performed in step S807 of FIG. The table data insertion unit 3133 stores the value of the current time stamp 3170 acquired in step S806 of FIG. 8 in the data insertion end date and time F_TIME 512 for the record of the management point management table 5100 added in the processing of FIG. finish.

上記図8〜図13の処理により、データ一括挿入ファイル3210のレコードが対象の表3220に一括して挿入され、管理点管理表5100にデータ一括挿入の開始日時、終了日時及び格納位置(セグメントID)が記録される。   8 to 13, the records of the data batch insertion file 3210 are collectively inserted into the target table 3220, and the start date / time, end date / time, and storage location (segment ID) of the data batch insertion are added to the management point management table 5100. ) Is recorded.

図14は、データベース管理装置が行うデータベースの一括削除処理の一例を示すフローチャートである。図14の処理は、データ操作要求受付部3131がクライアント計算機3000から図4に示したようなデータ一括削除要求4100を受け付けると、データ操作要求受付部3131は管理点管理表処理部3134を起動して図14の処理を実行させる。   FIG. 14 is a flowchart illustrating an example of batch deletion processing of databases performed by the database management apparatus. In the processing of FIG. 14, when the data operation request receiving unit 3131 receives the data batch deletion request 4100 as shown in FIG. 4 from the client computer 3000, the data operation request receiving unit 3131 activates the management point management table processing unit 3134. 14 is executed.

ステップS1401では、管理点管理表処理部3134が、受信したデータ一括削除要求4100からデータの一括削除の対象となる表名411と、削除の条件としてデータ一括挿入の日時の範囲412を取得して保持する。図4の例では、削除対象表が「T1」で、削除の条件がデータ一括挿入の日時が「2009年1月2日0時0分0秒」から「2009年1月2日23時59分59秒」までとなっている。   In step S1401, the management point management table processing unit 3134 obtains the table name 411 that is the target of batch data deletion from the received data batch deletion request 4100 and the date range 412 of the data batch insertion as a deletion condition. Hold. In the example of FIG. 4, the deletion target table is “T1”, and the deletion condition is from “2009/01/2 00:00:00” to “2009 Jan 2 23:59”. Min 59 seconds ”.

ステップS1402では、管理点管理表処理部3134が、管理点管理表5100の先頭レコードに検索用のカーソルC1を設定し、先頭のレコードを選択する。   In step S1402, the management point management table processing unit 3134 sets the search cursor C1 to the top record of the management point management table 5100, and selects the top record.

ステップS1403では、後述の管理点管理表処理部3134の管理点レコード検索処理3135により、カーソルC1で選択した管理点管理表5100のレコードを削除対象表と削除の条件で検索する。検索の結果、選択した管理点管理表5100のレコードが削除の条件と削除の対象表を満たしていれば、管理点管理表処理部3134の管理点レコード検索処理3135は検索結果として「Y」を保持し、一方、削除の条件または削除の対象表を満たしていなければ「N」を保持する。   In step S1403, the management point record search processing 3135 of the management point management table processing unit 3134, which will be described later, searches the management point management table 5100 selected by the cursor C1 using the deletion target table and the deletion conditions. As a result of the search, if the selected record of the management point management table 5100 satisfies the deletion condition and the deletion target table, the management point record search processing 3135 of the management point management table processing unit 3134 sets “Y” as the search result. On the other hand, if the deletion condition or the table to be deleted is not satisfied, “N” is held.

ステップS1404では、上記ステップS1403の検索結果が「Y」または「N」の何れであるかを判定し、「Y」であればステップS1405へ進み、「N」であればステップS1409に進む。   In step S1404, it is determined whether the search result in step S1403 is “Y” or “N”. If “Y”, the process proceeds to step S1405, and if “N”, the process proceeds to step S1409.

ステップS1405では、情報管理テーブル管理部3132が削除の条件と削除の対象表に合致するセグメント情報管理テーブル6100をレコードを後述するように初期化する。セグメント情報管理テーブル6100のレコードを初期化することで、削除対象データをデータベース管理システム3120からアクセス不能にすることで、データ自体はデータベース300の表3220に残留するものの、論理的に削除するものである。   In step S1405, the information management table management unit 3132 initializes the record of the segment information management table 6100 that matches the deletion condition and the deletion target table as described later. By initializing the record of the segment information management table 6100 to make the deletion target data inaccessible from the database management system 3120, the data itself remains in the table 3220 of the database 300 but is logically deleted. is there.

ステップS1406では、情報管理テーブル管理部3132が削除の条件と削除の対象表に合致する表情報管理テーブル7100を後述するように初期化する。   In step S1406, the information management table management unit 3132 initializes a table information management table 7100 that matches the deletion condition and the deletion target table as described later.

ステップS1407では、管理点管理表処理部3134の管理点レコード削除処理3137により、ステップS1403の検索結果で「Y」となった管理点管理表5100のレコードを削除する。   In step S1407, the management point record deletion processing 3137 of the management point management table processing unit 3134 deletes the record of the management point management table 5100 that has become “Y” in the search result of step S1403.

ステップS1408では、管理点管理表処理部3134が、管理点管理表5100の全てのレコードについて検索が完了したか否かを判定する。管理点管理表5100の全てのレコードについて検索が完了していなければステップS1409に進んでカーソルC1を次のレコードに設定し、管理点管理表5100の全てのレコードについて検索が完了していれば処理を終了する。   In step S1408, the management point management table processing unit 3134 determines whether or not the search has been completed for all the records in the management point management table 5100. If the search is not completed for all the records in the management point management table 5100, the process proceeds to step S1409 to set the cursor C1 to the next record. If the search is completed for all the records in the management point management table 5100, the process is performed. Exit.

上記処理により、データベース管理装置3100が受信したデータ一括削除要求4100に含まれる削除の対象となる表名411と、削除の条件としてのデータ一括挿入の日時の範囲412の検索条件に含まれる管理点管理表5100のレコードから、削除の対象となるセグメントIDを抽出してセグメント情報管理テーブル6100を初期化し、また、削除の対象となる表情報管理テーブル7100を更新することで、データの一括削除を実施する。   With the above processing, the management point included in the search condition of the table name 411 to be deleted included in the data batch deletion request 4100 received by the database management apparatus 3100 and the date and time range 412 of the data batch insertion as a deletion condition The segment ID to be deleted is extracted from the record of the management table 5100, the segment information management table 6100 is initialized, and the table information management table 7100 to be deleted is updated, so that data can be deleted all at once. carry out.

図15は、図14のステップS1403で行われる管理点レコード検索処理の一例を示すフローチャートである。ステップS1501では、管理点管理表処理部3134が、カーソルC1が設定されている管理点管理表5100のレコードの内容を取得し、データ一括挿入の開始日時S_TIME511(または終了日時F_TIME512)と、表の名称TABLE515を保持する。   FIG. 15 is a flowchart showing an example of the management point record search process performed in step S1403 of FIG. In step S1501, the management point management table processing unit 3134 acquires the contents of the record of the management point management table 5100 in which the cursor C1 is set, the data batch insertion start date and time S_TIME511 (or end date and time F_TIME512), and the table The name TABLE515 is retained.

ステップS1502では、管理点管理表処理部3134の管理点レコード削除処理3137は上記保持した開始日時S_TIME511(または終了日時F_TIME512)が、図14のステップS1401で保持した検索条件としてのデータ一括挿入の日時の範囲412に含まれるか否かを判定する。選択したレコードの開始日時S_TIME511(または終了日時F_TIME512)が検索条件に含まれる場合にはステップS1503へ進み、選択したレコードの開始日時S_TIME511(または終了日時F_TIME512)が検索条件に含まれない場合にはステップS1506へ進む。   In step S1502, the management point record deletion processing 3137 of the management point management table processing unit 3134 uses the stored start date and time S_TIME 511 (or end date and time F_TIME 512) as the data batch insertion date and time as the search condition held in step S1401 of FIG. It is determined whether it is included in the range 412. If the start date / time S_TIME 511 (or end date / time F_TIME 512) of the selected record is included in the search condition, the process proceeds to step S1503, and if the start date / time S_TIME 511 (or end date / time F_TIME 512) of the selected record is not included in the search condition. The process proceeds to step S1506.

ステップS1503では、管理点管理表処理部3134の管理点レコード削除処理3137が、上記ステップS1501で保持した表の名称TABLE515が、図14のステップS1401で保持した検索条件としての表名411に一致するか否かを判定する。選択したレコードの表の名称TABLE515が検索条件の表名411に一致する場合にはステップS1504へ進み、選択したレコードの表の名称TABLE515が検索条件の表名411に一致しない場合にはステップS1506へ進む。   In step S1503, the management point record deletion processing 3137 of the management point management table processing unit 3134 has the table name TABLE 515 held in step S1501 matches the table name 411 as the search condition held in step S1401 of FIG. It is determined whether or not. If the table name 515 of the table of the selected record matches the table name 411 of the search condition, the process proceeds to step S1504. If the table name 515 of the table of the selected record does not match the table name 411 of the search condition, the process proceeds to step S1506. move on.

ステップS1504では、選択したレコードの開始日時S_TIME511と表の名称TABLE515が検索条件を満足しているので、管理点管理表処理部3134の管理点レコード削除処理3137は現在の管理点管理表5100のレコードから開始セグメントS_SEG513と終了セグメントF_SEG514を取得して一致削除対象のデータの所在を特定する。なお、管理点管理表処理部3134は、取得した開始セグメントS_SEG513と終了セグメントF_SEG514をセグメント範囲3150の開始セグメントID3151と終了セグメントID3152へ格納することで保持することができる。   In step S1504, since the start date / time S_TIME 511 of the selected record and the table name TABLE 515 satisfy the search condition, the management point record deletion processing 3137 of the management point management table processing unit 3134 performs the record of the current management point management table 5100. The start segment S_SEG 513 and the end segment F_SEG 514 are acquired from and the location of the data to be deleted is identified. The management point management table processing unit 3134 can retain the acquired start segment S_SEG513 and end segment F_SEG514 by storing them in the start segment ID 3151 and end segment ID 3152 of the segment range 3150.

ステップS1505では、選択したレコードの開始日時S_TIME511(または終了日時F_TIME512)と表の名称TABLE515が検索条件を満足しているので、検索結果として「Y」を設定して処理を終了する。   In step S1505, since the start date / time S_TIME 511 (or end date / time F_TIME 512) of the selected record and the table name TABLE 515 satisfy the search condition, “Y” is set as the search result, and the process ends.

ステップS1506では、選択したレコードの開始日時S_TIME511(または終了日時F_TIME512)または表の名称TABLE515が検索条件に一致しないので、検索結果として「N」を設定して処理を終了する。   In step S1506, since the start date / time S_TIME 511 (or end date / time F_TIME 512) or table name TABLE 515 of the selected record does not match the search condition, “N” is set as the search result and the process ends.

図16は、図14のステップS1405で行われるセグメント情報管理テーブル初期化処理の一例を示すフローチャートである。   FIG. 16 is a flowchart showing an example of the segment information management table initialization process performed in step S1405 of FIG.

ステップS1601では、図15のステップS1504で取得した開始セグメントS_SEG513をセグメントIDに持つセグメント情報管理テーブル6100のレコードを選択する。   In step S1601, the record of the segment information management table 6100 having the start segment S_SEG513 acquired in step S1504 of FIG. 15 as the segment ID is selected.

ステップS1602では、情報管理テーブル管理部3132が上記選択されたセグメント情報管理テーブル6100のレコードから直前のセグメントIDを格納するPREVSEG_ID614の値を取得する。   In step S1602, the information management table management unit 3132 acquires the value of PREVSEG_ID 614 that stores the immediately preceding segment ID from the record of the selected segment information management table 6100.

ステップS1603では、情報管理テーブル管理部3132が上記選択されたセグメント情報管理テーブル6100のレコードから次のセグメントIDを格納するNEXTSEG_ID613の値を取得する。   In step S1603, the information management table management unit 3132 acquires the value of NEXTSEG_ID 613 for storing the next segment ID from the record of the selected segment information management table 6100.

ステップS1604では、情報管理テーブル管理部3132が上記選択されたセグメント情報管理テーブル6100のレコードについて、セグメントID(SEGMENT_ID)611以外の要素を初期化する。すなわち、情報管理テーブル管理部3132は、セグメント情報管理テーブル6100のテーブル名(TABLE_NAME)612、次セグメントID(NEXTSEG_ID)613、直前セグメントID(PREVSEG_ID)614と残ページ数(REST)615を初期値(例えば、0)で更新する。   In step S1604, the information management table management unit 3132 initializes elements other than the segment ID (SEGMENT_ID) 611 for the selected record of the segment information management table 6100. That is, the information management table management unit 3132 sets the table name (TABLE_NAME) 612, the next segment ID (NEXTSEG_ID) 613, the previous segment ID (PREVSEG_ID) 614, and the number of remaining pages (REST) 615 of the segment information management table 6100 as initial values ( For example, update at 0).

ステップS1605では、情報管理テーブル管理部3132が現在のセグメント情報管理テーブル6100のセグメントID611が、上記ステップS1504で保持した終了セグメントF_SEG514に等しいか否かを判定する。現在のセグメントID611が、データ一括挿入時の終了セグメントF_SEG514に等しい場合にはステップS1607へ進み、等しくない場合にはステップS1606へ進む。ここで、現在のセグメントID611が、データ一括挿入時の終了セグメントF_SEG514に等しい場合は、データ一括削除の対象の最後のセグメントである。一方、現在のセグメントID611が、データ一括挿入時の終了セグメントF_SEG514に等しくない場合は、データ一括削除のセグメントが他にも存在するので、ステップS1606へ進む。ステップS1606では、情報管理テーブル管理部3132はステップS1603で取得したNEXTSEG_ID613をセグメントIDとするセグメント情報管理テーブル6100のレコードに移動してから、上記ステップS1603以降の処理を繰り返す。   In step S1605, the information management table management unit 3132 determines whether the segment ID 611 of the current segment information management table 6100 is equal to the end segment F_SEG 514 held in step S1504. If the current segment ID 611 is equal to the end segment F_SEG 514 at the time of data batch insertion, the process proceeds to step S1607, and if not, the process proceeds to step S1606. Here, when the current segment ID 611 is equal to the end segment F_SEG 514 at the time of data batch insertion, it is the last segment to be subject to data batch deletion. On the other hand, if the current segment ID 611 is not equal to the end segment F_SEG 514 at the time of data batch insertion, there is another data batch deletion segment, and the process advances to step S1606. In step S1606, the information management table management unit 3132 moves to the record of the segment information management table 6100 with the NEXTSEG_ID 613 acquired in step S1603 as a segment ID, and then repeats the processing from step S1603 onward.

ステップS1607では、情報管理テーブル管理部3132が、現在の管理点管理表5100のレコードの開始セグメントS_SEG513と終了セグメントF_SEG514が繰り返し列であるか否かを判定する。ここで、開始セグメントS_SEG513と終了セグメントF_SEG514が繰り返し列である場合は、データ一括削除の対象のセグメントが残っている可能性がある。一方、開始セグメントS_SEG513と終了セグメントF_SEG514が繰り返し列でない場合は、本セグメントがデータ一括削除の対象の最後のセグメントである。現在の管理点管理表5100のレコードの開始セグメントS_SEG513と終了セグメントF_SEG514が繰り返し列の場合にはステップS1608へ進み、繰り返し列でなければステップS1610へ進む。   In step S1607, the information management table management unit 3132 determines whether the start segment S_SEG513 and the end segment F_SEG514 of the record of the current management point management table 5100 are repetition columns. Here, when the start segment S_SEG 513 and the end segment F_SEG 514 are repetitive columns, there is a possibility that the target segment for data batch deletion remains. On the other hand, when the start segment S_SEG 513 and the end segment F_SEG 514 are not repetitive columns, this segment is the last segment subject to data batch deletion. If the start segment S_SEG 513 and the end segment F_SEG 514 of the record in the current management point management table 5100 are repetition strings, the process proceeds to step S1608, and if not, the process proceeds to step S1610.

ステップS1608では、情報管理テーブル管理部3132は、現在選択している管理点管理表5100のレコードの終了セグメントF_SEG514が繰り返し列の最後の要素であるか否かを判定する。ここで、終了セグメントF_SEG514が繰り返し列の最後の要素である場合は、本セグメントがデータ一括削除の対象の最後のセグメントである。一方、終了セグメントF_SEG514が繰り返し列の最後の要素でない場合は、削除対象のセグメントがまだ残っている。最後の要素であればステップS1610へ進み、最後の要素でなければステップS1609へ進んで、繰り返し列の次の終了セグメントF_SEG514を取得してステップS1606からステップS1603へ戻って上記処理を繰り返す。   In step S1608, the information management table management unit 3132 determines whether or not the end segment F_SEG 514 of the record of the currently selected management point management table 5100 is the last element in the repetition column. Here, when the end segment F_SEG 514 is the last element of the repetition sequence, this segment is the last segment to be subject to data batch deletion. On the other hand, if the end segment F_SEG 514 is not the last element in the repetition sequence, the segment to be deleted still remains. If it is the last element, the process proceeds to step S1610. If it is not the last element, the process proceeds to step S1609, the next end segment F_SEG 514 of the repetition sequence is acquired, the process returns from step S1606 to step S1603, and the above processing is repeated.

ステップS1610では、情報管理テーブル管理部3132が上記ステップS1602で保持した直前のセグメントID(PREVSEG_ID)614をSEGMENT_ID611とするセグメント情報管理テーブル6100のレコードで、NEXTSEG_ID613の値を、上記ステップS1603で取得したNEXTSEG_ID613で更新する。   In step S1610, the NEXTSEG_ID 613 value obtained in step S1603 is obtained as the value of NEXTSEG_ID 613 in the record of the segment information management table 6100 in which the segment ID (PREVSEG_ID) 614 held in step S1602 by the information management table management unit 3132 is SEGMENT_ID 611. Update with.

ステップS1610では、情報管理テーブル管理部3132が上記ステップS1603で取得した次のセグメントID(NEXTSEG_ID)613をSEGMENT_ID611とするセグメント情報管理テーブル6100のレコードで、PREVSEG_ID614の値を、上記ステップS1602で取得したPREVSEG_ID614の値で更新する。   In step S1610, the information management table management unit 3132 is a record in the segment information management table 6100 in which the next segment ID (NEXTSEG_ID) 613 acquired in step S1603 is SEGMENT_ID 611, and the value of PREVSEG_ID 614 is acquired in the above-described step S1602. Update with the value of.

上記処理を繰り返すことで、削除対象のセグメント情報管理テーブル6100のレコードを初期化し、初期化したセグメントIDの直前のセグメントIDと直後のセグメントIDを関連づけてセグメントIDの連鎖(参照関係)を保持する。   By repeating the above processing, the record of the segment information management table 6100 to be deleted is initialized, the segment ID immediately before the initialized segment ID is associated with the segment ID immediately after it, and the chain of segment IDs (reference relationship) is held. .

図17は、図14のステップS1406で行われる表情報管理テーブル更新処理の一例を示すフローチャートである。ステップS1701では、情報管理テーブル管理部3132は、上記図15のステップS1501で取得した表の名称TABLE515をTABLE_NAME711に有する表情報管理テーブル7100のレコードを選択する。   FIG. 17 is a flowchart illustrating an example of the table information management table update process performed in step S1406 of FIG. In step S1701, the information management table management unit 3132 selects a record in the table information management table 7100 having the table name TABLE 515 acquired in step S1501 in FIG. 15 in the TABLE_NAME 711.

ステップS1702では、情報管理テーブル管理部3132は、現在選択している表情報管理テーブル7100のレコードのSEGMENT713から、上記図15のステップS1504で取得した開始セグメントS_SEG513の値と、終了セグメントF_SEG514の値からなる範囲を削除する。   In step S1702, the information management table management unit 3132 uses the value of the start segment S_SEG513 and the value of the end segment F_SEG514 acquired in step S1504 of FIG. 15 from the SEGMENT 713 of the record of the currently selected table information management table 7100. Is deleted.

上記処理により、表情報管理テーブル7100からは、データ一括削除によってセグメント情報管理テーブル6100から削除されたセグメントIDの範囲が削除される。セグメントIDの削除によって、表3220にはレコードが残ってはいるもののデータベース管理システム3130からアクセスすることはできず、実質的に削除したこととなる。   By the above processing, the range of segment IDs deleted from the segment information management table 6100 by the data batch deletion is deleted from the table information management table 7100. Due to the deletion of the segment ID, a record remains in the table 3220, but cannot be accessed from the database management system 3130, and is substantially deleted.

図18は、本発明の変形例を示し、管理点管理表5100をデータベース300内に格納した場合の、管理点管理表5100のレコード削除処理の一例を示すフローチャートである。   FIG. 18 is a flowchart showing an example of record deletion processing of the management point management table 5100 when the management point management table 5100 is stored in the database 300, showing a modification of the present invention.

管理点管理表5100を図1に示すデータベース300内に格納した場合、図14のステップS1407で行われる管理点管理表5100のレコード削除処理でセグメント情報管理テーブル6100を更新する必要がある。   When the management point management table 5100 is stored in the database 300 shown in FIG. 1, it is necessary to update the segment information management table 6100 by the record deletion processing of the management point management table 5100 performed in step S1407 of FIG.

ステップS1801では、管理点管理表処理部3134の管理点レコード削除処理3137により、現在カーソルC1によって選択されている管理点管理表5100のレコードを格納しているセグメント情報管理テーブル6100のレコードを選択する。   In step S1801, the management point record deletion processing 3137 of the management point management table processing unit 3134 selects the record of the segment information management table 6100 that stores the record of the management point management table 5100 currently selected by the cursor C1. .

ステップS1802では、管理点管理表処理部3134がステップS1801で選択したセグメント情報管理テーブル6100のレコードのセグメントID内で、削除対象の管理点管理表5100のレコード(図中、管理点レコード)を格納している領域を解放する。   In step S1802, the record (management point record in the figure) of the management point management table 5100 to be deleted is stored in the segment ID of the record of the segment information management table 6100 selected by the management point management table processing unit 3134 in step S1801. Release the area that is being used.

ステップS1803では、管理点管理表処理部3134がステップS1801で選択したセグメント情報管理テーブル6100のレコードで、残量REST615に削除した管理点管理表5100のレコードのデータ長を加算して更新する。   In step S1803, the management point management table processing unit 3134 adds the data length of the deleted record in the management point management table 5100 to the remaining amount REST 615 in the segment information management table 6100 selected in step S1801 for updating.

ステップS1804では、管理点管理表処理部3134がステップS1801で選択したセグメント情報管理テーブル6100のレコードのセグメントID611に格納されているデータの有無を判定する。格納されているデータがない場合にはステップS1805へ進み、格納されているデータが存在する場合には処理を終了する。   In step S1804, the management point management table processing unit 3134 determines whether there is data stored in the segment ID 611 of the record of the segment information management table 6100 selected in step S1801. If there is no stored data, the process proceeds to step S1805. If there is stored data, the process ends.

ステップS1805では、管理点管理表処理部3134が、TABLE_NAME711が管理点管理表5100の表情報管理テーブル7100のレコードを選択する。   In step S1805, the management point management table processing unit 3134 selects a record in the table information management table 7100 of the management point management table 5100 whose TABLE_NAME 711 is stored.

ステップS1806では、管理点管理表処理部3134が、上記ステップS1801で選択したセグメント情報管理テーブル6100のレコードのセグメントID611を、現在の表情報管理テーブル7100のレコードのSEGMENT713から削除して処理を終了する。   In step S1806, the management point management table processing unit 3134 deletes the segment ID 611 of the record of the segment information management table 6100 selected in step S1801 from the SEGMENT 713 of the record of the current table information management table 7100, and ends the process. .

なお、上記実施形態では、管理者やユーザが明示的に削除対象のデータを指定する情報として、表名515とデータ一括挿入の開始日時S_TIME511(または終了日時)を用いる例を示したが、明示的な情報としてはデータ一括挿入の操作の名称を設定するようにしてもよい。   In the above embodiment, an example in which the table name 515 and the start date / time S_TIME 511 (or end date / time) of data batch insertion are used as information for the administrator or user to explicitly specify data to be deleted is shown. As general information, the name of the operation for batch data insertion may be set.

また、上記実施形態では、データベース300を外部記憶装置3200に格納する例を示したが、データベース管理者装置3100の内部の記憶装置にデータベース300を格納してもよい。   In the above embodiment, the database 300 is stored in the external storage device 3200. However, the database 300 may be stored in a storage device inside the database administrator device 3100.

以上のように、本発明では、データの一括挿入処理時にデータ格納領域管理用の情報を管理点管理表5100のレコードとして生成し、データベース管理システム3130がデータ一括挿入の日時とデータの格納位置(セグメントID)を管理する。管理点管理表5100は、管理者やユーザが明示的に理解可能な情報(日時等)と一括挿入したデータ格納領域の範囲を1:1で対応づけておく。つまり、管理点管理表5100では、データ一括挿入の開始日時S_TIME511(または終了日時F_TIME512)と、データ一括挿入の開始セグメントS_SEG513と終了セグメントF_SEG514が一意で対応している。したがって、データを一括して削除する際には、管理者やユーザが明示的に分かる情報としてデータ一括挿入の日時の範囲412を削除条件(データ一括削除要求4100)として指定することで、データベース300上のデータの格納位置(またはエリア)を管理者やユーザに意識させることなくデータの削除を容易に行うことが可能となる。   As described above, according to the present invention, data storage area management information is generated as a record in the management point management table 5100 at the time of data batch insertion processing, and the database management system 3130 stores the data batch insertion date and data storage location (Segment ID) is managed. In the management point management table 5100, information (date and time) that can be clearly understood by the administrator or user is associated with the range of the data storage area that is collectively inserted in a 1: 1 ratio. That is, in the management point management table 5100, the start date / time S_TIME 511 (or end date / time F_TIME 512) of data batch insertion, the start segment S_SEG 513 and the end segment F_SEG 514 of data batch insertion uniquely correspond to each other. Therefore, when deleting data in a batch, the date and time range 412 of the data batch insertion is designated as the deletion condition (data batch deletion request 4100) as information that can be clearly understood by the administrator and the user. Data can be easily deleted without making the administrator or user aware of the storage location (or area) of the above data.

以上のように、本発明はデータ一括型のデータベースを提供する計算機システムに適用することができ、特に、データ一括型のデータベースを管理する管理装置に適用することができる。   As described above, the present invention can be applied to a computer system that provides a data batch type database, and in particular, can be applied to a management apparatus that manages a data batch type database.

300 データベース
3220 表
3230 インデクス
3100 データベース管理装置
3130 データベース管理システム
3132 情報管理テーブル管理部
3133 表データ挿入部
3134 管理点管理表処理部
3200 外部記憶装置
3210 データ一括挿入ファイル
5100 管理点管理表
6100 セグメント情報管理テーブル
7100 表情報管理テーブル
300 Database 3220 Table 3230 Index 3100 Database management device 3130 Database management system 3132 Information management table management unit 3133 Table data insertion unit 3134 Management point management table processing unit 3200 External storage device 3210 Data batch insertion file 5100 Management point management table 6100 Segment information management Table 7100 Table information management table

Claims (7)

プロセッサとメモリを備えた計算機が、前記計算機に接続された記憶装置に格納されたデータベースを管理するデータベース管理方法であって、
前記計算機が、前記データベースに挿入したデータの格納位置を格納位置管理情報に格納する第1のステップと、
前記計算機が、前記データベースにデータを挿入したときの情報を前記格納位置に関連づけて管理点情報に格納する第2のステップと、
前記計算機が、前記データベースのデータを削除する要求として前記管理点情報の要素を含む削除要求を受け付ける第3のステップと、
前記計算機が、前記削除要求に含まれる前記要素から前記管理点情報を検索し、管理点情報を特定する第4のステップと、
前記計算機が、前記特定した管理点情報から削除対象のデータの格納位置を取得する第5のステップと、
前記計算機が、前記取得した格納位置を含む前記格納位置管理情報を抽出する第6のステップと、
前記計算機が、前記抽出した格納位置管理情報を初期化する第7のステップと、
前記計算機が、前記特定した管理点情報を削除する第8のステップと、
を含むことを特徴とするデータベースの管理方法。
A computer comprising a processor and a memory is a database management method for managing a database stored in a storage device connected to the computer,
A first step in which the computer stores the storage location of the data inserted into the database in storage location management information;
A second step in which the computer stores information in the management point information in association with the storage position when data is inserted into the database;
A third step in which the computer receives a deletion request including an element of the management point information as a request to delete data in the database;
A fourth step in which the computer searches the management point information from the elements included in the deletion request and identifies the management point information;
A fifth step in which the computer acquires a storage location of data to be deleted from the specified management point information;
A sixth step in which the computer extracts the storage location management information including the acquired storage location;
A seventh step in which the computer initializes the extracted storage location management information;
An eighth step in which the computer deletes the identified management point information;
A database management method comprising:
請求項1に記載のデータベース管理方法であって、
前記第2のステップは、
前記データベースにデータを挿入したときの開始日時と、前記格納位置のうち挿入開始位置と、前記格納位置のうち挿入終了位置と、前記データベースを識別する情報と、を新たな管理点情報として格納することを特徴とするデータベースの管理方法。
The database management method according to claim 1, comprising:
The second step includes
The start date and time when data is inserted into the database, the insertion start position of the storage position, the insertion end position of the storage position, and information for identifying the database are stored as new management point information. A database management method characterized by the above.
請求項1に記載のデータベース管理方法であって、
前記第2のステップは、
前記データベースにデータを挿入したときの開始日時と、前記データベースにデータを挿入したときの終了日時と、前記格納位置のうち挿入開始位置と、前記格納位置のうち挿入終了位置と、前記データベースを識別する情報と、を新たな管理点情報として格納することを特徴とするデータベースの管理方法。
The database management method according to claim 1, comprising:
The second step includes
Identifying the database, the start date and time when data was inserted into the database, the end date and time when data was inserted into the database, the insertion start position of the storage position, the insertion end position of the storage position, And a management method for a database, characterized in that the management information is stored as new management point information.
請求項2に記載のデータベース管理方法であって、
前記管理点情報は、
前記格納位置のうち挿入開始位置と、前記格納位置のうち挿入終了位置と、を列情報として格納することを特徴とするデータベースの管理方法。
The database management method according to claim 2, wherein
The management point information is
A database management method comprising: storing an insertion start position among the storage positions and an insertion end position among the storage positions as column information.
請求項3に記載のデータベース管理方法であって、
前記計算機が、前記特定した管理点情報を削除する第8のステップをさらに含み、
前記第3のステップは、
前記削除要求が前記管理点情報の要素として前記開始日時と終了日時の少なくとも一方を含むことを特徴とするデータベース管理方法。
The database management method according to claim 3, wherein
The computer further includes an eighth step of deleting the specified management point information;
The third step includes
The database management method, wherein the deletion request includes at least one of the start date and time and the end date and time as an element of the management point information.
プロセッサとメモリを備えた計算機に接続された記憶装置にデータベースを格納し、前記計算機のデータベース管理部で前記データベースを管理するデータベース管理装置であって、
前記データベース管理部は、
前記データベースに挿入したデータの格納位置を格納位置管理情報に格納するデータ挿入部と、
前記データベースにデータを挿入したときの情報を前記格納位置に関連づけて管理点情報に格納する管理点管理部と、
前記データベースのデータを削除する要求として前記管理点情報の要素を含む削除要求を受け付けるデータ操作受付部と、を備え、
前記管理点管理部は、
前記削除要求に含まれる前記要素から前記管理点情報を検索し、管理点情報を特定し、当該特定した管理点情報から削除対象のデータの格納位置を取得し、前記取得した格納位置を含む前記格納位置管理情報を抽出し、当該抽出した格納位置管理情報を初期化することを特徴とするデータベースの管理装置。
A database management device that stores a database in a storage device connected to a computer having a processor and a memory, and manages the database in a database management unit of the computer,
The database management unit
A data insertion unit for storing the storage position of the data inserted into the database in storage position management information;
A management point management unit for storing information when data is inserted into the database in the management point information in association with the storage position;
A data operation receiving unit that receives a deletion request including an element of the management point information as a request to delete data in the database,
The management point management unit
The management point information is searched from the element included in the deletion request, the management point information is specified, the storage position of the data to be deleted is acquired from the specified management point information, and the acquired storage position is included. A database management apparatus that extracts storage location management information and initializes the extracted storage location management information.
プロセッサとメモリを備えた計算機でデータベースを管理するプログラムであって、
前記データベースに挿入したデータの格納位置を格納位置管理情報に格納する第1の手順と、
前記データベースにデータを挿入したときの情報を前記格納位置に関連づけて管理点情報に格納する第2の手順と、
前記データベースのデータを削除する要求として前記管理点情報の要素を含む削除要求を受け付ける第3の手順と、
前記削除要求に含まれる前記要素から前記管理点情報を検索し、管理点情報を特定する第4の手順と、
前記特定した管理点情報から削除対象のデータの格納位置を取得する第5の手順と、
前記取得した格納位置を含む前記格納位置管理情報を抽出する第6の手順と、
前記抽出した格納位置管理情報を初期化する第7の手順と、
前記特定した管理点情報を削除する第8のステップと、
を前記計算機に実行させることを特徴とするプログラム。
A program for managing a database on a computer having a processor and a memory,
A first procedure for storing a storage position of data inserted into the database in storage position management information;
A second procedure for storing the information when data is inserted into the database in the management point information in association with the storage position;
A third procedure for receiving a deletion request including an element of the management point information as a request to delete data in the database;
A fourth procedure for retrieving the management point information from the elements included in the deletion request and identifying the management point information;
A fifth procedure for obtaining a storage position of data to be deleted from the specified management point information;
A sixth procedure for extracting the storage location management information including the acquired storage location;
A seventh procedure for initializing the extracted storage location management information;
An eighth step of deleting the specified management point information;
Is executed by the computer.
JP2011006909A 2010-01-15 2011-01-17 Database management method, database management apparatus and program Active JP5534461B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2011006909A JP5534461B2 (en) 2011-01-17 2011-01-17 Database management method, database management apparatus and program
JP2011006909D JP2011165178A (en) 2010-01-15 2011-01-17 Management method of database, management apparatus of database and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011006909A JP5534461B2 (en) 2011-01-17 2011-01-17 Database management method, database management apparatus and program

Publications (3)

Publication Number Publication Date
JP2011165178A6 JP2011165178A6 (en) 2012-03-01
JP2012150547A true JP2012150547A (en) 2012-08-09
JP5534461B2 JP5534461B2 (en) 2014-07-02

Family

ID=46799340

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011006909A Active JP5534461B2 (en) 2010-01-15 2011-01-17 Database management method, database management apparatus and program

Country Status (1)

Country Link
JP (1) JP5534461B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9971793B2 (en) 2013-08-22 2018-05-15 Hitachi, Ltd. Database management system and database management method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1165903A (en) * 1997-08-14 1999-03-09 Nippon Telegr & Teleph Corp <Ntt> Method and device for data base management, and storage medium stored with data base management program
JP2000148548A (en) * 1998-11-17 2000-05-30 Nec Corp Unnecessary record deleting device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1165903A (en) * 1997-08-14 1999-03-09 Nippon Telegr & Teleph Corp <Ntt> Method and device for data base management, and storage medium stored with data base management program
JP2000148548A (en) * 1998-11-17 2000-05-30 Nec Corp Unnecessary record deleting device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9971793B2 (en) 2013-08-22 2018-05-15 Hitachi, Ltd. Database management system and database management method

Also Published As

Publication number Publication date
JP5534461B2 (en) 2014-07-02

Similar Documents

Publication Publication Date Title
EP3026582B1 (en) Transaction control block for multiversion concurrency commit status
EP3519986B1 (en) Direct table association in in-memory databases
CN103353901B (en) The orderly management method of table data based on Hadoop distributed file system and system
KR101740271B1 (en) Method and device for constructing on-line real-time updating of massive audio fingerprint database
JPWO2011018852A1 (en) Data storage device with deduplication function and control device for creating search index of data storage device
JP5979895B2 (en) Document management system, computer program, and document management method
JP5534461B2 (en) Database management method, database management apparatus and program
JP2002049637A (en) Database management method, device and recording medium
JP4758927B2 (en) Electronic medical record operation guidance program, electronic medical record operation guidance method, and electronic medical record operation guidance device
JP2011165178A (en) Management method of database, management apparatus of database and program
CN107562898A (en) A kind of method that recycle bin is created based on KUX operating systems
CN116501736A (en) Control method and control system for delayed playback of database
JP2015176407A (en) Search device, search method, search program and search data structure
JP3655719B2 (en) Image search information management method and image search information management device
JP4314126B2 (en) Concurrent execution control method and apparatus
JP5655764B2 (en) Sampling apparatus, sampling program, and method thereof
WO2011099082A1 (en) Database management system
JP2002169709A (en) Managing method of keeping and storing method for document
JP6193491B2 (en) Computer system
JP6158361B2 (en) Information processing apparatus and method
JP2007323153A (en) Index file retrieving device, retrieving method, retrieval program and recording medium with its program recorded
CN108694219A (en) A kind of data processing method and device
JP7110924B2 (en) Library management program, method and apparatus
CN102004728B (en) Method for storing and resetting cursor position of database
WO2014203397A1 (en) Computer system, metadata management method, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130214

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140110

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140121

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140311

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20140401

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140417

R150 Certificate of patent or registration of utility model

Ref document number: 5534461

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150