WO2009116288A1 - データベースシステム移行方法 - Google Patents

データベースシステム移行方法 Download PDF

Info

Publication number
WO2009116288A1
WO2009116288A1 PCT/JP2009/001217 JP2009001217W WO2009116288A1 WO 2009116288 A1 WO2009116288 A1 WO 2009116288A1 JP 2009001217 W JP2009001217 W JP 2009001217W WO 2009116288 A1 WO2009116288 A1 WO 2009116288A1
Authority
WO
WIPO (PCT)
Prior art keywords
execution result
database
database system
file
sql statement
Prior art date
Application number
PCT/JP2009/001217
Other languages
English (en)
French (fr)
Inventor
木村仁
浜松毅
皆越幸治
Original Assignee
株式会社インフォース
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 株式会社インフォース filed Critical 株式会社インフォース
Publication of WO2009116288A1 publication Critical patent/WO2009116288A1/ja

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • G06F16/214Database migration support
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/258Data format conversion from or to a database

Definitions

  • the present invention relates to processing accompanying migration of a database system.
  • the SQL sentence that can be used in the database differs depending on the database system. Therefore, the database connection character string and database control character string (hereinafter referred to as “database connection / control character string (DCCS)”) including SQL statements such as modules and stored procedures included in the data source database system are transferred to the data transfer destination. Some database systems cannot be used directly. On the other hand, in the system of Patent Document 1, the database system is smoothly shifted by linking the GUI technology and the SQL sentence automatic conversion process.
  • Patent Document 1 In order to realize the system of Patent Document 1, it is necessary to enable automatic SQL sentence conversion processing. SQL sentence automatic conversion processing as exemplified in Patent Document 1 is practically impossible without appropriate preprocessing. However, Patent Document 1 does not describe “appropriate pretreatment” as described above. Also, there is generally no method established as “appropriate preprocessing”.
  • a company may develop and sell two types of database systems: a database system that assumes a stand-alone system and a client / server database system.
  • the company may provide a wizard or the like for helping transition from one database system to the other database system.
  • a complete migration process cannot be achieved unless manual correction is made according to the error report of the migration process.
  • an object of the present invention is to provide a method for appropriate preprocessing for database system migration.
  • At least a first DCCS having user data having a plurality of records, a first database engine, a database connection character string including a first SQL statement for the first database engine, and a database control character string.
  • a second database having at least a first database system comprising the user data, a second database engine, a database connection character string including a second SQL statement for the second database engine, and a second DCCS having a database control character string
  • a database system migration method for migrating to a system A conversion table creation step of analyzing an operational state of the first database system and creating a conversion table for converting the first DCCS into the second DCCS;
  • a database system migration method comprising: a migration step of migrating the first database system to the second database system using the conversion table.
  • a runtime SQL statement in the migration source database system is acquired, and a conversion table is created while verifying virtually all of the acquired SQL statements. Therefore, a highly reliable conversion table can be obtained. Further, by using the conversion table, the database system can be reliably transferred.
  • the migration source database system is Microsoft Access
  • the migration destination database system is also Microsoft SQL Server.
  • Microsoft Access has a migration tool called “Upsizing Wizard”. This migration tool is used to migrate a database system configured with Access to SQL Server.
  • the Access database file (mdb file) is divided into an Access project file (adp file) and a file for SQL Server.
  • the mdb file stores DCCS such as stored procedures and modules in addition to user data.
  • the Access project file includes only a module or the like for realizing a user interface when the mdb file is executed by Access.
  • the database migration method according to the present embodiment is mainly composed of two phases.
  • the first phase is an analysis phase (conversion table creation phase) in which the conversion source database system is analyzed to create a conversion table (S101).
  • the subsequent phase is a migration phase in which the database system is migrated using the created conversion table (S102).
  • an SQL sentence issued to an Access database engine when an mdb file as a migration source is actually used is extracted (S201).
  • the mdb file as the migration source is converted into a predetermined format to obtain a converted file (S301).
  • the predetermined format is a format that allows the contents of the DCCS to be confirmed and changed. In this embodiment, it is a text file format.
  • the extraction code is inserted into all the SQL statements included in the converted file, and after the modified file is generated (“None” in S302), reverse format conversion is performed on the modified file.
  • An intermediate file is generated (S304). This reverse format conversion is the reverse work of the format conversion of S301.
  • the intermediate file has the same format as the mdb file that is the migration source, but the extraction code is inserted into the portion related to the execution of the SQL statement included in the mdb file. It has become a thing.
  • SQL statements are extracted when the mdb file is executed using the intermediate file (S305).
  • An example extracted in this way is shown in FIG. In FIG. 4, what is described in the bottom line is the runtime SQL statement of the mdb file.
  • the runtime SQL sentence is extracted (S201)
  • the extracted SQL sentence is converted according to the SQL sentence conversion (SQLSC) table.
  • SQLSC SQL sentence conversion
  • a post-conversion SQL sentence is obtained (S202).
  • the SQLSC table is, for example, as shown in FIG.
  • the converted SQL sentence is, for example, as described in the bottom line of FIG.
  • the runtime SQL statement extracted in step S201 is executed by the Access database engine. Thereby, the first execution result is obtained.
  • the post-conversion SQL sentence obtained in step S202 is executed by the SQL Server database engine. Thereby, the second execution result is obtained (S203).
  • the first execution result and the second execution result obtained in this manner are both record sets including a plurality of records.
  • the syntax of the SQL statement is composed of four elements: an output field, a target table, a conditional statement, and a data order. Therefore, the number of records, the number of data fields, the data values of all fields of the first record, the data values of all fields of the last record, and all the fields of one specific record between the first record and the last record. If only 5 points of the data value are compared to confirm that they match between the first execution result and the second execution result, it is confirmed that the four elements of the above-mentioned SQL statement are the same. can do. In this case, without comparing all the data values in the recordset,
  • step S204 If there is data in which the first execution result and the second execution result do not match as a result of the comparison in step S204, a conversion rule that matches the first execution result and the second execution result is specified.
  • the SQLSC table is updated according to the contents (S205). Steps S202 to S204 are repeated using the updated SQLSC table until the determination results in step S204 match.
  • step S205 the result of comparison of execution results in step 204 is stored, and a mismatch result table is stored for data that does not match (S701). .
  • the mismatch result table stores a target SQL statement and a set of execution results thereby. The presence of such a mismatch result table makes it easier to identify problems.
  • a method for eliminating the mismatch is specified (S702). Information obtained by making the specified method into a rule is added to the SQLSC table (see FIG. 5). In the present embodiment, the method for resolving the inconsistency is manually performed.
  • step S204 it is possible to confirm that all the execution results are the same in step S204. In this way, when it is confirmed that the first and second execution results all match, the SQLSC table at that time can be used as the conversion table in the migration phase (S102).
  • the migration source database system is Access
  • the migration destination database system is SQL Server.
  • pre-processing as shown in FIG. 9 is performed before the upsizing tool is executed on the mdb file. This eliminates the occurrence of database migration errors during conversion by the upsizing tool.
  • the mdb file 901 that is the migration source is exported to a text file 902.
  • the converted text file 904 is imported into the mdb file 905.
  • a file is created in which the SQL statement is an mdb file but the SQL statement included is that of the SQL Server.
  • the upsizing tool is executed on the mdb file 905 after the import.
  • an appropriate adp file 906 and a file for the SQL Server are created.
  • the present invention has been described by taking a specific database system as an example.
  • the present invention is not limited to the above-described embodiment. It can also be applied to migration between other database systems.

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

