[go: up one dir, main page]

JP2018109898A - Data migration system - Google Patents

Data migration system Download PDF

Info

Publication number
JP2018109898A
JP2018109898A JP2017000597A JP2017000597A JP2018109898A JP 2018109898 A JP2018109898 A JP 2018109898A JP 2017000597 A JP2017000597 A JP 2017000597A JP 2017000597 A JP2017000597 A JP 2017000597A JP 2018109898 A JP2018109898 A JP 2018109898A
Authority
JP
Japan
Prior art keywords
database
data
migration
record
configuration information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2017000597A
Other languages
Japanese (ja)
Inventor
耕右 植田
Kosuke Ueda
耕右 植田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP2017000597A priority Critical patent/JP2018109898A/en
Publication of JP2018109898A publication Critical patent/JP2018109898A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

【課題】メインフレームコンピュータシステムからオープンシステムに移行する際のデータベースの移行を体系的かつ段階的におこなって、移行工数が削減でき、段階的で確実なマイグレーションをおこなう。【解決手段】データマイグレーションシステムは、構造型データベースのデータ構造とデータを読み込む手段と、構造型データベースのデータ構造とデータを、それと等価な関係型データベースのデータ構造とデータに変換する手段とを有する。そのために、構造型データベースのレコード、データ項目と、関係型データベースのテーブル、フィールドとを関係付けて保持する手段を有する。また、構造型データベースのある時点からある時点の更新分を取得し、その更新分の構造型データベースのデータ構造とデータを、それと等価な関係型データベースのデータ構造とデータに変換する手段とを有する。【選択図】 図8The present invention provides a systematic and step-by-step database migration when migrating from a mainframe computer system to an open system, which can reduce the man-hours for migration and perform step-by-step and reliable migration. A data migration system includes means for reading a data structure and data of a structural database, and means for converting the data structure and data of the structural database into a data structure and data of a relational database equivalent thereto. . For this purpose, there is means for associating and holding records and data items in the structural database and tables and fields in the relational database. In addition, there is a means for obtaining an update of a structural database from a certain point in time and converting the structural database of the updated database into data and data of a relational database equivalent to the data. . [Selection] Figure 8

Description

本発明は、データマイグレーションシステムに係り、特に、メインフレームシステム環境のデータベースからオープンシステム環境におけるデータベースを移行する用途に用いて好適なデータマイグレーションシステムに関する。   The present invention relates to a data migration system, and more particularly to a data migration system suitable for use in migrating a database in an open system environment from a database in a mainframe system environment.

近年のIT環境の劇的な変化に伴い、企業の中枢におけるコンピュータシステムが、メインフレームコンピュータシステムから、いわゆるオープンシステムに急速に移行が進んでいる。このような状況のもと、メインフレームシステム環境から、Windows(登録商標)、Linux(登録商標)などオープンシステムをメインとするオープンシステム環境へのマイグレーションを、昨今多くの企業が推進している。マイグレーション手法として、メインフレーム環境からオープン環境へアプリケーションシステムを一括でマイグレーションする方法があるが、複数のアプリケーションを運用している環境では困難である。そのため、段階的にマイグレーションをおこなうことも有効であり、段階的にマイグレーションをおこなう際に、異種間システムの構成を同じ状態に保つことはマイグレーションの品質向上に非常に有効である。   With the dramatic change in IT environment in recent years, computer systems at the core of enterprises are rapidly shifting from mainframe computer systems to so-called open systems. Under such circumstances, many companies have recently promoted migration from mainframe system environments to open system environments such as Windows (registered trademark) and Linux (registered trademark), which are mainly open systems. As a migration method, there is a method of collectively migrating an application system from a mainframe environment to an open environment, but this is difficult in an environment where a plurality of applications are operated. Therefore, it is also effective to perform migration in stages, and keeping the configuration of the heterogeneous system in the same state when performing migration in stages is very effective in improving the quality of migration.

例えば、特許文献1に記載されたマイグレーションシステムでは、異種間マイグレーションにおいてファイルデータを移行する際に、対象ファイルとファイル項目定義書の整合性チェックとエラー箇所の修正をおこなって、マイグレーションに係る工数の削減および異種間システムの構成の齟齬から起こる品質劣化を防ぐことができる技術を提供している。   For example, in the migration system described in Patent Document 1, when transferring file data in heterogeneous migration, the consistency check of the target file and the file item definition document and the correction of the error part are performed, and the man-hours related to the migration are reduced. We provide technology that can reduce quality and prevent quality degradation that arises from defects in the configuration of heterogeneous systems.

特開2014−225171号公報JP 2014-225171 A

メインフレームコンピュータシステムからオープンシステムに移行するにあたり、一番重要な問題は、データベースのマイグレーションである。特に、メインフレームコンピュータシステムでは、構造型データベースを使用しており、それをオープンシステムでは一般的な関係型データベース(リレーショナルデータベース:RDB(Relational Database))に移行するときには、各々採用しているデータベースのモデルが異なっているため、移行の工数は大きなものになる。従来、このような、構造型データベースからオープンシステムのマイグレーションについて体系的な移行システムについては、考慮されてこなかった。   When migrating from mainframe computer systems to open systems, the most important issue is database migration. In particular, a mainframe computer system uses a structured database, and an open system migrates to a general relational database (relational database (RDB)). Because the models are different, the migration effort is significant. Conventionally, such a systematic migration system has not been considered for migration from a structured database to an open system.

