JP2002351710A - Method/device/program for migrating database system - Google Patents

Method/device/program for migrating database system

Info

Publication number
JP2002351710A
JP2002351710A JP2001161969A JP2001161969A JP2002351710A JP 2002351710 A JP2002351710 A JP 2002351710A JP 2001161969 A JP2001161969 A JP 2001161969A JP 2001161969 A JP2001161969 A JP 2001161969A JP 2002351710 A JP2002351710 A JP 2002351710A
Authority
JP
Japan
Prior art keywords
database system
database
terminal
migration
file
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
JP2001161969A
Other languages
Japanese (ja)
Inventor
Yasuhide Miyamoto
泰秀 宮本
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP2001161969A priority Critical patent/JP2002351710A/en
Publication of JP2002351710A publication Critical patent/JP2002351710A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a method and program for migrating a database system of excellent general usefulness, extensibility and operability in a database system connected to a network. SOLUTION: In the method for migrating the database system through a data communication middleware, a database migration processing terminal receives database migrating operation by a GUI, conversion to an SQL sentence or the selection of a stored procedure is performed concerning the migrating operation designated by the GUI, and outputs a result to a display device, etc. A method for migrating the database file in the state of being easy visually and being interactive, a terminal and a program for making a computer constituting the terminal perform the processing are provided.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、データベースシス
テムの移行技術に関し、特に方法と装置並びにプログラ
ムに関する。
The present invention relates to a technology for migrating a database system, and more particularly, to a method, an apparatus, and a program.

【0002】[0002]

【従来の技術】データベースシステムは、種々のプラッ
トフォームのうえに構築され、システムの統合・更新の
際に、データファイルの移行が必要な場合が生じる。デ
ータベースシステム間に互換性が完全でない場合、その
まま移行が可能であるものはデータファイルのみであ
り、データベースのデータ格納定義については、別途移
行先のシステム上に作成する必要がある。
2. Description of the Related Art Database systems are built on various platforms, and data files may need to be migrated when the systems are integrated or updated. If the compatibility between the database systems is not perfect, only the data files can be migrated as they are, and the data storage definition of the database must be created separately on the migration destination system.

【0003】特に、移行元がライブラリ形式のファイル
やフラットファイルであり移行先がリレーショナルデー
タベースファイルの場合、リレーショナルデータベース
上の各種の表定義(キーの設定、関連付け、権限)を仕
様書やプログラムから人手で確認する必要があり、多大
な工数を要する。
[0003] In particular, when the migration source is a library format file or flat file and the migration destination is a relational database file, various table definitions (key settings, associations, permissions) on the relational database are manually input from specifications and programs. It is necessary to confirm by the above, and it takes a lot of man-hours.

【0004】かかるデータベース間のデータファイルの
移行を容易化する従来技術として特許2783109号
がある。データベースアクセス手段、保存媒体アクセス
手段、コマンド解釈手段、退避(復元)手順生成手段、
制御手段を備えた装置に、移行元のデータべ−スシステ
ムに接続し、データベース処理言語を用いて、移行元の
定義情報と定義情報により扱われるデータを記憶保存媒
体に退避し、移行先のデータべ−スシステムに構造化照
会言語を用いて復元する処理を行わせるデータベースシ
ステム退避・復元・移行装置が提案されている。
Japanese Patent No. 2783109 discloses a conventional technique for facilitating the transfer of data files between databases. Database access means, storage medium access means, command interpretation means, save (restore) procedure generation means,
The apparatus provided with the control means is connected to the database system of the transfer source, saves the definition information of the transfer source and the data handled by the definition information to a storage medium using a database processing language, A system for saving, restoring, and migrating a database system has been proposed which causes a database system to perform a restoration process using a structured query language.

【0005】また、特開2000−347907号公報
には、管理形式の異なるデータファイルやリレーショナ
ルデータベースシステムに対して、レコードフォーマッ
ト並びに表定義を共通レコードフォーマット情報で管理
して、データファイルやリレーショナルデータベースシ
ステム間の移行を統一した手法により自動化する技術が
提案されている。
Japanese Patent Application Laid-Open No. 2000-347907 discloses a technique for managing a record format and a table definition using common record format information for data files and relational database systems having different management formats. A technique for automating the transition between systems by a unified method has been proposed.

【0006】しかしながら、上記の技術を用いたとして
も、データファイルやリレーショナルデータベースシス
テム間の移行を行う場合において、安全かつ確実な移行
・退避作業を行うためには、システムの担当者等にSQ
L(StructuredQuery Languag
e、以下「SQL」とする。)の習熟が必要とされるこ
とが多い。その理由は、SQLにはJISにより標準化
された構文のほかに、データベースシステム毎に固有な
命令文が実装されている場合があること、データベース
システム移行作業後の検証作業においても、SQLを用
いることが必要とされるためである。
However, even when the above-mentioned technology is used, when performing the migration between data files and the relational database system, in order to perform the safe and reliable migration / evacuation work, the person in charge of the system must use the SQ.
L (Structured Query Language)
e, hereinafter referred to as "SQL". ) Is often required. The reason is that in addition to the syntax standardized by JIS, there are cases where SQL-specific statements are implemented for each database system, and that SQL is also used for verification work after database system migration work. Is required.

【0007】また、SQLの命令単位でしか権限を付与
することができないため、セキュリティの点で改善が望
まれる。
[0007] In addition, since authority can be given only in SQL command units, improvement in security is desired.

【0008】さらに、高速ネットワークが整備されつつ
ある今日では、ネットワークにより接続されているデー
タベースシステム間のデータファイルの移行において、
従来の記憶保存媒体を介して行った場合等と同等の信頼
性は維持しつつ、ネットワークを介してより簡便に行う
方法の確立が望まれている。
[0008] Furthermore, in today's high-speed network is being developed, the migration of data files between database systems connected by the network requires
It is desired to establish a method that can be performed more easily through a network while maintaining the same reliability as that performed by a conventional storage medium.

【0009】[0009]

【発明が解決しようとする課題】本発明は、上記問題点
に鑑みてなされたものであって、その目的は、データベ
ースシステム間のデータファイルの移行を容易化すると
ともに、権限管理等のセキュリティの面においても優れ
たデータベースシステムの移行方法とシステム並びにプ
ログラムを提供することにある。
SUMMARY OF THE INVENTION The present invention has been made in view of the above problems, and has as its object to facilitate the transfer of data files between database systems and to secure security such as authority management. Another object of the present invention is to provide a database system migration method, system, and program which are excellent in terms of aspects.

【0010】[0010]

【課題を解決するための手段】本発明の第1の視点によ
れば、以下に示されたデータベースシステムの移行方法
が提供される。即ち、データ通信ミドルウェアを介した
一のデータベースシステムから他のデータベースシステ
ムへのデータベースファイルの移行方法において、
(A)端末は、前記一のデータベースシステムに接続し
前記一のデータベースシステムで記憶管理されているデ
ータベースファイル情報を取得して出力するステップ
と、(B)前記端末は、前記データベースファイル情報
に基づき移行を行うデータベースファイルの問い合わせ
条件の入力を受け付けるステップと、(C)前記端末
は、前記入力内容に対応するSQL(Structured Quer
y Language;構造化問い合わせ言語)文を生成し、前
記SQL文を前記一のデータベースシステムに送信する
ステップと、(D)前記端末は、前記SQL文に対する
応答として、前記SQL文の実行結果を受け取って出力
するとともに、記憶保存するステップと、(E)前記端
末は、前記SQL文の実行結果に基づいて移行対象とな
るデータベースファイルの操作命令の入力を受け付ける
ステップと、(F)前記端末は、前記他のデータベース
システムに接続し前記選択したデータベースファイルの
定義情報を内容とする前記他のデータベースシステムに
対応したSQL文と、前記問い合わせ命令及び移行命令
に基づく、前記他のデータベースシステムに対応したデ
ータ操作命令のSQL文を作成するステップと、(G)
前記各SQL文を前記他のデータベースシステムに送信
するステップと、(H)前記各SQL文に対する応答と
して、前記他のデータベースシステムより送信された処
理結果を出力するステップと、を有することを特徴とす
るデータベースシステムの移行方法が提供される。この
場合において、前記端末は、前記他のデータベースシス
テムに対して前記各SQL文を送信した場合には、応答
として処理結果を受け取って出力するステップを含める
ことが好ましい。
According to a first aspect of the present invention, there is provided a database system migration method described below. That is, in a method of migrating a database file from one database system to another database system via data communication middleware,
(A) a step in which the terminal connects to the one database system to acquire and output database file information stored and managed in the one database system; and (B) the terminal performs processing based on the database file information. Accepting an input of an inquiry condition of a database file to be migrated; and (C) the terminal executes an SQL (Structured Querter) corresponding to the input content.
generating a Structured Query Language (SQL) statement and transmitting the SQL statement to the one database system; and (D) the terminal receives an execution result of the SQL statement as a response to the SQL statement. (E) receiving input of an operation command for a database file to be migrated based on the execution result of the SQL statement; and (F) the terminal comprises: An SQL statement corresponding to the other database system having the definition information of the selected database file connected to the other database system and data corresponding to the other database system based on the inquiry command and the migration command; Creating an SQL statement of the operation command; (G)
Transmitting each of the SQL statements to the other database system; and (H) outputting a processing result transmitted from the other database system as a response to each of the SQL statements. A method for migrating a database system is provided. In this case, the terminal preferably includes a step of receiving and outputting a processing result as a response when the terminal transmits the SQL statement to the other database system.

【0011】さらに、前記端末は、前記他のデータベー
スシステムに対して移行処理の結果の確認を行うための
SQL文を送信するステップ、前記SQL文に対する応
答と前記一のデータベースシステムより受け取った応答
を記憶保存した内容とを照合するステップ、照合した結
果が異常を示す場合には、操作者に警告を行うステッ
プ、を含むようにすることが好ましい。
[0011] Further, the terminal transmits an SQL statement for confirming a result of the migration processing to the other database system, and transmits a response to the SQL statement and a response received from the one database system. It is preferable to include a step of collating with the stored contents and a step of giving a warning to an operator when the collation result indicates an abnormality.