【課題】データベースシステム間の移行のための適切な前処理にかかる方法を提供すること。 【解決手段】第1データベースシステムの運用状態を分析して変換用テーブルを作成する(S101)。この変換用テーブルは、第1のデータベースシステムの第1データベースエンジン用の第1SQL文を含む接続文字列とデータベース制御文字列とを有する第1データベース接続・制御文字列を、第2データベースシステムの第2データベースエンジン用の第2SQL文を含む接続文字列とデータベース制御文字列とを有する第2データベース接続・制御文字列に変換するためのものである。変換用テーブルを作成した後、それを利用して第1データベースシステムの第2データベースシステムへの移行を行う(S102)。

Description

データベースシステム移行方法
 本発明は、データベースシステムの移行に伴う処理に関する。
 事業規模の変化に応じて、データベースシステムを移行したい場合がある。例えば、企業の事業規模の拡大に伴って、スタンドアローンに対応したデータベースシステムからクライアント/サーバ型のデータベースシステムに変更する場合や、オープンソースのデータベースシステムから商用データベースシステムに変更する場合などである。かかるデータベースシステムの移行要求に応えることを目的とした技術としては、例えば特許文献1に開示されたものがある。
 特許文献1の0006段落を参照すると、データベースに使用可能なSQL文はデータベースシステム毎によって異なる。従って、移行元のデータベースシステムに含まれていたモジュールやストアードプロシージャのようなSQL文を含むデータベース接続文字列とデータベース制御文字列(以下、「データベース接続・制御文字列(DCCS)」)を移行先のデータベースシステムで直接使用することができないことがある。これに対して、特許文献1のシステムにおいては、GUI技術とSQL文自動変換処理とを連携させることにより、データベースシステムをスムーズに移行させることとしている。