また、長期的なマイグレーションをおこなう場合、マイグレーション元・マイグレーション先のそれぞれのシステムが並行して稼働しているため、異種データシステム間で構成の差異が発生し、データの同期の失敗やマイグレーション先に構築しようとするシステムが古い構成に基づいて構築されてしまう恐れがあり、マイグレーション品質の劣化につながる。   In addition, when performing long-term migration, the migration source and migration destination systems are operating in parallel, resulting in configuration differences between different data systems, data synchronization failures and migration destinations. The system to be built may be built based on an old configuration, leading to degradation of migration quality.

特許文献1記載の従来技術では、ファイルデータ移行によりマイグレーションの簡易化を実現するが、データベース構成の齟齬の発生を防ぐことはできない。   In the prior art described in Patent Document 1, migration is simplified by migrating file data, but it is impossible to prevent the occurrence of wrinkles in the database configuration.

本発明の目的は、メインフレームコンピュータシステムからオープンシステムに移行する際のデータベースの移行を体系的かつ段階的におこなって、移行工数が削減でき、段階的で確実なマイグレーションをおこなうことのできるデータマイグレーションシステムを提供することにある。   The object of the present invention is to perform database migration systematically and step by step when migrating from a mainframe computer system to an open system, reducing the number of migration steps, and performing data migration that enables stepwise and reliable migration To provide a system.

本発明のデータマイグレーションシステムの構成は、構造型データベースのデータ構造とデータを読み込む手段と、構造型データベースのデータ構造とデータを、それと等価な関係型データベースのデータ構造とデータに変換する手段とを有するようにしたものである。   The configuration of the data migration system of the present invention comprises means for reading the data structure and data of the structural database, and means for converting the data structure and data of the structural database into the data structure and data of the relational database equivalent thereto. It is what you have.

また、望ましくは、データマイグレーションシステムにおいて、構造型データベースのレコード、データ項目と、関係型データベースのテーブル、フィールドとを関係付けて保持する手段を有するようにしたものである。   Preferably, the data migration system includes means for associating and holding records and data items of the structural database and tables and fields of the relational database.

また、望ましくは、データマイグレーションシステムにおいて、構造型データベースのある時点からある時点の更新分を取得し、その更新分の構造型データベースのデータ構造とデータを、それと等価な関係型データベースのデータ構造とデータに変換する手段とを有するようにしたものである。   Preferably, in the data migration system, an update from a certain point in time to the structural database is acquired, and the data structure and data of the structural database for the update are compared with the equivalent data structure of the relational database. Means for converting to data.

本発明によれば、メインフレームコンピュータシステムからオープンシステムに移行する際のデータベースの移行を体系的かつ段階的におこなって、移行工数が削減でき、段階的で確実なマイグレーションをおこなうことのできるデータマイグレーションシステムを提供することができる。   According to the present invention, data migration can be performed in a systematic and step-by-step manner when migrating a database from a mainframe computer system to an open system, thereby reducing the number of migration steps and performing step-by-step and reliable migration. A system can be provided.

データマイグレーションシステムの全体構成図を示す図である。It is a figure showing the whole data migration system lineblock diagram. 構成情報管理変換サーバのハードウェア・ソフトウェアの構成図である。It is a hardware / software block diagram of a structure information management conversion server. 構造型データベースと関係型データベースの概要を対比して説明する図である。It is a figure explaining contrast of a structure type database and a relational type database. メインフレームデータベース構成情報テーブルの例を示す図である。It is a figure which shows the example of a mainframe database structure information table. メインフレームレコード構成情報テーブルの例を示す図である。It is a figure which shows the example of a mainframe record structure information table. テーブル定義リンク情報テーブルの例を示す図である。It is a figure which shows the example of a table definition link information table. 更新分テーブル定義リンク情報テーブルの例を示す図である。It is a figure which shows the example of an update part table definition link information table. 構造型データベースから関係型データベースにデータベースの移行するときの処理を示すフローチャートである。It is a flowchart which shows the process at the time of transfer of a database from a structural type database to a relational type database. 構造化データベースが更新されたり、移行に関する設定が変更されたときの処理を示すフローチャートである。It is a flowchart which shows a process when the structure database is updated or the setting regarding transfer is changed. 移行可否フラグ設定画面を示す図である。It is a figure which shows a transfer permission / prohibition flag setting screen. テーブル定義確認・編集画面を示す図である。It is a figure which shows a table definition confirmation and edit screen.

以下、本発明に係る一実施形態を、図1ないし図9を用いて説明する。   Hereinafter, an embodiment according to the present invention will be described with reference to FIGS. 1 to 9.

先ず、図1ないし図2を用いて本発明の一実施形態に係るデータマイグレーションシステムの構成について説明する。
データマイグレーションシステム100は、図1の構成図に示されるように、メインフレーム101と、データベースサーバ103と、複数のアプリケーションサーバ群105と、構成情報管理変換サーバ106とが、ネットワーク107で接続された構成である。
First, the configuration of a data migration system according to an embodiment of the present invention will be described with reference to FIGS.
In the data migration system 100, as shown in the configuration diagram of FIG. 1, a mainframe 101, a database server 103, a plurality of application server groups 105, and a configuration information management conversion server 106 are connected via a network 107. It is a configuration.