【0012】また、本発明は、前記第1の視点の発明の
(A)乃至(H)のステップは端末を構成するコンピュ
ータでプログラムを実行することで実現するものであ
り、その第2の視点においてプログラムの形で提供され
る。前記端末が、前記他のデータベースシステムに対し
て移行処理の結果の確認を行うためのSQL文を送信す
る処理、前記SQL文に対する応答と前記一のデータベ
ースシステムより受け取った応答を記憶保存した内容と
を照合する処理、照合した結果が異常を示す場合には、
操作者に警告を行う処理を行わせるプログラムが提供さ
れる。
Also, in the present invention, the steps (A) to (H) of the first aspect of the invention are realized by executing a program on a computer constituting a terminal. In the form of a program. A process in which the terminal transmits an SQL sentence for confirming a result of the migration process to the other database system, a content in which a response to the SQL sentence and a response received from the one database system are stored and stored; If the result of the comparison indicates an abnormality,
A program is provided for causing an operator to perform a process of giving a warning.

【0013】また、本発明は、前記第1の視点の発明を
実施するための端末を提供するものと把握することがで
き、その第3の視点においてデータベースシステムの移
行処理用端末として提供される。また、加えて、前記シ
ステムを構成する端末に、前記他のデータベースシステ
ムに対して移行処理の結果の確認を行うためのSQL文
を生成して送信する処理手段を設け、前記SQL文に対
する前記他のデータベースシステムからの応答と前記一
のデータベースシステムより受け取った応答を記憶保存
した内容との照合を行う処理手段を設け、照合した結果
が異常を示す場合には、操作者に警告を行う処理手段を
設けることが好ましい。
Further, the present invention can be understood as providing a terminal for carrying out the invention of the first aspect, and is provided as a terminal for migration processing of a database system in the third aspect. . In addition, in addition to the above, the terminal constituting the system is provided with processing means for generating and transmitting an SQL statement for confirming the result of the migration processing to the other database system, and Processing means for comparing the response from the database system with the content stored and stored in the response received from the one database system, and processing means for alerting the operator when the result of the comparison indicates an abnormality Is preferably provided.

【0014】また、前記第1から第3の視点のデータベ
ースシステムの移行方法、プログラム、端末において、
前記端末が、前記各データベースシステムに接続するた
めのアプリケーション・プログラミング・インターフェ
イス(Application Programming Interface;「AP
I」という)は、あらかじめ定められたAPIであるこ
とが好ましい。
Further, in the method, the program, and the terminal for migrating the database system according to the first to third aspects,
An application programming interface (AP) for connecting the terminal to each of the database systems.
I ”) is preferably a predetermined API.

【0015】また、前記第1から第3の視点のデータベ
ースシステムの移行方法、プログラム、端末において、
前記端末が前記各SQL文を生成する処理は、前記一の
データベースシステム及び前記他のデータベースシステ
ムにあらかじめ記憶保存されている権限管理処理のなさ
れた実行ファイルを選択することによって行われること
を含むことが好ましい。
Also, in the method, the program, and the terminal for shifting the database system according to the first to third aspects,
The process in which the terminal generates each of the SQL statements includes that the process is performed by selecting an executable file that has been subjected to authority management processing and stored in advance in the one database system and the other database system. Is preferred.

【0016】また、前記第1から第3の視点のデータベ
ースシステムの移行方法、プログラム、端末において、
前記端末は、データベースファイルを記憶保存したあら
かじめ作成されている退避ファイルを移行対象として選
択可能とすることが好ましい。
Also, in the method, the program, and the terminal for migrating the database system according to the first to third aspects,
It is preferable that the terminal can select a previously created save file storing and saving a database file as a migration target.

【0017】[0017]

【発明の実施の形態】以下、本発明の第1の実施の形態
について、図面を参照して説明する。図1は、本発明の
一実施形態のシステム構成の一例を示す図である。図1
を参照すると、この実施の形態のシステムは、データベ
ースファイルの操作を実施する、通信機能を具備したコ
ンピュータ等の端末(以下、「データベース移行処理端
末」という。)(図1の101)と、移行元データベー
スシステム(図1の201)と、移行先データベースシ
ステム(図1の301)とこれらを通信接続するための
ネットワーク(図1の500)とを備えている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, a first embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a diagram illustrating an example of a system configuration according to an embodiment of the present invention. FIG.
Referring to FIG. 1, the system according to the present embodiment includes a terminal such as a computer having a communication function (hereinafter, referred to as a “database migration processing terminal”) (101 in FIG. 1) that executes a database file operation and a migration. It has a source database system (201 in FIG. 1), a migration destination database system (301 in FIG. 1), and a network (500 in FIG. 1) for communicating and connecting these.

【0018】図2は、図1のデータベース移行処理端末
(図1の101)と移行元/移行先データベースシステ
ム(図1の201、図1の301)の構成の一例を示す
図である。図2を参照すると、データベース移行処理端
末(図2の101)は、データベース移行処理部(図2
の101a)と、記憶保存手段(図2の101b)と、
制御手段(図2の101c)と、接続手段(図2の12
1)と、データ通信ミドルウェア(図2の131)と、
入力手段(図2の141)と、データ変換手段(図2の
151)と、出力手段(図2の161)とを有してい
る。
FIG. 2 is a diagram showing an example of the configuration of the database migration processing terminal (101 in FIG. 1) and the source / destination database system (201 in FIG. 1, 301 in FIG. 1) in FIG. Referring to FIG. 2, a database migration processing terminal (101 in FIG. 2) includes a database migration processing unit (FIG. 2).
101a), storage and storage means (101b in FIG. 2),
Control means (101c in FIG. 2) and connection means (12c in FIG. 2)
1), data communication middleware (131 in FIG. 2),
It has input means (141 in FIG. 2), data conversion means (151 in FIG. 2), and output means (161 in FIG. 2).

【0019】移行元/移行先データベースシステム(図
2の201、図2の301)は、それぞれデータベース
(図2の202、図2の302)と、データ通信ミドル
ウェア(図2の231、図2の331)とを備えてい
る。移行元データベースシステム(図2の201)の管
理するデータベース(図2の202)には、移行対象と
なるデータベースファイルが記憶保存されている。
The source / destination database system (201 in FIG. 2 and 301 in FIG. 2) includes a database (202 in FIG. 2 and 302 in FIG. 2) and a data communication middleware (231 in FIG. 2; 331). A database (202 in FIG. 2) managed by the migration source database system (201 in FIG. 2) stores database files to be migrated.

【0020】次に、本発明に係る方法の一実施の形態に
ついて、図2、図3を参照して説明する。データベース
の移行の実施にあたり、まず、端末(図2の101)か
らネットワーク(図2の500)、接続手段(図2の1
21)を介して移行元データベースシステム(図2の2
01)に接続し、移行対象ファイルを含むデータベース
(図2の202)に格納されたデータベースファイルの
一覧等の情報を参照し、表示装置等の出力手段(図2の
161)に出力する(ステップS001)。続いて、端
末(図2の101)は、操作者より、GUI等を介し
て、移行対象となるデータベースファイルの指定及び問
い合わせ命令等の操作を受け付ける(ステップS00
2)。端末(図2の101)は、データ変換手段(図2
の151)により、前記操作内容を移行元データベース
に対応した構造化照会言語(以下、「SQL」とす
る。)文への変換を行い、データ通信ミドルウェア(図
2の131、図2の231)を介して、移行元データベ
ースシステム(図2の201)に対して前記SQL文を
送信する(ステップS003)。続いて、移行元データ
ベースシステム(図2の201)が前記SQL文をデー
タベース(図2の202)に対して実行した結果を応答
として、データ通信ミドルウェア(図2の131、図2
の231)を介して送信した内容を受け取った端末(図
2の101)は、データ変換手段(図2の151)によ
り、前記応答を、データベース移行処理部(図2の10
1a)で取り扱うフォーマットに変換し、記憶保存手段
(図2の101b)に記憶保存するとともに表示装置等
の出力手段(図2の161)に出力する(ステップS0
04)。続いて、端末(図2の101)は、GUI等を
介して、移行対象となるデータベースファイルの指定、
問い合わせ命令、移行指示等の操作を受け付ける(ステ
ップS005)。続いて、端末(図2の101)は、デ
ータ変換手段(図2の151)により、前記操作内容
を、移行先データベース(図2の301)に対応したデ
ータ定義の内容とするSQL文(Data Defin
ition Language;DDL)とデータ操作
を内容とするSQL文(Data Manipulat
ion Language;DML)に変換する(ステ
ップS006)。続いて、端末(図2の101)は、デ
ータ通信ミドルウェア(図2の131、図2の231)
を介して、移行先データベースシステム(図2の20
1)に対して、前記各SQL文を送信する(ステップS
007)。続いて、移行先データベースシステム(図2
の301)が前記SQL文をデータベース(図2の30
2)に対して実行した結果を応答として、データ通信ミ
ドルウェア(図2の131、図2の331)を介して送
信した内容を受け取った端末(図2の101)は、デー
タ変換手段(図2の151)により、前記応答を、デー
タベース移行処理部(図2の101a)で取り扱うフォ
ーマットに変換し、表示装置等の出力手段(図2の16
1)に出力する(ステップS008)。
Next, an embodiment of the method according to the present invention will be described with reference to FIGS. In performing the migration of the database, first, the terminal (101 in FIG. 2) is connected to the network (500 in FIG.
21) via the source database system (2 in FIG. 2).
01), and refers to information such as a list of database files stored in the database (202 in FIG. 2) including the file to be migrated, and outputs it to output means (161 in FIG. 2) such as a display device (step). S001). Subsequently, the terminal (101 in FIG. 2) receives an operation such as designation of a database file to be migrated and an inquiry command from the operator via a GUI or the like (step S00).
2). The terminal (101 in FIG. 2) is connected to a data conversion unit (FIG. 2).
151), the operation content is converted into a structured query language (hereinafter, referred to as “SQL”) statement corresponding to the source database, and the data communication middleware (131 in FIG. 2, 231 in FIG. 2). The SQL statement is transmitted to the migration source database system (201 in FIG. 2) via (step S003). Subsequently, the result of the execution of the SQL statement by the transfer source database system (201 in FIG. 2) on the database (202 in FIG. 2) is returned as a response to the data communication middleware (131 in FIG. 2, FIG.
The terminal (101 in FIG. 2) that has received the content transmitted via the (231) of FIG. 2 transmits the response to the database migration processing unit (10 in FIG. 2) by the data conversion means (151 in FIG. 2).
The data is converted into the format handled in 1a), stored and stored in the storage and storage unit (101b in FIG. 2), and output to the output unit (161 in FIG. 2) such as a display device (step S0).
04). Subsequently, the terminal (101 in FIG. 2) specifies a database file to be migrated via a GUI or the like,
An operation such as an inquiry command or a transfer instruction is received (step S005). Subsequently, the terminal (101 in FIG. 2) uses the data conversion means (151 in FIG. 2) to set the operation content to an SQL statement (Data) corresponding to the data definition corresponding to the migration destination database (301 in FIG. 2). Defin
SQL statement (Data Manipulat) containing the content of the data language
(Ion Language; DML) (step S006). Subsequently, the terminal (101 in FIG. 2) is connected to the data communication middleware (131 in FIG. 2, 231 in FIG. 2).
Via the destination database system (20 in FIG. 2)
1), the respective SQL statements are transmitted (step S)
007). Next, the migration destination database system (Fig. 2
301) stores the SQL statement in a database (30 in FIG. 2).
The terminal (101 in FIG. 2) that has received the content transmitted via the data communication middleware (131 in FIG. 2, 331 in FIG. 2) in response to the result of the execution performed in response to the data conversion means (FIG. 2) 151), the response is converted into a format handled by the database migration processing unit (101a in FIG. 2), and output means such as a display device (16 in FIG. 2).
1) (Step S008).