特開2002-351710号公報
 特許文献1のシステムを実現するためにはSQL文自動変換処理を可能としなければならない。特許文献1に例示されているようなSQL文自動変換処理は適切な前処理なくしては現実的には不可能である。しかしながら、特許文献1には上記のような「適切な前処理」についての記載はない。また、一般的に「適切な前処理」として確立された手法もない。
 例えば、ある企業が、スタンドアローンを想定したデータベースシステムとクライアント/サーバ型のデータベースシステムの2タイプのデータベースシステムを開発・販売することがある。この場合、一方のデータべースシステムから他方のデータベースシステムへの移行を助けるウィザードなどが、当該企業によって提供されている場合もある。しかし、その場合でも、当該ウィザードによる移行処理を行った後に、移行処理のエラーレポートに従って手動で修正を加えなければ完全な移行処理は成し得ない。これは上記のような「適切な前処理」が確立されていない証左である。換言すれば、「適切な前処理」が提供されれば既存のデータベースシステムの自動変換処理も機能することとなる。
 そこで、本発明は、データベースシステムの移行のための適切な前処理にかかる方法を提供することを目的とする。
 本発明によれば、複数のレコードを有するユーザデータと、第1データベースエンジンと、該第1データベースエンジン用の第1SQL文を含むデータベース接続文字列とデータベース制御文字列とを有する第1DCCSとを少なくとも有する第1データベースシステムを、前記ユーザデータと、第2データベースエンジンと、該第2データベースエンジン用の第2SQL文を含むデータベース接続文字列とデータベース制御文字列を有する第2DCCSとを少なくとも有する第2データベースシステムに移行するデータベースシステム移行方法であって、
 前記第1データベースシステムの運用状態を分析して前記第1DCCSを前記第2DCCSに変換するための変換用テーブルを作成する変換用テーブル作成ステップと、
 前記変換用テーブルを利用して前記第1データベースシステムを前記第2データベースシステムに移行する移行ステップと
を備えるデータベースシステム移行方法が得られる。
 本発明によれば、移行元のデータベースシステムにおけるランタイムのSQL文を取得し、事実上、取得したSQL文のすべてに対して検証を行いつつ変換用テーブルを作成している。従って、信頼性の高い変換用テーブルを得ることができる。また、その変換用テーブルを用いることにより、データベースシステムの移行を確実に行うことができる。
 なお、上述した本発明によるデータベースシステム移行方法又は変換用テーブル作成方法は、その一部をプログラムに実装することができる。
