JPH07325744A - Data base form converting method and its device - Google Patents

Data base form converting method and its device

Info

Publication number
JPH07325744A
JPH07325744A JP6118676A JP11867694A JPH07325744A JP H07325744 A JPH07325744 A JP H07325744A JP 6118676 A JP6118676 A JP 6118676A JP 11867694 A JP11867694 A JP 11867694A JP H07325744 A JPH07325744 A JP H07325744A
Authority
JP
Japan
Prior art keywords
database
format conversion
data format
update
field
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP6118676A
Other languages
Japanese (ja)
Inventor
Katsumi Nakamura
克巳 中村
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP6118676A priority Critical patent/JPH07325744A/en
Publication of JPH07325744A publication Critical patent/JPH07325744A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To convert a data base into another form without losing its original form and while carrying on the accesses to the data base. CONSTITUTION:When a conversion processing instruction is received, the contents of an original data base 14 are immediately frozen. A data base conversion processing part 13 converts the contents of the base 14 into a desired data form and successively stores them in a copy data base 15. Meanwhile the base 14 is not rewritten even when an updating request is given to the base 14, and the updating record is recorded into a log file 20 for execution of the updating processing. Then the contents of both bases 14 and 15 are updated based on the contents of the file 20 after the contents of the original base 14 are completely converted.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、データベースシステム
において、利用形態の変更に伴ってデータベースの各フ
ィールド長等のデータ形式を変更する場合やデータの取
り扱いの異なる異機種へデータベースを移行する場合等
に、データベースを別の形式に変換するためのデータベ
ース形式変換方法及び装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a database system, for example, when the data format such as each field length of the database is changed in accordance with the change of the usage pattern or when the database is migrated to a different model having different data handling The present invention relates to a database format conversion method and apparatus for converting a database into another format.

【0002】[0002]

【従来の技術】情報処理システム上に構築されたデータ
ベースにおいて、システムプログラムのバージョンアッ
プ等によりデータ形式を変更する必要が出た場合や、コ
ード体系などが異なる異機種へ移行しようとする場合な
どには、従来は、一旦システムを停止してデータベース
移行のためのプログラムを実行することにより、新しい
データベースを作成していた。
2. Description of the Related Art In a database built on an information processing system, when it becomes necessary to change the data format due to a version upgrade of a system program, or when trying to migrate to a different model with a different code system, etc. Conventionally, a new database was created by temporarily stopping the system and executing a program for database migration.

【0003】これを改良した例として、特開平5−23
3408号公報に示された「オンライン処理システムに
おける移行方法」がある。
As an example in which this is improved, Japanese Patent Laid-Open No. 5-23
There is a "migration method in an online processing system" disclosed in Japanese Patent No. 3408.

【0004】図10〜図13は、この従来のデータベー
ス形式変換方法を示す説明図であり、この方法は、オン
ライン処理中に、図示される4つのフェーズを通じて、
データベースを移行していくというものである。
FIG. 10 to FIG. 13 are explanatory views showing this conventional database format conversion method. This method is carried out through the four phases shown during online processing.
It is to migrate the database.

【0005】この方法では、ディスクを2重構成とした
システムを採用している。これにより、ディスクの片系
でオンラインサービスを継続したまま、別系上でデータ
ベース形式変換作業を実施し、同作業の完了とともに新
系からオラインサービスを再開することが可能となる。
This method employs a system in which the disk has a double structure. As a result, it is possible to carry out the database format conversion work on another system while continuing the online service on one system of the disk, and to restart the online service from the new system when the work is completed.

【0006】次に、この従来方法における処理の流れに
ついて説明する。まず、フェーズ1(図10)は、定常
のオンラインサービス中のファイル状況を示しており、
図に示したように、データファイルはデュアル構成をと
っている。そして、データの変更を行うときには、同時
に両方のファイルにアクセスし、更新する。すなわち、
フェーズ1においては、2系統のデータファイルは常に
同じ内容を有している。
Next, the flow of processing in this conventional method will be described. First, Phase 1 (Fig. 10) shows the file status during regular online service.
As shown in the figure, the data file has a dual structure. When changing data, both files are accessed and updated at the same time. That is,
In phase 1, the data files of the two systems always have the same contents.

【0007】フェーズ2(図11)は、データベース形
式変換作業の第1のステップを示したものであり、この
フェーズでは、2系統のディスクのうちの一方をオンラ
インサービスから切り離し、この切り離したディスク上
で、新ファイルへの移行、すなわちプログラム・ファイ
ルに含まれるシステムプログラムの変更及びデータベー
ス形式の変換を実施する。そして、通常のオンラインサ
ービスは、もう一方のディスクによって継続する。
Phase 2 (FIG. 11) shows the first step of the database format conversion work. In this phase, one of the two systems of disks is disconnected from the online service, and the disk on this separated disk is separated. Then, the migration to the new file, that is, the system program included in the program file is changed and the database format is converted. And normal online services continue with the other disk.

【0008】フェーズ2で新ファイルへの移行作業が完
了した後、フェーズ3(図12)では、一時的にシステ
ムを停止し、ディスクの切り換えて、新プログラムファ
イルと新データファイルによってオンラインサービスを
再開する。
After the completion of the work of shifting to the new file in phase 2, in phase 3 (FIG. 12), the system is temporarily stopped, the disk is switched, and the online service is restarted by the new program file and the new data file. To do.

【0009】そして、新プログラムファイルと新データ
ファイルによるオンラインサービスを安定すると、元の
デュアル構成での定常処理状態に戻すために、フェーズ
4(図13)において、旧プログラムファイルと旧デー
タファイルを新ファイルに移行する。
When the online service by the new program file and the new data file is stabilized, the old program file and the old data file are updated in phase 4 (FIG. 13) in order to return to the normal processing state in the dual configuration. Move to file.

【0010】このように、この従来方法によれば、シス
テムを停止することなく、新システムへの移行に伴うサ
ービスの停止時間を抑えることができる。
As described above, according to this conventional method, it is possible to suppress the service stop time accompanying the shift to the new system without stopping the system.

【0011】このような方法の他に、これらのデータベ
ースの変換処理を、システムを停止することなく動的に
行うためにとられた方法としては、特公平4−7734
0号(特開昭60−10362号)公報に示された「レ
コード型データにおけるデータ項目の動的変更方式」が
ある。
In addition to such a method, as a method taken for dynamically converting these databases without stopping the system, Japanese Patent Publication No. 4-7734.
There is a "dynamic change method of data items in record type data" disclosed in Japanese Patent Laid-Open No. 0 (JP-A-60-10362).

【0012】従来、データベースなどのファイル中のレ
コードは決まったレコード長で、一旦作成されてしまう
とそのファイルを構成するレコードの変更は不可能で、
せいぜいレコードを可変長にして最後部にデータ項目を
付加するのみであったのを、改良したのがこの方式であ
る。
Conventionally, a record in a file such as a database has a fixed record length, and once created, the record making up the file cannot be changed.
This method is an improvement over making the record variable length at most and adding the data item to the end.

【0013】この方式では、予め各データ項目に対し
て、そのデータ項目の属性を保持する項目セルや、その
データ項目のレコード上における物理的配列順を示すた
めの物理的配列順ポインタ、有効データ項目の論理的な
表示順を示す表示順ポインタなどをレコード定義記憶部
に保持させ、これらをデータ項目変更時に使用する。こ
れにより、データ項目の追加、削除、データ項目の属性
変更などが行われた場合にも、以前に作成されたファイ
ル中に存在するレコードを変更することなく、レコード
定義記憶部の情報を利用してアクセス時に再度解釈する
ことにより、動的に、データ項目のレコード定義が変更
されたものとして扱う。従って、この方式によれば、デ
ータの定義変更に対して、レコード定義から一括して変
更しなくても対応ができる。
In this system, for each data item, an item cell holding the attribute of the data item in advance, a physical array order pointer for indicating the physical array order of the data item on the record, and valid data. A display order pointer or the like indicating the logical display order of items is held in the record definition storage unit and used when changing data items. As a result, even if a data item is added, deleted, or the attribute of the data item is changed, the information in the record definition storage section is used without changing the record existing in the previously created file. It is treated dynamically as if the record definition of the data item was changed by re-interpreting it when accessed. Therefore, according to this method, it is possible to deal with a data definition change without changing the record definition all together.

【0014】図14は、この従来のデータベース動的変
更方式を示すブロック図であり、図14において、外部
スキーマ35には現行のレコード形式が保持され、内部
スキーマ36には現行のレコード形式を含めた物理的な
データ項目構成が保持されている。この従来システムに
おいて、ユーザ30からのデータベースに対するデータ
読出し要求は、リレーション操作システム31、レコー
ド・アクセス・システム32を介して論理データベース
・アクセス・システム33に伝えられる。論理データベ
ース・アクセス・システム33は、外部スキーマ35を
参照してこの要求を物理データベース・アクセス・シス
テム34への命令の組に変換する。物理データベース・
アクセス・システム34は、内部スキーマ36とデータ
ベース37とを比べることにより、該当するレコードを
データベース37から読出し、論理データベース・アク
セス・システム33に渡す。論理データベース・アクセ
ス・システム33は、受けとったレコードを、外部スキ
ーマ35と内部スキーマ36との対応にしたがって、外
部スキーマ35の表現形式に変換した後、レコード・ア
クセス・システム32及びリレーション操作システム3
1を介してユーザ30に戻す。また、データベース37
を更新する場合は、外部スキーマ35の形式でのレコー
ドへの要求として論理データベース・アクセス・システ
ム33に受けとられた命令が、内部スキーマ36によっ
て、実際のデータベース37上に反映されていく。
FIG. 14 is a block diagram showing this conventional database dynamic modification method. In FIG. 14, the external schema 35 holds the current record format, and the internal schema 36 includes the current record format. The physical data item structure is retained. In this conventional system, a data read request from the user 30 to the database is transmitted to the logical database access system 33 via the relation operation system 31 and the record access system 32. The logical database access system 33 refers to the external schema 35 and translates this request into a set of instructions to the physical database access system 34. Physical database
The access system 34 reads the corresponding record from the database 37 by comparing the internal schema 36 and the database 37, and passes it to the logical database access system 33. The logical database access system 33 converts the received record into the representation format of the external schema 35 according to the correspondence between the external schema 35 and the internal schema 36, and then the record access system 32 and the relation operation system 3
Return to user 30 via 1. In addition, the database 37
, The command received by the logical database access system 33 as a request for a record in the form of the external schema 35 is reflected by the internal schema 36 on the actual database 37.