【0021】第1の実施の形態によれば、GUI技術と
SQL文自動変換処理を連携せしめ、各データベース操
作の処理と応答が会話的に入出力手段を介してなされる
よう構成したため、データベースシステムの移行を、熟
練者でなくとも安全かつ速やかに行うことが可能となる
効果を奏する。また、第1の実施の形態において、あら
かじめ使用するAPIを定めて、システムを構築し実施
することは、より望ましい実施形態の一つである。この
場合には、新たにAPIを開発することを必要とせず、
定められたAPIに対応する前記データベースシステム
用ドライバを作成、導入することでデータ変換が可能と
なるため、プラットフォームの異なるデータベースシス
テムがネットワークに加えられた場合であっても、速や
かに該データベースシステムにデータベースファイルを
移行することが可能となる。また、前述の各実施形態に
おいて、移行元/移行先データベースシステム(図2の
201、図2の301)に、実行ファイルを、権限管理
処理を行ってデータベース(図2の202、図2の30
2)に記憶保存し、端末(図2の101)が、各SQL
文を生成し、SQL文を移行元/移行先データベースシ
ステム(図2の201、図2の301)に実行させる処
理を、前記実行ファイルを選択しパラメーターと組み合
わせて、実行させる処理に代えることもより望ましい実
施形態の一つである。この場合には、データベース操作
処理を高速化することが可能となり、さらに前記権限管
理処理を実行ファイル毎に細かく設定することが可能と
なる。また、前述の各実施形態において、端末(10
1)は、データベース移行対象として、端末(図2の1
01)等であらかじめデータベースファイルを記憶保存
媒体に記憶保存したファイル(退避ファイル)を読み込
み、データベース移行処理の対象とできるようにするこ
とも、より望ましい実施形態の一つである。この場合に
は、移行元データベースシステムに逐一、接続すること
なく、前記退避ファイルを移行元として、移行先データ
ベースシステムに移行処理を行うことが可能となる。さ
らに、前述の各実施形態において、端末(図2の10
1)は、移行先データベースシステムに対して移行処理
の結果の確認を行うためのSQL文を送信するステッ
プ、前記SQL文に対する応答と前記一のデータベース
システムより受け取った応答を記憶保存した内容とを照
合するステップ、照合した結果が異常を示す場合には、
異常と判定し、操作者に警告を行うステップ、を加える
ことも、より望ましい実施形態の一つである。この場合
には、移行を行った結果の検証作業を簡便に会話的に行
うことができる。
According to the first embodiment, the GUI technology and the automatic SQL sentence conversion process are linked to each other, so that the processing and the response of each database operation are made interactively via the input / output means. This makes it possible to safely and promptly perform the transition without any skilled person. In the first embodiment, it is one of more desirable embodiments to determine an API to be used in advance and construct and execute a system. In this case, there is no need to develop a new API,
Data conversion can be performed by creating and introducing the database system driver corresponding to a predetermined API. Therefore, even if a database system with a different platform is added to the network, the database system can be immediately added to the database system. Database files can be migrated. In each of the above-described embodiments, the execution file is stored in the transfer source / destination database system (201 in FIG. 2 and 301 in FIG. 2) by performing the authority management process on the database (202 in FIG. 2 and 30 in FIG. 2).
2), and the terminal (101 in FIG. 2)
The process of generating a statement and causing the source / destination database system (201 in FIG. 2 and 301 in FIG. 2) to execute the SQL statement may be replaced with a process in which the executable file is selected and combined with parameters to be executed. This is one of more desirable embodiments. In this case, it is possible to speed up the database operation processing, and it is possible to set the authority management processing finely for each execution file. In each of the above embodiments, the terminal (10
1) is a terminal (1 in FIG. 2) as a database migration target.
One of the more preferable embodiments is to read a file (backup file) in which a database file is stored and stored in a storage medium in advance, for example, to make it a target of database migration processing. In this case, it is possible to perform the migration process to the destination database system using the save file as the source without connecting to the source database system one by one. Further, in each of the above embodiments, the terminal (10 in FIG. 2)
1) transmitting an SQL statement for confirming the result of the migration processing to the migration destination database system, and storing the response to the SQL statement and the content of storing the response received from the one database system; Step of matching, if the result of matching indicates an abnormality,
Adding a step of determining an abnormality and giving a warning to the operator is also one of the more desirable embodiments. In this case, the verification of the result of the migration can be easily and interactively performed.

【0022】次に、本発明の第2の実施の形態につい
て、図2、図3を参照して説明する。第2の実施形態に
係るプログラムは、前記第1の実施形態で説明した各ス
テップを図2の前記ステップ(ステップS001)から
ステップ(ステップS008)における端末(図2の1
01)の処理動作を、端末(図2の101)を構成する
コンピュータに実行させるプログラムによってその機能
・処理を実現することができる。この場合、当該プログ
ラムを記録した記憶媒体より該プログラムをそれぞれの
コンピュータの主記憶装置にロードして実行することで
本発明を実施することができる。第2の実施の形態によ
れば、GUI技術とSQL文自動変換処理を連携せし
め、各データベース操作の処理と応答が会話的に入出力
手段を介してなされるよう構成したため、データベース
システムの移行を、熟練者でなくとも安全かつ速やかに
行うことが可能となる効果を奏する。また、第2の実施
の形態において、あらかじめ使用するAPIを定めたシ
ステムを前提とするプログラムとすることは、より望ま
しい実施形態の一つである。この場合には、新たにAP
Iを開発することを必要とせず、定められたAPIに対
応する前記データベースシステム用ドライバを作成、導
入することでデータ変換が可能となるため、プラットフ
ォームの異なるデータベースシステムがネットワークに
加えられた場合であっても、速やかに該データベースシ
ステムにデータベースファイルを移行することが可能と
なる。また、前述の各実施形態において、移行元/移行
先データベースシステム(図2の201、図2の30
1)に、実行ファイルを、権限管理処理を行ってデータ
ベース(図2の202、図2の302)に記憶保存し、
端末(図2の101)を構成するコンピュータに、各S
QL文を生成し、SQL文を移行元/移行先データベー
スシステム(図2の201、図2の301)に実行させ
る処理を、前記実行ファイルを選択しパラメーターと組
み合わせて、実行させる処理に代えて行わせるプログラ
ムとすることもより望ましい実施形態の一つである。こ
の場合には、データベース操作処理を高速化することが
可能となり、前記権限管理処理を実行ファイル毎に細か
く設定することが可能となる。また、前述の各実施形態
において、端末(101)は、データベース移行対象と
して、端末(図2の101)等であらかじめデータベー
スファイルを記憶保存媒体に記憶保存したファイル(退
避ファイル)を読み込み、データベース移行処理の対象
とできるようにすることも、より望ましい実施形態の一
つである。この場合には、移行元データベースシステム
に逐一、接続することなく、前記退避ファイルを移行元
として、移行先データベースシステムに移行処理を行う
ことが可能となる。さらに、前述の各実施形態におい
て、端末(図2の101)は、移行先データベースシス
テムに対して移行処理の結果の確認を行うためのSQL
文を送信するステップ、前記SQL文に対する応答と前
記一のデータベースシステムより受け取った応答を記憶
保存した内容とを照合するステップ、照合した結果が異
常を示す場合には、異常と判定し、操作者に警告を行う
ステップ、を加えることも、より望ましい実施形態の一
つである。この場合には、移行を行った結果の検証作業
を簡便に会話的に行うことができる。
Next, a second embodiment of the present invention will be described with reference to FIGS. The program according to the second embodiment includes the steps (step S001) to step (step S008) of the terminal (1 in FIG. 2) described in the first embodiment.
The functions and processes can be realized by a program that causes a computer constituting the terminal (101 in FIG. 2) to execute the processing operation of (01). In this case, the present invention can be implemented by loading the program from a storage medium storing the program into the main storage device of each computer and executing the program. According to the second embodiment, the GUI technology and the automatic SQL sentence conversion process are linked to each other, and the processing and response of each database operation are interactively performed via the input / output means. In addition, there is an effect that it is possible to perform the operation safely and promptly even by a non-expert. Further, in the second embodiment, it is one of more desirable embodiments to use a program based on a system in which an API to be used is determined in advance. In this case, a new AP
It is not necessary to develop I, and data conversion is possible by creating and introducing the database system driver corresponding to the prescribed API. Therefore, when a database system with a different platform is added to the network, Even if there is, the database file can be promptly transferred to the database system. In each of the above embodiments, the source / destination database system (201 in FIG. 2 and 30 in FIG. 2)
In 1), the execution file is subjected to authority management processing and stored in a database (202 in FIG. 2 and 302 in FIG. 2).
Each computer constituting the terminal (101 in FIG. 2)
The process of generating a QL statement and causing the source / destination database system (201 in FIG. 2 and 301 in FIG. 2) to execute the SQL statement is replaced with a process in which the execution file is selected and combined with parameters to be executed. A program to be executed is also one of the more desirable embodiments. In this case, the speed of the database operation process can be increased, and the authority management process can be set finely for each execution file. In each of the above-described embodiments, the terminal (101) reads a file (evacuated file) in which a database file is previously stored and saved in a storage medium by the terminal (101 in FIG. 2) as a database migration target, and executes the database migration. Being able to be a target of processing is also one of the more desirable embodiments. In this case, it is possible to perform the migration process to the destination database system using the save file as the source without connecting to the source database system one by one. Further, in each of the above-described embodiments, the terminal (101 in FIG. 2) uses the SQL for confirming the result of the migration process to the migration destination database system.
Transmitting the sentence, collating the response to the SQL statement with the content received and stored from the one database system, and determining that the result is abnormal if the result of the comparison indicates an abnormality, Is also one of the more desirable embodiments. In this case, the verification of the result of the migration can be easily and interactively performed.