本発明の実施の形態によるデータベースシステム移行方法を示すフローチャートである。 図1のS101の詳細を示すフローチャートである。 図2のS201の詳細を示すフローチャートである。 図2のS201において抽出されるSQL文を含むテーブルである。 図2のS202にて用いられるSQL文変換テーブルを示す図である。 図2のS202にて変換された後のSQL文を含むテーブルである。 図2のS205の詳細を示すフローチャートである。 図7のS701において保存される不一致結果テーブルの例を示す図である。 図1のS102の処理を例示する図である。
符号の説明
 901   mdbファイル
 902   テキストファイル
 903   変換用テーブル
 904   テキストファイル
 905   mdbファイル
 906   adpファイル
 以下、本発明の実施の形態によるデータベース移行方法を図面を参照しながら詳細に説明する。なお、以下の説明においては、移行元のデータベースシステムはマイクロソフト社のAccessであり、移行先のデータベースシステムが同じくマイクロソフト社のSQL Serverである。マイクロソフト社のAccessは、「アップサイジングウィザード」という移行ツールが備えられている。この移行ツールは、Accessで構成されたデータベースシステムをSQL Serverに移行するために用いられる。このアップサイジングウィザードでは、Accessデータベースファイル(mdbファイル)をAccessプロジェクトファイル(adpファイル)とSQL Server用のファイルとに分ける。なお、mdbファイルには、ユーザデータに加えて、ストアードプロシージャやモジュール等のDCCSも格納されている。一方、Accessプロジェクトファイルには、mdbファイルがAccessによって実行されていた際のユーザインタフェースを実現するためのモジュール等だけが含まれる。ユーザデータやストアードプロシージャはSQL Server用のファイルに格納されることになる。ここで留意すべきは、Accessのデータベースエンジン(Jetエンジン)とSQL Serverのデータベースエンジンでは、解釈できるSQL文が異なるという点である。従って、アップサイジングウィザードを実行した際に、変換エラーが生じうる。変換エラーは、変換の際に出力されるレポートを参照して手動で修正されなければならない。これに対して、以下に説明する実施の形態においては、アップサイジングウィザードにより変換を実行する前に、mdbファイルを分析して変換用テーブルを得る。続いて、この変換用テーブルに基づいてmdbファイル内に含まれるAccess用のSQL文を含むDCCSをSQL Server用のSQL文を含むDCCSに予め変換する。これにより、アップサイジングウィザード実行時に変換エラーを生じないようにしている。即ち、図1に示されるように、本実施の形態によるデータベース移行方法は、大きく2つのフェーズにより構成されている。最初のフェーズは、移行元となるデータベースシステムを分析して変換用テーブルを作成する分析フェーズ(変換用テーブル作成フェーズ)である(S101)。続くフェーズは、作成された変換用テーブルを用いてデータベースシステムの移行を行う移行フェーズである(S102)。
 図2に示されるように、分析フェーズでは、まず、移行元となるmdbファイルを実際に運用した際にAccessのデータベースエンジンに対して発行されるSQL文の抽出が行われる(S201)。本実施の形態においては、より具体的には、移行元となるmdbファイルを所定のフォーマットに変換して変換後ファイルを得る(S301)。ここで、所定のフォーマットは、DCCSの内容を確認し且つ変更することを可能とするフォーマットである。本実施の形態においてはテキストファイル形式である。
 次いで、変換後ファイルの内容を確認する。更に、Access用のSQL文の実行に関連のある部分が特定される(S302)。その特定された部分に対して抽出用コードが挿入される(S303)。この抽出用コードは、mdbファイルが実際に運用された際に、対応するSQL文を切り出して出力するためのものである。本実施の形態においてはVBAにより記述されている。
 更に、変換後ファイルに含まれるすべてのSQL文に対して抽出用コードが挿入され、変更後ファイルを生成した後(S302において「なし」)、変更後ファイルに対して、逆フォーマット変換を行って中間ファイルを生成する(S304)。この逆フォーマット変換は、S301のフォーマット変換の逆の作業となる。このことから理解されるように、中間ファイルは、移行元となるmdbファイルと同じフォーマットであるが、mdbファイルに含まれるSQL文の実行に関連のある部分には抽出用コードが挿入されてなるものとなっている。
 中間ファイルを生成した後、その中間ファイルを用いてmdbファイルの実行時におけるSQL文の抽出を行う(S305)。このようにして抽出された例を図4に示す。図4において一番下の行に記載されているものがmdbファイルのランタイムSQL文である。
 図2に示されるように、ランタイムSQL文が抽出されると(S201)、次いで、SQL文変換(SQLSC)テーブルに従って、抽出したSQL文の変換を行う。これにより、変換後SQL文を得る(S202)。ここで、SQLSCテーブルは、例えば、図5に示されるようなものである。変換後のSQL文は例えば図6の最下行に記載されたようなものとなる。
 この時点でのSQLSCテーブルがmdbファイルに含まれるSQL文のすべてに適切に対応しているのであれば、アップサイジングウィザードによる移行処理でも変換エラーのでない状態となる。それを調べるため、まず、ステップS201において抽出したランタイムSQL文をAccessのデータベースエンジンにて実行する。これにより第1実行結果を得る。続いてステップS202で得られた変換後SQL文をSQL Serverのデータベースエンジンにて実行する。これにより、第2実行結果を得る(S203)。このようにして得られた第1実行結果及び第2実行結果は、いずれも複数のレコードからなるレコードセットである。
 次いで、ステップS203において得られた第1実行結果及び第2実行結果の対比を行うことにより、両者が一致しているか否かを判定する(S204)。ここで、SQL文の構文は、出力フィールド、対象元テーブル、条件文及びデータ順序の4つの要素で構成されている。従って、レコード数、データフィールド数、第1レコードの全フィールドのデータ値、最終レコードの全フィールドのデータ値、及び、前記第1レコードと前記最終レコードの間の特定の一のレコードの全フィールドのデータ値の5点についてのみ対比を行うことにより、それらが第1実行結果及び第2実行結果間で一致していることを確認できれば、上述したSQL文の4つの要素が同一であることを確認することができる。この場合、レコードセットの全データ値について対比せずとも、
 ステップS204における対比の結果、第1実行結果及び第2実行結果が一致しなかったデータがあった場合には、第1実行結果及び第2実行結果が一致するような変換規則を特定する。その内容に応じてSQLSCテーブルの更新を行う(S205)。更新されたSQLSCテーブルを用いて、ステップS204における判定結果が一致するまで、ステップS202~S204を繰り返す。
 図7に示されるように、ステップS205の処理に関し、より具体的には、まず、ステップ204において実行結果の対比を行った結果、一致しなかったデータについて、不一致結果テーブルを保存する(S701)。この不一致結果テーブルは、例えば図8に示されるように、対象となっているSQL文や、それによる実行結果のセットが格納するものである。このような不一致結果テーブルがあることにより、問題点の特定がし易くなる。この不一致結果テーブルを検討して、不一致を解消する手法を特定する(S702)。特定した手法をルール化して得られる情報をSQLSCテーブル(図5参照)に追記する。なお、本実施の形態においては、不一致解消の手法の特定は手動で行っている。このようにして問題点の特定と、その問題点を解消するためのSQL文の変換テーブルの更新を繰り返して行う。これにより、いずれはステップS204において、すべての実行結果について同一であることを確認できることとなる。このようにして、第1及び第2の実行結果がすべて一致したことを確認できた場合、その時点におけるSQLSCテーブルを移行フェーズにおいて変換用テーブルとして用いることができる(S102)。
 上述したように、本実施の形態においては、移行元のデータベースシステムがAccessであり、移行先のデータベースシステムがSQL Serverである。移行フェーズ(S102)においては、mdbファイルに対してアップサイジングツールを実行する前に、図9に示されるような前処理を施す。これにより、アップサイジングツールによる変換時において、データベースの移行エラー発生をなくすることができる。
 詳しくは、図9に示されるように、まずは、移行元となるmdbファイル901をテキストファイル902にエクスポートする。エクスポートされたテキストファイル902を変換用テーブル(分析フェーズにおいて作成されたSQLSCテーブル)903とDAO=>ADO変換テーブルにより変換する。その変換されたテキストファイル904をmdbファイル905にインポートする。これにより、外形上はmdbファイルであるが、含まれているSQL文はSQL Serverのものであるといったファイルが作成される。このインポート後のmdbファイル905を対象として、アップサイジングツールを実行する。これにより、適切なadpファイル906及びSQL Server用のファイルの作成が行われる。
 以上、本発明について、具体的なデータベースシステムを例に掲げて説明してきたが、本発明は上述した実施の形態に限定されるものではない。他のデータベースシステム間の移行にも適用可能である。