【0015】[0015]

【発明が解決しようとする課題】特開平5−23340
8号公報に示される従来の移行方法は、ディスクを2重
構成としたシステムにおいて、片系でオンラインサービ
スを継続したまま、別系上で移行作業を実施するという
ものであるため、システムのディスクが2重化された構
成であることを大きな前提としており、通常の単一のデ
ィスクを使用したシステムでは、ディスク容量に余裕が
あったとしても、この方法を取ることはできない。ま
た、定常のオンラインサービス時に同じ内容のデータ及
びプログラムを2つ保持しておく必要があるため、大き
な記憶容量を必要とするという問題もあった。
DISCLOSURE OF THE INVENTION Problems to be Solved by the Invention
The conventional migration method disclosed in Japanese Patent Laid-Open No. 8 is a system in which, in a system having a dual disk configuration, the migration work is carried out on another system while the online service is continued on one system. It is a major premise that the system has a dual structure, and a system using a normal single disk cannot take this method even if there is enough disk capacity. Further, since it is necessary to hold two data and programs having the same content during a regular online service, there is a problem that a large storage capacity is required.

【0016】一方、特公平4−77340号公報に示さ
れる従来のデータ項目の動的変更方式では、以前に作成
されたデータ項目をそのままに保護するためには、レコ
ードの物理配置と論理的な配置とを、予めレコード定義
記憶部として記憶しておかなければならず、利用の途中
から動的変更を行うことができなかった。また、この方
式では、レコードの変更箇所が多くなってくると、結
局、処理のオーバーヘッドも大きくなるため、性能を向
上させるためには、いずれは、最新形式のレコードに一
括して変換することが必要になる。
On the other hand, in the conventional data item dynamic change method disclosed in Japanese Patent Publication No. 4-77340, in order to protect the previously created data item as it is, the physical arrangement of records and the logical arrangement are used. The arrangement and the arrangement had to be stored in advance as a record definition storage unit, and the dynamic change could not be made during use. Also, with this method, as the number of changed records increases, the processing overhead eventually increases, so in order to improve performance, it is necessary to convert all records to the latest format at once. You will need it.

【0017】また、近年では、データ項目の変更の必要
性は、単なるデータ項目の追加、削除に伴うレコード配
列の変更や、データ項目の属性変更に伴うデータ項目の
変更だけではなく、例えば、異機種間のデータベースの
移行に伴ってデータ項目の形式を完全に変更してしまい
たいという要求もあり、このような場合、大量のデータ
項目を変更する必要がある。例えば、異機種の場合、キ
ャラクタコードの変更が考えられ、データ項目のフィー
ルド長が変わることによるデータ項目の変更もあり、こ
のような場合には、この従来のデータ項目動的変更方式
では対応が困難であり、結局、いつかは一括変換という
手法をとらざるを得ないことになるという問題がある。
Further, in recent years, the necessity of changing a data item is not limited to a change in a record array due to the addition or deletion of a data item or a change in a data item due to a change in an attribute of a data item. There is also a demand to completely change the format of data items with the migration of databases between models, and in such a case, it is necessary to change a large number of data items. For example, in the case of different models, the character code may be changed, and the data item may be changed by changing the field length of the data item.In such a case, this conventional data item dynamic change method is not applicable. It is difficult, and eventually there is a problem that the method of batch conversion will have to be adopted.

【0018】この発明は、上記のような課題を解消する
ためになされたものであり、既存のデータベースやファ
イルを失うことなく、データベースのデータ項目の変換
を一括して行うとともに、このようなデータベースの変
換をデータベースのオンライン処理などの通常の処理を
停止することなく、動的に行うことができるデータベー
ス形式変換方法を提供することを目的とする。
The present invention has been made in order to solve the above problems, and collectively converts data items of a database without losing existing databases and files, and It is an object of the present invention to provide a database format conversion method capable of dynamically converting the above without stopping normal processing such as online processing of the database.

【0019】[0019]

【課題を解決するための手段】上記目的を達成するため
に、請求項1記載の発明は、第1のデータベースをデー
タ形式の異なった第2のデータベースに変換するデータ
ベース形式変換方法であって、前記第1のデータベース
に対する更新を禁止し、その固定された内容の第1のデ
ータベースを異なったデータ形式に変換して第2のデー
タベースを作成するデータ形式変換工程と、前記データ
形式変換工程中に前記第1のデータベースへの更新要求
があった場合に、その更新内容を更新ログファイルに記
録する更新ログファイル作成工程と、前記データ形式変
換工程が終了した後に、前記更新ログファイルに基づい
て、前記第1のデータベース及び第2のデータベースに
対して前記データ形式変換工程中に発生した更新内容を
反映させるデータベース更新工程とを有し、元のデータ
形式を有する第1のデータベースを保存しつつ、異なっ
たデータ形式を有する第2のデータベースを作成するこ
とを特徴とする。
In order to achieve the above object, the invention according to claim 1 is a database format conversion method for converting a first database into a second database having a different data format. A data format conversion step of prohibiting updates to the first database and converting the fixed first content database to a different data format to create a second database; When there is an update request to the first database, an update log file creation step of recording the update content in an update log file, and after the data format conversion step is completed, based on the update log file, Data for reflecting the update contents generated during the data format conversion process in the first database and the second database And a over scan update process, while preserving the first database with the original data format, characterized by creating a second database having a different data format.

【0020】また、請求項2記載の発明は、請求項1記
載のデータベース形式変換方法において、ネットワーク
に接続された他の計算機システムに対して通信を行い、
前記第2のデータベースを前記他の計算機システム上に
作成することを特徴とする。
According to a second aspect of the present invention, in the database format conversion method according to the first aspect, communication is performed with another computer system connected to the network,
The second database is created on the other computer system.

【0021】また、請求項3記載の発明は、請求項1記
載のデータベース形式変換方法において、前記データ形
式変換工程中に、前記第2のデータベースに対して隠蔽
処理を行うことを特徴とする。
The invention according to claim 3 is the database format conversion method according to claim 1, characterized in that during the data format conversion step, concealment processing is performed on the second database.

【0022】また、請求項4記載の発明は、請求項1記
載のデータベース形式変換方法において、前記データ形
式変換工程中に、前記第1のデータベースにアクセスす
るプログラムから前記第1のデータベースの各フィール
ドのフィールド属性情報を抽出し、そのフィールド属性
情報に基づいて、データ形式変換の際に各フィールドご
とにフィールド長の拡大又は縮小を行うべきか否かを判
定し、フィールド長の拡大又は縮小を行うべき場合に
は、前記フィールド属性情報に基づきデータ形式変換後
のフィールド長を求めることを特徴とする。
The invention according to claim 4 is the database format conversion method according to claim 1, wherein during the data format conversion step, each field of the first database is changed from a program that accesses the first database. Field attribute information is extracted, and based on the field attribute information, it is determined whether the field length should be expanded or reduced for each field when converting the data format, and the field length is expanded or reduced. If it is necessary, the field length after data format conversion is obtained based on the field attribute information.

【0023】また、請求項5記載の発明は、請求項1記
載のデータベース形式変換方法において、前記データ形
式変換工程中に、前記第2のデータベースの各フィール
ドのフィールド長をオペレータが外部から入力する工程
を設けたことを特徴とする。
According to a fifth aspect of the present invention, in the database format conversion method according to the first aspect, an operator inputs the field length of each field of the second database from the outside during the data format conversion step. It is characterized by having a process.

【0024】また、請求項6記載の発明は、請求項5記
載のデータベース形式変換方法において、オペレータが
第2のデータベースの各フィールドのフィールド長を指
定する際に、前記第1のデータベースにアクセスするプ
ログラムから前記第1のデータベースの各フィールドの
フィールド属性情報を抽出してオペレータに報知するこ
とを特徴とする。
The invention according to claim 6 is the database format conversion method according to claim 5, wherein the operator accesses the first database when the field length of each field of the second database is designated. It is characterized in that the field attribute information of each field of the first database is extracted from the program and notified to the operator.

【0025】また、請求項7記載の発明は、請求項1記
載のデータベース形式変換方法において、一連のデータ
ベース形式変換処理を開始する前に、それら処理を行う
プロセッサを設定する工程を設けたことを特徴とする。
The invention according to claim 7 is that in the database format conversion method according to claim 1, before starting a series of database format conversion processing, a step of setting a processor for performing the processing is provided. Characterize.

【0026】また、請求項8記載の発明は、請求項1記
載のデータベース形式変換方法において、一連のデータ
ベース形式変換処理を開始する前に、その処理の実行プ
ライオリティを指定する工程を設けたことを特徴とす
る。
The invention according to claim 8 is that in the database format conversion method according to claim 1, before starting a series of database format conversion processing, a step of designating an execution priority of the processing is provided. Characterize.

【0027】また、請求項9記載の発明は、第1の計算
機上に構築された第1のデータベースを、ネットワーク
を介して接続された第2の計算機上に構築されたデータ
形式の異なった第2のデータベースに変換するデータベ
ース形式変換方法であって、前記第1のデータベースに
対する更新を禁止し、その固定された第1のデータベー
スの内容を前記第2の計算機にネットワークを介して転
送するデータ転送工程と、転送されてきた第1のデータ
ベースの内容を前記第2の計算機上で異なったデータ形
式に変換して第2のデータベースを作成するデータ形式
変換工程と、前記データ形式変換工程中に前記第1のデ
ータベースへの更新要求があった場合に、その更新内容
を前記第1の計算機上の更新ログファイルに記録する更
新ログファイル作成工程と、前記データ形式変換工程が
終了した後に、前記更新ログファイルに基づいて、前記
第1のデータベース及び第2のデータベースに対して前
記データ形式変換工程中に発生した更新内容を反映させ
るデータベース更新工程とを有し、元のデータ形式を有
する第1のデータベースを保存しつつ、異なったデータ
形式を有する第2のデータベースを作成することを特徴
とする。
According to a ninth aspect of the present invention, the first database constructed on the first computer, the first database constructed on the second computer connected via a network, and having a different data format are constructed. A database format conversion method for converting to a second database, which prohibits update to the first database and transfers the fixed contents of the first database to the second computer via a network. A step, a data format conversion step of converting the transferred contents of the first database into a different data format on the second computer to create a second database, and the data format conversion step during the data format conversion step. When an update request is made to the first database, an update log file is created to record the update content in the update log file on the first computer. And a database update for reflecting the update contents generated during the data format conversion step to the first database and the second database based on the update log file after the step and the data format conversion step are completed. And storing a first database having an original data format, and creating a second database having a different data format.