ここで、メインフレーム101は、メインフレーム用OS(例えば、VOS3/US)上で、構造型データベース102(例えば、XDM/SD(登録商標))が稼動しているものとする。また、データベースサーバ103は、オープンシステムOS(例えば、Linux)上で、関係型データベース104(例えば、HiRDB(登録商標)が稼動しているものとする。なお、構造型データベースと関係型データについては、後に詳説する。   Here, it is assumed that the mainframe 101 is running a structural database 102 (for example, XDM / SD (registered trademark)) on a mainframe OS (for example, VOS3 / US). Further, it is assumed that the database server 103 is running a relational database 104 (for example, HiRDB (registered trademark)) on an open system OS (for example, Linux). This will be explained in detail later.

構成情報管理変換サーバ106は、メインフレーム101上の構造型データベース102を、それと等価なデータベースサーバ103上の関係型データベース104に変換する機能を提供するサーバである。そのために、構成情報管理変換サーバ106は、構造型データベース102のデータベース構成情報と、その構成情報を関係型データベース104用に変換した構成情報、その他の設定情報を保管する領域を有する。また、また、データベース構成情報を取得するプログラム、構成情報を変換するプログラムなどがインストールされている。データベース構成情報の例としては、例えば、データベース上の各データのデータ識別番号、データ長やデータ種別などである。   The configuration information management conversion server 106 is a server that provides a function of converting the structural database 102 on the mainframe 101 into a relational database 104 on the database server 103 equivalent thereto. For this purpose, the configuration information management conversion server 106 has an area for storing database configuration information of the structural database 102, configuration information obtained by converting the configuration information for the relational database 104, and other setting information. In addition, a program for acquiring database configuration information, a program for converting configuration information, and the like are installed. Examples of database configuration information include, for example, the data identification number, data length, and data type of each data on the database.

次に、図2を用いて構成情報管理変換サーバのハードウェア・ソフトウェアの構成について説明する。
構成情報管理変換サーバ106は、図2に示されるように、一般的なコンピュータのハードウェアで実現することができ、演算処理部201と、主メモリ202と、表示I/F(Interface)部203と、入出力I/F部204と、通信I/F部205、記憶部230とがBUS(バス)等の通信路により接続された構成である。演算処理部201は、CPU(Central Processing Unit)で構成され、主メモリ202上のワークデータを参照し、ロードされたプログラムを実行して、各種判定、演算処理をおこなうとともに、構成情報管理変換サーバ106の各部を制御する。主メモリ202は、RAM(Random Access Memory)などの揮発性半導体記憶装置で構成され、高速で動作するが比較的小容量であり、演算処理部201で参照されるワークデータ、プログラムを記憶する。表示I/F部203は、ユーザ端末220のLCD(Liquid Crystal Display)表示装置221などと接続する部分である。入出力I/F部204は、管理端末220の入出力装置(例えば、キーボード222、マウス223)と接続する部分である。通信I/F部205は、ネットワークと接続し、他のホスト装置とのインタフェースを受け持つ部分である。
Next, the hardware / software configuration of the configuration information management conversion server will be described with reference to FIG.
As shown in FIG. 2, the configuration information management conversion server 106 can be realized by general computer hardware, and includes an arithmetic processing unit 201, a main memory 202, and a display I / F (Interface) unit 203. The input / output I / F unit 204, the communication I / F unit 205, and the storage unit 230 are connected via a communication path such as a BUS (bus). The arithmetic processing unit 201 is configured by a CPU (Central Processing Unit), refers to work data on the main memory 202, executes a loaded program, performs various determinations and arithmetic processing, and performs a configuration information management conversion server. Each part of 106 is controlled. The main memory 202 is composed of a volatile semiconductor storage device such as a RAM (Random Access Memory), and operates at a high speed but has a relatively small capacity, and stores work data and programs referred to by the arithmetic processing unit 201. The display I / F unit 203 is a part that is connected to an LCD (Liquid Crystal Display) display device 221 of the user terminal 220. The input / output I / F unit 204 is a part connected to an input / output device (for example, a keyboard 222 and a mouse 223) of the management terminal 220. The communication I / F unit 205 is a part that is connected to a network and handles an interface with another host device.

記憶部230は、HDD(Hard Disk Drive)などの磁気記憶媒体による記憶装置や、SSDなどの不揮発性半導体記憶装置などの比較的大容量の記憶装置からなる。記憶部230には、プログラム群として、構成情報取得プログラム206と、テーブル定義リンク情報生成プログラム207と、データベース変換プログラム208と、データベース更新分抽出プログラム209がインストールされ、データベースとして、メインフレームデータベース構成情報テーブル210と、メインフレームレコード構成情報テーブル211と、テーブル定義リンク情報テーブル212と、更新分テーブル定義リンク情報テーブル213が格納されている。   The storage unit 230 includes a storage device using a magnetic storage medium such as an HDD (Hard Disk Drive) or a relatively large capacity storage device such as a nonvolatile semiconductor storage device such as an SSD. In the storage unit 230, a configuration information acquisition program 206, a table definition link information generation program 207, a database conversion program 208, and a database update extraction program 209 are installed as a program group, and mainframe database configuration information is used as a database. A table 210, a main frame record configuration information table 211, a table definition link information table 212, and an update table definition link information table 213 are stored.

構成情報取得プログラム206は、メインフレーム101上の構造型データベースの構成情報を取り出すプログラムである。テーブル定義リンク情報生成プログラム207は、構造型データベース102とそれと等価な関係型データベース104の関係情報を生成するプログラムである。データベース変換プログラム208は、生成された関係情報に基づいて、構造型データベース102からそれと等価な関係型データベース104を生成するプログラムである。データベース更新分抽出プログラム209は、ある時点からある時点までのメインフレーム上の構造型データベース102の更新部分を抽出するプログラムである。   The configuration information acquisition program 206 is a program that extracts the configuration information of the structural database on the main frame 101. The table definition link information generation program 207 is a program that generates relation information between the structural type database 102 and the relational type database 104 equivalent thereto. The database conversion program 208 is a program for generating a relational type database 104 equivalent to the structural type database 102 based on the generated relational information. The database update extraction program 209 is a program for extracting an updated portion of the structural database 102 on the mainframe from a certain time point to a certain time point.

なお、データベースの各テーブルについては、後に詳説する。   Each table in the database will be described in detail later.

次に、図3を用いて構造型データベースと関係型データベースの概要について説明する。
構造型データベースは、図3(a)に示されるように、データベース中に存在する情報の基本単位をレコードとして管理する。レコードは情報の論理的な単位であると同時に、データを検索したり、更新したりするときの単位である。レコードは、親子関係を持ち、階層的な管理されている。レコードをモデル化したものが、レコード型である
レコードは、個々のデータ項目によって構成されている。データ項目は、データベース中で取り扱える情報の最小単位となり、一つのデータ項目はただ一つの値を有し、かつ、格納するデータ種別ごとにデータ型という属性を有する。
Next, the outline of the structural database and the relational database will be described with reference to FIG.
As shown in FIG. 3A, the structural database manages a basic unit of information existing in the database as a record. A record is a logical unit of information, and at the same time a unit for retrieving and updating data. Records have a parent-child relationship and are managed hierarchically. The record model is a record type Record consists of individual data items. The data item is the smallest unit of information that can be handled in the database. One data item has only one value, and each data type to be stored has an attribute called a data type.

一方、関係型データベースにおいては、一件のデータを複数の属性の値の組として表現し、組を列挙することでデータを格納していくモデルのデータベースである。通常、属性を列、組を行とする表(テーブル)の形で示され、関連する属性値を組み合わせた一件のデータのまとまりをレコードと呼び、レコードを構成する個々の属性値をフィールドという。表の形に表した場合にはレコードが行に、フィールドが列に対応する。   On the other hand, the relational database is a model database in which one piece of data is expressed as a set of a plurality of attribute values, and the data is stored by enumerating the sets. Usually, it is shown in the form of a table with attributes as columns and pairs as rows. A group of data that combines related attribute values is called a record, and the individual attribute values that make up a record are called fields. . When expressed in the form of a table, records correspond to rows and fields correspond to columns.

例えば、図3(b)の例では、顧客ID、氏名、住所、電話番号のフィールドを有する顧客テーブルと、顧客ID、品番、商品、価格、販売日のフィールドを有する販売テーブルからなるデータベースが示されている。関係型データベースは、主キーと呼ばれる一意的な値を有するフィールドよって、テーブル間の関係を関連付けて、複雑なデータや大規模なデータを柔軟に取り扱うことができることが特徴である。この例では、「顧客ID」が主キーとなり、顧客の情報と、その顧客に販売した商品の情報を関連付けて取り扱うことが可能となる。   For example, in the example of FIG. 3B, a database including a customer table having fields of customer ID, name, address, and telephone number and a sales table having fields of customer ID, product number, product, price, and sales date is shown. Has been. A relational database is characterized by being able to flexibly handle complex data and large-scale data by associating relationships between tables by a field having a unique value called a primary key. In this example, “customer ID” serves as a main key, and customer information and product information sold to the customer can be handled in association with each other.

このように、構造型データベースと関係型データベースは、セマンティクギャプがあるため、データベースの移行にあたってはこれを吸収することが課題となる。   As described above, since the structured database and the relational database have semantic gaps, it is a problem to absorb this when the database is migrated.

次に、図4ないし図7を用いてデータマイグレーションシステムに使用されるデータ構造について説明する。
メインフレームデータベース構成情報テーブル210は、構成情報取得プログラム206によって取得された構造型データベース102のデータベース構成情報を格納しておくためのテーブルであり、図4に示されるように、データ取得日301、レコード識別No302、レコード名303、レコード長304、移行可否フラグ305の各フィールドをそれぞれ対応付けて記憶している。
Next, a data structure used in the data migration system will be described with reference to FIGS.
The mainframe database configuration information table 210 is a table for storing the database configuration information of the structural type database 102 acquired by the configuration information acquisition program 206. As shown in FIG. The fields of record identification No. 302, record name 303, record length 304, and migration enable / disable flag 305 are stored in association with each other.

データ取得日301には、データベース構成が変更された際に最新データベース構成情報と比較するためのデータベース毎の構成情報を取得したデータ所得日付が格納される。レコード識別No302には、構成情報取得プログラム205により採番される構造型データベースの中の各々のレコードの識別番号が格納される。レコード名称には、各々のレコードを識別するための名称が格納される。レコード長304には、各々のレコードの長さがバイト単位で格納される。移行可否フラグ305には、該当レコードを関係型データベース104への連携対象とするか否かを示すフラグ(ON:移行する、OFF:移行しない)が格納される。   The data acquisition date 301 stores the data income date when the configuration information for each database for comparison with the latest database configuration information is acquired when the database configuration is changed. The record identification number 302 stores the identification number of each record in the structural database numbered by the configuration information acquisition program 205. The record name stores a name for identifying each record. The record length 304 stores the length of each record in bytes. The migration permission / prohibition flag 305 stores a flag (ON: migration, OFF: migration) indicating whether or not the corresponding record is to be linked to the relational database 104.

メインフレームレコード構成情報テーブル211は、構成情報取得プログラム206によって取得された構造型データベース102のレコード構成情報であるデータ項目に関する情報を格納しておくためのテーブルであり、図5に示されるように、データ取得日401、レコード識別No402、データ識別No403、データ開始位置404、データ終了位置405、データ長406、データ種別407の各フィールドをそれぞれ対応付けて記憶している。   The mainframe record configuration information table 211 is a table for storing information related to data items that are record configuration information of the structural database 102 acquired by the configuration information acquisition program 206, as shown in FIG. , Data acquisition date 401, record identification No. 402, data identification No. 403, data start position 404, data end position 405, data length 406, and data type 407 are stored in association with each other.

データ取得日401には、データベース構成が変更された際に最新データベース構成情報と比較するためのデータベース毎の構成情報を取得したデータ所得日付が格納される。レコード識別No402には、構成情報取得プログラム205により採番される構造型データベースの中の各々のレコードの識別番号が格納される。データ識別No403には、該当するレコードに含まれる各々のデータ項目の識別番号が格納される。データ開始位置404、データ終了位置405、データ長406には、それぞれ該当するデータ項目のレコードからの開始位置、終了位置、データ長がバイト単位で格納される。データ種別407には、そのデータ項目のデータ型が、「整数」、「文字列」、「16進データ」…のように格納される。   The data acquisition date 401 stores the data income date when the configuration information for each database for comparison with the latest database configuration information when the database configuration is changed. The record identification number 402 stores the identification number of each record in the structural database numbered by the configuration information acquisition program 205. The data identification number 403 stores the identification number of each data item included in the corresponding record. In the data start position 404, the data end position 405, and the data length 406, the start position, end position, and data length from the record of the corresponding data item are stored in units of bytes. In the data type 407, the data type of the data item is stored as “integer”, “character string”, “hexadecimal data”, and so on.

テーブル定義リンク情報テーブル212は、構造型データベース102のレコード定義と、関係型データベース104用のテーブル定義およびデータ構成情報をリンクさせて格納しておくためのテーブルであり、図6に示されるように、レコード識別No501、データ識別No502、テーブル名称503、データ名称504、データ長505、データ型506の各フィールドを対応付けて記憶する。   The table definition link information table 212 is a table for linking and storing the record definition of the structural type database 102, the table definition for the relational type database 104, and the data configuration information, as shown in FIG. , Record identification No. 501, data identification No. 502, table name 503, data name 504, data length 505, and data type 506 are stored in association with each other.

レコード識別No501、データ識別No502には、それぞれメインフレームレコード構成情報テーブル211から取得されるレコード識別No402、データ識別No403の内容が格納される。テーブル名称503には、関係型データベース104上のテーブルを識別するための名称が格納される。データ名称504には、テーブル名称503に属する各々のフィールドのデータを識別するための名称が格納される。データ長505には、メインフレームレコード構成情報テーブル211から取得されるデータ長の内容が格納される。データ型506には、メインフレームレコード構成情報テーブル211のデータ種別407を関係型データベース用で用いられるデータ型に変換したデータ型の識別子が格納される。   In record identification No. 501 and data identification No. 502, the contents of record identification No. 402 and data identification No. 403 acquired from the mainframe record configuration information table 211 are stored. The table name 503 stores a name for identifying a table on the relational database 104. The data name 504 stores a name for identifying data of each field belonging to the table name 503. The data length 505 stores the contents of the data length acquired from the mainframe record configuration information table 211. The data type 506 stores a data type identifier obtained by converting the data type 407 of the mainframe record configuration information table 211 into a data type used for the relational database.

関係型データベース104用のテーブル定義およびデータ構成情報は、テーブル定義リンク生成プログラム207によって、メインフレームデータベース構成情報テーブル210およびメインフレームレコード構成情報格納部211に格納された情報から生成され、このテーブル定義リンク情報テーブル212に格納される。   The table definition and data configuration information for the relational database 104 are generated from the information stored in the mainframe database configuration information table 210 and the mainframe record configuration information storage unit 211 by the table definition link generation program 207, and this table definition It is stored in the link information table 212.

更新分テーブル定義リンク情報テーブル213は、図7に示されるように、テーブル定義リンク情報テーブル212と同じ構成であり、構造型データベース102に変更が加えられた場合に、データベース更新分抽出プログラム209によって、変更対象のリンク情報のみが格納される。更新分テーブル定義リンク情報テーブル213の構成例は、テーブル定義リンク情報テーブル212と同様である。   As shown in FIG. 7, the update table definition link information table 213 has the same configuration as the table definition link information table 212. When the structural database 102 is changed, the update table definition link information table 213 is updated by the database update extraction program 209. Only the link information to be changed is stored. The configuration example of the update table definition link information table 213 is the same as that of the table definition link information table 212.

次に、図8ないし図11を用いてデータマイグレーションシステムの処理について説明する。   Next, processing of the data migration system will be described with reference to FIGS.

先ず、図8、図10および図11を用いて構造型データベースから関係型データベースにデータベースの移行するときの処理について説明する。
図8に示される処理は、本実施形態のデータマイグレーションシステムが設置されて、初回のデータマイグレーションにより、既存の構造型データベース102の定義情報を、新しく構築された関係型データベース104用に定義情報を変換し、その定義情報を関係型データベース104に反映する処理である。
First, processing when a database is transferred from a structural database to a relational database will be described with reference to FIGS. 8, 10, and 11.
In the process shown in FIG. 8, the data migration system of this embodiment is installed, and the definition information of the existing structural database 102 is changed to the newly constructed relational database 104 by the first data migration. This is a process of converting and reflecting the definition information in the relational database 104.

先ず、構成情報管理変換サーバ106は、構成情報取得プログラム206を起動して、実行することにより、構造型データベース102のデータベース構成情報を、図4に示したメインフレームデータベース構成情報テーブル210に格納し、構造型データベース102のレコード構成情報を、図5に示したメインフレームレコード構成情報テーブル211に格納する(S701)。   First, the configuration information management conversion server 106 starts and executes the configuration information acquisition program 206 to store the database configuration information of the structural database 102 in the mainframe database configuration information table 210 shown in FIG. Then, the record configuration information of the structural database 102 is stored in the mainframe record configuration information table 211 shown in FIG. 5 (S701).

次に、構成情報管理変換サーバ106は、ユーザ端末220に図10に示される移行可否フラグ設定画面900を表示し、該当レコードを関係型データベースにリンクさせるか否かのフラグの設定をおこなう(S702)。移行可否フラグを、ONに設定したレコードは、変換プログラム206、データベース変換プログラム208、データベース更新分抽出プログラム209の処理対象となる。移行可否フラグを、OFFにフラグを設定した場合、それらのプログラムの処理対象外となる。   Next, the configuration information management conversion server 106 displays the migration permission / prohibition flag setting screen 900 shown in FIG. 10 on the user terminal 220, and sets a flag as to whether or not to link the corresponding record to the relational database (S702). ). Records whose migration flag is set to ON are processed by the conversion program 206, the database conversion program 208, and the database update extraction program 209. If the flag indicating that the migration is allowed is set to OFF, the program is not processed.