Claims (7)

  1.  複数のレコードを有するユーザデータと、第1データベースエンジンと、該第1データベースエンジン用の第1SQL文を含むデータベース接続文字列とデータベース制御文字列とを有する第1データベース接続・制御文字列(DCCS)とを少なくとも有する第1データベースシステムを、前記ユーザデータと、第2データベースエンジンと、該第2データベースエンジン用の第2SQL文を含むデータベース接続文字列とデータベース制御文字列を有する第2DCCSとを少なくとも有する第2データベースシステムに移行するデータベースシステム移行方法であって、
     前記第1データベースシステムの運用状態を分析して前記第1DCCSを前記第2DCCSに変換するための変換用テーブルを作成する変換用テーブル作成ステップと、
     前記変換用テーブルを利用して前記第1データベースシステムを前記第2データベースシステムに移行する移行ステップと
    を備えるデータベースシステム移行方法。
  2.  請求項1記載のデータベースシステム移行方法において、
     前記変換用テーブル作成ステップは、
     前記第1データベースシステムのランタイム時の前記第1SQL文を抽出する抽出ステップと、
     SQL文変換(SQLSC)テーブルに従い、抽出した前記第1SQL文を変換して変換後SQL文を得るSQL文変換(SQLSC)ステップと、
     前記第1データベースエンジンによる前記第1SQL文の実行結果を第1実行結果として取得する一方で、前記第2データベースエンジンによる前記変換後SQL文の実行結果を第2実行結果として取得する取得ステップと、
     取得した前記第1実行結果と前記第2実行結果を比較して一致しているか否かを判定する判定ステップと、
     該判定ステップの結果、前記第1実行結果と前記第2実行結果とが不一致であった場合、当該不一致を解消し得るように前記SQLSCテーブルを更新して新たな前記SQLSCテーブルとするテーブル更新ステップと
    を備えており、前記判定ステップの結果、前記第1実行結果と前記第2実行結果とが一致するまで、前記SQLSCステップ、前記判定ステップ及び前記テーブル更新ステップを繰り返し行い、前記判定ステップの結果、前記第1実行結果と前記第2実行結果とが一致した時点における前記SQLSCテーブルを前記変換用テーブルとする、データベースシステム移行方法。
  3.  請求項2記載のデータベースシステム移行方法において、
     前記抽出ステップは、
     前記DCCSを含むファイルのフォーマットを変換して変換後ファイルを得るフォーマット変換ステップであって、前記フォーマットは、前記DCCSの内容を確認し且つ変更することを可能とするものであるフォーマット変換ステップと、
     前記変換後ファイルの内容を確認して前記第1SQL文の実行に関連のある部分を特定し、実行された際に前記第1SQL文を抽出する抽出用コードを前記特定した部分に対して挿入するように、前記変換後ファイルを変更して変更後ファイルを生成する挿入ステップと、
     変更後ファイルに対して逆フォーマット変換をして前記ファイルと同一フォーマットを有する中間ファイルを生成する逆フォーマット変換ステップと、
     前記中間ファイルを運用して前記第1SQL文を抽出する運用ステップと
    を備える、データベースシステム移行方法。
  4.  請求項2又は請求項3記載のデータベースシステム移行方法において、
     前記第1実行結果及び前記第2実行結果は、それぞれレコードセットの形で得られるものであり、
     前記判定ステップは、レコード数、データフィールド数、第1レコードの全フィールドのデータ値、最終レコードの全フィールドのデータ値、及び、前記第1レコードと前記最終レコードの間の特定の一のレコードの全フィールドのデータ値の5点についてのみ、前記第1実行結果と前記第2実行結果の比較を行う
    データベースシステム移行方法。
  5.  請求項4記載のデータベースシステム移行方法において、
     前記判定ステップは、
     前記第1実行結果と前記第2実行結果とが不一致であった場合、不一致にかかる前記第1SQL文と不一致となった前記第1実行結果及び前記第2実行結果を不一致結果テーブルとして保存する保存ステップと、
     該不一致結果テーブルに基づいて第1実行結果と前記第2実行結果を一致させる手法を特定する特定ステップと、
     特定した手法をルール化して得られる情報を前記SQLSCテーブルに追記して、前記新たなSQLSCテーブルを作成する新テーブル作成ステップと
    を備える、データベースシステム移行方法。
  6.  請求項1乃至請求項5のいずれかに記載のデータベースシステム移行方法であって、前記ユーザデータと前記第1DCCSが一つのファイルに含まれており、当該ファイルを対象とした前記第1データベースシステムの前記第2データベースシステムへの移行を補助するツールが用意されている場合において、
     前記移行ステップは、
     前記ファイルに含まれるすべてのオブジェクトをテキストファイルにエクスポートするエクスポートステップと、
     前記変換用テーブルを用いて、エクスポートされた前記テキストファイルに含まれる前記第1SQL文を前記第2SQL文に変換するファイル変換ステップと、
     変換されたテキストファイルを前記ファイルにインポートするインポートステップと、
     前記ツールを用いて前記インポート後のファイルからの移行を行うツール使用ステップと
    を備えている、データベースシステム移行方法。
  7.  第1データベースシステムから前記第2データベースシステムへの移行に用いられる変換用テーブルを作成する変換用テーブル作成方法であって、
     前記第1データベースシステムは、複数のレコードを有するユーザデータと、第1データベースエンジンと、該第1データベースエンジン用の第1SQL文を含むデータベース接続文字列とデータベース制御文字列とを有する第1データベース接続・制御文字列(DCCS)とを少なくとも有するものであり、
     前記第2データベースシステムは、前記ユーザデータと、第2データベースエンジンと、該第2データベースエンジン用の第2SQL文を含むデータベース接続文字列とデータベース制御文字列を有する第2DCCSとを少なくとも有するものであり、
     前記変換用テーブルは、前記第1DCCSを前記第2DCCSに変換するためのものである、変換用テーブル作成方法において、
     前記第1データベースシステムのランタイム時の前記第1SQL文を抽出する抽出ステップと、
     SQL文変換(SQLSC)テーブルに従い、抽出した前記第1SQL文を変換して変換後SQL文を得るSQL文変換(SQLSC)ステップと、
     前記第1データベースエンジンによる前記第1SQL文の実行結果を第1実行結果として取得する一方で、前記第2データベースエンジンによる前記変換後SQL文の実行結果を第2実行結果として取得する取得ステップと、
     取得した前記第1実行結果と前記第2実行結果を比較して一致しているか否かを判定する判定ステップと、
     該判定ステップの結果、前記第1実行結果と前記第2実行結果とが不一致であった場合、当該不一致を解消し得るように前記SQLSCテーブルを更新して新たな前記SQLSCテーブルとするテーブル更新ステップと
    を備えており、前記判定ステップの結果、前記第1実行結果と前記第2実行結果とが一致するまで、前記SQLSCステップ、前記判定ステップ及び前記テーブル更新ステップを繰り返し行い、前記判定ステップの結果、前記第1実行結果と前記第2実行結果とが一致した時点における前記SQLSCテーブルを前記変換用テーブルとする、変換用テーブル作成方法。