【0028】さらに、請求項10記載の発明は、第1の
データベースをデータ形式の異なった第2のデータベー
スに変換するデータベース形式変換装置であって、前記
第1のデータベースに対する更新を禁止し、その固定さ
れた内容の第1のデータベースを異なったデータ形式に
変換して第2のデータベースを作成するデータ形式変換
手段と、前記データ形式変換手段の処理中に前記第1の
データベースへの更新要求があった場合に、その更新内
容を更新ログファイルに記録する更新ログファイル作成
手段と、前記データ形式変換手段の処理が終了した後
に、前記更新ログファイルに基づいて、前記第1のデー
タベース及び第2のデータベースに対して前記データ形
式変換手段の処理中に発生した更新内容を反映させるデ
ータベース更新手段とを有し、元のデータ形式を有する
第1のデータベースを保存しつつ、異なったデータ形式
を有する第2のデータベースを作成することを特徴とす
る。
Further, the invention according to claim 10 is a database format conversion device for converting a first database into a second database having a different data format, wherein updating of the first database is prohibited, Data format conversion means for converting the first database having a fixed content into a different data format to create a second database, and an update request for the first database during processing of the data format conversion means If there is, the update log file creating means for recording the update content in the update log file, and after the processing of the data format converting means is completed, based on the update log file, the first database and the second database Database updating means for reflecting the update contents generated during the processing of the data format converting means in the database The a, while preserving the first database with the original data format, characterized by creating a second database having a different data format.

【0029】[0029]

【作用】請求項1記載の発明に係るデータベース変換方
法においては、まずデータ形式変換工程において、第1
のデータベースに対する更新を禁止して記録内容が変更
されないようにし、この状態の第1のデータベースのデ
ータをデータ形式変換して所望のデータ形式を有する第
2のデータベースを作成する。このデータ形式変換工程
中に第1のデータベースに対して更新要求があった場合
は、第1のデータベースを直接更新することを行わず
に、更新ログファイルにその更新内容を記録する。デー
タ形式変換工程中において、第1のデータベースにアク
セス要求があった場合は、第1のデータベース及び更新
ログファイルを参照することによって、最新のデータを
得ることができる。そして、データ形式変換工程が終了
すると、第1のデータベース及び新たに生成された第2
のデータベースを、更新ログファイルに記録された更新
内容に基づいて更新する。これにより、第1のデータベ
ースに対するアクセスの制限を最小限に抑えつつデータ
形式の変換を行うことができると共に、元のデータ形式
を有する第1のデータベースを保存することもできる。
In the database conversion method according to the present invention, first, in the data format conversion step, the first
The update of the database is prohibited to prevent the recorded contents from being changed, and the data format of the data of the first database in this state is converted into a second database having a desired data format. If there is an update request for the first database during this data format conversion process, the update content is recorded in the update log file without directly updating the first database. If there is an access request to the first database during the data format conversion process, the latest data can be obtained by referring to the first database and the update log file. Then, when the data format conversion step is completed, the first database and the newly created second
The database of is updated based on the update contents recorded in the update log file. As a result, it is possible to perform conversion of the data format while minimizing access restrictions to the first database, and it is also possible to save the first database having the original data format.

【0030】また、請求項2記載の発明では、第1のデ
ータベースを有する計算機システムとは別の計算機シス
テム上に、ネットワーク通信を行いつつ前記第2のデー
タベースを作成することにより、計算機のディクス容量
が不足した場合にもデータベース形式変換処理を行うこ
とができる。
According to the second aspect of the invention, the disk capacity of the computer is created by creating the second database while performing network communication on a computer system different from the computer system having the first database. The database format conversion process can be performed even when there is a shortage.

【0031】また、請求項3記載の発明では、データ形
式変換工程において作成中の第2のデータベースはユー
ザから隠蔽され、アクセスが不可能となる。これによ
り、変換処理と中の不完全なデータベースが書換えられ
ることがなくなる。
According to the third aspect of the invention, the second database being created in the data format conversion step is hidden from the user and cannot be accessed. This prevents the conversion process and the incomplete database from being rewritten.

【0032】また、請求項4記載の発明では、データ形
式変換工程において、第1のデータベースにアクセスす
るプログラムから第1のデータベースの各フィールドの
属性情報を抽出し、その属性情報に基づいて、データ形
式変換時に各フィールドのフィールド長を変更すべきか
否かを判定する。そして、その判定においてフィールド
長を変更すべきであると判定された場合は、前記属性情
報に基づいて形式変換後のフィールド長を計算する。こ
れにより、第2のデータベースの各フィールドのフィー
ルド長を自動的に求めることができる。
Further, in the invention according to claim 4, in the data format conversion step, attribute information of each field of the first database is extracted from the program for accessing the first database, and the data is converted based on the attribute information. It is determined whether the field length of each field should be changed during format conversion. When it is determined that the field length should be changed, the field length after format conversion is calculated based on the attribute information. Thereby, the field length of each field of the second database can be automatically obtained.

【0033】また、請求項5記載の発明では、データ形
式変換工程において、外部から第2のデータベースの各
フィールドのフィールド長を入力することができる。こ
れにより、データ形式変換時におけるフィールド長の指
定をよりきめ細かく行うことができる。
According to the fifth aspect of the invention, the field length of each field of the second database can be input from the outside in the data format conversion step. This makes it possible to more finely specify the field length when converting the data format.

【0034】また、請求項6記載の発明では、請求項5
記載の発明に係る方法においてフィールド長を入力する
際に、オペレータに対して第1のデータベースの各フィ
ールドの属性情報を報知する。オペレータは、これを第
2のデータベースのフィールド長を決定する際の参考に
することができる。
According to the invention described in claim 6,
When the field length is input in the method according to the described invention, the operator is informed of the attribute information of each field of the first database. The operator can refer to this when determining the field length of the second database.

【0035】また、請求項7記載の発明では、一連のデ
ータベースの形式変換処理を行う前に、その変換処理を
行うプロセッサを指定するので、第1のデータベースに
対する通常のデータ処理を行うプロセッサを確保するこ
とができる。
Further, according to the invention described in claim 7, since the processor for performing the format conversion process is designated before performing the format conversion process for the series of databases, the processor for performing the normal data process for the first database is secured. can do.

【0036】また、請求項8記載の発明では、一連のデ
ータベースの形式変換処理を行う前に、その変換処理の
実行プライオリティを設定することができる。従って、
変換処理のプライオリティを低く設定することにより、
第1のデータベースに対する通常のデータ処理作業を妨
げずに変換処理を行うことができる。
According to the present invention, the execution priority of the conversion process can be set before the format conversion process of the series of databases. Therefore,
By setting the conversion process priority low,
The conversion process can be performed without disturbing the normal data processing work for the first database.

【0037】また、請求項9記載の発明では、データベ
ース形式変換処理を行う場合、まずデータ転送工程にお
いて、第1の計算機上に構築された第1のデータベース
に対して更新を禁止し、固定された第1のデータベース
の内容を第2の計算機に転送する。次に、データ形式変
換工程において、第2の計算機は、転送されてきた第1
のデータベースの内容を異なったデータ形式に変換し、
第2のデータベースを作成する。このデータベース形式
変換工程中に第1のデータベースへの更新要求があった
場合には、更新ログファイル作成工程において、その更
新内容を前記第1の計算機上の更新ログファイルに記録
する。そして、データ形式変換が完全に終了すると、デ
ータベース更新工程により、更新ログファイルに記録さ
れた更新内容を第1及び第2のデータベースに反映させ
る。
In the invention according to claim 9, when performing the database format conversion process, first, in the data transfer step, the update is prohibited and fixed for the first database constructed on the first computer. The contents of the first database are transferred to the second computer. Next, in the data format conversion process, the second computer transfers the first transferred data.
Convert the contents of the database to different data formats,
Create a second database. If there is an update request for the first database during the database format conversion step, the update content is recorded in the update log file on the first computer in the update log file creation step. Then, when the data format conversion is completely completed, the database update step reflects the update content recorded in the update log file in the first and second databases.

【0038】さらに、請求項10記載の発明に係るデー
タベース変換装置においては、データ形式変換手段は、
第1のデータベースに対する更新を禁止して記録内容が
変更されないようにし、この状態の第1のデータベース
のデータをデータ形式変換して所望のデータ形式を有す
る第2のデータベースを作成する。このデータ形式変換
手段の処理中に第1のデータベースに対して更新要求が
あった場合は、第1のデータベースを直接更新すること
を行わずに、更新ログファイル作成手段が更新ログファ
イルにその更新内容を記録する。したがって、データ形
式変換手段の処理中に、第1のデータベースにアクセス
要求があった場合は、第1のデータベース及び更新ログ
ファイルを参照することによって、最新のデータを得る
ことができる。そして、データ形式変換手段の処理が終
了すると、データベース更新手段が、第1のデータベー
ス及び新たに生成された第2のデータベースを、更新ロ
グファイルに記録された更新内容に基づいて更新する。
これにより、第1のデータベースに対するアクセスの制
限を最小限に抑えつつデータ形式の変換を行うことがで
きると共に、元のデータ形式を有する第1のデータベー
スを保存することもできる。
Further, in the database conversion apparatus according to the tenth aspect of the invention, the data format conversion means is
The update of the first database is prohibited so that the recorded contents are not changed, and the data format of the data of the first database in this state is converted to create the second database having a desired data format. If an update request is made to the first database during the processing of the data format conversion means, the update log file creation means updates the update log file without directly updating the first database. Record the contents. Therefore, if there is an access request to the first database during the processing of the data format conversion means, the latest data can be obtained by referring to the first database and the update log file. Then, when the processing of the data format converting means is completed, the database updating means updates the first database and the newly generated second database based on the update contents recorded in the update log file.
As a result, it is possible to perform conversion of the data format while minimizing access restrictions to the first database, and it is also possible to save the first database having the original data format.