移行可否フラグ設定画面900では、図10に示されるようにメインフレームデータベース構成情報テーブル210から取得した各レコードのレコード識別No901およびレコード名902を表示し、ユーザが該当レコードを確認し、その該当レコードに対する移行可否フラグ903のON、OFFを入力できるようにする。ユーザが設定ボタン904を、マウス223などにより押下する操作をおこなうと、ユーザが入力した移行可否フラグ903の情報がメインフレームデータベース構成情報テーブル210の移行可否フラグ305に格納される。   In the migration permission / prohibition flag setting screen 900, as shown in FIG. 10, the record identification No. 901 and the record name 902 of each record acquired from the mainframe database configuration information table 210 are displayed, the user confirms the corresponding record, and the corresponding record It is possible to input ON / OFF of the migration propriety flag 903. When the user performs an operation of pressing the setting button 904 with the mouse 223 or the like, the information of the migration possibility flag 903 input by the user is stored in the migration possibility flag 305 of the mainframe database configuration information table 210.

次に、構成情報管理変換サーバ106は、テーブル定義リンク情報生成プログラム207を起動し、実行することにより、構造型データベース102のデータベース構造を変換し、関係型データベース104へ定義情報を反映するための情報を、テーブル定義リンク情報テーブル212に格納する(S703)。テーブル定義リンク情報生成プログラム207は、構造型データベース102の各レコード定義とそれに属する各データ定義から、関係型データベース104用のテーブル定義およびデータ定義を作成して、それぞれをリンクさせた状態で、図6に示したテーブル定義リンク情報テーブル212に格納する。   Next, the configuration information management conversion server 106 starts and executes the table definition link information generation program 207 to convert the database structure of the structural database 102 and reflect the definition information to the relational database 104. Information is stored in the table definition link information table 212 (S703). The table definition link information generation program 207 creates a table definition and a data definition for the relational type database 104 from each record definition of the structural type database 102 and each data definition belonging to the record definition, and links them with each other. 6 is stored in the table definition link information table 212 shown in FIG.