【0023】次に、本発明の第3の実施の形態につい
て、図2を参照して説明する。第3の実施形態に係る端
末は、移行元/移行先データベースシステムへの接続手
段(図2の121)と、移行元/移行先データベースシ
ステムに備えられたミドルウェア(図2の231、図2
の331)と、データ通信するミドルウェア(図2の1
31)と、移行元/移行先データベースシステム(図2
の201、図2の301)の状態及び移行元/移行先デ
ータベースシステムからのSQL文に対する応答を出力
して操作者に知らせる出力手段(図2の161)と、出
力手段(図2の161)に出力された内容に基づいてな
される操作者のデータベース操作命令を受け付ける入力
手段(図2の141)と、前記操作命令からデータ操作
命令を内容とするSQL文、及びデータベースファイル
の定義情報を内容とするSQL文を生成し及び前記各S
QL文に対する応答を共通のフォーマットに変換するデ
ータ変換手段(図2の151)と前記各SQL文に対す
る応答を記憶保存する記憶保存手段(図2の101b)
と、前記各手段の実行制御を行うデータベース移行処理
手段(図2の101a)とを備えている。
Next, a third embodiment of the present invention will be described with reference to FIG. The terminal according to the third embodiment includes connection means (121 in FIG. 2) to the source / destination database system, and middleware (231 in FIG. 2, FIG. 2) provided in the source / destination database system.
331) and middleware for data communication (1 in FIG. 2).
31) and the source / destination database system (FIG. 2)
Output means (161 in FIG. 2) and an output means (161 in FIG. 2) for outputting the status of 201) and a response to the SQL statement from the source / destination database system to inform the operator. Input means (141 in FIG. 2) for receiving an operator's database operation command based on the contents output to the server, an SQL statement containing the data operation command from the operation command, and the definition information of the database file. And generates an SQL statement to
Data conversion means (151 in FIG. 2) for converting the response to the QL sentence into a common format, and storage and storage means (101b in FIG. 2) for storing and storing the response to each of the SQL statements.
And database migration processing means (101a in FIG. 2) for controlling the execution of each means.

【0024】次に、第3の実施の形態に係る端末の動作
について、図2、3を参照して説明する。データベース
の移行の実施にあたり、まず、端末(図2の101)
は、ネットワーク(図2の500)、接続手段(図2の
121)を用いて移行元データベースシステム(図2の
201)に接続し、移行対象ファイルを含むデータベー
ス(図2の202)に格納されたデータベースファイル
の一覧等の情報を参照し、表示装置等の出力手段(図2
の161)に出力する(ステップS001)。続いて、
端末(図2の101)は、操作者より、GUI等を介し
て、移行対象となるデータベースファイルの指定及び問
い合わせ命令等の操作を受け付ける(ステップS00
2)。端末(図2の101)は、データ変換手段(図2
の151)により、前記操作内容を移行元データベース
に対応した構造化照会言語(以下、「SQL」とす
る。)文への変換を行い、データ通信ミドルウェア(図
2の131、図2の231)を介して、移行元データベ
ースシステム(図2の201)に対して前記SQL文を
送信する(ステップS003)。続いて、移行元データ
ベースシステム(図2の201)が前記SQL文をデー
タベース(図2の202)に対して実行した結果を応答
として、データ通信ミドルウェア(図2の131、図2
の231)を介して送信した内容を受け取った端末(図
2の101)は、データ変換手段(図2の151)によ
り、前記応答を、データベース移行処理部(図2の10
1a)で取り扱うフォーマットに変換し、記憶保存手段
(図2の101b)に記憶保存するとともに表示装置等
の出力手段(図2の161)に出力する(ステップS0
04)。続いて、端末(図2の101)は、GUI等を
介して、移行対象となるデータベースファイルの指定、
問い合わせ命令、移行指示等の操作を受け付ける(ステ
ップS005)。続いて、端末(図2の101)は、デ
ータ変換手段(図2の151)により、前記操作内容
を、移行先データベース(図2の301)に対応したデ
ータ定義の内容とするSQL文(DDL)とデータ操作
を内容とするSQL文(DML)に変換する(ステップ
S006)。続いて、端末(図2の101)は、データ
通信ミドルウェア(図2の131、図2の231)を介
して、移行先データベースシステム(図2の201)に
対して、前記各SQL文を送信する(ステップS00
7)。続いて、移行先データベースシステム(図2の3
01)が前記SQL文をデータベース(図2の302)
に対して実行した結果を応答として、データ通信ミドル
ウェア(図2の131、図2の331)を介して送信し
た内容を受け取った端末(図2の101)は、データ変
換手段(図2の151)により、前記応答を、データベ
ース移行処理部(図2の101a)で取り扱うフォーマ
ットに変換し、表示装置等の出力手段(図2の161)
に出力する(ステップS008)。
Next, the operation of the terminal according to the third embodiment will be described with reference to FIGS. In performing the database migration, first, the terminal (101 in FIG. 2)
Is connected to the source database system (201 in FIG. 2) using the network (500 in FIG. 2) and the connection means (121 in FIG. 2), and is stored in the database (202 in FIG. 2) including the files to be transferred. Output means such as a display device (see FIG. 2)
161) (step S001). continue,
The terminal (101 in FIG. 2) receives an operation such as designation of a database file to be migrated and an inquiry command from the operator via a GUI or the like (step S00).
2). The terminal (101 in FIG. 2) is connected to a data conversion unit (FIG. 2).
151), the operation content is converted into a structured query language (hereinafter, referred to as “SQL”) statement corresponding to the source database, and the data communication middleware (131 in FIG. 2, 231 in FIG. 2). The SQL statement is transmitted to the migration source database system (201 in FIG. 2) via (step S003). Subsequently, the result of the execution of the SQL statement by the transfer source database system (201 in FIG. 2) on the database (202 in FIG. 2) is returned as a response to the data communication middleware (131 in FIG. 2, FIG.
The terminal (101 in FIG. 2) that has received the content transmitted via the (231) of FIG. 2 transmits the response to the database migration processing unit (10 in FIG. 2) by the data conversion means (151 in FIG. 2).
The data is converted into the format handled in 1a), stored and stored in the storage and storage unit (101b in FIG. 2), and output to the output unit (161 in FIG. 2) such as a display device (step S0).
04). Subsequently, the terminal (101 in FIG. 2) specifies a database file to be migrated via a GUI or the like,
An operation such as an inquiry command or a transfer instruction is received (step S005). Subsequently, the terminal (101 in FIG. 2) uses the data conversion means (151 in FIG. 2) to set the operation content to the SQL statement (DDL) that is the content of the data definition corresponding to the migration destination database (301 in FIG. ) And a SQL statement (DML) containing the contents of the data operation (step S006). Subsequently, the terminal (101 in FIG. 2) transmits each of the SQL statements to the migration destination database system (201 in FIG. 2) via the data communication middleware (131 in FIG. 2, 231 in FIG. 2). (Step S00
7). Subsequently, the migration destination database system (3 in FIG. 2)
01) stores the SQL statement in a database (302 in FIG. 2).
The terminal (101 in FIG. 2) receiving the content transmitted via the data communication middleware (131 in FIG. 2 and 331 in FIG. 2) in response to the result of the execution to the data conversion unit (151 in FIG. 2). ), The response is converted into a format handled by the database migration processing unit (101a in FIG. 2), and output means such as a display device (161 in FIG. 2).
(Step S008).

【0025】第3の実施の形態によれば、端末(図2の
101)において、GUI技術とSQL文自動変換処理
を連携せしめ、各データベース操作の処理と応答が会話
的に入出力手段を介してなされるよう構成したため、デ
ータベースシステムの移行を、熟練者でなくとも安全か
つ速やかに行うことが可能となる効果を奏する。また、
第3の実施の形態において、あらかじめ使用するAPI
を定めて、システムを構築し実施することは、より望ま
しい実施形態の一つである。この場合には、新たにAP
Iを開発することを必要とせず、定められたAPIに対
応する前記データベースシステム用ドライバを作成、導
入することでデータ変換が可能となるため、プラットフ
ォームの異なるデータベースシステムがネットワークに
加えられた場合であっても、速やかに該データベースシ
ステムにデータベースファイルを移行することが可能と
なる。また、前述の各実施形態において、移行元/移行
先データベースシステム(図2の201、図2の30
1)に、実行ファイルを、権限管理処理を行ってデータ
ベース(図2の202、図2の302)に記憶保存し、
端末(図2の101)が、各SQL文を生成し、SQL
文を移行元/移行先データベースシステム(図2の20
1、図2の301)に実行させる処理を、前記実行ファ
イルを選択しパラメーターと組み合わせて、実行させる
処理に代えることのできるよう構成することもより望ま
しい実施形態の一つである。この場合には、データベー
ス操作処理を高速化することが可能となり、さらに前記
権限管理処理を実行ファイル毎に細かく設定することが
可能となる。また、前述の各実施形態において、端末
(101)は、データベース移行対象として、端末(図
2の101)等であらかじめデータベースファイルを記
憶保存媒体に記憶保存したファイル(退避ファイル)を
読み込み、データベース移行処理の対象とできるように
することも、より望ましい実施形態の一つである。この
場合には、移行元データベースシステムに逐一、接続す
ることなく、前記退避ファイルを移行元として、移行先
データベースシステムに移行処理を行うことが可能とな
る。さらに、前述の各実施形態において、端末(図2の
101)は、移行先データベースシステムに対して移行
処理の結果の確認を行うためのSQL文を送信するステ
ップ、前記SQL文に対する応答と前記一のデータベー
スシステムより受け取った応答を記憶保存した内容とを
照合するステップ、照合した結果が異常を示す場合に
は、異常と判定し、操作者に警告を行うステップ、を加
えることも、より望ましい実施形態の一つである。この
場合には、データベース移行処理の信頼性が飛躍的に向
上し、移行処理の結果の確認作業を大きく省力化するこ
とが可能となる。その理由は、移行を行った結果の検証
作業を簡便に会話的に行うことができるためである。
According to the third embodiment, in the terminal (101 in FIG. 2), the GUI technology and the automatic SQL sentence conversion process are linked, and the processing and response of each database operation are interactively performed via the input / output means. With this configuration, the database system can be migrated safely and promptly even by a non-expert. Also,
API used in advance in the third embodiment
It is one of the more desirable embodiments to establish and implement a system by defining the above. In this case, a new AP
It is not necessary to develop I, and data conversion is possible by creating and introducing the database system driver corresponding to the prescribed API. Therefore, when a database system with a different platform is added to the network, Even if there is, the database file can be promptly transferred to the database system. In each of the above embodiments, the source / destination database system (201 in FIG. 2 and 30 in FIG. 2)
In 1), the execution file is subjected to authority management processing and stored in a database (202 in FIG. 2 and 302 in FIG. 2).
The terminal (101 in FIG. 2) generates each SQL statement,
The statement is transferred to the source / destination database system (20 in FIG. 2).
It is also one of the more preferable embodiments that the processing to be executed by (1) 301 in FIG. 2 can be replaced with the processing to be executed by selecting the execution file and combining it with the parameter. In this case, it is possible to speed up the database operation processing, and it is possible to set the authority management processing finely for each execution file. In each of the above-described embodiments, the terminal (101) reads a file (evacuated file) in which a database file is previously stored and saved in a storage medium by the terminal (101 in FIG. 2) as a database migration target, and executes the database migration. Being able to be a target of processing is also one of the more desirable embodiments. In this case, it is possible to perform the migration process to the destination database system using the save file as the source without connecting to the source database system one by one. Further, in each of the above embodiments, the terminal (101 in FIG. 2) transmits an SQL statement for confirming the result of the migration process to the migration destination database system, It is also preferable to add a step of comparing the response received from the database system with the stored contents, and a step of determining that the response is abnormal and warning the operator if the result of the comparison indicates an abnormality. It is one of the forms. In this case, the reliability of the database migration process is dramatically improved, and the work of confirming the result of the migration process can be greatly saved. The reason is that the verification work of the result of the migration can be easily and interactively performed.