【0039】[0039]

【実施例】以下、この発明の実施例を図面に基づいて説
明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0040】第1実施例 図1は、本発明の第1実施例を示すブロック図である。 First Embodiment FIG. 1 is a block diagram showing a first embodiment of the present invention.

【0041】図1において、ユーザ10は、ユーザが入
力するコマンドや、このシステムをアクセスするユーザ
のアプリケーションプログラム等を示すものであり、こ
れらに付随するデータベースに関する情報を含んでい
る。また、システム管理者11は、このシステム全体に
対するシステム管理を行うオペレータのオペレーション
を表している。本実施例においてデータベース処理シス
テム16は、データベースアクセス処理部12とデータ
ベース変換処理部13とを有しており、通常のデータベ
ースへのアクセス処理とデータベース形式の変換処理を
行う。以下詳細は、図2のフローチャートを参照しつつ
説明する。
In FIG. 1, a user 10 indicates a command input by the user, an application program of the user who accesses this system, and the like, and includes information about a database attached to these. The system administrator 11 represents the operation of an operator who manages the system for the entire system. In the present embodiment, the database processing system 16 has a database access processing unit 12 and a database conversion processing unit 13, and performs normal database access processing and database format conversion processing. Details will be described below with reference to the flowchart of FIG.

【0042】それまで使用されていたデータベース14
を新しい形式に変換しようとする場合を考える。通常、
このような処理は、システムのシステム管理者11のオ
ペレーションとして行われる。システム管理者11は、
この変換のために本システムのプログラムを起動する。
Database 14 used until then
Consider the case of converting to a new format. Normal,
Such processing is performed as an operation of the system administrator 11 of the system. The system administrator 11
The program of this system is started for this conversion.

【0043】起動されたプログラムは、図2のフローチ
ャートに従って動作する。まず、データベース変換処理
部13が、元のデータベース14を入力として、所望の
新データベース形式へデータベースの変換を行う(ステ
ップ100)。その変換された出力は、変換後の出力フ
ァイルとして、コピーデータベース15のファイルとし
て生成される(ステップ101)。
The started program operates according to the flowchart of FIG. First, the database conversion processing unit 13 inputs the original database 14 and converts the database into a desired new database format (step 100). The converted output is generated as a file of the copy database 15 as an output file after conversion (step 101).

【0044】この間、元のデータベース14に対しての
一般のユーザ10からのアクセス等に関する処理を停止
して、このような変換を行うことも考えられるが、それ
では通常の業務に支障を来たすので、本実施例ではユー
ザ10からのデータベースアクセス処理部12を通じた
アクセス等の処理はそのまま継続して行う。
During this period, it is possible to stop the processing relating to the access from the general user 10 to the original database 14 and perform such conversion, but this causes a hindrance to normal business, so In this embodiment, processing such as access from the user 10 through the database access processing unit 12 is continuously performed.

【0045】データベースの形式変換にはそのサイズに
応じた時間がかかるので、オンライン業務を継続しつつ
変換を行おうとする場合、変換作業中(ステップ100
及び101の作業中)にデータベースに対する更新要求
が出されることを想定する必要がある。本実施例では、
変換作業開始時にデータベース14をサービスから切り
離してデータ内容が変更されないようにし、この変換作
業開始時のデータベース14の記録内容を、所望の形式
に変換してコピーデータベース15に記録する。そし
て、この変換作業中のデータベースに対する更新の要求
を受けた場合、元のデータベース14を実際に更新する
のではなく、その更新内容をログファイル20内に記録
することによって更新を行う(ステップ102)。その
記録は、ファイルのジャーナリングを行う場合等に用い
られる通常の方法と同様、更新前のレコードと更新後の
レコードを記録する方式などで十分である。
Since the format conversion of the database takes a time corresponding to the size thereof, when the conversion is carried out while continuing the online business, the conversion work is in progress (step 100).
It is necessary to assume that an update request is issued to the database during the work (1 and 101). In this embodiment,
At the start of the conversion work, the database 14 is separated from the service so that the data content is not changed, and the recorded contents of the database 14 at the start of the conversion work are converted into a desired format and recorded in the copy database 15. When a request for updating the database being converted is received, the original database 14 is not actually updated, but the updated contents are recorded in the log file 20 (step 102). . As for the recording, a method of recording the record before update and the record after update is sufficient as in the normal method used when journaling a file.

【0046】元のデータベース14に対する更新の要求
が来た時には、元のデータベース14自身と、ログファ
イル20の内容を参照することにより、そのデータベー
スの論理的な、更新前の状態を得ることができるので、
これに対し更新を加えることになる。
When an update request for the original database 14 arrives, the logical state of the database before update can be obtained by referring to the original database 14 itself and the contents of the log file 20. So
This will be updated.

【0047】図2のフローチャート上では、ステップ1
02の処理を、便宜的にステップ101の後の処理とし
て記述しているが、実際には、このステップ102は、
ステップ100、およびステップ101の処理の間中行
われているものである。これにより、元のデータベース
はそのまま保存されているので、データベースの形式変
換のステップ100の処理において、変換対象が途中で
更新されてしまうことはなく、影響はない。
In the flowchart of FIG. 2, step 1
Although the processing of 02 is described as the processing after step 101 for the sake of convenience, in reality, this step 102 is
This is performed during the processing of step 100 and step 101. As a result, since the original database is saved as it is, the conversion target is not updated in the process of the database format conversion step 100, and there is no effect.

【0048】なお、本実施例では、データベースの形式
変換のステップ100の処理が終了した時点では、元の
データベース14はもちろんのこと、それを基にして作
成されたコピーデータベース15も、変換処理が開始さ
れる以前の古いデータ内容を反映している。データベー
スの変換処理が一通り完了して時点で、元のデータベー
ス14及びコピーデータベース15に対して、この変換
処理の間に発生した更新を反映させる必要がある。そこ
で、ログファイル20の内容に基づき、元のデータベー
ス14とコピーデータベース15を更新する(ステップ
103)。ここで、ログファイル20を元のデータベー
スのデータ形式で記述していく場合は、コピーデータベ
ース15の側の更新の時に、データベース形式の変換処
理も同時に行う。
In the present embodiment, when the processing of the database format conversion in step 100 is completed, not only the original database 14 but also the copy database 15 created based on the original database 14 is converted. It reflects the old data contents before the start. When the database conversion process is completed, it is necessary to reflect the update that occurred during the conversion process in the original database 14 and the copy database 15. Therefore, the original database 14 and the copy database 15 are updated based on the contents of the log file 20 (step 103). Here, when the log file 20 is described in the data format of the original database, the database format conversion process is also performed at the same time when the copy database 15 is updated.

【0049】こうしてデータベース形式の変換が完全に
完了すると、ユーザ10からのデータベース更新を行う
業務プログラム(業務プログラムは、ユーザ10によっ
て表されているものとして省略する)は、変換されたデ
ータベースに対応した新しい業務プログラム(業務プロ
グラムが更新されている場合)に切り替えられ、コピー
データベース15を用いて通常の業務を再開する。もち
ろん、業務プログラムを更新しない場合でもデータベー
ス形式の変換を行うことがあり、この場合は、その業務
プログラムにより通常業務を再開する。
When the database format conversion is completely completed in this way, the business program for updating the database from the user 10 (the business program is omitted as being represented by the user 10) corresponds to the converted database. A new business program (when the business program has been updated) is switched to, and normal business is resumed using the copy database 15. Of course, the database format may be converted even when the business program is not updated, and in this case, the normal business is restarted by the business program.

【0050】なお、オンライン中にこの切替を行った場
合には、その瞬間において、元のデータベース14とコ
ピーデータベース15の間でデータに矛盾が生じる可能
性も考えられる。この場合、一時的にオンライン処理を
停止して回復作業を行ってから、処理を再開する方法も
考えられるが、本システムでは、オンライン作業中のデ
ータベースの更新ログを、変換作業中だけでなく変換作
業終了後においても絶えず記録する構成とし、変換終了
後もこの更新ログを残すようにすることにより、オンラ
イン処理を停止しなくてはならない時刻(例えば1日の
オンライン業務の終了時間)までオンラインシステムを
そのまま運用し、その停止時刻の後に、更新ログに従っ
て元データベース14とコピーデータベース15の整合
性を回復する作業を行う構成とすることもできる。この
構成では、オンライン業務を再開した時点から、移行後
のコピーデータベースによってシステムが運用される。
If this switching is performed while online, it is possible that the original database 14 and the copy database 15 may have inconsistency in data at that moment. In this case, it is conceivable to temporarily stop the online processing, perform the recovery work, and then restart the processing.However, in this system, the update log of the database during online work is not only converted during the conversion work but also converted. The system is configured to continuously record even after the work is completed, and by keeping this update log even after the conversion is completed, the online system is available until the time when the online processing must be stopped (for example, the end time of the online business of one day). Can be operated as it is, and after the stop time, the work of recovering the consistency between the original database 14 and the copy database 15 can be performed according to the update log. In this configuration, the system is operated by the copy database after the transfer from the time when the online business is restarted.

【0051】なお、本実施例では、説明の都合上、元の
データベース14とコピーデータベース15をあたかも
別のディスク装置であるかのように図示しているが、こ
れに限らず、十分なディスク容量があるならば、同じデ
ィスク装置内の論理的に異なる2つのデータベースとし
て作成することも可能である。
In the present embodiment, for convenience of explanation, the original database 14 and the copy database 15 are shown as if they were different disk devices, but the present invention is not limited to this, and a sufficient disk capacity is provided. If it exists, it is possible to create it as two logically different databases in the same disk device.

