JP2005078237A - Database device, and schema management device and method therefor - Google Patents

Database device, and schema management device and method therefor Download PDF

Info

Publication number
JP2005078237A
JP2005078237A JP2003305742A JP2003305742A JP2005078237A JP 2005078237 A JP2005078237 A JP 2005078237A JP 2003305742 A JP2003305742 A JP 2003305742A JP 2003305742 A JP2003305742 A JP 2003305742A JP 2005078237 A JP2005078237 A JP 2005078237A
Authority
JP
Japan
Prior art keywords
schema
operation request
database
application program
attribute
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.)
Withdrawn
Application number
JP2003305742A
Other languages
Japanese (ja)
Inventor
Masaki Abe
雅規 安部
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co 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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP2003305742A priority Critical patent/JP2005078237A/en
Publication of JP2005078237A publication Critical patent/JP2005078237A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To continuously use an existing application program even when the schema of a database is changed. <P>SOLUTION: An operation request generation part 101 of an application program execution part 10 generates a database operation request such as the reference and change of data to a database 11 based on the input of a user, and outputs the version information of an application program. An operation request(retrieval condition) and version information are supplied to a schema reconfiguration part 102, and the schema reconfiguration part 102 reconfigures the schema. An operation request issuing part 103 executes a database operation to an attribute information management table 112 of a database 10 based on the reconfigured schema. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

この発明は、データベース装置のデータ構造(スキーマ)の管理技術に関し、とくに、スキーマを変更しても、データベース装置にアクセスするための既存のアプリケーションプログラムをそのまま利用できるようにしたものである。   The present invention relates to a data structure (schema) management technique for a database device, and in particular, allows an existing application program for accessing a database device to be used as it is even if the schema is changed.

従来、ファイリングシステムの使用するデータベースのデータ構造(スキーマ)を変更するには、以下に示す課題を解決しなければならず、利用者にとって大きな負担となっていた。
(1)変更したスキーマを参照する、ファイリングシステム専用のアプリケーションプログラムの修正。
(2)稼動しているアプリケーションプログラムをすべて同時に停止し、修正したものにすべて置き換える。
Conventionally, in order to change the data structure (schema) of a database used by a filing system, the following problems have to be solved, which has been a heavy burden on the user.
(1) Modification of a filing system-specific application program that refers to the changed schema.
(2) Stop all running application programs at the same time and replace them with the modified ones.

データベースのスキーマを変更しても既存のアプリケーションプログラムをそのまま利用できるようにすることが好ましい。   It is preferable that the existing application program can be used as it is even if the schema of the database is changed.

なお、特許文献1は、データベースとこれにアクセスするアプリケーションプログラムの世代が適格性をチェックし、適格性がない場合にはアプリケーションプログラムの起動を中止し、適格性がないアプリケーションプログラムによりデータベースが破壊されるのを防止することを提案している。この場合旧世代のアプリケーションプログラムが使用できないという不都合がある。   In Patent Document 1, the generation of a database and an application program that accesses the database is checked for eligibility, and if the eligibility is not found, the activation of the application program is stopped, and the database is destroyed by an unqualified application program. It is proposed to prevent this. In this case, there is a disadvantage that the old generation application program cannot be used.

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

この発明は、以上の事情を考慮してなされたものであり、データベース中のスキーマ構成を変更した場合でも、対象となるスキーマを参照していたアプリケーションプログラムに変更を加えることなく、継続してデータの参照・更新を可能とするスキーマ管理技術を提供することを目的としている。   The present invention has been made in consideration of the above circumstances, and even when the schema configuration in the database is changed, data is continuously updated without changing the application program that referred to the target schema. The purpose is to provide a schema management technology that can refer to and update the database.

この発明によれば、上述の目的を達成するために、特許請求の範囲に記載のとおりの構成を採用している。   According to this invention, in order to achieve the above-mentioned object, the configuration as described in the claims is adopted.

この発明の原理的な構成例では、データベースを構築する際、実際の属性データが格納される部分(属性情報管理テーブルともいう)とスキーマ情報が管理される部分(スキーマ情報管理テーブルともいう)とを別々に作成する。スキーマ情報が管理される部分には、例えば、属性データの属性名、テーブルのカラム名、アプリケーションプログラムのバージョン情報、更新が可能かどうか、最新かどうかの設定を持ち、接続するアプリケーションプログラムのバージョン情報に対応した、スキーマの管理を行なう。なお、システムが予約して定義の変更が不可能な属性は、スキーマ情報管理テーブルには保持しない。   In the basic configuration example of the present invention, when a database is constructed, a part for storing actual attribute data (also referred to as an attribute information management table) and a part for managing schema information (also referred to as a schema information management table) Are created separately. The part where the schema information is managed includes, for example, attribute data attribute name, table column name, application program version information, whether update is possible, whether it is up-to-date, and version information of the application program to be connected. Schema management corresponding to. Note that the attributes reserved by the system and whose definition cannot be changed are not held in the schema information management table.

スキーマは例えばつぎのように構成する。なお、アプリケーションプログラムは本来のスキーマが予定されているので、以下では、かかるスキーマの構成処理をスキーマの再構成と呼ぶこともある。   For example, the schema is configured as follows. Since an original schema is planned for the application program, the schema configuration process may be referred to as schema reconfiguration below.

(1)まず、スキーマを構成するため、以下の情報をスキーマ管理部分に指定する。
・アプリケーションプログラムのバージョン。
・検索条件に含まれる属性、および取得、更新属性項目。
・属性データの使用目的。
(1) First, in order to construct a schema, the following information is specified in the schema management part.
-Application program version.
-Attributes included in search conditions, and acquisition and update attribute items.
・ Purpose of using attribute data.

(2)スキーマ管理部分において、接続するアプリケーションプログラムのバージョンとスキーマ管理部分のアプリケーションプログラムのバージョン情報が等しい項目を検索する。併せて、最新の項目も検索し、バージョンが等しくなく、最新で、バージョンが等しい項目に存在しない場合には、そのアプリケーションプログラムのバージョンで使用可能な項目とする。 (2) In the schema management part, an item in which the version of the application program to be connected and the version information of the application program in the schema management part are equal is searched. At the same time, the latest item is also searched, and if the version is not the same, and the latest version does not exist in the item having the same version, it is determined as an item usable in the version of the application program.

(3)検索されたスキーマ情報が更新可能かどうかチェックし、属性データの使用目的が属性更新だった場合、処理を中止する。 (3) It is checked whether or not the retrieved schema information can be updated. If the purpose of use of attribute data is attribute update, the process is stopped.

(4)検索されたスキーマ情報のカラム名情報の項目をチェックし、カラム名情報に値が存在する場合には、取得および更新対象の属性項目が、属性管理テーブル上のカラム情報の値を指すように、ビューを構成する。 (4) Check the column name information item of the retrieved schema information, and if the column name information has a value, the attribute item to be acquired and updated indicates the value of the column information on the attribute management table Configure the view as follows.

属性データの参照、更新は、例えば、つぎのように行なう。   The reference and update of the attribute data is performed as follows, for example.

(1)まず、アプリケーションプログラムにて、以下の条件を指定する。
・取得、変更したいオブジェクトの検索条件。
・取得、変更対象の属性項目。
(1) First, the following conditions are specified in the application program.
-Search conditions for the object you want to get or change.
・ Attribute items to be acquired or changed.

(2)アプリケーションプログラムは、スキーマ構成を行なうため、スキーマ管理情報部分にアクセスし、アプリケーションプログラムのバージョンに適合したスキーマを構成し、ビューを取得する。 (2) The application program accesses the schema management information portion to perform schema configuration, configures a schema that conforms to the version of the application program, and acquires a view.