【0026】[0026]

【実施例】次に、本発明の一実施例について図4、図
5、図6を用いて説明する。まず、図4に示すとおり、
LAN(Local Area Network)50
0には、端末101と、移行元データベースシステム2
01と、移行先データベースシステム301が相互に接
続している。図4を参照すると、端末101は、データ
ベース移行処理部101aと、記憶保存手段101b
と、制御手段101cと、データベースシステム20
1,301とデータ通信するミドルウェア131、入力
手段141、データ変換手段151、出力手段161、
補助記憶装置171を備え、データベース移行を行う端
末として構成されたコンピュータである。移行元/移行
先データベースシステム201、301は、それぞれデ
ータベース202,302と、データ通信ミドルウェア
231,331とを備えている。端末101と、移行元
/移行先データベースシステムに備えられたミドルウェ
ア231、331としては、「SQL*Net」(商
標、オラクル社)を用い、端末101と移行元/移行先
データベースシステム201、301間のデータ通信が
可能となっている。
Next, an embodiment of the present invention will be described with reference to FIGS. 4, 5 and 6. FIG. First, as shown in FIG.
LAN (Local Area Network) 50
0, the terminal 101 and the source database system 2
01 and the migration destination database system 301 are mutually connected. Referring to FIG. 4, the terminal 101 includes a database migration processing unit 101a and a storage / save unit 101b.
, Control means 101c, database system 20
1, 301, data input means 141, data conversion means 151, output means 161,
This is a computer that includes the auxiliary storage device 171 and is configured as a terminal that performs database migration. The source / destination database systems 201 and 301 include databases 202 and 302 and data communication middleware 231 and 331, respectively. "SQL * Net" (trademark, Oracle) is used as the middleware 231 and 331 provided in the terminal 101 and the source / destination database system, and is used between the terminal 101 and the source / destination database systems 201 and 301. Data communication is possible.

【0027】本実施例における端末101には、データ
ベース移行処理部101aとしては、端末101を構成
するコンピュータに、「MS−ACCESS」(マイク
ロソフト社、商標)と「MS−ACCESS」(マイク
ロソフト社、商標)により作成したサービスプログラム
を導入してその機能を行わせることとしている。入力手
段141としては、キーボート及びマウス等が備えら
れ、出力手段161としては、ディスプレイ装置が備え
られている。また、データ変換手段151は、APIと
してODBC(Open DataBase Conn
ectivity)を採用したため、ODBCドライバ
を選択し、管理する手段としてのODBCマネージャ1
51aと、各データベースシステムに対応した各ODB
Cドライバ(151b、151b’)から構成されてい
る。
In the terminal 101 according to the present embodiment, as a database migration processing unit 101a, a computer constituting the terminal 101 is provided with "MS-ACCESS" (a trademark of Microsoft Corporation) and "MS-ACCESS" (a trademark of Microsoft Corporation, trademark). ) To introduce the service program and perform its function. The input means 141 includes a keyboard and a mouse, and the output means 161 includes a display device. Also, the data conversion unit 151 uses an ODBC (Open DataBase Conn) as an API.
activity), the ODBC manager 1 as a means for selecting and managing the ODBC driver
51a and each ODB corresponding to each database system
C drivers (151b, 151b ').

【0028】さらに、移行元データベースシステム、移
行先データベースシステム201のデータベース202
に、あらかじめ権限管理情報及び処理内容をバイナリ化
した実行ファイル(以下、ストアドプロシージャ)をデ
ータベース化して記憶保存している。ストアドプロシー
ジャは、CREATE VIEW、CREATE IN
DEXなどのSQL構文を用いた一連の処理手続きをバ
イナリ化したものであり、端末101は、権限が与えら
れているストアドプロシージャについて、読み込み、実
行することが可能となるよう構成されている。
Furthermore, the database 202 of the source database system and the destination database system 201
In addition, an executable file (hereinafter referred to as a stored procedure) in which authority management information and processing contents are binarized in advance is stored in a database. Stored procedures are CREATE VIEW, CREATE IN
A series of processing procedures using an SQL syntax such as DEX are binarized, and the terminal 101 is configured to be able to read and execute an authorized stored procedure.

【0029】次に、図5のフローチャートを参照して、
本発明の一実施例における各構成要素の動作について説
明する。端末101において、データベース移行のため
の準備として、データベース移行処理部101aとして
の処理を行う「MS−ACCESS」(マイクロソフト
社、商標)及び前記サービスプログラムと、ミドルウェ
ア131、231を起動するとともに、データベース移
行処理端末101側の操作者名、ネットワークアドレ
ス、ネットワークプロトコル等の環境情報を取得し、移
行元データベースシステム201への接続を開始する。
(ステップS1001)。続いて、端末101は、デー
タベースファイル一覧の参照要求を行うストアドプロシ
ージャを選択し、移行元データベースシステム201に
管理されているデータベース202のデータベース情報
として、データベースファイル一覧を出力手段161に
画面表示して、操作者に提示するとともに、データベー
ス移行処理部101aの構成要素である前記「MS−A
CCESS」(マイクロソフト社、商標)のクエリー機
能を用いて移行元データベースファイル202の指定及
び問い合わせ命令の入力を受け付ける(ステップS10
02)。ここで操作者は、移行対象となる表をディスプ
レイ上の表一覧から選択し、さらに移行対象となるフィ
ールドを選択し、必要に応じて条件設定により必要なレ
コードを指定することになる。続いて、端末101は、
データベース移行処理部101aの構成要素である前記
サービスプログラムにより、操作者の権限内容の判定を
行う(ステップS1003)。入力内容が操作者の権限
の範囲外である場合には、該操作が権限外である旨が操
作者に通知され、処理が中断される。操作者の権限が正
当なものであれば、続いて、端末101は、データ変換
手段151により、前記入力内容を移行元データベース
システムに対応したSQL文に変換し(より詳しくは、
移行元データベースシステムに対応するドライバ151
bが変換を行う)、ミドルウェア131、231を介し
て、前記SQL文を送信して問い合わせ処理が行われる
(ステップS1004)。続いて、問い合わせ処理を受
け付けた移行元データベースシステム201は、データ
ベース202に対して検索を行い、該結果を応答とし
て、ミドルウェア131、231を介して、端末101
に送信する(ステップS1005)。端末101は、デ
ータ変換手段151により、受け取った応答を、前記
「MS−ACCESS」(マイクロソフト社、商標)に
て読み込み可能なフォーマットに変換して(より詳しく
は、移行元データベースシステムに対応するドライバ1
51bが変換を行う)、補助記憶装置171に退避用フ
ァイルとして前記応答内容を記憶保存する(ステップS
1006)。なお、前記退避用ファイルには、データフ
ァイル定義情報が保持されている。続いて、端末101
は、前記応答内容のうち少なくともデータベース定義情
報(例えば、表名、フィールド名、データ型等)を出力
手段に画面表示して、操作者に提示し、前記「MS−A
CCESS」(マイクロソフト社、商標)のクエリー機
能を用いて、移行を行うデータベースファイルの指定及
び移行命令の入力を受け付ける(ステップS100
7)。ここで操作者は、移行対象となる項目をディスプ
レイ上の前記定義情報を参考にして選択し、必要に応じ
て条件設定により必要なレコードの指定を行い、移行命
令を行う。続いて、端末101は、データベース移行処
理部101aの構成要素である前記サービスプログラム
により、操作者の権限内容の判定を行う(ステップS1
008)。入力内容が操作者の権限の範囲外である場合
には、該操作が権限外である旨が操作者に通知され、処
理が中断される。操作者の権限が正当なものであれば、
続いて、端末101は、データ変換手段151により、
前記入力内容を、移行先データベースシステム301に
対応したデータベースファイルの定義情報とデータベー
スファイルの操作情報からなるSQL文に変換し(より
詳しくは、移行元データベースシステムに対応するドラ
イバ151b’が変換を行う)、さらに、移行先データ
ベースシステム301のミドルウェア331を起動し移
行先データベースシステム301に接続して、前記各S
QL文を送信してデータベース移行処理を開始する(ス
テップS1009)。移行先データベースシステム30
1は、受け取った前記各SQL文をデータベース302
に対して実行し、まずデータ定義情報が作成され、次に
端末101に記憶保存したデータベースファイルの移行
先データベースシステム301への移行が行われる(ス
テップS1010)。さらに、端末101は、前記「M
S−ACCESS」(マイクロソフト社、商標)のクエ
リー機能を用いて、補助記憶装置171上のデータベー
スファイルの定義情報と移行先データベースシステム3
01のデータベース302内に移行されたデータベース
ファイルとの照合を行う(ステップS1011)。照合
の結果、定義情報の制約に違反しているデータが移行先
データベースシステム301のデータベース302に存
在する場合には、端末101は、エラー通知を表示する
(ステップS1012)。
Next, referring to the flowchart of FIG.
The operation of each component in one embodiment of the present invention will be described. In the terminal 101, as preparation for database migration, “MS-ACCESS” (Microsoft Corporation, trademark) for performing processing as the database migration processing unit 101a, the service program, and the middleware 131 and 231 are activated, and the database migration is performed. The environment information such as the operator name, network address, and network protocol of the processing terminal 101 is acquired, and connection to the migration source database system 201 is started.
(Step S1001). Subsequently, the terminal 101 selects a stored procedure for making a reference request of the database file list, displays the database file list on the output unit 161 as the database information of the database 202 managed by the source database system 201, and displays the screen on the screen. , "MS-A" which is a component of the database migration processing unit 101a.
Using the query function of "CCESS" (a trademark of Microsoft Corporation), the designation of the source database file 202 and the input of an inquiry command are accepted (step S10).
02). Here, the operator selects a table to be migrated from the table list on the display, further selects a field to be migrated, and specifies necessary records by setting conditions as necessary. Subsequently, the terminal 101
The authority content of the operator is determined by the service program which is a component of the database migration processing unit 101a (step S1003). If the input content is out of the range of the authority of the operator, the operator is notified that the operation is out of the authority, and the process is interrupted. If the authority of the operator is valid, the terminal 101 subsequently converts the input content into an SQL statement corresponding to the source database system by the data conversion unit 151 (more specifically,
Driver 151 corresponding to source database system
b performs the conversion), and sends the SQL statement via the middleware 131, 231 to perform an inquiry process (step S1004). Subsequently, the transfer source database system 201 that has received the inquiry process searches the database 202 and returns the result to the terminal 101 via the middleware 131 and 231 as a response.
(Step S1005). The terminal 101 converts the response received by the data conversion unit 151 into a format that can be read by the “MS-ACCESS” (trademark of Microsoft Corporation) (more specifically, a driver corresponding to the migration source database system). 1
51b performs the conversion), and stores and saves the contents of the response as a save file in the auxiliary storage device 171 (step S).
1006). The save file holds data file definition information. Subsequently, the terminal 101
Displays on the output means at least database definition information (for example, table name, field name, data type, etc.) of the response content, presents it to the operator, and displays the "MS-A
Using a query function of "CCESS" (trademark of Microsoft Corporation), a database file to be migrated is specified and a migration command is input (step S100).
7). Here, the operator selects an item to be transferred with reference to the definition information on the display, specifies a necessary record by setting conditions as necessary, and issues a transfer command. Subsequently, the terminal 101 determines the authority content of the operator using the service program which is a component of the database migration processing unit 101a (step S1).
008). If the input content is out of the range of the authority of the operator, the operator is notified that the operation is out of the authority, and the process is interrupted. If the operator's authority is legitimate,
Subsequently, the terminal 101 uses the data conversion means 151
The input contents are converted into an SQL statement including definition information of the database file corresponding to the destination database system 301 and operation information of the database file (more specifically, the driver 151b ′ corresponding to the source database system performs the conversion). Further, the middleware 331 of the destination database system 301 is started and connected to the destination database system 301, and
The QL sentence is transmitted to start the database migration processing (step S1009). Migration destination database system 30
1 stores the received SQL statements in the database 302
, The data definition information is created first, and then the database file stored in the terminal 101 is migrated to the migration destination database system 301 (step S1010). Further, the terminal 101 transmits the “M
Using the query function of “S-ACCESS” (trademark of Microsoft Corporation), the definition information of the database file on the auxiliary storage device 171 and the migration destination database system 3
01 is compared with the database file migrated in the database 302 (step S1011). As a result of the collation, when data violating the constraint of the definition information exists in the database 302 of the migration destination database system 301, the terminal 101 displays an error notification (step S1012).