【0052】第2実施例 図3は、本発明の第2実施例におけるデータベース変換
方式を示すブロック図である。本実施例は、ネットワー
クシステムを利用したデータベース変換の例を示してお
り、元のデータベース14を変換した出力をネットワー
クに接続された他系ホストコンピュータに伝送し、この
他系ホストコンピュータに接続されたファイル装置上に
コピーデータベース15を作成している。従って本実施
例では、データベース処理システム16は通信制御部1
7を有し、これにより、データベース14やログファイ
ル20のデータベース変換処理部13による変換出力を
ネットワーク18を介して他系ホスト19に送信する。
これら以外の構成要素は、第1実施例の場合と同一であ
る。
Second Embodiment FIG. 3 is a block diagram showing a database conversion method in the second embodiment of the present invention. The present embodiment shows an example of database conversion using a network system, in which the output converted from the original database 14 is transmitted to another host computer connected to the network and connected to this other host computer. The copy database 15 is created on the file device. Therefore, in this embodiment, the database processing system 16 includes the communication control unit 1
7, the conversion output of the database 14 and the log file 20 by the database conversion processing unit 13 is transmitted to the other system host 19 via the network 18.
The other components are the same as those in the first embodiment.

【0053】図4は、本実施例における処理の流れを示
すフローチャートである。基本的な処理の流れは、第1
実施例とほぼ同じであるが、データベースの形式変換
(ステップ100)の次に、ネットワーク18経由で他
系ホスト19と通信し、変換データを転送(ステップ1
10)し、コピーデータベース15の生成を他系ホスト
19に処理させている点が第1実施例の場合と異なって
いる。他系のホストとの通信機能は、多くのオペレーテ
ィングシステムでサポートされているネッワーク機能
や、RPC(リモートプロシージャコール)などの通信
機能を使用することで実現できる。なお、本実施例にお
いて、通信により他系ホスト19に変換データを転送す
る作業(ステップ110)は、データベースの形式変換
処理(ステップ100)及びコピーデータベースの作成
処理(ステップ101)が行われている間は、常に行わ
れている。
FIG. 4 is a flow chart showing the flow of processing in this embodiment. The basic processing flow is
This is almost the same as the embodiment, but after the format conversion of the database (step 100), the conversion data is transferred by communicating with the other system host 19 via the network 18 (step 1).
10) Then, the point that the other system host 19 is made to process the generation of the copy database 15 is different from the case of the first embodiment. The communication function with the host of another system can be realized by using the network function supported by many operating systems and the communication function such as RPC (remote procedure call). In this embodiment, the work of transferring the conversion data to the host 19 of the other system by communication (step 110) includes a database format conversion process (step 100) and a copy database creation process (step 101). The period is always done.

【0054】なお、本実施例においては、データベース
の形式変換をデータベース処理システム16において行
い、変換されたデータを他系ホスト19に送信したが、
形式変換していないデータをデータベース処理システム
16から他系ホスト19に送信し、その他系ホスト19
においてデータベースの形式変換を行う構成とすること
も可能である。データベースシステム16を有する自系
ホスト計算機の負荷が大きい場合にも、このような構成
にすることによりスムーズにデータ形式の変換を行うこ
とができる。
In this embodiment, the database format conversion is performed in the database processing system 16 and the converted data is transmitted to the other system host 19.
Data whose format has not been converted is transmitted from the database processing system 16 to the other system host 19, and the other system host 19
It is also possible to adopt a configuration in which the format conversion of the database is performed. Even when the load on the host computer having the database system 16 is heavy, the data format can be smoothly converted by such a configuration.

【0055】第3実施例 図5は、本発明の第3実施例のデータベース変換方式の
処理の流れを示すフローチャートである。基本的な処理
の流れは、第1実施例とほぼ同じであるが、本実施例に
おいては、コピーデータベースの作成(ステップ10
1)に入る前に、コピーデータベースの隠蔽処理を行う
ステップ120が追加されている。つまり、データベー
スの形式変換のステップ100の出力を使用してコピー
データベースを生成する時に、生成されるコピーデータ
ベースのファイルを、通常のユーザからアクセスできな
いように設定する。すなわち、データベースの変換処理
を行う時には、変換処理中の中間ファイル(コピーデー
タベース)がユーザから見えると、ユーザが誤ってその
ファイルにアクセスし、障害をもたらす可能性があるの
で、本実施例ではこれを防ぐためにコピーデータベース
の隠蔽処理を行う。
Third Embodiment FIG. 5 is a flow chart showing the processing flow of the database conversion method of the third embodiment of the present invention. The basic processing flow is almost the same as in the first embodiment, but in this embodiment, a copy database is created (step 10).
Before step 1), a step 120 for concealing the copy database is added. That is, when a copy database is generated using the output of the database format conversion step 100, the generated copy database file is set so that it cannot be accessed by an ordinary user. That is, when the database conversion process is performed, if the intermediate file (copy database) being converted is visible to the user, the user may mistakenly access the file and cause a failure. In order to prevent this, conceal the copy database.

【0056】コピーデータベースの隠蔽処理120その
ものは、いわゆるファイルのアクセスパーミッションを
制御する方法を使用することができる。C言語のインタ
ーフェースを例にとれば、chmod(コピーデータベ
ース名,アクセスパーミション);のごときインタフェ
ースにおいて、コピーデータベースのアクセスを禁止す
るパーミッションを指定することにより、実現すること
ができる。
The copy database concealment process 120 itself can use a method of controlling so-called file access permission. Taking the C language interface as an example, it can be realized by specifying the permission for prohibiting the access to the copy database in the interface such as chmod (copy database name, access permission).

【0057】この場合、アクセスパーミションとして
は、書込み禁止を指定することはもちろん、そのファイ
ルを読み出すことによる誤読をも防ぐ意味で、読出しを
禁止することも考えられる。
In this case, as the access permission, it is conceivable to prohibit the reading in order to prevent erroneous reading due to reading the file, as well as to specify the writing prohibition.

【0058】また、アクセスパーミションの制御による
方法のほか、隠しファイルを作成する方法を使用するこ
となどによっても隠蔽処理は実現できる。
The concealment process can be realized by using a method of creating a hidden file in addition to the method of controlling the access permission.

【0059】第4実施例 図6は、本発明の第4実施例を示すフローチャートであ
る。基本的な処理の流れは、第1実施例とほぼ同じもの
であるが、本実施例では、特にデータベースの形式変換
(ステップ100)の次に、そのデータ形式変換におい
てデータベースの各フィールドが拡大/縮小されるか否
かを判定するステップ130を設け、もし、拡張あるい
は縮小されると判定された時には、その拡張又は縮小さ
れるフィールドの新しいサイズを計算するステップ13
1により、所望のデータ形式に応じた新しいフィールド
のサイズを得る。
Fourth Embodiment FIG. 6 is a flow chart showing a fourth embodiment of the present invention. The basic processing flow is almost the same as that of the first embodiment. However, in this embodiment, after the database format conversion (step 100), each field of the database is expanded / extended in the data format conversion. A step 130 of determining whether or not to be reduced is provided, and if it is determined to be extended or reduced, a step 13 of calculating a new size of the field to be extended or reduced is provided.
By 1, the size of the new field according to the desired data format is obtained.

【0060】このようなデータベースにアクセスするア
プリケーションプログラムは、データベースの各フィー
ルドの属性の情報を保持している。それを抽出すること
で、そのフィールドが数字データのみを扱うフィールド
ならば、例えばコード体系が変更になったとしても、フ
ィールドが拡張あるいは縮小されることはないと判断で
きる。しかし、そのフィールドがキャラクタ(文字)で
あるならば、データ形式の変換によりコード体系が変わ
るとフィールド長の変更が起こり得る。このように、ア
プリケーション自体から抽出したデータベースの各フィ
ールドの属性情報から、フィールド長の変更の可能性が
判定できる。
An application program that accesses such a database holds attribute information of each field of the database. By extracting it, if the field handles only numeric data, it can be determined that the field will not be expanded or reduced even if the code system is changed. However, if the field is a character (character), the field length may change when the code system changes due to the conversion of the data format. In this way, the possibility of changing the field length can be determined from the attribute information of each field of the database extracted from the application itself.

【0061】例えば、元のデータベースが、英語にのみ
対応しており、全てのキャラクタコードが1バイトで表
されていたとする。ここでデータベースの移行の目的
が、日本語に対応しようとしたと仮定すると、日本語の
漢字コードは通常2バイトで、場合によっては3バイト
のものもあり、英語80文字を仮定していたフィールド
を日本語80文字に対応できるようにしたいと考えた場
合、単純に計算すれば、160バイト以上のフィールド
が必要ということになる。もちろん、このような場合に
も、データ形式変換においてデータベースの各フィール
ドが一律に日本語対応を要求されるとは限らず、英語対
応のフィールドが残る場合もあり、この場合、そのフィ
ールドに関しては、フィールド長を拡張する必要はな
い。逆に、日本語対応のソフトを英語のみの対応に変え
る場合にはフィールド長を縮小すればよい。また、ディ
スク容量を減らしたいという要求から、あるフィールド
を一律に縮小しようという場合も考えられる。
For example, it is assumed that the original database only supports English and all character codes are represented by 1 byte. Assuming that the purpose of database migration is to support Japanese, the Kanji code for Japanese is usually 2 bytes, and in some cases it is 3 bytes. If you want to be able to correspond to 80 Japanese characters, you can simply calculate that a field of 160 bytes or more is required. Of course, even in such a case, each field of the database is not necessarily required to correspond to Japanese uniformly in the data format conversion, and there may be a field corresponding to English. In this case, regarding that field, There is no need to extend the field length. On the contrary, when changing the software supporting Japanese to only English, the field length may be reduced. In addition, there is a case where a certain field is uniformly reduced due to the demand for reducing the disk capacity.

【0062】従って、ステップ131では、このような
要求に基づき、変換前のデータベースの属性情報及び変
換後のデータ形式に応じて、各フィールドの長さを自動
的に計算する。
Therefore, in step 131, based on such a request, the length of each field is automatically calculated according to the attribute information of the database before conversion and the data format after conversion.

【0063】ステップ131により、計算された拡張、
あるいは縮小されるフィールドの新しいサイズは、コピ
ーデータベースを生成するステップ101に渡され、そ
のファイル生成の時に、その計算された各フィールドの
サイズにしたがったレコード長で、コピーデータベース
15が作成される。
The extension calculated by step 131,
Alternatively, the new size of the field to be reduced is passed to the step 101 of creating a copy database, and the copy database 15 is created at the time of file creation with the record length according to the calculated size of each field.