次に、構成情報管理変換サーバ106は、ユーザ端末202にテーブル定義確認・編集画面1000を表示し、ユーザにテーブル名称、フィールド名称の確認と、必要ならユーザによる変更をおこなう(S704)。テーブル定義リンク情報生成プログラム207により設定されるテーブル名称は、構造型データベースの識別Noもしくは、プログラムにより自動で設定された名称となるため、テーブル定義確認・編集画面1000に表示して、変更入力ができるようにして、ユーザが識別しやすい名称を設定することも可能とする。テーブル定義確認・編集画面1000は、図11に示すように、テーブル定義リンク情報テーブル212に格納されている構造型データベース102のレコード識別情報であるレコード識別No1001およびレコード名1002を文字列の編集ができない状態で表示し、それにリンクされるテーブル名称1003およびフィールド名称1004を文字列の編集が可能な状態で表示する。ユーザが、テーブル名称1003およびフィールド名称1004を確認し、データベースの命名規則にそった任意の文字列に変更し、決定ボタン1005を、マウス223などにより押下する操作をすると、テーブル定義リンク情報テーブル212の該当データが更新される。   Next, the configuration information management conversion server 106 displays the table definition confirmation / edit screen 1000 on the user terminal 202, confirms the table name and field name to the user, and changes the user if necessary (S704). The table name set by the table definition link information generation program 207 is the identification number of the structural database or the name automatically set by the program. In this way, it is possible to set a name that can be easily identified by the user. As shown in FIG. 11, the table definition confirmation / edit screen 1000 is used to edit a character string of record identification No. 1001 and record name 1002 that are record identification information of the structural database 102 stored in the table definition link information table 212. The table name 1003 and field name 1004 linked to it are displayed in a state where the character string can be edited. When the user confirms the table name 1003 and the field name 1004, changes it to an arbitrary character string according to the database naming rules, and presses the enter button 1005 with the mouse 223 or the like, the table definition link information table 212 is displayed. The corresponding data of is updated.