PCT/JP2009/001217 2008-03-19 2009-03-18 データベースシステム移行方法 WO2009116288A1 (ja)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2008070668A JP2009223851A (ja) 2008-03-19 2008-03-19 データベースシステム移行方法
JP2008-070668 2008-03-19

Publications (1)

Publication Number Publication Date
WO2009116288A1 true WO2009116288A1 (ja) 2009-09-24

Family

ID=41090703

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2009/001217 WO2009116288A1 (ja) 2008-03-19 2009-03-18 データベースシステム移行方法

Country Status (2)

Country Link
JP (1) JP2009223851A (ja)
WO (1) WO2009116288A1 (ja)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014523026A (ja) * 2011-06-29 2014-09-08 マイクロソフト コーポレーション 仮想機械移行ツール
CN109284278A (zh) * 2018-08-13 2019-01-29 中国平安人寿保险股份有限公司 基于数据分析技术的计算逻辑迁移方法及终端设备
CN109376142A (zh) * 2018-09-03 2019-02-22 中国平安人寿保险股份有限公司 数据迁移方法及终端设备

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8510274B2 (en) 2011-12-13 2013-08-13 Inforce Co., Ltd. Method for verifying conversion, apparatus and program of the same
KR102230821B1 (ko) * 2018-12-26 2021-03-19 한남대학교 산학협력단 데이터베이스 전환 시스템 및 이를 이용한 데이터베이스 전환 방법
JP7346332B2 (ja) * 2020-03-04 2023-09-19 Qsol株式会社 データベースマイグレーション方法、データベースマイグレーションシステム、及びデータベースマイグレーションプログラム
KR102125010B1 (ko) 2020-03-17 2020-06-19 김명훈 데이터베이스 전환 분석 시스템 및 방법

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
"Dai 69 Kai (Heisei 19 Nen) Proceedings of the National Meeting of Information Processing Society of Japan", vol. 1, 6 March 2007, article KEN'ICHIRO FUJIYAMA: "Database Setsuzokuso ni Okeru SQL Henkan ni yoru DBMS Okikae Shien", pages: 357 - 358 *
KOTARO MAENO: "Taikenteki Access Upsizing Dai 1 Kai", DB MAGAZINE, vol. 17, no. 6, 1 October 2007 (2007-10-01), pages 124 - 132 *
KOTARO MAENO: "Taikenteki Access Upsizing Dai 2 Kai", DB MAGAZINE, vol. 17, no. 7, 1 November 2007 (2007-11-01), pages 152 - 161 *
KOTARO MAENO: "Taikenteki Access Upsizing Dai 3 Kai", DB MAGAZINE, vol. 17, no. 8, 1 December 2007 (2007-12-01), pages 182 - 191 *
KOTARO MAENO: "Taikenteki Access Upsizing Saishukai", DB MAGAZINE, vol. 17, no. 9, 1 January 2008 (2008-01-01), pages 182 - 192 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014523026A (ja) * 2011-06-29 2014-09-08 マイクロソフト コーポレーション 仮想機械移行ツール
US9569259B2 (en) 2011-06-29 2017-02-14 Microsoft Technology Licensing, Llc Virtual machine migration tool
US9858114B2 (en) 2011-06-29 2018-01-02 Microsoft Technology Licensing, Llc Virtual machine migration tool
CN109284278A (zh) * 2018-08-13 2019-01-29 中国平安人寿保险股份有限公司 基于数据分析技术的计算逻辑迁移方法及终端设备
CN109284278B (zh) * 2018-08-13 2023-10-31 中国平安人寿保险股份有限公司 基于数据分析技术的计算逻辑迁移方法及终端设备
CN109376142A (zh) * 2018-09-03 2019-02-22 中国平安人寿保险股份有限公司 数据迁移方法及终端设备
CN109376142B (zh) * 2018-09-03 2023-08-18 中国平安人寿保险股份有限公司 数据迁移方法及终端设备