【0064】このように本実施例では、データベースの
形式を変換する際に、データ形式の変換に伴いフィール
ド長の伸縮を行う必要があるか否かを判定し、伸縮の必
要がある場合には、新しいデータ形式に応じて各フィー
ルドのフィールド長を自動的に求めることができる。し
たがって、本実施例は、データベースを異機種に移植す
る場合にも対応可能である。
As described above, in this embodiment, when converting the format of the database, it is determined whether or not the field length needs to be expanded or contracted in accordance with the conversion of the data format. , The field length of each field can be automatically calculated according to the new data format. Therefore, the present embodiment can be applied to the case of porting a database to a different model.

【0065】第5実施例 図7は、本発明の第5実施例を示すフローチャートであ
る。本実施例の基本的な処理の流れは第1実施例とほぼ
同じであるが、本実施例では、特にデータベースの形式
変換処理の時に、コピーデータベースにおける各フィー
ルドのフィールド長をシステム管理者11等のオペレー
タのオペレーションとして人手により入力してやり、こ
の入力を読み込むステップ140を設けている。
Fifth Embodiment FIG. 7 is a flowchart showing the fifth embodiment of the present invention. The basic processing flow of this embodiment is almost the same as that of the first embodiment. However, in this embodiment, the field length of each field in the copy database is set by the system administrator 11 etc., especially at the time of database format conversion processing. As an operator's operation, a step 140 for manually inputting and reading this input is provided.

【0066】データベースの各フィールドには、各種の
データが考えられる。例えば、そのデータベースが、商
品の売上を管理するデータベースであるとする。この場
合、その商品の金額を示すフィールドがあるとすれば、
それは数字のみが格納されるフィールドであり、この場
合、コード変換によってフィールド長が変更されること
はまず考えられない。しかし、このような場合において
も、商品の取引量の増大に備えて、金額のフィールドの
サイズを拡張しようとするということも考えられる。
Various data can be considered in each field of the database. For example, assume that the database is a database that manages sales of products. In this case, if there is a field showing the price of the product,
It is a field that stores only numbers, and in this case, it is unlikely that the field length will be changed by code conversion. However, even in such a case, it is conceivable that the size of the amount field will be expanded in preparation for an increase in the transaction volume of the product.

【0067】また、商品名のフィールドのように、キャ
ラクタが使用されるフィールドの場合には、そこに日本
語が使用されるか、英語のみかといった判断によって
も、フィールド長を決定することができる。
In the case of a field in which characters are used, such as a product name field, the field length can also be determined by determining whether Japanese is used or English only. .

【0068】このような場合には、単純なフィールドの
属性だけではなく、利用者側の判断というものが必要に
なる。本実施例は、この人間による判断の結果をデータ
ベース変換のための情報として入力できるようにするた
めに、コピーデータベースの各フィールドをシステム管
理者11のオペレーションとして人手により入力できる
ようにするものである。
In such a case, not only the simple field attribute but also the user's judgment is required. In the present embodiment, each field of the copy database can be manually input as an operation of the system administrator 11 so that the result of this human judgment can be input as information for database conversion. .

【0069】例えば、変更すべきデータベースに5つの
フィールドが存在しているとすると、外部から入力され
たデータを、そのフィールド長を読み込むためのステッ
プ140において、データベースの各フィールド毎にシ
ステム管理者11に対して、フィールド長の入力を促
す。この場合、5つのフィールドに対応して、5回の入
力を促し、入力を受けつける。これにより、データ形式
変換後のデータベースのフィールド長を適切な長さに調
節することができる。
For example, if there are 5 fields in the database to be changed, in step 140 for reading the field length of the data input from the outside, the system administrator 11 for each field of the database. Prompts for the field length. In this case, the input is urged and accepted five times corresponding to the five fields. Thereby, the field length of the database after the data format conversion can be adjusted to an appropriate length.

【0070】このとき、データベースにアクセスするア
プリケーション等から形式変換前のデータベースの属性
情報を読取り、読み取った属性情報をシステム管理者1
1等のオペレータに表示する構成とすることにより、オ
ペレータはフィールド属性の現状を参考にしながら、デ
ータ変換後のデータベースにおける適切なフィールド長
を決定し、入力していくことが可能となる。
At this time, the attribute information of the database before format conversion is read from the application accessing the database, and the read attribute information is read by the system administrator 1.
With the configuration in which it is displayed to the operator such as 1 or the like, the operator can determine and input an appropriate field length in the database after data conversion while referring to the current state of the field attributes.

【0071】第6実施例 図8は、本発明の第6実施例を示すフローチャートであ
る。本実施例は、基本的な処理の流れについては第1実
施例とほぼ同じであるが、全体の処理を行う前に、シス
テムがマルチプロセッサ構成であるか否かを判定し、マ
ルチプロセッサ構成の場合にデータベース形式変換処理
を特定のプロセッサに明示的に割り当てるステップ(ス
テップ150)を設けた点が第1実施例と異なる。
Sixth Embodiment FIG. 8 is a flowchart showing the sixth embodiment of the present invention. The basic processing flow of this embodiment is almost the same as that of the first embodiment, but before performing the entire processing, it is determined whether the system has a multiprocessor configuration and the multiprocessor configuration In this case, a step (step 150) of explicitly assigning the database format conversion process to a specific processor is provided, which is different from the first embodiment.

【0072】このステップ150は、C言語のインタフ
ェースを例にとると、processor−bind
(変換プロセス名,実行CPU番号);のごときインタ
フェースにおいて、変換処理のプログラムを実行してい
るプロセスの実行CPUの番号を指定することによって
実現することができる。
This step 150 is a processor-bind when the interface of C language is taken as an example.
(Conversion process name, execution CPU number); and can be realized by specifying the number of the execution CPU of the process executing the conversion processing program.

【0073】このようなインタフェースを使用した方法
は、いくつかのマルチプロセッサをサポートするオペレ
ーティングシステムにおいて提供されている機能である
が、もしそのような機能をサポートしていないオペレー
ティングシステムをベースに実施する場合は、オペレー
ティングシステムを拡張して機能を追加することよって
実現することができる。従って、データベース形式変換
処理の開始を指示すると、自動的にこのようなインター
フェースによりプロセッサの指定が行われる構成とすれ
ばよい。
The method using such an interface is a function provided in an operating system that supports some multiprocessors, but if it is performed based on an operating system that does not support such a function. This can be achieved by extending the operating system and adding functions. Therefore, when the start of the database format conversion process is instructed, the processor may be automatically designated by such an interface.

【0074】本実施例におけるデータベース変換は、以
前からのデータベースをそのまま保存し、かつ、通常の
データベースに対するオンライン処理を停止することな
くデータベース変換を行うことを目的としているため、
この変換処理によって多くのCPU能力を消費すること
により通常のオンライン処理などのレスポンスが低下し
てしまうことは好ましくない。このため、このデータベ
ース変換処理全体を、特定のプロセッサに割り当て、そ
の他のプロセッサによって通常のオンライン処理を実行
する構成とすれば、一般のユーザから見て、レスポンス
はほとんど低下させずに済む。
The database conversion in this embodiment is intended to save the existing database as it is and to perform the database conversion without stopping the online processing for the normal database.
It is not preferable that the conversion process consumes a large amount of CPU power and the response of a normal online process is deteriorated. Therefore, if the entire database conversion process is assigned to a specific processor and the normal online process is executed by the other processors, the response is hardly reduced from the viewpoint of a general user.

【0075】第7実施例 図9は、本発明の第7実施例を示すフローチャートであ
る。基本的な処理の流れは、第1実施例とほぼと同等の
ものであるが、本実施例では、第1実施例における処理
に加えて、全体の変換処理を行う前にその変換処理の実
行のプライオリティ(優先順位)を低く設定するステッ
プ(ステップ160)が設けられている。
Seventh Embodiment FIG. 9 is a flowchart showing the seventh embodiment of the present invention. The basic processing flow is almost the same as that of the first embodiment. However, in this embodiment, in addition to the processing in the first embodiment, the conversion processing is executed before the entire conversion processing is performed. There is provided a step (step 160) of setting a low priority (priority order).

【0076】ステップ160の処理は、C言語のインタ
フェースを例にとると、 nice(実行プライオリティ); のごときインタフェースにおいて、実行されるデータ形
式変換プログラム自身の実行プライオリティを低く設定
すること等により実現できる。
The process of step 160 can be realized by setting the execution priority of the data format conversion program itself to be low in an interface such as nice (execution priority); .

【0077】このようなインタフェースは、多くのオペ
レーティングシステムで提供されている。しかしなが
ら、このようなインターフェースを備えていない場合で
も、オペレーティングシステムを拡張して、そのような
機能を容易に追加することができる。従って、データベ
ース形式変換処理の開始を指示すると、自動的にこのよ
うなインターフェースによりプライオリティの設定が行
われる構成とすればよい。
Such an interface is provided in many operating systems. However, even if such an interface is not provided, the operating system can be extended to easily add such a function. Therefore, when the start of the database format conversion process is instructed, the priority may be automatically set through such an interface.

【0078】前述したように、本発明は、以前からのデ
ータベースをそのまま保存し、かつ通常のデータベース
に対するオンライン処理を停止することなく、データベ
ース変換を行うことを目的としている。
As described above, the object of the present invention is to preserve the existing database as it is and to perform the database conversion without stopping the online processing for the ordinary database.

【0079】このような、データベース変換は、かなり
のCPUパワーを消費するため、データベース変換処理
を開始すると通常のオンライン処理などのレスポンスが
低下してしまう可能性がある。このため、このデータベ
ース変換処理全体を、あらかじめ低いプライオリティに
設定して実行させることにより、CPUには通常のオン
ライン処理を優先的に実行させ、CPUに余裕ができた
時にデータベースの変換処理を実行させることができ
る。このようにすれば、一般のユーザからみて、通常の
オンライン処理のレスポンスの低下はほとんど生じな
い。
Since such database conversion consumes a considerable amount of CPU power, when the database conversion process is started, there is a possibility that the response such as a normal online process may deteriorate. Therefore, the entire database conversion process is set to a low priority in advance and executed, so that the CPU preferentially executes the normal online process, and causes the CPU to execute the database conversion process when the CPU has room. be able to. In this way, the response of the normal online processing is hardly deteriorated by the general user.