そして、構成情報管理変換サーバ106は、データベース変換プログラム208を起動し、実行することにより、テーブル定義リンク情報テーブル212に格納された情報に基づき、構造型データベース102のデータベースに等価な関係型データベース104のデータベースのテーブルが作成される(S705)。また、データベース変換プログラム208がスクリプトを作成し、そのスクリプトを実行することにより、構造型データベース102から関係型データベース104のデータベース移行がおこなわれるようにしてもよい。   Then, the configuration information management conversion server 106 starts and executes the database conversion program 208, and thereby the relational database 104 equivalent to the database of the structural database 102 based on the information stored in the table definition link information table 212. The database table is created (S705). Further, the database conversion program 208 may create a script and execute the script, so that the database migration from the structural database 102 to the relational database 104 may be performed.

次に、図9を用いて、構造化データベースが更新されたり、移行に関する設定が変更されたときの処理について説明する。
図9に示されるフローチャートは、構造型データベース102から関係型データベース104の初回のデータベース移行が終わった後、構造型データベースに変更が生じた場合やメインフレームデータベース構成情報テーブル210の移行可否フラグ305のフラグをOFF(移行しない)からON(移行する)に変更した場合に実行される処理を示している。
Next, the processing when the structured database is updated or the settings related to migration are changed will be described with reference to FIG.
The flowchart shown in FIG. 9 shows the case where the structural database is changed after the initial database migration from the structural database 102 to the relational database 104, or the migration permission flag 305 of the mainframe database configuration information table 210 is changed. It shows processing executed when the flag is changed from OFF (not shifted) to ON (transferred).