【0030】次に、図6を参照して、前記実施例におけ
るデータベース移行処理部101aの提供するGUIに
よる入力受け付けとSQL文への変換処理を説明する。
図6は、端末101が、移行元のデータベースシステム
201の移行対象であるデータベースファイルの定義情
報を出力手段161に画面表示して、続けて、移行先デ
ータベースシステム301に接続した状態を示す図であ
る。移行元データベースシステムを示すウインドウ内に
は、移行対象として選択したデータベースファイルの一
部と、移行先データベースシステムを示すウインドウが
一の画面上に表示されている。操作者が、マウス等の入
力機器によって、移行対象となる項目、条件を選択し、
複写命令を行うことによりデータ変換手段151により
SQL文が作成される。例えば、画面上の移行元データ
ベース欄の表一覧から、任意の表を選択し、移行先デー
タベース欄に移動させることにより、CREATE T
ABLE文が作成されることになる。さらに、CREA
TE TABLE文が送信され、移行先データベースシ
ステム301において実行されるとその結果が移行先デ
ータベース欄に表示されることで反映される。このよう
な構成を採ることにより、データベース移行作業を視覚
的にわかりやすく、また、会話的に作業を進めることの
できるシステムが提供されるものである。前記のとおり
データベースソフトウェアの視覚的なユーザインターフ
ェイスと、簡便なクエリー機能を用いることで操作ミス
によるデータ破壊防止できるデータベース移行処理方法
が提供される。また、上記した実施例のようにGUIを
実装する汎用データベースソフトウェアを採用した場合
には、本発明の実施に必要な機能を追加するサービスプ
ログラムを開発するのみで足りるため、省コストで、短
い開発期間で、コンピュータにデータベース移行処理端
末101としての処理を行わせるプログラムが利用可能
となる。
Next, with reference to FIG. 6, a description will be given of an input acceptance by the GUI provided by the database migration processing unit 101a and a conversion process to an SQL sentence in the embodiment.
FIG. 6 is a diagram illustrating a state in which the terminal 101 displays the definition information of the database file to be migrated of the migration source database system 201 on the output unit 161 and subsequently connects to the migration destination database system 301. is there. In the window showing the migration source database system, a part of the database file selected as the migration target and a window showing the migration destination database system are displayed on one screen. The operator selects items and conditions to be transferred using input devices such as a mouse,
By executing the copy instruction, the data conversion unit 151 creates an SQL statement. For example, by selecting an arbitrary table from the table list in the source database column on the screen and moving it to the destination database column, CREATE T
An ABLE statement will be created. In addition, CREA
When the TE TABLE statement is transmitted and executed in the migration destination database system 301, the result is reflected by being displayed in the migration destination database column. By adopting such a configuration, a system is provided in which the database migration work can be easily understood visually and the work can be carried out interactively. As described above, a database migration processing method that can prevent data destruction due to an operation error by using a visual user interface of database software and a simple query function is provided. In addition, when general-purpose database software that implements a GUI is adopted as in the above-described embodiment, it is sufficient to develop only a service program that adds functions necessary for implementing the present invention. During the period, a program that causes the computer to perform the processing as the database migration processing terminal 101 becomes available.

【0031】上記実施例では、ネットワークとしてLA
N接続の例を説明したが、上記したDBの接続機能を実
現できるものであれば、ネットワークはLANに限定さ
れるものでなく、専用回線、公衆網等任意のネットワー
クに適用できる。また、上記実施例は、移行先データベ
ースシステムとして、1のデータベースシステムを示し
たが、かならずしも、移行先が一のデータベースシステ
ムである必要はなく、2以上のデータベースシステムへ
の移行作業を並行的に行うことも可能である。
In the above embodiment, the network is LA
Although an example of N connection has been described, the network is not limited to a LAN as long as it can realize the above-described DB connection function, and can be applied to any network such as a dedicated line or a public network. In the above embodiment, one database system is shown as the migration destination database system. However, it is not always necessary that the migration destination is one database system, and the migration work to two or more database systems can be performed in parallel. It is also possible to do.

【0032】また、上記実施例では、データベース移行
処理部101aとして、「MS−ACCESS」(マイ
クロソフト社、商標)及び前記サービスプログラムから
なる構成を採用したが、その他のデータベースソフトウ
エアとサービスプログラムにより構成することや新たに
ソフトウェア/ハードウェアを作成することでも実現可
能である。
In the above embodiment, the database migration processing unit 101a employs a configuration including "MS-ACCESS" (a trademark of Microsoft Corporation) and the service program. However, the database migration processing unit 101a includes other database software and a service program. It can also be realized by creating new software / hardware.

【0033】また、上記実施例では、また、データ変換
手段151は、APIとしてODBC(Open Da
taBase Connectivity)を採用した
構成をとっているが、他のAPIを採用してもよく、本
発明のデータ変換手段としての処理機能をなしうるドラ
イバを用いた構成でもよい。
Further, in the above embodiment, the data conversion means 151 uses the ODBC (Open Da
taBase Connectivity), but other APIs may be used, or a configuration using a driver that can perform a processing function as data conversion means of the present invention may be used.

【0034】また、上記実施例では、端末101と、移
行元/移行先データベースシステムに備えられたデータ
通信ミドルウェア131、231、331としては、
「SQL*Net」(商標、オラクル社)を用いたが、
ほかのデータ通信ミドルウェアを用いてもよい。
In the above embodiment, the terminal 101 and the data communication middleware 131, 231, 331 provided in the source / destination database system are as follows:
"SQL * Net" (trademark, Oracle) was used,
Other data communication middleware may be used.

【0035】また、上記実施例では、移行元/移行先の
データベースシステムの仕様が異なるものとして、ドラ
イバ151b、151b’を用いる例を説明したが、移
行元/移行先のデータベースシステムの仕様が同一であ
る場合には、移行元/移行先のデータベースシステムに
対応する1のドライバで足りることになる。さらに、別
のデータベースシステムを移行元/移行先として移行作
業を行うためには、該データベースシステムに対応する
ドライバ151b’’を導入し、ドライバマネージャ1
51aに認識させればよい。
In the above-described embodiment, an example is described in which the drivers 151b and 151b 'are used assuming that the specifications of the source / destination database systems are different. However, the specifications of the source / destination database systems are the same. In this case, one driver corresponding to the source / destination database system is sufficient. Furthermore, in order to perform a migration operation using another database system as a migration source / destination, a driver 151b ″ corresponding to the database system is introduced, and the driver manager 1
What is necessary is just to make 51a recognize.

【0036】[0036]