【0080】[0080]

【発明の効果】以上説明したように、請求項1記載の発
明によれば、データベースの形式変換を行う時に、既存
のデータベースやファイルを失うことなく、データベー
スのデータ項目の変更を一括して行うことができる。さ
らに、この変換処理時に、データベースのオンライン処
理の情報をログ情報として記録することにより、変換す
る以前の第1のデータベース、及び変換によって作成さ
れた第2のデータベースに対して、変換処理中に発生し
たデータ変更の内容を反映させる構成としたので、通常
のオンライン処理を停止することなく、オンライン処理
と並行して動的にデータベースの変換処理を行うことが
できる。
As described above, according to the invention described in claim 1, when the format conversion of the database is performed, the data items of the database are collectively changed without losing the existing database and files. be able to. Further, during this conversion processing, by recording the information of the online processing of the database as log information, the first database before conversion and the second database created by the conversion are generated during the conversion processing. Since the contents of the changed data are reflected, the database conversion process can be dynamically performed in parallel with the online process without stopping the normal online process.

【0081】また、請求項2記載の発明によれば、変換
処理における第2のデータベース作成のときに、ネット
ワーク経由の通信によりデータベース変換処理を行った
後の第2のデータベースのファイルを別のコンピュータ
上のディスクに設けることができる。これにより、ロー
カルマシン上のディスク容量の不足した場合にも変換処
理をおこなうことが可能となる。
According to the second aspect of the present invention, when the second database is created in the conversion process, the file of the second database after the database conversion process is performed by communication via the network is stored in another computer. It can be provided on the upper disc. As a result, the conversion process can be performed even when the disk capacity on the local machine is insufficient.

【0082】また、請求項3記載の発明によれば、変換
処理における第2のデータベース生成のときに、この第
2のデータベースをユーザから隠蔽することにより、変
換処理途中の不完全なデータベースへのユーザのアクセ
スによる障害を防止することができる。さらには、変換
処理途中にデータベースに対して不正な処理を行うこと
がないようにできるという効果も得られる。
According to the third aspect of the present invention, when the second database is generated in the conversion process, the second database is hidden from the user, so that the incomplete database is in the process of the conversion process. It is possible to prevent a failure due to user access. Furthermore, there is an effect that it is possible to prevent an illegal process from being performed on the database during the conversion process.

【0083】また、請求項4記載の発明によれば、変換
処理における第2のデータベース生成のときに、データ
ベースの各フィールドのサイズの拡張、縮小する可能性
を判断するステップと、データベースのフィールドを拡
張、縮小する場合に、そのフィールドのサイズを計算す
るステップとを備えたので、第2のデータベースを作成
する時に、自動的にフィールド長を変更できるという効
果がある。したがって、本請求項に係る発明によれば、
異機種間のデータベースの移行が可能になる。
According to the invention described in claim 4, when the second database is generated in the conversion process, the step of determining the possibility of expanding or reducing the size of each field of the database, and the field of the database are determined. Since the step of calculating the size of the field when expanding or contracting is provided, there is an effect that the field length can be automatically changed when the second database is created. Therefore, according to the invention of this claim,
Enables migration of heterogeneous databases.

【0084】また、請求項5記載の発明によれば、変換
処理における第2のデータベース生成のときに、生成さ
れる第2のデータベースの各フィールド長を決定するた
めに、オペレータが外部から入力するデータをそのフィ
ールド長として読み込むことができるので、データベー
スの変換に伴うフィールド長の変更を効率良く、かつオ
ペレータの要望を反映して細かく設定することができる
ようになるという効果がある。
According to the fifth aspect of the invention, when the second database is created in the conversion process, the operator inputs it from the outside in order to determine the field length of the second database created. Since the data can be read as the field length, there is an effect that the change of the field length due to the conversion of the database can be made efficiently and finely set by reflecting the operator's request.

【0085】また、請求項6記載の発明によれば、オペ
レータが第2のデータベースの各フィールドのフィール
ド長を指定する際に、形式変換前の第1のデータベース
の属性情報を表示してオペレータに報知することによ
り、オペレータはその表示を参考にして適切なフィール
ド長を決定することができる。
According to the invention of claim 6, when the operator designates the field length of each field of the second database, the attribute information of the first database before format conversion is displayed to the operator. By notifying, the operator can determine an appropriate field length with reference to the display.

【0086】また、請求項7記載の発明によれば、デー
タベース変換処理における第2のデータベース生成の処
理を、特定のプロセッサに割り当てる構成とすることに
より、通常のオンライン処理などのために別のプロセッ
サを確保することができるので、通常のオンライン処理
のレスポンスが低下することがないようにできるという
効果がある。
According to the seventh aspect of the invention, the second database generation process in the database conversion process is assigned to a specific processor so that another processor can be used for normal online processing. Since it is possible to secure the above, there is an effect that it is possible to prevent the response of the normal online processing from being deteriorated.

【0087】また、請求項8記載の発明によれば、変換
処理における第2のデータベース生成の処理を行うため
のプログラムの実行のプライオリティを低く抑えるステ
ップを設けたので、変換処理中において通常のオンライ
ン処理等のレスポンスが低下することがないようにでき
る。
Further, according to the invention described in claim 8, since the step of suppressing the execution priority of the program for performing the processing of the second database generation in the conversion processing is set to a low level, a normal online operation is performed during the conversion processing. It is possible to prevent the response such as processing from being deteriorated.

【0088】また、請求項9記載の発明によれば、デー
タベースの形式変換の主たる処理を第2の計算機で行う
ことができるので、第1のデータベースシステムを有す
る第1の計算機の負荷が大きい場合でも、データベース
の形式変換を行うことができる。
Further, according to the invention described in claim 9, since the main processing of the format conversion of the database can be performed by the second computer, when the load of the first computer having the first database system is large. However, you can convert the format of the database.

【0089】また、請求項10記載の発明によれば、デ
ータベースの形式変換を行う時に、既存のデータベース
やファイルを失うことなくデータベースのデータ項目の
変更を一括して行うことができ、変換処理中に発生した
データ変更の内容を第1のデータベース及び第2のデー
タベースに対して反映させることができ、通常のオンラ
イン処理を停止することなく、オンライン処理と並行し
て動的にデータベースの変換処理を行うことができるデ
ータベース形式変換装置を得ることができる。
According to the tenth aspect of the invention, when the format conversion of the database is performed, the data items of the database can be collectively changed without losing the existing database and files, and the conversion process is being performed. It is possible to reflect the contents of the data change that has occurred in the first database and the second database, and to perform the database conversion processing dynamically in parallel with the online processing without stopping the normal online processing. It is possible to obtain a database format conversion device that can be performed.

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

【図1】 本発明に係るデータベース形式変換システム
の構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a database format conversion system according to the present invention.

【図2】 本発明に係るデータベース形式変換方法の第
1実施例を示すフローチャートである。
FIG. 2 is a flowchart showing a first embodiment of the database format conversion method according to the present invention.

【図3】 本発明に係るデータベース形式変換システム
をネットワークシステムに適用した場合の構成を示すブ
ロック図である。
FIG. 3 is a block diagram showing a configuration when the database format conversion system according to the present invention is applied to a network system.

【図4】 本発明に係るデータベース形式変換方法の第
2実施例を示すフローチャートである。
FIG. 4 is a flowchart showing a second embodiment of the database format conversion method according to the present invention.

【図5】 本発明に係るデータベース形式変換方法の第
3実施例を示すフローチャートである。
FIG. 5 is a flowchart showing a third embodiment of the database format conversion method according to the present invention.

【図6】 本発明に係るデータベース形式変換方法の第
4実施例を示すフローチャートである。
FIG. 6 is a flowchart showing a fourth embodiment of the database format conversion method according to the present invention.

【図7】 本発明に係るデータベース形式変換方法の第
5実施例を示すフローチャートである。
FIG. 7 is a flowchart showing a fifth embodiment of the database format conversion method according to the present invention.

【図8】 本発明に係るデータベース形式変換方法の第
6実施例を示すフローチャートである。
FIG. 8 is a flowchart showing a sixth embodiment of the database format conversion method according to the present invention.

【図9】 本発明に係るデータベース形式変換方法の第
7実施例を示すフローチャートである。
FIG. 9 is a flow chart showing a seventh embodiment of the database format conversion method according to the present invention.

【図10】 従来のデータベース移行方法を説明するた
めの図である。
FIG. 10 is a diagram for explaining a conventional database migration method.

【図11】 従来のデータベース移行方法を説明するた
めの図である。
FIG. 11 is a diagram for explaining a conventional database migration method.

【図12】 従来のデータベース移行方法を説明するた
めの図である。
FIG. 12 is a diagram for explaining a conventional database migration method.

【図13】 従来のデータベース移行方法を説明するた
めの図である。
FIG. 13 is a diagram for explaining a conventional database migration method.

【図14】 従来のデータ項目動的変更方式を示すブロ
ック図である。
FIG. 14 is a block diagram showing a conventional data item dynamic change method.

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

10 ユーザ、11 システム管理者、12 データベ
ースアクセス処理部、13 データベース変換処理部、
14 データベース、15 コピーデータベース、16
データベース処理システム、17 通信制御部、18
ネットワーク、19 他系ホストコンピュータ、20
更新ログファイル。
10 users, 11 system administrator, 12 database access processing unit, 13 database conversion processing unit,
14 databases, 15 copy databases, 16
Database processing system, 17 Communication control unit, 18
Network, 19 Other host computer, 20
Update log file.

Claims (10)