先ず、構造型データベース102が変更された場合、構成情報管理変換サーバ106は、構成再抽出プログラム209を起動し、実行することにより、メインフレームデータベース構成情報テーブル210、メインフレームレコード構成情報テーブル211がアップデートされた個所を抽出する(S801)。   First, when the structural database 102 is changed, the configuration information management conversion server 106 activates and executes the configuration re-extraction program 209, whereby the mainframe database configuration information table 210 and the mainframe record configuration information table 211 are obtained. The updated location is extracted (S801).

また、メインフレームデータベース構成情報テーブル210の移行可否フラグ405のフラグをOFFからONに変更した場合もS801と同様に、メインフレームデータベース構成情報テーブル210、メインフレームレコード構成情報テーブル211の必要な個所を抽出する(S802)。   Further, when the flag of the migration permission flag 405 of the mainframe database configuration information table 210 is changed from OFF to ON, the necessary parts of the mainframe database configuration information table 210 and the mainframe record configuration information table 211 are changed as in S801. Extract (S802).

次に、構成情報管理変換サーバ106は、テーブル定義リンク情報生成プログラム207を起動し、実行することにより、S801とS802で抽出された個所のデータベース構造を変換し、関係型データベース104へ定義情報を反映するための情報を、図7に示された更新分テーブル定義リンク情報テーブル213に格納する(S803)。   Next, the configuration information management conversion server 106 starts and executes the table definition link information generation program 207, thereby converting the database structure of the location extracted in S801 and S802, and transferring the definition information to the relational database 104. Information to be reflected is stored in the update table definition link information table 213 shown in FIG. 7 (S803).

次に、構成情報管理変換サーバ106は、ユーザ端末202にテーブル定義確認・編集画面1000を表示し、ユーザにテーブル名称、フィールド名称の確認と、必要ならユーザによる変更をおこなう(S804)。これは、S704と同様である。   Next, the configuration information management conversion server 106 displays the table definition confirmation / edit screen 1000 on the user terminal 202, confirms the table name and field name to the user, and changes the user if necessary (S804). This is the same as S704.

そして、構成情報管理変換サーバ106は、データベース変換プログラム208を起動し、実行することにより、更新分テーブル定義リンク情報テーブル213に格納された情報に基づき、構造型データベース102のデータベースに等価な関係型データベース104のデータベースのテーブルが作成される(S705)。これは、S705と同様である。   Then, the configuration information management conversion server 106 starts up and executes the database conversion program 208, and based on the information stored in the update table definition link information table 213, the relational type equivalent to the database of the structural type database 102 A database table of the database 104 is created (S705). This is the same as S705.