(3)このビューに対し、アプリケーションプログラムは、属性取得、更新の操作を実施する。 (3) The application program performs attribute acquisition and update operations on this view.

なお、アプリケーションプログラム自体がスキーマの構成処理を行なうようにしているが、アプリケーションプログラムから送出された操作要求(検索条件)を処理する手段や、データベース自体が、スキーマの構成処理を行なうようにしても良い。   Although the application program itself performs schema configuration processing, the means for processing operation requests (search conditions) sent from the application program or the database itself may perform schema configuration processing. good.

属性情報管理テーブルのスキーマ変更は例えば次のように行なう。   For example, the schema of the attribute information management table is changed as follows.

(1)スキーマ変更の専用アプリケーションプログラムにて、以下の条件を指定する。
・変更対象となる属性情報管理テーブルのカラム名。
・変更後のカラムの定義。
・変更後に使用可能なアプリケーションプログラムのバージョン。
(1) Specify the following conditions in the dedicated application program for schema change.
-Column name of the attribute information management table to be changed.
-Column definition after change.
-Application program version that can be used after the change.

(2)スキーマ管理部分を検索し、その属性定義がすでに変更されているかどうかをチェックする。 (2) Search the schema management part and check whether the attribute definition has already been changed.

(3)すでに、その属性名の定義が変更されていた場合には、新たにシステムで一意となるIDを取得し、そのIDをカラム名とする指定された定義のカラムを属性テーブルに追加し、スキーマ管理テーブルにその内容を追加し、同じ属性名の定義の最新として追加する。 (3) If the definition of the attribute name has already been changed, a new ID that is unique in the system is acquired, and a column with the specified definition with the ID as the column name is added to the attribute table. Add its contents to the schema management table and add it as the latest definition of the same attribute name.

(4)初めて、その属性名の定義を変更する場合には、既存の属性のカラム名情報を属性名と同じにする。その後、(3)と同様の処理を全ての属性に対し実施する。 (4) When the definition of the attribute name is changed for the first time, the column name information of the existing attribute is made the same as the attribute name. Thereafter, the same processing as (3) is performed for all attributes.

さらにこの発明を説明する。   The present invention will be further described.

この発明によれば、上述の目的を達成するために、特許請求の範囲に記載のとおりの構成を採用している。ここでは、発明を詳細に説明するのに先だって、特許請求の範囲の記載について補充的に説明を行なっておく。   According to this invention, in order to achieve the above-mentioned object, the configuration as described in the claims is adopted. Here, prior to describing the invention in detail, supplementary explanations of the claims will be given.

すなわち、この発明の一側面によれば、上述の目的を達成するために、データベース装置に:データベース本体と;アプリケーションプログラムが予定するスキーマに準拠して上記データベース本体に対する操作要求を生成する操作要求生成手段と;上記操作要求に関連して出力されるアプリケーションプログラムのバージョン情報に応じて、上記アプリケーションプログラムが予定するスキーマを適合的に再構成するスキーマ再構成手段と;再構成されたスキーマに準拠して上記操作要求を上記データベース本体に対して発行する操作要求発行手段とを設けるようにしている。   That is, according to one aspect of the present invention, in order to achieve the above-described object, the database apparatus includes: a database body; and an operation request generation for generating an operation request for the database body in accordance with a schema planned by the application program. Means for reconfiguring the schema planned by the application program according to the version information of the application program output in relation to the operation request; and conforming to the reconfigured schema The operation request issuing means for issuing the operation request to the database main body is provided.

この構成においては、アプリケーションプログラムのバージョン情報に応じて適合的にスキーマを構成するので、データベース本体のスキーマを変更した場合でも既存のスキーマをそのまま用いてデータベースにアクセスすることができる。   In this configuration, since the schema is adaptively configured according to the version information of the application program, the database can be accessed using the existing schema as it is even when the schema of the database main body is changed.

この構成において、アプリケーションプログラム実行手段が、操作要求生成手段、スキーマ再構成手段および操作要求発行手段を構成しても良い。アプリケーションプログラム実行手段から操作要求を受け取るサーバ装置等の操作要求処理部やデータベース本体自体が、スキーマ再構成手段および操作要求発行手段を構成するようにしても良い。   In this configuration, the application program execution means may constitute operation request generation means, schema reconfiguration means, and operation request issue means. The operation request processing unit such as a server device that receives an operation request from the application program execution unit or the database body itself may constitute a schema reconfiguration unit and an operation request issue unit.

また、上記スキーマ構成手段は、例えば、上記バージョン情報と上記操作要求に含まれる属性名とから上記操作要求に関連して実際に用いる上記データベース本体における属性名を決定するテーブルを有する。   Further, the schema constructing unit has, for example, a table for determining an attribute name in the database main body actually used in relation to the operation request from the version information and the attribute name included in the operation request.

また、上記テーブルは、決定された上記データベースにおける属性名の属性値が上記操作要求により更新可能かどうかを指示することが好ましい。   The table preferably indicates whether the attribute value of the attribute name in the determined database can be updated by the operation request.

また、上記テーブルは、上記操作要求に含まれる属性名が、上記データベースにおいて実際に用いられるべく、おける他の属性名に、上記データベースのスキーマの変更により他の属性により置き換えられることなく最新状態であるかどうかを指示することが好ましい。   In addition, the above table is updated so that the attribute name included in the operation request can be actually used in the database without being replaced with another attribute name by changing the schema of the database. It is preferable to indicate whether there is.

上記データベース装置は、種々の態様で構成でき、例えば、データベースを管理するデータベース管理装置と、データベース操作要求を送出するクライアントアプリケーションプログラムを実行する端末と、上記端末から上記データベース操作要求を受け取って上記データベース装置にデータベース操作要求を発行するサーバアプリケーションプログラムを実行するサーバ装置とから構成できる。   The database device can be configured in various modes. For example, a database management device that manages a database, a terminal that executes a client application program that sends a database operation request, and the database operation request that is received from the terminal. The server apparatus can be configured to execute a server application program that issues a database operation request to the apparatus.

また、この発明の他の側面によれば、上述目的を達成するために、データベース装置に:アプリケーションプログラムを実行するアプリケーションプログラム実行手段と;属性情報を格納する属性情報管理テーブルと、上記アプリケーションプログラムのバージョンに基づいて所定の属性情報に対応する上記属性情報管理テーブルにおけるカラムを指定するスキーマ情報管理テーブルとを含むデータベース本体と;上記アプリケーションプログラムから送出された操作要求に基づいて操作される上記属性情報管理テーブルにおけるカラムを、上記操作要求に伴って送られたアプリケーションプログラムのバージョン情報に応じて、上記スキーマ情報管理テーブルを参照して決定するカラム決定手段と;上記カラム決定手段で決定されたカラムに対して操作要求を実行する操作要求実行手段とを設けるようにしている。   According to another aspect of the present invention, in order to achieve the above object, the database apparatus includes: an application program executing means for executing an application program; an attribute information management table for storing attribute information; A database main body including a schema information management table for designating a column in the attribute information management table corresponding to predetermined attribute information based on a version; and the attribute information operated based on an operation request sent from the application program Column determining means for determining the columns in the management table with reference to the schema information management table in accordance with the version information of the application program sent along with the operation request; the column determined by the column determining means And it is provided an operation request execution means for executing an operation request for.

この構成において、データベースの属性情報管理テーブルに新たにカラムを付加して新たなスキーマを準備した場合でも、既存のアプリケーションプログラムをそのまま用いることができる。   In this configuration, even if a new column is added to the attribute information management table of the database and a new schema is prepared, the existing application program can be used as it is.