【特許請求の範囲】[Claims] 【請求項1】 第1のデータベースをデータ形式の異な
った第2のデータベースに変換するデータベース形式変
換方法であって、 前記第1のデータベースに対する更新を禁止し、その固
定された内容の第1のデータベースを異なったデータ形
式に変換して第2のデータベースを作成するデータ形式
変換工程と、 前記データ形式変換工程中に前記第1のデータベースへ
の更新要求があった場合に、その更新内容を更新ログフ
ァイルに記録する更新ログファイル作成工程と、 前記データ形式変換工程が終了した後に、前記更新ログ
ファイルに基づいて、前記第1のデータベース及び第2
のデータベースに対して前記データ形式変換工程中に発
生した更新内容を反映させるデータベース更新工程と、 を有し、 元のデータ形式を有する第1のデータベースを保存しつ
つ、異なったデータ形式を有する第2のデータベースを
作成することを特徴とするデータベース形式変換方法。
1. A database format conversion method for converting a first database to a second database having a different data format, wherein updating of the first database is prohibited, and the first content of the fixed content is prohibited. A data format conversion step of converting the database into a different data format to create a second database; and updating the update content when there is a request for updating the first database during the data format conversion step. An update log file creation step of recording the log file, and after the data format conversion step is completed, based on the update log file, the first database and the second database
A database updating step of reflecting the update contents generated during the data format converting step in the database of 1), and a first database having a different data format while storing the first database having the original data format. 2. A database format conversion method characterized by creating a database of 2.
【請求項2】 請求項1記載のデータベース形式変換方
法であって、 ネットワークに接続された他の計算機システムに対して
通信を行い、前記第2のデータベースを前記他の計算機
システム上に作成することを特徴とするデータベース形
式変換方法。
2. The database format conversion method according to claim 1, wherein communication is performed with another computer system connected to a network, and the second database is created on the other computer system. Database format conversion method characterized by.
【請求項3】 請求項1記載のデータベース形式変換方
法であって、 前記データ形式変換工程において、前記第2のデータベ
ースに対して隠蔽処理を行うことを特徴とするデータベ
ース形式変換方法。
3. The database format conversion method according to claim 1, wherein in the data format conversion step, concealment processing is performed on the second database.
【請求項4】 請求項1記載のデータベース形式変換方
法であって、 前記データ形式変換工程において、前記第1のデータベ
ースにアクセスするプログラムから前記第1のデータベ
ースの各フィールドのフィールド属性情報を抽出し、そ
のフィールド属性情報に基づいて、データ形式変換の際
に各フィールドごとにフィールド長の拡大又は縮小を行
うべきか否かを判定し、フィールド長の拡大又は縮小を
行うべき場合には、前記フィールド属性情報に基づきデ
ータ形式変換後のフィールド長を求めることを特徴とす
るデータベース形式変換方法。
4. The database format conversion method according to claim 1, wherein in the data format conversion step, field attribute information of each field of the first database is extracted from a program that accesses the first database. , Based on the field attribute information, it is determined whether or not the field length should be expanded or reduced for each field during the data format conversion. A database format conversion method characterized in that a field length after data format conversion is obtained based on attribute information.
【請求項5】 請求項1記載のデータベース形式変換方
法であって、 前記データ形式変換工程において、前記第2のデータベ
ースの各フィールドのフィールド長をオペレータが外部
から入力する工程を設けたことを特徴とするデータベー
ス形式変換方法。
5. The database format conversion method according to claim 1, wherein in the data format conversion step, an operator inputs a field length of each field of the second database from outside. And database format conversion method.
【請求項6】 請求項5記載のデータベース変換方法で
あって、 オペレータが第2のデータベースの各フィールドのフィ
ールド長を指定する際に、前記第1のデータベースにア
クセスするプログラムから前記第1のデータベースの各
フィールドのフィールド属性情報を抽出してオペレータ
に報知することを特徴とするデータベース形式変換方
法。
6. The database conversion method according to claim 5, wherein, when an operator designates a field length of each field of the second database, the first database is accessed from a program that accesses the first database. A database format conversion method, characterized in that the field attribute information of each field is extracted and notified to the operator.
【請求項7】 請求項1記載のデータベース形式変換方
法であって、 一連のデータベース形式変換処理を開始する前に、それ
ら処理を行うプロセッサを指定する工程を設けたことを
特徴とするデータベース形式変換方法。
7. The database format conversion method according to claim 1, further comprising a step of designating a processor for performing a series of database format conversion processes before starting a series of the database format conversion processes. Method.
【請求項8】 請求項1記載のデータベース形式変換方
法であって、 一連のデータベース形式変換処理を開始する前に、その
処理の実行プライオリティを設定する工程を設けたこと
を特徴とするデータベース形式変換方法。
8. The database format conversion method according to claim 1, further comprising a step of setting an execution priority of the series of database format conversion processes before starting a series of the database format conversion processes. Method.
【請求項9】 第1の計算機上に構築された第1のデー
タベースを、ネットワークを介して接続された第2の計
算機上に構築されたデータ形式の異なった第2のデータ
ベースに変換するデータベース形式変換方法であって、 前記第1のデータベースに対する更新を禁止し、その固
定された第1のデータベースの内容を前記第2の計算機
にネットワークを介して転送するデータ転送工程と、 転送されてきた第1のデータベースの内容を前記第2の
計算機上で異なったデータ形式に変換して第2のデータ
ベースを作成するデータ形式変換工程と、 前記データ形式変換工程中に前記第1のデータベースへ
の更新要求があった場合に、その更新内容を前記第1の
計算機上の更新ログファイルに記録する更新ログファイ
ル作成工程と、 前記データ形式変換工程が終了した後に、前記更新ログ
ファイルに基づいて、前記第1のデータベース及び第2
のデータベースに対して前記データ形式変換工程中に発
生した更新内容を反映させるデータベース更新工程と、 を有し、 元のデータ形式を有する第1のデータベースを保存しつ
つ、異なったデータ形式を有する第2のデータベースを
作成することを特徴とするデータベース形式変換方法。
9. A database format for converting a first database constructed on a first computer into a second database constructed on a second computer connected via a network and having a different data format. A conversion method, which comprises a data transfer step of prohibiting updating of the first database and transferring the fixed contents of the first database to the second computer via a network. A data format conversion step of converting the contents of the first database into a different data format on the second computer to create a second database; and an update request to the first database during the data format conversion step. Update log file creation step of recording the update content in the update log file on the first computer, if there is, and the data format After the conversion process is completed, on the basis of the update log file, the first database and the second
A database updating step of reflecting the update contents generated during the data format converting step in the database of 1., storing a first database having an original data format, and having a different data format. 2. A database format conversion method characterized by creating a database of 2.
【請求項10】 第1のデータベースをデータ形式の異
なった第2のデータベースに変換するデータベース形式
変換装置であって、 前記第1のデータベースに対する更新を禁止し、その固
定された内容の第1のデータベースを異なったデータ形
式に変換して第2のデータベースを作成するデータ形式
変換手段と、 前記データ形式変換手段の処理中に前記第1のデータベ
ースへの更新要求があった場合に、その更新内容を更新
ログファイルに記録する更新ログファイル作成手段と、 前記データ形式変換手段の処理が終了した後に、前記更
新ログファイルに基づいて、前記第1のデータベース及
び第2のデータベースに対して前記データ形式変換手段
の処理中に発生した更新内容を反映させるデータベース
更新手段と、 を有し、 元のデータ形式を有する第1のデータベースを保存しつ
つ、異なったデータ形式を有する第2のデータベースを
作成することを特徴とするデータベース形式変換装置。
10. A database format conversion device for converting a first database into a second database having a different data format, wherein updating of the first database is prohibited, and the first content of the fixed contents is updated. Data format conversion means for converting the database to a different data format to create a second database, and update contents when there is an update request to the first database during processing of the data format conversion means An update log file creating means for recording in the update log file, and the data format for the first database and the second database based on the update log file after the processing of the data format converting means is completed. Database updating means for reflecting the update contents generated during the processing of the converting means, and the original data format While preserving the first database having a different database format conversion apparatus characterized by creating a second database having a data format.
JP6118676A 1994-05-31 1994-05-31 Data base form converting method and its device Pending JPH07325744A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6118676A JPH07325744A (en) 1994-05-31 1994-05-31 Data base form converting method and its device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6118676A JPH07325744A (en) 1994-05-31 1994-05-31 Data base form converting method and its device

Publications (1)

Publication Number Publication Date
JPH07325744A true JPH07325744A (en) 1995-12-12

Family

ID=14742454

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6118676A Pending JPH07325744A (en) 1994-05-31 1994-05-31 Data base form converting method and its device

Country Status (1)

Country Link
JP (1) JPH07325744A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002259654A (en) * 2001-03-05 2002-09-13 Mitsubishi Electric Corp Device and method for converting data and computer readable recording medium recording program for computer to perform data converting method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002259654A (en) * 2001-03-05 2002-09-13 Mitsubishi Electric Corp Device and method for converting data and computer readable recording medium recording program for computer to perform data converting method

Similar Documents

Publication Publication Date Title
JP4237354B2 (en) Transaction processing method and transaction processing system
JP4615337B2 (en) Storage system
JP4035872B2 (en) File format conversion method, file system, information system and electronic commerce system using the same
JP3270216B2 (en) File name detection method
JP4143611B2 (en) Backup generation device, recovery processing device, backup generation method, recovery processing method, and program
JP2868543B2 (en) Computer equipment
JP2003140940A (en) Program for managing external storage device, recording medium, managing device, and computer system
JP2008541263A (en) Fast and reliable synchronization of file system directories
JPH1069408A (en) Data storage method and device at file system level utilizing hole
JPH1031612A (en) Advanced file server
JP2008033483A (en) Computer system, computer, and moving method of computer operating environment
US6912632B2 (en) Storage system, storage system control method, and storage medium having program recorded thereon
JP3951547B2 (en) Data sharing method between hosts by replication
JP2006251990A (en) Database reorganization program and database reorganization method
JP2001159993A (en) Method and device for storing data for referring to optional time state
JPH07325744A (en) Data base form converting method and its device
JP2005316624A (en) Database reorganization program, database reorganization method, and database reorganization device
JPH08314780A (en) File management system
JPH1021123A (en) Information processor
JP2000222258A (en) Database structure changing method, control method of database access request, online system, storing medium storing database operation supporting middleware and storing medium storing shifting utility
JP3120473B2 (en) How to upgrade software programs
JP2912657B2 (en) File access processor
JPH0877050A (en) Device and method for reconstituting data base
JPH09160817A (en) Database converting system
JP2672812B2 (en) Selected product management processing method