【発明の効果】本発明によれば、端末の操作者の習熟度
に依存しない、操作性に優れたデータベース移行処理方
法、装置並びにプログラムが提供される。また、データ
ベース移行処理の結果の確認作業をより容易に行うこと
が可能となる。その理由は、GUIにより移行操作を受
け付け、GUIによる入力内容をSQL文に変換して、
データベース移行処理、移行結果確認処理を視覚的、会
話的に行わせる方式を採用したことにある。
According to the present invention, there is provided a database transfer processing method, apparatus, and program excellent in operability, which do not depend on the proficiency of a terminal operator. In addition, it is possible to more easily confirm the result of the database migration process. The reason is that the GUI accepts the migration operation, converts the input content of the GUI into an SQL sentence,
The point is that a method of visually and interactively performing database migration processing and migration result confirmation processing is employed.

【0037】また、本発明によれば、データベースシス
テム移行作業において細かい権限管理が可能となる。そ
の理由は、あらかじめ処理手順をまとめたうえバイナリ
化した実行ファイル(ストアドプロシージャ)を利用し
たこと、さらには、会話的な処理の中で権限確認処理を
行うことできるよう構成したことにある。
Further, according to the present invention, fine authority management becomes possible in the database system migration work. The reason for this is that an executable file (stored procedure) that has been compiled in advance and the processing procedure is used is used, and furthermore, the configuration is made such that the authority confirmation processing can be performed in interactive processing.

【0038】本発明によれば、拡張性、汎用性に優れた
データベースシステムの移行方法が提供される。その理
由は、本発明にかかるデータベース移行システムは各デ
ータベースシステムと端末間のネットワーク等の接続経
路について、SQLの透過性を確保すれば実施可能とな
るからである。さらに、APIとしてODBC、JDB
C(商標)等の標準化志向のAPIを、本発明にかかる
データベース移行システムの標準のAPIとして定めた
場合には、所望のデータベースシステムに対応するドラ
イバを入手することで、容易に本発明の適用が可能とな
る利点を有する。
According to the present invention, there is provided a method for migrating a database system which is excellent in scalability and versatility. The reason is that the database migration system according to the present invention can be implemented as long as SQL transparency is secured for connection paths such as networks between each database system and terminals. Furthermore, ODBC, JDB as API
When a standardization-oriented API such as C (trademark) is defined as a standard API of the database migration system according to the present invention, a driver corresponding to a desired database system is obtained, so that the present invention can be easily applied. Has the advantage that it becomes possible.

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

【図1】本発明の一実施例であるデータベースシステム
移行方法におけるシステムの概要を表す図である。
FIG. 1 is a diagram showing an outline of a system in a database system migration method according to an embodiment of the present invention.

【図2】本発明の一実施例である端末、データベースシ
ステムの構成を表すブロック図である。
FIG. 2 is a block diagram illustrating a configuration of a terminal and a database system according to an embodiment of the present invention.

【図3】本発明の一実施例であるデータベース移行処理
の流れを示したフローチャートである。
FIG. 3 is a flowchart illustrating a flow of a database migration process according to an embodiment of the present invention.

【図4】本発明の別の実施例における端末、データベー
スシステムの構成を表すブロック図である。
FIG. 4 is a block diagram illustrating a configuration of a terminal and a database system according to another embodiment of the present invention.

【図5】本発明の別の実施例におけるデータベース移行
処理の流れを示したフローチャートである。
FIG. 5 is a flowchart showing a flow of a database migration process according to another embodiment of the present invention.

【図6】本発明の別の実施例における端末に表示される
GUI操作画面のイメージ図である。
FIG. 6 is an image diagram of a GUI operation screen displayed on a terminal according to another embodiment of the present invention.

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

101 端末 121 接続手段 131、231、331 データ通信ミドルウェア 141 入力手段 151 データ変換手段 161 出力手段 171 補助記憶装置 201、301 移行元データベースシステム、移行先
データベースシステム 202、302 移行元データベース、移行先データベ
ース 500 ネットワーク
101 terminal 121 connection means 131, 231, 331 data communication middleware 141 input means 151 data conversion means 161 output means 171 auxiliary storage device 201, 301 source database system, destination database system 202, 302 source database, destination database 500 network

Claims (15)