Also Published As

Publication number Publication date
JP2009223851A (ja) 2009-10-01

Similar Documents

Publication Publication Date Title
WO2009116288A1 (ja) データベースシステム移行方法
US9858270B2 (en) Converting data into natural language form
US8051410B2 (en) Apparatus for migration and conversion of software code from any source platform to any target platform
US7386566B2 (en) External metadata processing
US9043651B2 (en) Systematic failure remediation
US10248409B1 (en) Limiting the effects of source code patches on corresponding native-code patches
EP2799981A1 (en) Method for providing code, code generator and software development environment
US11003635B2 (en) Database scheme for storing generic data
US20100095283A1 (en) Migration Apparatus Which Convert Application Program of Mainframe System into Application Program of Open System and Method for Thereof
US9557965B2 (en) Method for programming language dependent merging of program codes
JP7346332B2 (ja) データベースマイグレーション方法、データベースマイグレーションシステム、及びデータベースマイグレーションプログラム
JP2006268661A (ja) データインポート方法およびデータインポート装置
US20140359258A1 (en) Declarative Configuration Elements
WO2015141723A1 (ja) ソースコード生成および提供装置、並びにソースコード生成および提供方法
US11740895B2 (en) Generation of software program repair explanations
CN106033338A (zh) 基于fog数据的源代码导入及解析的方法和装置
US9430451B1 (en) Parsing author name groups in non-standardized format
US20130042224A1 (en) Application analysis device
WO2017145357A1 (ja) 情報処理装置、情報処理方法及び情報処理プログラム
CN110515913B (zh) 日志处理方法及装置
CN111279350B (zh) 用于在服务管理应用接口中提供全球化特征的系统和方法
JP6944838B2 (ja) 変換装置および変換方法
CN110765020B (zh) 基于领域知识的测试用例生成方法
CN113779070A (zh) Sql优化方法及系统
Allan et al. Automating SIDL-Based Development for New and Legacy Software

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 09722402

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 09722402

Country of ref document: EP

Kind code of ref document: A1