この発明は、例えば、下記のようなシステムに最適であるが、これに限定されない。
(1)データベースを用いて、階層構造を持つことができる、画像、属性などにより構成されるオブジェクトを管理するファイリングシステム。
(2)データベースにより管理されるオブジェクトは、そのシステム内でオブジェクトを識別するためのユニークな値(ID)を持つ。
(3)データベースには、実体(画像や文書)の格納先情報を持つ。
For example, the present invention is optimal for the following system, but is not limited thereto.
(1) A filing system that uses a database to manage objects that can have a hierarchical structure and are composed of images, attributes, and the like.
(2) An object managed by the database has a unique value (ID) for identifying the object in the system.
(3) The database has storage location information of entities (images and documents).

なお、この発明は装置またはシステムとして実現できるのみでなく、方法としても実現可能である。また、そのような発明の一部をソフトウェアとして構成することができることはもちろんである。またそのようなソフトウェアをコンピュータに実行させるために用いるソフトウェア製品もこの発明の技術的な範囲に含まれることも当然である。   The present invention can be realized not only as an apparatus or a system but also as a method. Of course, a part of the invention can be configured as software. Of course, software products used to cause a computer to execute such software are also included in the technical scope of the present invention.

この発明の上述の側面および他の側面は特許請求の範囲に記載され以下実施例を用いて詳述される。   These and other aspects of the invention are set forth in the appended claims and will be described in detail below with reference to examples.

この発明によれば、データベースのデータ構造(スキーマ)に変更があった場合でも、データの参照および更新が可能になる。これにより、スキーマ変更に対応するためにアプリケーションプログラムを修正する必要がなくなり、アプリケーションプログラム保守のコストが削減できる。また、具体的な例では、アプリケーションプログラムが、以前のスキーマ構成で、データベースにデータの参照および更新することが検出できるため、スキーマ構成の変更に対応していないアプリケーションプログラムに対する操作を抑制することが可能となり、アプリケーションプログラムによるデータの破壊を防ぐことが可能になる。   According to the present invention, it is possible to refer to and update data even when the data structure (schema) of the database is changed. Thereby, it is not necessary to modify the application program in order to cope with the schema change, and the cost of application program maintenance can be reduced. Further, in a specific example, since it is possible to detect that the application program refers to and updates data in the database with the previous schema configuration, it is possible to suppress operations on application programs that do not support changes in the schema configuration. This makes it possible to prevent data destruction by the application program.

以下、この発明の実施例について説明する。   Examples of the present invention will be described below.

図1は、この発明の実施例のデータベース装置を模式的に示しており、図2は図1の要部の詳細の構成例を示しており、図3は、上述実施例のデータの流れを示している。   FIG. 1 schematically shows a database apparatus according to an embodiment of the present invention, FIG. 2 shows a detailed configuration example of a main part of FIG. 1, and FIG. 3 shows a data flow of the above-described embodiment. Show.

図1において、データベース装置は、アプリケーションプログラム実行部10、データベース11、実体データ格納用記憶部12等を含んで構成されている。   In FIG. 1, the database device includes an application program execution unit 10, a database 11, an entity data storage unit 12, and the like.

アプリケーションプログラム実行部10は、データベース11を操作するアプリケーションプログラムを実行するものであり、計算機と、この計算機上で実行される当該アプリケーションプログラムとからなる。アプリケーションプログラム実行部10は、機能的には、操作要求生成部101、スキーマ再構成部102、操作要求発行部103および実体データ操作部104等を含んで構成されている。   The application program execution unit 10 executes an application program that operates the database 11, and includes a computer and the application program executed on the computer. Functionally, the application program execution unit 10 includes an operation request generation unit 101, a schema reconfiguration unit 102, an operation request issue unit 103, an entity data operation unit 104, and the like.

データベース11は、スキーマ情報管理テーブル111、属性情報管理テーブル112、実体データ格納先管理テーブル113等を含んでいる。実体データがすべて属性情報管理テーブル112に格納される場合には実体データ格納先管理テーブル113および実体データ格納用記憶部12を省略しても良い。   The database 11 includes a schema information management table 111, an attribute information management table 112, an entity data storage destination management table 113, and the like. When all the entity data is stored in the attribute information management table 112, the entity data storage destination management table 113 and the entity data storage unit 12 may be omitted.

アプリケーションプログラム実行部10の操作要求生成部101は、ユーザの入力に基づいてデータベース11に対してデータの参照、変更等のデータベース操作を要求する操作要求を生成するものである。また操作要求生成部101はアプリケーションプログラムのバージョン情報を出力する。操作要求(検索条件)およびバージョン情報はスキーマ再構成部102に供給され、スキーマ再構成部102はスキーマを再構成する。スキーマ再構成部102は、具体的には、バージョン情報に基づいてスキーマ情報管理テーブル111を参照してスキーマを再構成する。スキーマ再構成部102は図2に示すように属性定義取得部102aおよびカラム決定部102bから構成することができる。属性定義取得部102aはスキーマ情報管理テーブル111を参照してバージョンごとの属性定義を取得する。カラム決定部102bは属性定義から操作対象のカラム(データベーステーブルの属性)を決定する。スキーマの再構成については図4のフローチャート等を参照して後に詳述する。   The operation request generation unit 101 of the application program execution unit 10 generates an operation request for requesting a database operation such as data reference or change to the database 11 based on a user input. Further, the operation request generation unit 101 outputs version information of the application program. The operation request (search condition) and version information are supplied to the schema reconfiguration unit 102, which reconfigures the schema. Specifically, the schema reconfiguration unit 102 reconfigures the schema with reference to the schema information management table 111 based on the version information. As shown in FIG. 2, the schema reconfiguration unit 102 can be composed of an attribute definition acquisition unit 102a and a column determination unit 102b. The attribute definition acquisition unit 102a refers to the schema information management table 111 and acquires an attribute definition for each version. The column determining unit 102b determines the operation target column (database table attribute) from the attribute definition. The schema reconfiguration will be described in detail later with reference to the flowchart of FIG.

操作要求発行部103は属性情報管理テーブル検索部103aおよび属性名復元部103bとから構成することができる。属性情報管理テーブル検索部103aは、決定されたカラムに対して検索を行なう。属性名復元部103bはバージョンごとに属性定義に基づいてカラムに対応する属性名を決定する。   The operation request issuing unit 103 can be composed of an attribute information management table search unit 103a and an attribute name restoration unit 103b. The attribute information management table searching unit 103a searches the determined column. The attribute name restoration unit 103b determines an attribute name corresponding to the column based on the attribute definition for each version.

属性情報管理テーブル112は、実際の属性情報が格納されるテーブルであり、例えば図5に示すように構成される。図5の例のテーブルでは、属性(カラム)として「ID」、「名前」、「フォーマット」、「管理番号」、「af0023」を有している。こらら属性(カラム)のうち、「ID」、「名前」、「フォーマット」、「管理番号」はアプリケーションプログラムによりそのままスキーマの属性として利用可能なものであり、他方、「af0023」は、アプリケーションプログラムに利用されるスキーマの属性ではなく、スキーマ情報管理テーブル111によりアプリケーションプログラムのスキーマの属性にマッピングされるものである。以下では、アプリケーションプログラムに利用されるスキーマの属性と、データベース11の属性情報管理テーブル112の属性とを区別するために、前者を「属性」と呼び、後者を「カラム」と呼ぶこともある。   The attribute information management table 112 is a table in which actual attribute information is stored, and is configured as shown in FIG. 5, for example. The table in the example of FIG. 5 has “ID”, “name”, “format”, “management number”, and “af0023” as attributes (columns). Among these attributes (columns), “ID”, “name”, “format”, and “management number” can be directly used as attributes of the schema by the application program, while “af0023” is the application program. It is mapped to the schema attribute of the application program by the schema information management table 111 instead of the schema attribute used for the application. Hereinafter, in order to distinguish between the attribute of the schema used for the application program and the attribute of the attribute information management table 112 of the database 11, the former is sometimes referred to as “attribute” and the latter is sometimes referred to as “column”.