【特許請求の範囲】[Claims] 【請求項1】データ通信ミドルウェアを介した一のデー
タベースシステムから他のデータベースシステムへのデ
ータベースファイルの移行方法において、 (A)データベース移行処理を行う端末は、前記一のデ
ータベースシステムに接続し前記一のデータベースシス
テムで記憶管理されているデータベースファイル情報を
取得して出力するステップと、 (B)前記端末は、前記データベースファイル情報に基
づき移行を行うデータベースファイルの問い合わせ条件
の入力を受け付けるステップと、 (C)前記端末は、前記入力内容に対応するSQL(St
ructured Query Language;構造化問い合わせ言語)
文を生成し、前記SQL文を前記一のデータベースシス
テムに送信するステップと、 (D)前記端末は、前記SQL文に対する応答として、
前記SQL文の実行結果を受け取って出力するととも
に、記憶保存するステップと、 (E)前記端末は、前記SQL文の実行結果に基づいて
移行対象となるデータベースファイルの操作命令の入力
を受け付けるステップと、 (F)前記端末は、前記他のデータベースシステムに接
続し前記入力内容の対象となるデータベースファイルの
定義情報を内容とする前記他のデータベースシステムに
対応したSQL文と、前記入力内容に基づく、前記他の
データベースシステムに対応したデータ操作命令のSQ
L文を作成するステップと、 (G)前記各SQL文を前記他のデータベースシステム
に送信するステップと、 (H)前記各SQL文に対する応答として、前記他のデ
ータベースシステムより送信された処理結果を出力する
ステップと、 を有することを特徴とするデータベースシステムの移行
方法。
1. A method for migrating a database file from one database system to another database system via a data communication middleware, wherein: (A) a terminal for performing a database migration process connects to the one database system and (B) obtaining and outputting database file information stored and managed by the database system; and (B) receiving input of a query condition of a database file to be migrated based on the database file information. C) The terminal sends an SQL (St.
ructured Query Language)
Generating a sentence and transmitting the SQL sentence to the one database system; and (D) the terminal responds to the SQL sentence by:
Receiving and outputting the execution result of the SQL statement and storing and storing the result; and (E) receiving, based on the execution result of the SQL statement, an input of an operation command for a database file to be migrated. (F) the terminal is connected to the other database system, and based on the input content, an SQL statement corresponding to the other database system containing the definition information of the database file to be the input content. SQ of a data operation instruction corresponding to the other database system
Creating an L statement; (G) transmitting each of the SQL statements to the other database system; and (H) transmitting a processing result transmitted from the other database system as a response to each of the SQL statements. Outputting, and a method for migrating a database system.
【請求項2】請求項1に記載のデータベースシステムの
移行方法において、 前記端末が、前記各データベースシステムに接続するた
めのアプリケーション・プログラミング・インターフェ
イス(Application Programming Interface;「AP
I」という)は、あらかじめ定められたAPIであるこ
とを特徴とするデータベースシステムの移行方法。
2. The method of migrating a database system according to claim 1, wherein the terminal is connected to each of the database systems by an application programming interface (AP).
I ") is a predetermined API, a method for migrating a database system.
【請求項3】請求項1又は2に記載のデータベースシス
テムの移行方法において、 前記端末が前記各SQL文を生成する処理は、 前記一のデータベースシステム及び前記他のデータベー
スシステムにあらかじめ記憶保存されている権限管理処
理のなされた実行ファイルを選択することによって行わ
れることを含むこと、 を特徴とするデータベースシステムの移行方法。
3. The method for migrating a database system according to claim 1, wherein the process of generating each of the SQL statements by the terminal is stored and saved in the one database system and the other database system in advance. A database system migration method, which is performed by selecting an executable file for which authority management processing has been performed.
【請求項4】請求項1乃至3いずれか一に記載のデータ
ベースシステムの移行方法において、 前記端末は、移行対象としてデータベースファイルを記
憶保存したあらかじめ作成されている退避ファイルを選
択可能とすること、 を特徴とするデータベースシステムの移行方法。
4. The method for migrating a database system according to claim 1, wherein the terminal is capable of selecting a previously created save file storing and saving a database file as a migration target. A method for migrating a database system, characterized in that:
【請求項5】請求項1乃至4いずれか一に記載のデータ
ベースシステムの移行方法において、 前記端末は、 前記他のデータベースシステムに対して移行処理の結果
の確認を行うためのSQL文を送信するステップ、 前記SQL文に対する応答と前記一のデータベースシス
テムより受け取った応答を記憶保存した内容とを照合す
るステップ、 照合した結果が異常を示す場合には、操作者に警告を行
うステップ、を含むこと、 を特徴とするデータベースシステムの移行方法。
5. The database system migration method according to claim 1, wherein the terminal transmits an SQL statement for confirming a result of the migration process to the another database system. Collating the response to the SQL statement with the content stored and stored in the response received from the one database system; and warning the operator if the collation result indicates an abnormality. A method for migrating a database system, comprising:
【請求項6】データ通信ミドルウェアを介したデータベ
ースファイルの移行処理を行う端末を構成するコンピュ
ータに、 (A)一のデータベースシステムに接続し前記一のデー
タベースシステムで記憶管理されているデータベースフ
ァイル情報を取得して出力する処理と、 (B)前記データベースファイル情報に基づき移行を行
うデータベースファイルの問い合わせ条件の入力を受け
付ける処理と、 (C)前記問い合わせ条件に対応するSQL(Structur
ed Query Language;構造化問い合わせ言語)文を生
成し、前記SQL文を前記一のデータベースシステムに
送信する処理と、 (D)前記SQL文に対する応答として、前記SQL文
の実行結果を受け取って出力するとともに、記憶保存す
る処理と、 (E)前記SQL文の実行結果に基づいて移行対象とな
るデータベースファイルの操作命令の入力を受け付ける
処理と、 (F)他のデータベースシステムに接続し前記選択した
データベースファイルの定義情報を内容とする前記他の
データベースシステムに対応したSQL文と、前記問い
合わせ命令及び移行命令に基づく前記他のデータベース
システムに対応したデータ操作命令のSQL文を作成す
る処理と、 (G)前記各SQL文を前記他のデータベースシステム
に送信する処理と、 (H)前記各SQL文に対する応答として、前記他のデ
ータベースシステムより送信された処理結果を出力する
処理と、 を実行させることを特徴とするデータベースシステム移
行処理プログラム。
6. A computer constituting a terminal for performing a process of transferring a database file via a data communication middleware, comprising: (A) connecting to one database system and storing database file information stored and managed by the one database system; (B) a process of receiving an input of a query condition of a database file to be migrated based on the database file information; and (C) an SQL (Structur) corresponding to the query condition.
ed Query Language: a process for generating a sentence and transmitting the SQL sentence to the one database system; and (D) receiving and outputting an execution result of the SQL sentence as a response to the SQL sentence. And (E) receiving an input of an operation command for a database file to be migrated based on the execution result of the SQL statement, and (F) connecting to another database system and selecting the selected database. (G) creating a SQL statement corresponding to the other database system containing the file definition information and a SQL statement of a data operation instruction corresponding to the other database system based on the inquiry command and the migration command; And (H) transmitting each of the SQL statements to the other database system. Outputting a processing result transmitted from the other database system as a response to each SQL statement.
【請求項7】請求項6に記載のデータベースシステム移
行処理プログラムにおいて、 前記端末が、前記各データベースシステムに接続するた
めのアプリケーション・プログラミング・インターフェ
イス(Application Programming Interface;「AP
I」という)は、あらかじめ定められたAPIであるこ
とを特徴とするデータベースシステム移行処理プログラ
ム。
7. The database system migration processing program according to claim 6, wherein the terminal is connected to each of the database systems by an application programming interface (AP).
I ") is a database system migration processing program, which is a predetermined API.
【請求項8】請求項6又は7に記載のデータベースシス
テム移行処理プログラムにおいて、前記端末が前記各S
QL文を生成する処理は、 前記一のデータベースシステム及び前記他のデータベー
スシステムにあらかじめ記憶保存されている権限管理処
理のなされた実行ファイルを選択することによって行わ
れることを含むこと、 を特徴とするデータベースシステム移行処理プログラ
ム。
8. The database system migration processing program according to claim 6, wherein said terminal is connected to each of said S
The process of generating a QL sentence includes performing the process by selecting an executable file that has been subjected to authority management processing and stored in advance in the one database system and the other database system. Database system migration processing program.
【請求項9】請求項6乃至8いずれか一に記載のデータ
ベースシステム移行処理プログラムにおいて、 前記プログラムにより、前記端末が提示する移行対象に
は、データベースファイルを記憶保存したあらかじめ作
成されている退避ファイルを含むこと、 を特徴とするデータベースシステム移行処理プログラ
ム。
9. The database system migration processing program according to any one of claims 6 to 8, wherein the migration target presented by the terminal by the program is a previously created evacuation file storing and saving a database file. A database system migration processing program, comprising:
【請求項10】請求項6乃至9いずれか一に記載のデー
タベースシステム移行処理プログラムにおいて、 前記端末は、 前記他のデータベースシステムに対して移行処理の結果
の確認を行うためのSQL文を送信する処理、 前記SQL文に対する応答と前記一のデータベースシス
テムより受け取った応答を記憶保存した内容とを照合す
る処理、 照合した結果が異常を示す場合には、操作者に警告を行
う処理、を含むこと、を特徴とするデータベースシステ
ム移行処理プログラム。
10. The database system migration processing program according to claim 6, wherein the terminal transmits an SQL statement for confirming a result of the migration process to the another database system. Processing, collating the response to the SQL sentence with the content stored and stored in the response received from the one database system, and, if the collation result indicates an abnormality, warning the operator. , A database system migration processing program.
【請求項11】一のデータベースシステムから他のデー
タベースシステムへのデータベースファイルの移行処理
を行うための端末において、 前記端末は、 (A)各データベースシステムへの接続手段と、 (B)各データベースシステムとデータ通信するミドル
ウェアと (C)前記各データベースシステムの状態及び前記各デ
ータベースシステムからのSQL(Structured Query
Language;構造化問い合わせ言語)文に対する応答を
出力して操作者に知らせる出力手段と、 (D)前記出力手段に出力された内容に基づいてなされ
る操作者のデータベース操作命令を受け付ける入力手段
と、 (E)前記操作命令からデータ操作命令を内容とするS
QL文、及びデータベースファイルの定義情報を内容と
するSQL文を生成し及び前記各SQL文に対する応答
を共通のフォーマットに変換するデータ変換手段と (F)前記各SQL文に対する応答を記憶保存する記憶
保存手段と、 (G)前記各手段の実行制御を行うデータベース移行処
理手段とを備えたことを特徴とする端末。
11. A terminal for performing a process of migrating a database file from one database system to another database system, the terminal comprising: (A) connection means for each database system; and (B) each database system. And (C) the state of each database system and the SQL (Structured Query) from each database system.
(D. Language; structured query language) output means for outputting a response to the sentence to inform the operator; (D) input means for receiving an operator's database operation instruction based on the content output to the output means; (E) S containing a data operation instruction from the operation instruction
A data conversion means for generating a SQL sentence containing the definition information of the QL sentence and the database file, and converting the response to the SQL sentence into a common format; and (F) storing the response to the SQL sentence. A terminal, comprising: a storage unit; and (G) a database migration processing unit that controls execution of the units.
【請求項12】請求項11に記載の端末において、 前記端末が、前記各データベースシステムに接続するた
めのアプリケーション・プログラミング・インターフェ
イス(Application Programming Interface;「AP
I」という)は、あらかじめ定められたAPIであるこ
とを特徴とする端末。
12. The terminal according to claim 11, wherein said terminal is connected to each of said database systems by an application programming interface (AP).
I ") is a predetermined API.
【請求項13】請求項11又は12に記載の端末におい
て、 前記端末は、前記操作命令から前記各SQL文を生成す
る処理として、前記一のデータベースシステム及び前記
他のデータベースシステムにあらかじめ記憶保存されて
いる権限管理処理のなされた実行ファイルを選択実行す
ることによって行うことを含むこと、 を特徴とする端末。
13. The terminal according to claim 11, wherein the terminal is stored in advance in the one database system and the other database system as a process of generating the SQL statements from the operation command. And selecting and executing an executable file for which the authority management processing has been performed.
【請求項14】請求項11乃至13いずれか一に記載の
端末において、 前記データベース移行処理手段は、 操作者に、操作対象としてデータベースファイルを記憶
保存したあらかじめ作成されている退避ファイルを選択
可能とすること、 を特徴とする端末。
14. The terminal according to claim 11, wherein the database migration processing means enables an operator to select a previously created evacuation file in which a database file is stored and saved as an operation target. Terminal.
【請求項15】請求項11乃至14いずれか一に記載の
端末において、 前記データベース移行処理手段は、 前記他のデータベースシステムに対して移行処理の結果
の確認を行うためのSQL文を送信する機能と前記SQ
L文に対する応答と前記一のデータベースシステムより
送信された応答を記憶保存した内容とを照合する機能
と、 照合した結果が異常を示す場合には、操作者に警告を行
う機能、を含むこと、を特徴とする端末。
15. The terminal according to claim 11, wherein said database migration processing unit transmits an SQL statement for confirming a result of the migration process to said another database system. And the SQ
A function of collating the response to the L sentence with the content stored and stored in the response transmitted from the one database system, and a function of giving a warning to an operator when the result of the collation indicates an abnormality, A terminal characterized by the following.
JP2001161969A 2001-05-30 2001-05-30 Method/device/program for migrating database system Pending JP2002351710A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001161969A JP2002351710A (en) 2001-05-30 2001-05-30 Method/device/program for migrating database system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001161969A JP2002351710A (en) 2001-05-30 2001-05-30 Method/device/program for migrating database system

Publications (1)

Publication Number Publication Date
JP2002351710A true JP2002351710A (en) 2002-12-06

Family

ID=19005168

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001161969A Pending JP2002351710A (en) 2001-05-30 2001-05-30 Method/device/program for migrating database system

Country Status (1)

Country Link
JP (1) JP2002351710A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7676492B2 (en) 2006-04-07 2010-03-09 International Business Machines Corporation Migration of database using serialized objects
US7885968B1 (en) 2009-09-18 2011-02-08 Inforce Co., Ltd. Data conversion method processing for conversion of a first database and a plurality of queries into a second database and plurality of queries and apparatus program and storage media of the same
US8250027B2 (en) 2006-11-06 2012-08-21 Nec Corporation Computer system, database access method, application server, and program
US8510274B2 (en) 2011-12-13 2013-08-13 Inforce Co., Ltd. Method for verifying conversion, apparatus and program of the same

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7676492B2 (en) 2006-04-07 2010-03-09 International Business Machines Corporation Migration of database using serialized objects
US8250027B2 (en) 2006-11-06 2012-08-21 Nec Corporation Computer system, database access method, application server, and program
JP5126064B2 (en) * 2006-11-06 2013-01-23 日本電気株式会社 Computer system
US7885968B1 (en) 2009-09-18 2011-02-08 Inforce Co., Ltd. Data conversion method processing for conversion of a first database and a plurality of queries into a second database and plurality of queries and apparatus program and storage media of the same
US8510274B2 (en) 2011-12-13 2013-08-13 Inforce Co., Ltd. Method for verifying conversion, apparatus and program of the same

Similar Documents

Publication Publication Date Title
US10324690B2 (en) Automated enterprise software development
US6148323A (en) System and method for managing the execution of system management
US6366916B1 (en) Configurable and extensible system for deploying asset management functions to client applications
US20180107501A1 (en) Instantiation of javascript object
US7620658B2 (en) Configuration of a directory system
JP3090435U (en) A system for creating, executing, and maintaining business-to-business processes
US20070220065A1 (en) Method, system, and product for maintaining software objects during database upgrade
JPH09269909A (en) System and method for integrating editing and versioning in data repository
US20130283210A1 (en) Support Mechanisms for Improved Group Policy Management User Interface
JPH0667951A (en) Database management system
JP2008537818A (en) Adapter architecture for mobile data systems
JPH0675889A (en) Method and apparatus for executing server function in dispersed non-uniform environment
CA2044022A1 (en) Common agent computer management system and method
JPH0675846A (en) Method and apparatus for directing and calling object of application with database
JPH0664559B2 (en) Method and apparatus for dealing with object oriented calls of applications to client interfaces
MX2007015887A (en) Data centric workflows.
US20210397604A1 (en) Computerized implementation framework to abstract data object definitions across multiple computing environments
WO2021022714A1 (en) Message processing method for cross-block chain node, device, apparatus and medium
US20040064458A1 (en) Deletion objector for determining whether or not to delete an object from an application
JPH09223090A (en) Osi multilayer management system
RU2359316C2 (en) Method of managing software components integrated into portable system
US20040225674A1 (en) Rules customization and related methods
US11330053B1 (en) Making eventual consistency cache updates deterministic
US6917939B1 (en) Method and apparatus for configurable mapping between data stores and data structures and a generalized client data model using heterogeneous, specialized storage
JP2002351710A (en) Method/device/program for migrating database system

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20051004

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20060214