100…データマイグレーションシステム、101…メインフレーム、102…構造型データベース、103…データベースサーバ、104…関係型データベース、105…アプリケーションサーバ群、106…構成情報管理変換サーバ、107…ネットワーク   DESCRIPTION OF SYMBOLS 100 ... Data migration system, 101 ... Main frame, 102 ... Structural type database, 103 ... Database server, 104 ... Relational type database, 105 ... Application server group, 106 ... Configuration information management conversion server, 107 ... Network

Claims (5)

構造型データベースのデータ構造とデータを読み込む手段と、
構造型データベースのデータ構造とデータを、それと等価な関係型データベースのデータ構造とデータに変換する手段とを有するデータマイグレーションシステム。
Means for reading the data structure and data of a structured database;
A data migration system comprising a data structure of a structured database and a means for converting the data structure and data of a relational database equivalent thereto into data.
構造型データベースのレコード、データ項目と、関係型データベースのテーブル、フィールドとを関係付けて保持する手段を有することを特徴とする請求項1記載のデータマイグレーションシステム。   2. The data migration system according to claim 1, further comprising means for associating and holding records and data items of the structural database and tables and fields of the relational database. 構造型データベースのある時点からある時点の更新分を取得し、その更新分の構造型データベースのデータ構造とデータを、それと等価な関係型データベースのデータ構造とデータに変換する手段とを有する請求項1記載のデータマイグレーションシステム。   And a means for obtaining an update of the structural database from a certain point in time and converting the data structure and data of the updated structural database into a data structure and data of a relational database equivalent thereto. 1. The data migration system according to 1. 構造型データベースのレコードに対して、データ移行の対象とするか否かを指定する手段を有し、データ移行の対象とされたレコードを移行の対象とする請求項1記載のデータマイグレーションシステム。   2. The data migration system according to claim 1, further comprising means for designating whether or not to make a data migration target for a record in a structured database, wherein the record to be migrated is a migration target. 移行の対象となる関係型データベースのテーブル名称、フィールド名称を表示する手段と、
前記テーブル名称、前記フィールド名称を変更する手段とを有することを特徴とする請求項2記載のデータマイグレーションシステム。
Means for displaying the table name and field name of the relational database to be migrated;
The data migration system according to claim 2, further comprising means for changing the table name and the field name.
JP2017000597A 2017-01-05 2017-01-05 Data migration system Pending JP2018109898A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017000597A JP2018109898A (en) 2017-01-05 2017-01-05 Data migration system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017000597A JP2018109898A (en) 2017-01-05 2017-01-05 Data migration system

Publications (1)

Publication Number Publication Date
JP2018109898A true JP2018109898A (en) 2018-07-12

Family

ID=62844461

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017000597A Pending JP2018109898A (en) 2017-01-05 2017-01-05 Data migration system

Country Status (1)

Country Link
JP (1) JP2018109898A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102125010B1 (en) 2020-03-17 2020-06-19 김명훈 System and method for analyzing database migration
CN112783856A (en) * 2019-11-07 2021-05-11 北京沃东天骏信息技术有限公司 Data migration method and device
CN115237887A (en) * 2022-07-29 2022-10-25 中国银行股份有限公司 Data migration method and device and computer readable storage medium
CN117194385A (en) * 2023-10-12 2023-12-08 中国船舶集团有限公司第七一三研究所 A data migration method between different types of relational databases

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112783856A (en) * 2019-11-07 2021-05-11 北京沃东天骏信息技术有限公司 Data migration method and device
KR102125010B1 (en) 2020-03-17 2020-06-19 김명훈 System and method for analyzing database migration
CN115237887A (en) * 2022-07-29 2022-10-25 中国银行股份有限公司 Data migration method and device and computer readable storage medium
CN117194385A (en) * 2023-10-12 2023-12-08 中国船舶集团有限公司第七一三研究所 A data migration method between different types of relational databases

Similar Documents

Publication Publication Date Title
EP3113043B1 (en) Method, device and host for updating metadata stored in columns in distributed file system
US10180992B2 (en) Atomic updating of graph database index structures
CN112036736A (en) Workflow creating method and device
CN102682126B (en) The access method of a kind of form data and device
CN111324610A (en) Data synchronization method and device
US8805777B2 (en) Data record collapse and split functionality
US20170255708A1 (en) Index structures for graph databases
US20140317563A1 (en) Generate field mapping
JP2022545303A (en) Generation of software artifacts from conceptual data models
CA2956207C (en) Program code comparison and reporting
CN105900093A (en) A method for updating a data table of a KeyValue database and a device for updating table data
CN115454971A (en) Data migration method, device, electronic device and storage medium
JP2018109898A (en) Data migration system
EP2904520B1 (en) Reference data segmentation from single to multiple tables
CN114968725A (en) Task dependency relationship correction method and device, computer equipment and storage medium
CN106503186A (en) A kind of data managing method, client and system
JP6700554B2 (en) Distributed processing management method, distributed processing management program, and distributed processing management device
US20240086179A1 (en) Software component update system, and software component update method
US20180349443A1 (en) Edge store compression in graph databases
CN111651531A (en) Data import method, device, device and computer storage medium
CN103809915B (en) The reading/writing method of a kind of disk file and device
CN109977104B (en) Data management method and device
US20230068819A1 (en) Environment construction support device and environment construction support method
JP2020113210A (en) Information processor, method for processing information, and program
CN115357559A (en) Data migration method, device, computer equipment and storage medium