例えば、属性情報管理テーブル112の属性のうち「af0023」は、「カラム」としてのみ使用され、この「カラム」がスキーマ情報管理テーブル111によりアプリケーションプログラムのスキーマの「属性」に変換されて用いられる。   For example, among the attributes of the attribute information management table 112, “af0023” is used only as a “column”, and this “column” is converted into an “attribute” of the schema of the application program by the schema information management table 111 and used.

スキーマ情報管理テーブル111は、スキーマを再構成するときに利用する情報(属性定義とも呼ぶ)を格納するテーブルである。もちろんスキーマ情報管理テーブル111は、これ以外の用途にも用いることができる。例えば、アプリケーションプログラムのバージョンごとにアクセス権限を制限することができる。   The schema information management table 111 is a table that stores information (also referred to as attribute definition) used when reconfiguring a schema. Of course, the schema information management table 111 can also be used for other purposes. For example, the access authority can be limited for each version of the application program.

スキーマ情報管理テーブル111は、例えば図6に示すようなものであり、この例では、「属性名」、「カラム名」、「バージョン」、「更新可能フラグ」、「最新フラグ」からなるレコード(タプル)を格納している。「属性名」は、アプリケーションプログラムが用いるスキーマにおける属性名である。「カラム名」は属性情報管理テーブル112における属性名(カラム名)である。「バージョン」は、当該レコードが適用されるアプリケーションプログラムのバージョンを示す。「更新可能フラグ」は、当該属性(カラム)が更新可能かどうかを表す。「最新フラグ」は、「属性名」を同一とする「カラム」のうち最新の「カラム」かどうかを表す。   The schema information management table 111 is, for example, as shown in FIG. 6. In this example, a record (“update name flag”, “column name”, “version”, “updatable flag”, “latest flag” record ( Tuple). “Attribute name” is an attribute name in the schema used by the application program. “Column name” is an attribute name (column name) in the attribute information management table 112. “Version” indicates the version of the application program to which the record is applied. The “updatable flag” indicates whether or not the attribute (column) is updatable. “Latest flag” indicates whether or not it is the latest “column” among “columns” having the same “attribute name”.

つぎにスキーマの再構成およびデータの取得等について説明する。   Next, schema reconstruction and data acquisition will be described.

スキーマの再構成は以下のように行なわれる。
(1)まず、スキーマを構成するため、以下の情報をスキーマ再構成部102(スキーマ管理部分)に指定する。
・アプリケーションプログラムのバージョン。
・検索条件に含まれる属性、および取得、更新属性項目。
・属性データの使用目的。
The schema is reconstructed as follows.
(1) First, in order to construct a schema, the following information is designated to the schema reconfiguration unit 102 (schema management part).
-Application program version.
-Attributes included in search conditions, and acquisition and update attribute items.
・ Purpose of using attribute data.

(2)スキーマ再構成部102が、スキーマ情報管理テーブル111を参照し、接続するアプリケーションプログラムのバージョンと「バージョン」が等しい項目(レコード、タプル)を検索する。併せて、最新の項目(「最新フラグ」が「true」の項目)も検索し、当該バージョンが、接続アプリケーションプログラムのバージョンと等しくなく、かつ当該属性が、接続アプリケーションプログラムのバージョンとバージョンが等しい項目に存在しない場合には、接続アプリケーションプログラムのバージョンで使用可能な項目とする。 (2) The schema reconfiguration unit 102 refers to the schema information management table 111 and searches for items (records, tuples) having the same version as the version of the application program to be connected. In addition, the latest item (an item whose “latest flag” is “true”) is also searched, and the version is not equal to the version of the connected application program, and the attribute is equal to the version of the connected application program. If it does not exist, the item can be used in the version of the connected application program.

(3)検索されたスキーマ情報が更新可能かどうかチェックし、更新不可であり、かつ、属性データの使用目的が属性更新だった場合、処理を中止する。 (3) Check whether the retrieved schema information is updatable. If the schema information is not updatable and the purpose of use of attribute data is attribute update, the process is stopped.

(4)検索されたスキーマ情報のカラム名情報の項目をチェックし、カラム名情報に値が存在する場合には、取得および更新対象の属性項目が、属性管理テーブル上のカラム情報の値を指すように、ビューを構成する。 (4) Check the column name information item of the retrieved schema information, and if the column name information has a value, the attribute item to be acquired and updated indicates the value of the column information on the attribute management table Configure the view as follows.

図4は、スキーマの再構成の処理例を示すものである。この処理は以下のとおりである。
[ステップS10]:検索条件に含まれる属性、操作対象の属性、使用目的を指定する。
[ステップS11]:スキーマ情報管理テーブル111にアプリケーションプログラムのバージョンに該当する属性定義が存在するかどうかを、検索条件に含まれる各属性ごとに判別する。存在すればステップS12に進み、存在しなければステップS13へ進む。
[ステップS12]:スキーマ情報管理テーブル111中の該当する属性定義情報を取得する。ステップS14へ進む。
[ステップS13]:スキーマ情報管理テーブル111中の最新の属性定義情報を取得する。ステップS14へ進む。
[ステップS14]:操作が更新で、かつ、更新不可の属性定義であるかどうかを判別する。判別結果がイエスであればステップS15へ進み、エラー終了する。判別結果がノーであればステップS16へ進む。
[ステップS15]:エラー終了。
[ステップS16]:検索条件のすべての属性について処理が終了したかどうか判別する。終了でなければステップS11へ戻り処理を繰り返す。終了であればステップS17へ進む。
[ステップS17]:取得した属性定義を元にビューを作成する。
FIG. 4 shows an example of schema reconfiguration processing. This process is as follows.
[Step S10]: An attribute included in the search condition, an attribute to be operated, and a purpose of use are designated.
[Step S11]: Whether or not an attribute definition corresponding to the version of the application program exists in the schema information management table 111 is determined for each attribute included in the search condition. If it exists, the process proceeds to step S12, and if it does not exist, the process proceeds to step S13.
[Step S12]: The corresponding attribute definition information in the schema information management table 111 is acquired. Proceed to step S14.
[Step S13]: The latest attribute definition information in the schema information management table 111 is acquired. Proceed to step S14.
[Step S14]: It is determined whether the operation is an update and an attribute definition that cannot be updated. If the determination result is yes, the process proceeds to step S15 and ends with an error. If the determination result is no, the process proceeds to step S16.
[Step S15]: Error end.
[Step S16]: It is determined whether or not the processing has been completed for all attributes of the search condition. If not completed, the process returns to step S11 to repeat the process. If completed, the process proceeds to step S17.
[Step S17]: A view is created based on the acquired attribute definition.

図5および図6にそれぞれ示す属性情報管理テーブル112およびスキーマ情報管理テーブル111の例を用いてさらに説明する。この例では、アプリケーションプログラムのバージョンが「1.0」の場合、使用できるスキーマは、「ID、名前、フォーマット、管理番号」で、「管理番号」が更新不可能になる。他方、バージョンが「2.0」の場合は、「ID、名前、フォーマット、af0023」が使用でき、「管理番号」は更新可能になる。   This will be further described using examples of the attribute information management table 112 and the schema information management table 111 shown in FIGS. 5 and 6, respectively. In this example, when the version of the application program is “1.0”, the usable schema is “ID, name, format, management number”, and “management number” cannot be updated. On the other hand, when the version is “2.0”, “ID, name, format, af0023” can be used, and “management number” can be updated.

この結果を元にビューが構成される。バージョンが「2.0」の場合には、「ID、名前、フォーマット、af0023を指す管理番号」を持つビューが構成され、アプリケーションプログラムからは、「af0023」というカラム名を意識すること無く、属性情報管理テーブルにアクセス可能となる。アプリケーションプログラムからは「af0023」が「管理番号」として識別される。   A view is constructed based on this result. When the version is “2.0”, a view having “ID, name, format, management number indicating af0023” is configured, and the application program recognizes the attribute without being aware of the column name “af0023”. The information management table can be accessed. From the application program, “af0023” is identified as the “management number”.

つぎに上述のスキーマ再構成を用いて実行される属性データの参照、更新方法について説明する。   Next, a method for referring to and updating attribute data executed using the above-described schema reconstruction will be described.

(1)まず、アプリケーションプログラムにて、以下の条件を指定する。
・取得、変更したいオブジェクトの検索条件。
・取得、変更対象の属性項目。
(1) First, the following conditions are specified in the application program.
-Search conditions for the object you want to get or change.
・ Attribute items to be acquired or changed.

(2)アプリケーションプログラム(スキーマ再構成部102)は、スキーマ再構成を行なうため、スキーマ情報管理テーブル111(スキーマ管理情報部分)にアクセスし、アプリケーションプログラムのバージョンに適合したスキーマを構成し、ビューを取得する。 (2) The application program (schema reconfiguration unit 102) accesses the schema information management table 111 (schema management information part) to perform schema reconfiguration, configures a schema conforming to the version of the application program, and displays a view. get.

(3)このビューに対し、アプリケーションプログラム(操作要求発行部103)は、属性取得、更新の操作を実施する。 (3) For this view, the application program (operation request issuing unit 103) performs attribute acquisition and update operations.

つぎに属性情報管理テーブル112(データベース11)のスキーマ変更方法について説明する。かかるデータベース11のスキーマ変更により、新しいアプリケーションプログラム等が予定するスキーマでデータベース11を利用することができるようになる。もちろん、上述したスキーマの再構成により従前のアプリケーションプログラムも当該データベース11を継続して利用することができる。   Next, a method for changing the schema of the attribute information management table 112 (database 11) will be described. By changing the schema of the database 11, the database 11 can be used with a schema planned by a new application program or the like. Of course, the database 11 can continue to be used by the previous application program by restructuring the schema described above.

(1)スキーマ変更の専用アプリケーションプログラムにて、以下の条件を指定する。
・変更対象となる属性情報管理テーブル112のカラム名。
・変更後のカラムの定義。
・変更後に使用可能なアプリケーションプログラムのバージョン。
(1) Specify the following conditions in the dedicated application program for schema change.
A column name of the attribute information management table 112 to be changed.
-Column definition after change.
-Application program version that can be used after the change.

(2)スキーマ情報管理テーブル111(スキーマ管理部分)を検索し、その属性定義がすでに変更されているかどうかをチェックする。 (2) The schema information management table 111 (schema management part) is searched to check whether the attribute definition has already been changed.

(3)すでに、その属性名の定義が変更されていた場合には、新たにシステムで一意となるID(これに限定されないが、この例では「af」と4桁の数字からなる記号列を用いている)を取得し、そのIDをカラム名とする指定された定義のカラムを属性テーブルに追加し、スキーマ管理テーブルにその内容を追加し、同じ属性名の定義の最新として追加する。 (3) If the definition of the attribute name has already been changed, a new unique ID in the system (not limited to this, but in this example, a symbol string consisting of “af” and a 4-digit number is used. Is used, and the column of the specified definition whose ID is the column name is added to the attribute table, the contents are added to the schema management table, and the latest of the definition of the same attribute name is added.

(4)初めて、その属性名の定義を変更する場合には、既存の属性のカラム名情報を属性名と同じにする。その後、(3)と同様の処理を全ての属性に対し実施する。 (4) When the definition of the attribute name is changed for the first time, the column name information of the existing attribute is made the same as the attribute name. Thereafter, the same processing as (3) is performed for all attributes.

図7および図8にそれぞれ示す属性情報管理テーブルおよびスキーマ情報管理テーブルの例を用いてさらに説明する。この例では、アプリケーションプログラムのバージョン2において「納品日」の属性を新たに加え、「管理番号」を使用しないようにする。図から明らかなように、アプリケーションプログラムのバージョンが「1.0」の場合、使用できる属性は、「ID、名前、フォーマット、管理番号」で、「管理番号」が更新不可能になる。バージョンが「2.0」の場合は、「ID、名前、フォーマット、納品日」が使用でき、「管理番号」は参照不可能になる。システムの運用上、バージョン「1.0」のアプリケーションプログラムをシステムで使用しなくなった場合、「管理番号」はデータとして不要となるので、「管理番号」を削除して管理するデータを削減することも可能となる。   Further description will be made using examples of the attribute information management table and the schema information management table shown in FIGS. 7 and 8, respectively. In this example, the “delivery date” attribute is newly added in version 2 of the application program so that the “management number” is not used. As is apparent from the figure, when the version of the application program is “1.0”, the usable attributes are “ID, name, format, management number”, and “management number” cannot be updated. When the version is “2.0”, “ID, name, format, delivery date” can be used, and “management number” cannot be referred to. If the application program of version “1.0” is no longer used in the system operation, the “management number” is no longer necessary as data, so the “management number” is deleted to reduce the data to be managed. Is also possible.

以上説明したように、この実施例によれば、データベースのスキーマを変更した場合でも、従前のアプリケーションプログラムをそのまま利用し続けることができる。例えば、ファイリングシステムが使用するデータベースのスキーマ構造の変更に対応していないアプリケーションプログラムでも、データの参照、更新が可能となる。これにより、データベースのスキーマ構造が変更される毎に、すべての専用アプリケーションプログラムを停止することなく、順次アプリケーションプログラムを置き換えることが可能となり、システムの停止時間を最小限にとどめることができる。よって、ファイリングシステム全体の保守のコストも削減できる。また、業務の基幹システムにファイリングシステムが導入されている場合、アプリケーションプログラムの使用するスキーマ構造をチェックし、データベースへの接続を許さないことで、基幹システムの外部に対するセキュリティを向上させることができる。   As described above, according to this embodiment, even when the database schema is changed, the previous application program can be used as it is. For example, even an application program that does not support changes in the schema structure of a database used by the filing system can refer to and update data. As a result, each time the schema structure of the database is changed, the application programs can be sequentially replaced without stopping all the dedicated application programs, and the system stop time can be minimized. Therefore, the maintenance cost of the entire filing system can be reduced. In addition, when a filing system is introduced in a business backbone system, the schema structure used by the application program is checked, and connection to the database is not permitted, thereby improving security to the outside of the backbone system.

なお、この発明は上述の実施例に限定されるものではなく、種々変更することが可能である。例えば、上述の例ではアプリケーションプログラム実行部10が、操作要求生成部101、スキーマ再構成部102、操作要求発行部103を構成してスキーマを再構成した操作要求をデータベース11に発行しているが、図9に示すように、アプリケーションプログラム実行部10が発行したアプリケーションプログラム固有のスキーマに準拠した操作要求を操作要求処理部20が受取り、この操作要求処理部20がスキーマ再構成等を行なって再構成した操作要求をデータベース11に送出するようにしても良い。また、図10に示すようにデータベース11のフロントエンド114にスキーマ再構成部を設けるようにしても良い。また、アプリケーションプログラムから出力される操作要求を横取りしてスキーマ再構成して操作要求をデータベース11に送出する補助プログラムをアプリケーションプログラム実行部10でさらに実行するように構成しても良い。   In addition, this invention is not limited to the above-mentioned Example, A various change is possible. For example, in the above-described example, the application program execution unit 10 constitutes the operation request generation unit 101, the schema reconfiguration unit 102, and the operation request issue unit 103, and issues an operation request reconfigured to the database 11. As shown in FIG. 9, the operation request processing unit 20 receives an operation request conforming to the schema unique to the application program issued by the application program execution unit 10, and the operation request processing unit 20 performs schema reconfiguration and the like to perform reconfiguration. The configured operation request may be sent to the database 11. Further, as shown in FIG. 10, a schema reconstruction unit may be provided in the front end 114 of the database 11. Alternatively, an application program execution unit 10 may further execute an auxiliary program that intercepts an operation request output from an application program, reconfigures the schema, and sends the operation request to the database 11.

また、図11に示すようにスキーマ再構成部102を属性定義取得部102aおよび操作要求変換部102cを含むように構成しても良い。操作要求変換部102cはアプリケーションプログラムが予定するスキーマに準拠する操作要求をデータベース本来のスキーマに準拠した操作要求に変換するものであり、実質的には図2のカラム決定部102bと同様である。   Further, as shown in FIG. 11, the schema reconfiguration unit 102 may be configured to include an attribute definition acquisition unit 102a and an operation request conversion unit 102c. The operation request conversion unit 102c converts an operation request conforming to the schema planned by the application program into an operation request conforming to the original schema of the database, and is substantially the same as the column determination unit 102b of FIG.

また、図12に示すように、アプリケーションプログラムを実行するクライアント装置100と、サーバアプリケーションプログラムを実行するサーバ装置200とデータベース管理システム300とを用いてデータベースシステムを構築しても良い。クライアント装置100はアプリケーションプログラムを実行するものであり、データベースの操作要求をサーバ装置200に対して発行する。サーバ装置200は例えばファイリングサーバであり、ファイリングサービスのほかにスキーマ再構成機能201および操作要求発行機能202を有する。操作要求発行機能202は、スキーマ再構成機能201により再構成されたスキーマで操作要求をデータベース管理システム300に対して発行する。データベース管理システム300はスキーマ情報管理テーブル111、属性情報管理テーブル112、実体データ格納先管理テーブル113を記憶管理する。データ記憶装置400は実体データを記憶するものである。   Further, as shown in FIG. 12, a database system may be constructed using a client device 100 that executes an application program, a server device 200 that executes a server application program, and a database management system 300. The client device 100 executes an application program and issues a database operation request to the server device 200. The server device 200 is, for example, a filing server, and has a schema reconfiguration function 201 and an operation request issue function 202 in addition to a filing service. The operation request issue function 202 issues an operation request to the database management system 300 using the schema reconfigured by the schema reconfiguration function 201. The database management system 300 stores and manages the schema information management table 111, the attribute information management table 112, and the entity data storage destination management table 113. The data storage device 400 stores entity data.

図12に示す例では、図13〜図15に示すオブジェクトの登録要求、オブジェクトの検索要求、オブジェクトの削除要求がクライアント装置100からサーバ装置200に送られ、これら要求に含まれるバージョン情報に基づいて先に説明した例と同様に属性定義が取得され、スキーマが再構築され、オブジェクトの参照、更新等が行なわれる。   In the example shown in FIG. 12, the object registration request, the object search request, and the object deletion request shown in FIGS. 13 to 15 are sent from the client device 100 to the server device 200, and based on the version information included in these requests. As in the example described above, the attribute definition is acquired, the schema is reconstructed, and the object is referenced and updated.

なお、上述実施例ではアプリケーションプログラムのバージョン情報を用いてスキーマの再構成を適合的に行なったが、「バージョン」に限らず、アプリケーションプログラムの予定するスキーマを決定することができるもの(スキーマ特定情報)であればどのようなものでもよい。アプリケーション設定時にスキーマ特定情報(所定の識別子)を設定するようにしても良い。   In the above-described embodiment, the reconfiguration of the schema is appropriately performed using the version information of the application program. However, not only the “version” but also a schema that can be determined by the application program (schema specifying information) ) As long as it is anything. You may make it set schema specific information (predetermined identifier) at the time of application setting.

この発明の実施例を模式的に示す図である。It is a figure which shows the Example of this invention typically. 上述実施例の要部の構成例を示すブロック図である。It is a block diagram which shows the structural example of the principal part of the said Example. 上述実施例のデータの流れを説明する図である。It is a figure explaining the flow of data of the above-mentioned example. 上述実施例の属性情報管理テーブルの例を説明する図である。It is a figure explaining the example of the attribute information management table of the above-mentioned Example. 上述実施例のスキーマ情報管理テーブルの例を説明する図である。It is a figure explaining the example of the schema information management table of the above-mentioned Example. 上述実施例のスキーマの再構成を説明するフローチャートである。It is a flowchart explaining the reconfiguration | reconstruction of the schema of the said Example. 上述実施例におけるスキーマの変更に関連して属性情報管理テーブルの他の例を説明する図である。It is a figure explaining the other example of an attribute information management table in relation to the change of the schema in the above-mentioned Example. 上述実施例におけるスキーマの変更に関連してスキーマ情報管理テーブルの他の例を説明する図である。It is a figure explaining the other example of a schema information management table in relation to the change of the schema in the above-mentioned Example. 上述実施例の変形例を説明する図である。It is a figure explaining the modification of the above-mentioned Example. 上述実施例の他の変形例を説明する図である。It is a figure explaining the other modification of the above-mentioned Example. 上述実施例のさらに他の変形例を説明する図である。It is a figure explaining the further another modification of the above-mentioned Example. 上述実施例のさらに他の変形例を説明する図である。It is a figure explaining the further another modification of the above-mentioned Example. 図12の変形例で用いる登録要求の例を説明する図である。It is a figure explaining the example of the registration request | requirement used with the modification of FIG. 図12の変形例で用いる参照要求の例を説明する図である。It is a figure explaining the example of the reference request used with the modification of FIG. 図12の変形例で用いる削除要求の例を説明する図である。It is a figure explaining the example of the deletion request | requirement used by the modification of FIG.

符号の説明Explanation of symbols

10 アプリケーションプログラム実行部
11 データベース
12 実体データ格納用記憶部
20 操作要求処理部
100 クライアント装置
101 操作要求生成部
102 スキーマ再構成部
102a 属性定義取得部
102b カラム決定部
102c 操作要求変換部
103 操作要求発行部
103a 属性情報管理テーブル検索部
103b 属性名復元部
104 実体データ操作部
111 スキーマ情報管理テーブル
112 属性情報管理テーブル
113 実体データ格納先管理テーブル
114 フロントエンド
200 サーバ装置
201 スキーマ再構成機能
202 操作要求発行機能
300 データベース管理システム
400 データ記憶装置
10 Application Program Execution Unit 11 Database 12 Entity Data Storage Unit 20 Operation Request Processing Unit 100 Client Device 101 Operation Request Generation Unit 102 Schema Reconstruction Unit 102a Attribute Definition Acquisition Unit 102b Column Determination Unit 102c Operation Request Conversion Unit 103 Issue Operation Request Unit 103a attribute information management table search unit 103b attribute name restoration unit 104 entity data operation unit 111 schema information management table 112 attribute information management table 113 entity data storage destination management table 114 front end 200 server apparatus 201 schema reconfiguration function 202 issue operation request Function 300 Database management system 400 Data storage device

Claims (19)

データベース本体と、
アプリケーションプログラムが予定するスキーマに準拠して上記データベース本体に対する操作要求を生成する操作要求生成手段と、
上記操作要求に関連して出力されるアプリケーションプログラムのバージョン情報に応じて、上記アプリケーションプログラムが予定するスキーマを適合的に再構成するスキーマ再構成手段と、
再構成されたスキーマに準拠して上記操作要求を上記データベース本体に対して発行する操作要求発行手段とを有することを特徴とするデータベース装置。
The database itself,
An operation request generating means for generating an operation request for the database main body in accordance with a schema planned by the application program;
Schema reconfiguring means for appropriately reconfiguring the schema planned by the application program according to the version information of the application program output in association with the operation request;
An operation request issuing means for issuing the operation request to the database main body in accordance with a reconfigured schema.
データベース本体と、
アプリケーションプログラムが予定するスキーマに準拠して上記データベース本体に対する操作要求を生成する操作要求生成手段と、
上記操作要求に関連して出力されるスキーマ特定情報に応じて、上記アプリケーションプログラムが予定するスキーマを適合的に再構成するスキーマ再構成手段と、
再構成されたスキーマに準拠して上記操作要求を上記データベース本体に対して発行する操作要求発行手段とを有することを特徴とするデータベース装置。
The database itself,
An operation request generating means for generating an operation request for the database main body in accordance with a schema planned by the application program;
Schema reconfiguring means for appropriately reconfiguring the schema planned by the application program according to the schema specifying information output in association with the operation request;
An operation request issuing means for issuing the operation request to the database main body in accordance with a reconfigured schema.
アプリケーションプログラム実行手段を有し、上記アプリケーションプログラム実行手段が、上記操作要求生成手段、上記スキーマ再構成手段および上記操作要求発行手段を構成する請求項1記載のデータベース装置。   The database apparatus according to claim 1, further comprising an application program execution unit, wherein the application program execution unit constitutes the operation request generation unit, the schema reconfiguration unit, and the operation request issue unit. アプリケーションプログラム実行手段と、操作要求処理手段とを有し、上記アプリケーションプログラム実行手段が、上記操作要求生成手段を構成し、上記操作要求処理手段が、上記スキーマ再構成手段および上記操作要求発行手段を構成する請求項1記載のデータベース装置。   An application program execution unit; and an operation request processing unit. The application program execution unit constitutes the operation request generation unit. The operation request processing unit includes the schema reconfiguration unit and the operation request issue unit. The database apparatus according to claim 1, which is configured. アプリケーションプログラム実行手段を有し、上記操作要求生成手段を構成し、上記データベース本体が、上記スキーマ再構成手段および上記操作要求発行手段を構成する請求項1記載のデータベース装置。 The database apparatus according to claim 1, further comprising an application program execution unit, constituting the operation request generation unit, and the database main body constituting the schema reconfiguration unit and the operation request issuing unit. データベース本体と、
アプリケーションプログラムであって、上記データベース本体に対する操作要求を、当該アプリケーションプログラムが予定するスキーマに準拠して生成するものを実行する実行手段と、
上記アプリケーションプログラムから上記操作要求に関連して出力されるアプリケーションプログラムのバージョン情報に応じて、上記アプリケーションプログラムが予定するスキーマを適合的に再構成するスキーマ再構成手段と、
再構成されたスキーマに準拠して上記操作要求を上記データベース本体に対して発行する手段とを有することを特徴とするデータベース装置。
The database itself,
Execution means for executing an application program that generates an operation request for the database main body in accordance with a schema planned by the application program;
Schema reconfiguring means for appropriately reconfiguring a schema planned by the application program according to version information of the application program output in association with the operation request from the application program;
A database apparatus comprising: means for issuing the operation request to the database main body in accordance with a reconfigured schema.
上記スキーマ再構成手段は、上記バージョン情報と上記操作要求に含まれる属性名とから上記操作要求に関連して実際に用いる上記データベース本体における属性名を決定するテーブルを有する請求項6記載のデータベース装置。   7. The database apparatus according to claim 6, wherein the schema reconfiguring means includes a table for determining an attribute name in the database main body that is actually used in relation to the operation request from the version information and the attribute name included in the operation request. . 上記テーブルは、決定された上記データベースにおける属性名の属性値が上記操作要求により更新可能かどうかを指示する請求項7記載のデータベース装置。   8. The database apparatus according to claim 7, wherein the table indicates whether or not the attribute value of the attribute name in the determined database can be updated by the operation request. 上記テーブルは、上記操作要求に含まれる属性名が、上記データベースにおいて実際に用いられるべく、おける他の属性名に、上記データベースのスキーマの変更により他の属性により置き換えられることなく最新状態であるかどうかを指示する請求項7または8記載のデータベース装置。   Whether the attribute name included in the operation request is up-to-date without being replaced by another attribute name in the database so that the attribute name included in the operation request is actually used in the database without being replaced by another attribute due to a change in the schema of the database. 9. The database apparatus according to claim 7 or 8, which instructs whether or not. データベースを管理するデータベース管理装置と、
データベース操作要求を送出するクライアントアプリケーションプログラムを実行する端末と、
上記端末から上記データベース操作要求を受け取って上記データベース装置にデータベース操作要求を発行するサーバアプリケーションプログラムを実行するサーバ装置とを有し、
上記サーバ装置は、
上記アプリケーションプログラムから送出された操作要求に適用される上記データベース本体のスキーマを、上記操作要求に伴って送られたアプリケーションプログラムのバージョン情報に応じて、適合的に構成するスキーマ再構成手段と、
構成された上記スキーマに準拠して上記操作要求を上記データベース管理装置に発行する手段とを有することを特徴とするデータベースシステム。
A database management device for managing the database;
A terminal that executes a client application program that sends a database operation request;
A server device that executes the server application program that receives the database operation request from the terminal and issues the database operation request to the database device;
The server device is
Schema restructuring means configured to adaptively configure the schema of the database body applied to the operation request sent from the application program according to the version information of the application program sent along with the operation request;
A database system comprising: means for issuing the operation request to the database management device in conformity with the configured schema.
上記サーバ装置は、ファイリングサービスを提供する請求項10記載のデータベースシステム。   The database system according to claim 10, wherein the server device provides a filing service. クライアントアプリケーションプログラムを実行する端末から受け取った操作要求を、データベースを管理するデータベース管理装置に発行するサーバ装置において、
上記アプリケーションプログラムから送出された操作要求に適用される上記データベース本体のスキーマを、上記操作要求に伴って送られたアプリケーションプログラムのバージョン情報に応じて、適合的に構成するスキーマ再構成手段と、
構成された上記スキーマに準拠して上記操作要求を上記データベース管理装置に発行する手段とを有することを特徴とするサーバ装置。
In a server device that issues an operation request received from a terminal that executes a client application program to a database management device that manages a database,
Schema restructuring means configured to adaptively configure the schema of the database body applied to the operation request sent from the application program according to the version information of the application program sent along with the operation request;
And a means for issuing the operation request to the database management apparatus in conformity with the configured schema.
アプリケーションプログラムを実行する実行手段から送出された操作要求を上記アプリケーションプログラムのバージョン情報とともに受信する操作要求受信手段と、
上記アプリケーションプログラムから送出された上記操作要求に適用されるデータベース本体のスキーマを、上記操作要求に伴って送られたアプリケーションプログラムのバージョン情報に応じて、適合的に構成するスキーマ再構成手段と、
構成された上記スキーマに準拠して上記操作要求を上記データベース本体に対して実行する操作実行手段とを有することを特徴とするデータベーススキーマ管理装置。
An operation request receiving means for receiving an operation request sent from an execution means for executing an application program together with version information of the application program;
A schema restructuring unit configured to adaptively configure the schema of the database body applied to the operation request sent from the application program according to the version information of the application program sent along with the operation request;
An operation executing means for executing the operation request for the database main body in conformity with the configured schema.
操作要求受信手段が、アプリケーションプログラムを実行する実行手段から送出された操作要求を上記アプリケーションプログラムのバージョン情報とともに受信するステップと、
スキーマ再構成手段が、上記アプリケーションプログラムから送出された上記操作要求に適用されるデータベース本体のスキーマを、上記操作要求に伴って送られたアプリケーションプログラムのバージョン情報に応じて、適合的に構成するステップと、
操作実行手段が、構成された上記スキーマに準拠して上記操作要求を上記データベース本体に対して実行するステップとを有することを特徴とするデータベーススキーマ管理方法。
An operation request receiving means for receiving an operation request sent from an execution means for executing an application program together with version information of the application program;
A step in which the schema reconfiguring means adaptively configures the schema of the database body applied to the operation request sent from the application program according to the version information of the application program sent along with the operation request. When,
A database schema management method, comprising: an operation execution unit that executes the operation request on the database main body based on the configured schema.
アプリケーションプログラムを実行する実行手段から送出された操作要求を上記アプリケーションプログラムのバージョン情報とともに受信する操作要求受信ステップと、
上記アプリケーションプログラムから送出された上記操作要求に適用されるデータベース本体のスキーマを、上記操作要求に伴って送られたアプリケーションプログラムのバージョン情報に応じて、適合的に構成するスキーマ再構成ステップと、
構成された上記スキーマに準拠して上記操作要求を上記データベース本体に対して実行する操作実行ステップとをコンピュータに実行させるために用いられることを特徴とするデータベーススキーマ管理用コンピュータプログラム。
An operation request receiving step for receiving an operation request sent from the execution means for executing the application program together with the version information of the application program;
A schema restructuring step for appropriately configuring the database body schema applied to the operation request sent from the application program according to the version information of the application program sent along with the operation request;
A computer program for database schema management, which is used for causing a computer to execute an operation execution step of executing the operation request on the database main body in accordance with the configured schema.
第1のスキーマに準拠して構築されているデータベース本体と、
上記データベース本体に対して第2のスキーマに準拠した操作要求を生成するアプリケーションプログラムを実行する実行手段と、
上記操作要求に関連して出力されたアプリケーションプログラムのバージョン情報に基づいて上記第2のスキーマに準拠した上記操作要求を上記第1のスキーマに準拠した操作要求に変換する変換手段と、
変換された操作要求を上記データベース本体に対して発行する手段とを有することを特徴とするデータベース装置。
A database body constructed according to the first schema;
Execution means for executing an application program for generating an operation request conforming to the second schema for the database body;
Conversion means for converting the operation request conforming to the second schema to an operation request conforming to the first schema based on version information of the application program output in association with the operation request;
A database device comprising means for issuing a converted operation request to the database main body.
上記変換手段は、上記バージョン情報と上記第2のスキーマの属性名とから上記第1のスキーマの属性名を決定するテーブルを有する請求項16記載のデータベース装置。   17. The database apparatus according to claim 16, wherein the conversion means includes a table for determining the attribute name of the first schema from the version information and the attribute name of the second schema. 上記テーブルは、決定された上記第1のスキーマの属性名の属性値が上記操作要求により更新可能かどうかを指示する請求項17記載のデータベース装置。   18. The database device according to claim 17, wherein the table indicates whether or not an attribute value of the determined attribute name of the first schema can be updated by the operation request. アプリケーションプログラムを実行するアプリケーションプログラム実行手段と、
属性情報を格納する属性情報管理テーブルと、上記アプリケーションプログラムのバージョンに基づいて所定の属性情報に対応する上記属性情報管理テーブルにおけるカラムを指定するスキーマ情報管理テーブルとを含むデータベース本体と、
上記アプリケーションプログラムが生成する操作要求により操作される上記属性情報管理テーブルにおけるカラムを、上記操作要求に関連して出力されるアプリケーションプログラムのバージョン情報に応じて、上記スキーマ情報管理テーブルを参照して決定するカラム決定手段と、
上記カラム決定手段で決定されたカラムに対する操作要求を発行する手段とを有することを特徴とするデータベース装置。
Application program execution means for executing the application program;
A database main body including an attribute information management table for storing attribute information, and a schema information management table for designating a column in the attribute information management table corresponding to predetermined attribute information based on a version of the application program;
The column in the attribute information management table operated by the operation request generated by the application program is determined with reference to the schema information management table according to the version information of the application program output in association with the operation request. Column determining means to perform,
And a means for issuing an operation request for the column determined by the column determination means.
JP2003305742A 2003-08-29 2003-08-29 Database device, and schema management device and method therefor Withdrawn JP2005078237A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003305742A JP2005078237A (en) 2003-08-29 2003-08-29 Database device, and schema management device and method therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003305742A JP2005078237A (en) 2003-08-29 2003-08-29 Database device, and schema management device and method therefor

Publications (1)

Publication Number Publication Date
JP2005078237A true JP2005078237A (en) 2005-03-24

Family

ID=34409010

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003305742A Withdrawn JP2005078237A (en) 2003-08-29 2003-08-29 Database device, and schema management device and method therefor

Country Status (1)

Country Link
JP (1) JP2005078237A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8676786B2 (en) 2010-12-17 2014-03-18 Fujitsu Limited Computer product, data conversion apparatus, and conversion method
US11868494B1 (en) * 2018-11-26 2024-01-09 Amazon Technologies, Inc. Synchronization of access management tags between databases

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8676786B2 (en) 2010-12-17 2014-03-18 Fujitsu Limited Computer product, data conversion apparatus, and conversion method
US11868494B1 (en) * 2018-11-26 2024-01-09 Amazon Technologies, Inc. Synchronization of access management tags between databases

Similar Documents

Publication Publication Date Title
US9760589B2 (en) Mechanism for deprecating object oriented data
US7730097B2 (en) Smart database
JP5016628B2 (en) XML-based electronic document version specifying method and update document providing method using version value
US7421458B1 (en) Querying, versioning, and dynamic deployment of database objects
US8032544B2 (en) Methods and apparatus for generating dynamic program files based on input queries that facilitate use of persistent query services
US8438238B2 (en) Master data access
US7401085B2 (en) System and method for controlling the release of updates to a database configuration
US20100228764A1 (en) Offline Validation of Data in a Database System for Foreign Key Constraints
BRPI0609334A2 (en) data management for mobile data system
US7020648B2 (en) System and method for identifying and utilizing a secondary index to access a database using a management system without an internal catalogue of online metadata
US8041689B2 (en) Flexible LDAP templates
JP2006344171A (en) Information processing apparatus, control method thereof, computer program, and storage medium
JP2001306372A (en) Method for managing document and storage medium storing program for executing the method
JP2002049637A (en) Database management method, device and recording medium
US7653731B2 (en) Management of connections to external data
Luong et al. A rule‐based approach for semantic annotation evolution
JP2005078237A (en) Database device, and schema management device and method therefor
JP6588988B2 (en) Business program generation support system and business program generation support method
US11481378B1 (en) Method and system for servicing query requests using document-based metadata
JPH07210435A (en) Database managing device
JP2002007177A (en) Method for defining multi-database
KR20170125665A (en) Semantic Information Management Method for a M2M/IoT platform
JP2006004024A (en) Program for execution by directory server
JPH1021125A (en) System for managing location of distributed database system
JP2005196382A (en) Data registration method and data reference method by information management system, and master database server for information management system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060724

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20081015