JP2002366400A - Data transfer method, program, and storage medium - Google Patents

Data transfer method, program, and storage medium

Info

Publication number
JP2002366400A
JP2002366400A JP2001175991A JP2001175991A JP2002366400A JP 2002366400 A JP2002366400 A JP 2002366400A JP 2001175991 A JP2001175991 A JP 2001175991A JP 2001175991 A JP2001175991 A JP 2001175991A JP 2002366400 A JP2002366400 A JP 2002366400A
Authority
JP
Japan
Prior art keywords
database
file
files
stored
data
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
JP2001175991A
Other languages
Japanese (ja)
Inventor
Masayuki Shirohata
政幸 白旗
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.)
NTT Comware Corp
Original Assignee
NTT Comware 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 NTT Comware Corp filed Critical NTT Comware Corp
Priority to JP2001175991A priority Critical patent/JP2002366400A/en
Publication of JP2002366400A publication Critical patent/JP2002366400A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To provide a data transfer method which reduces the burden on operator's operation and shortens the transfer time at the time of transferring a file in a database. SOLUTION: The data transfer method includes a plurality of transfer source servers 2 to 7 in which files of the database are stored and a device 1 as the data transfer destination which acquires files of the database which are stored in transfer source servers 2 to 7. A stop instruction is sent from transfer source servers 2 to 7 to a control part 11 in the device 1 as the data transfer destination. The control part 11 receives the stop instruction to start a data acquisition part 12 and acquires files stored in respective servers. Acquired files are stored in storage parts 16a to 16f, and control files generated by a control file generation part 13 are added, and environmental variables are set again by an environmental variable resetting part 14. Thereby, the database can be started even in the transfer destination.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、移行元の複数のサ
ーバに記憶されているデータベースのファイルを移行先
の記憶装置に移行させるデータ移行方法、プログラム及
び記憶媒体に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data migration method, a program, and a storage medium for migrating database files stored in a plurality of migration source servers to a migration destination storage device.

【0002】[0002]

【従来の技術】従来からデータベースを移行するには、
中間ファイルを作成してデータベースを移行する方法
や、データベースリンクを使用する方法などがある。以
下図面を参照して簡単に説明する。
2. Description of the Related Art Conventionally, to migrate a database,
There are methods such as creating an intermediate file and migrating the database, and using a database link. The following is a brief description with reference to the drawings.

【0003】図5は、サーバに記憶されているデータベ
ースを中間ファイルを用いてデータ移行先の装置への移
行を示す構成図である。
FIG. 5 is a block diagram showing the transfer of a database stored in a server to a data transfer destination device using an intermediate file.

【0004】図に示すデータ移行先の装置10は、デー
タベースのファイルが記憶されている移行元サーバ2〜
7と、移行元サーバ2〜7から送られるファイルを一時
的に格納する中間ファイル20〜70と、中間ファイル
20〜70に格納されているファイルを集めて記憶する
データ移行先の装置10とを含んだ構成である。
[0004] A data transfer destination apparatus 10 shown in FIG. 1 is a data transfer destination server 2 which stores database files.
7, intermediate files 20 to 70 for temporarily storing files sent from the source servers 2 to 7, and a data transfer destination device 10 for collecting and storing files stored in the intermediate files 20 to 70. It is a configuration that includes.

【0005】まずは、移行元サーバ2〜7のオラクルの
動作を停止させる。そして、データベースを使用するの
に必要なファイルで移行先に送信するものを選ぶ。次
に、中間ファイル20〜70に一時的に送信するファイ
ルを格納する。そして、データ移行先の装置10を立ち
上げて、中間ファイル20〜70に一時的に格納されて
いるファイルを移行先に挿入出来るように移行先の領域
を確保する。領域が確保されると中間ファイル20〜7
0からデータ移行先の装置10にファイルが移行され
る。
[0005] First, the operation of Oracle of the migration source servers 2 to 7 is stopped. Then select the files needed to use the database that will be sent to the destination. Next, a file to be temporarily transmitted is stored in the intermediate files 20 to 70. Then, the data transfer destination device 10 is started up, and a transfer destination area is secured so that files temporarily stored in the intermediate files 20 to 70 can be inserted into the transfer destination. When the area is secured, the intermediate files 20 to 7
The file is migrated from 0 to the data migration destination device 10.

【0006】移行元サーバ2〜7から中間ファイル20
〜70に移行元のオラクルを使用するのに必要なファイ
ルを一回で読み込む。そして、移行元の全テーブルを削
除する。そして、中間ファイル20〜70に記憶されて
いるファイルをデータ移行先の装置10に一回で読み込
む。
[0006] The intermediate files 20 from the source servers 2 to 7
A file required to use the source Oracle is read at one time at ~ 70. Then, all tables at the migration source are deleted. Then, the files stored in the intermediate files 20 to 70 are read into the data transfer destination device 10 at one time.

【0007】中間ファイルを使用して読み書きを行い移
行元のテーブルを移行するのに一日くらいの時間が必要
になる。
[0007] It takes about one day to read and write using the intermediate file and migrate the source table.

【0008】図6は、サーバに記憶されているデータベ
ースをデータベースリンクを使用することによりデータ
移行先の装置への移行を示す構成図である。
FIG. 6 is a configuration diagram showing the transfer of the database stored in the server to the data transfer destination device by using the database link.

【0009】移行元サーバ2〜7には、各サーバの業務
で使用されるデータベースのファイルが記憶されてい
る。データ移行先の装置10には、移行元サーバ2〜7
から送られるデータベースのファイルが記憶されるデー
タ移行先の装置である。
The source servers 2 to 7 store database files used in the operations of each server. The data transfer destination device 10 includes transfer source servers 2 to 7
Is a data transfer destination device in which a database file sent from the server is stored.

【0010】データベースリンクとは、移行元サーバ2
〜7からデータ移行先の装置10にファイルを送る際
に、データ移行先の装置10に送られるファイルを取得
可能にするためにあらかじめ取得に必要な領域を確保
し、その確保された領域にファイルを移行させる方法で
ある。確保された領域にはオラクルを使用するためのイ
ンスタンスを設定する。そして、設定されたインスタン
スにデータをインサートする。インサートの動作が終了
したら移行元サーバ2〜7に記憶されているデータベー
スのファイルを削除する。
The database link means the source server 2
7 to send a file to the data transfer destination apparatus 10, an area necessary for acquisition is secured in advance so that a file to be sent to the data transfer destination apparatus 10 can be acquired, and the file is stored in the secured area. This is the method of shifting. Set an instance to use Oracle in the reserved area. Then, the data is inserted into the set instance. When the insert operation is completed, the database files stored in the source servers 2 to 7 are deleted.

【0011】[0011]

【発明が解決しようとする課題】しかしながら、上述の
データベースを移行する方法では、各サーバに記憶され
ているデータベースのファイルを移行先の記憶装置に移
行するのに、データベースを移行する際には中間ファイ
ルやデータベースリンクにより、データベースのファイ
ルを移行させていたので移行するのに時間がかかる等の
問題が生じていた。また、中間ファイルを必要とする方
法では、多量なワークエリアが必要とされるためそのワ
ークエリアを確保する際の設定にもオペレータの操作負
担が生じていた。
However, in the above-described method of migrating a database, the method of migrating a database file stored in each server to a storage device of a migration destination requires a medium when migrating a database. Since the files of the database were migrated due to the files and the database link, there was a problem that it took time to migrate the files. Further, in the method requiring an intermediate file, a large amount of work area is required, so that the operation load of the operator is also caused in setting for securing the work area.

【0012】本発明では、上述の課題に鑑み、各サーバ
から送られるデータベースのファイルを取得し、一つの
格納場所に格納し、新たなファイルを生成してデータベ
ースを構築することによりオペレータの行う操作の負担
を軽減し、データベースのファイルを移行する際の移行
時間を短縮するデータ移行方法を提供することを目的と
する。
In the present invention, in view of the above-mentioned problems, an operation performed by an operator by acquiring a database file sent from each server, storing the file in one storage location, generating a new file, and constructing the database. It is an object of the present invention to provide a data migration method that reduces the load on the database and shortens the migration time when migrating database files.

【0013】[0013]

【課題を解決するための手段】上記従来の課題を解決す
るために、本発明の請求項1に記載されたデータ移行方
法は、複数のサーバに分散して配置されたデータベース
を取得するときのデータ移行方法であって、前記複数の
サーバのデータベースに格納された移行対象のファイル
を予め設定された取得手順に従って順次に取得する取得
ステップと、前記取得された複数のファイルを一つの格
納場所に格納して新たなファイルを生成する生成ステッ
プとを有することを特徴とする。
In order to solve the above-mentioned conventional problems, a data migration method according to a first aspect of the present invention provides a data migration method for acquiring a database distributed and arranged on a plurality of servers. A data migration method, wherein an acquisition step of sequentially acquiring files to be migrated stored in the databases of the plurality of servers according to a preset acquisition procedure, and storing the acquired plurality of files in one storage location Generating a new file by storing the file.

【0014】請求項1記載の本発明によれば、複数のサ
ーバのデータベースに格納された移行対象のファイルを
取得ステップにより予め設定された取得手順に従って順
次に取得し、取得された複数のファイルを一つの格納場
所に格納して新たなファイルを生成ステップにより生成
するので、データベースの移行に必要とされる領域設定
の操作の手間を省くことができる。その結果、オペレー
タの行う操作の負担を軽減し、データベースを移行する
際の移行時間を短縮することが可能になる。
According to the first aspect of the present invention, files to be migrated stored in databases of a plurality of servers are sequentially acquired according to an acquisition procedure set in advance by an acquiring step, and the acquired plurality of files are acquired. Since the file is stored in one storage location and a new file is generated by the generation step, it is possible to save time and effort in the operation of setting the area required for migrating the database. As a result, it is possible to reduce the burden of the operation performed by the operator and to shorten the migration time when migrating the database.

【0015】本発明の請求項2に記載されたデータ移行
プログラムは、複数のサーバに分散して配置されたデー
タベースを取得するときのデータ移行プログラムであっ
て、前記複数のサーバのデータベースに格納された移行
対象のファイルを予め設定された取得手順に従って順次
に取得する取得ステップと、前記取得された複数のファ
イルを一つの格納場所に格納して新たなファイルを生成
する生成ステップとを具備することを特徴とする。
[0015] A data migration program according to a second aspect of the present invention is a data migration program for acquiring a database distributed to a plurality of servers and stored in the databases of the plurality of servers. An acquisition step of sequentially acquiring the files to be migrated according to a preset acquisition procedure, and a generation step of storing the acquired plurality of files in one storage location and generating a new file. It is characterized by.

【0016】本発明の請求項3に記載されたデータ移行
プログラムが格納されたコンピュータ読み取り可能な記
憶媒体は、複数のサーバに分散して配置されたデータベ
ースを取得するときのデータ移行プログラムが格納され
たコンピュータ読み取り可能な記憶媒体であって、前記
複数のサーバのデータベースに格納された移行対象のフ
ァイルを予め設定された取得手順に従って順次に取得す
る取得ステップと、前記取得された複数のファイルを一
つの格納場所に格納して新たなファイルを生成する生成
ステップとを具備することを特徴とする。
According to a third aspect of the present invention, a computer-readable storage medium storing a data migration program stores a data migration program for acquiring a database distributed and arranged in a plurality of servers. An acquisition step of sequentially acquiring files to be migrated stored in the databases of the plurality of servers in accordance with a preset acquisition procedure; and Generating a new file by storing the new file in one storage location.

【0017】[0017]

【発明の実施の形態】以下、本発明の実施の形態を図面
を参照して説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0018】図1は、本発明の実施の形態に係るデータ
移行先の装置の構成を示す構成図である。
FIG. 1 is a configuration diagram showing a configuration of a data transfer destination apparatus according to an embodiment of the present invention.

【0019】複数の移行元サーバから一つの高速な大容
量の記憶領域を保持している大容量記憶装置にデータベ
ースを使用する際に必要となるファイルを移行させる。
Files required when using a database are transferred from a plurality of transfer source servers to a large-capacity storage device holding one high-speed large-capacity storage area.

【0020】大容量記憶装置とはデータ移行先の装置の
ことで、ここではデータ移行先の装置1のことであり、
移行元となる複数のサーバとは、入力サーバ2、原価計
算サーバ3、情報活用サーバ4、購買サーバ5、管理会
計サーバ6、資金管理サーバ7である。
The large-capacity storage device is a device to which data is migrated, and here is the device 1 to which data is migrated.
The plurality of servers as transfer sources are the input server 2, the cost calculation server 3, the information utilization server 4, the purchase server 5, the management accounting server 6, and the fund management server 7.

【0021】各移行元サーバ2〜7は、データ移行先の
装置1に、ネットワークを介して接続されている。
Each of the migration source servers 2 to 7 is connected to the data migration destination device 1 via a network.

【0022】データ移行先の装置1は、制御部11と、
データ取得部12と、制御ファイル生成部13と、環境
設定部14と、アドレス帳15と、記憶部16a〜16
fとを具備する。
The data transfer destination device 1 includes a control unit 11
Data acquisition unit 12, control file generation unit 13, environment setting unit 14, address book 15, storage units 16a to 16
f.

【0023】制御部11は、各移行元サーバ2〜7から
送られる業務停止の要求を検出する。また、データ取得
部12や制御ファイル生成部13などの各処理部の動作
を制御する。
The control unit 11 detects a business stop request sent from each of the source servers 2 to 7. In addition, it controls the operation of each processing unit such as the data acquisition unit 12 and the control file generation unit 13.

【0024】データ取得部12は、各移行元サーバ2〜
7に記憶されているデータベースを使用するのに必要な
ファイルを取得する。
The data acquisition unit 12 is connected to each of the source servers 2 to
7. Obtain the files needed to use the database stored in 7.

【0025】なお、データ取得部12は、各サーバ毎に
記憶されているデータベースを使用するのに必要なファ
イルを取得する際には、このデータベースのファイルの
中の制御ファイルは取得しない。
When the data acquisition unit 12 acquires a file necessary for using a database stored for each server, it does not acquire a control file in the database file.

【0026】制御ファイル生成部13は、各サーバから
取得したデータベースのファイルを集めて、この集めら
れたデータベースのファイルをオラクルなどのデータベ
ースソフトウェアで使用できるような制御ファイルを生
成する。
The control file generation unit 13 collects database files acquired from the respective servers, and generates a control file that can use the collected database files with database software such as Oracle.

【0027】環境設定部14は、取得したデータベース
のファイルを扱うための環境を設定し、アドレス帳15
には、各移行元サーバ2〜7に対応するアドレスが記憶
されている。また、記憶部16a〜16fには、各サー
バから取得したデータベースのファイルが記憶されてい
る。
The environment setting unit 14 sets an environment for handling the acquired database file, and sets an address book 15
Stores addresses corresponding to the source servers 2 to 7, respectively. The storage units 16a to 16f store database files acquired from the respective servers.

【0028】入力サーバ2は、アドレス21と、記憶部
22とを具備し、アドレス21は、入力サーバ2に記憶
されているデータベースのファイルの記憶場所を示す。
また、記憶部22には、契約管理、請求管理、受注管理
等の営業系、通信料管理及び経費などの入力データが記
憶されている。
The input server 2 includes an address 21 and a storage unit 22. The address 21 indicates a storage location of a database file stored in the input server 2.
In addition, the storage unit 22 stores input data such as sales management such as contract management, billing management, and order management, and communication charge management and expenses.

【0029】原価計算サーバ3は、アドレス31と、記
憶部32とを具備し、アドレス31は、原価計算サーバ
3に記憶されているデータベースのファイルを取得する
際に使用される。これにより、原価計算サーバ3に記憶
されているデータベースのファイルを移行することが可
能になる。また、記憶部32には、原価を計算したデー
タが記憶されている。
The cost calculation server 3 includes an address 31 and a storage unit 32. The address 31 is used when acquiring a file of a database stored in the cost calculation server 3. This makes it possible to transfer the database file stored in the cost calculation server 3. The storage unit 32 stores data on which the cost has been calculated.

【0030】情報活用サーバ4は、アドレス41と、記
憶部42とを具備し、アドレス41は、情報活用サーバ
4に記憶されているデータベースのファイルを取得する
際に使用される。これにより、情報活用サーバ4に記憶
されているデータベースのファイルを移行することが可
能になる。また、記憶部42には、購買、契約、請求デ
ータ等を顧客が参照しやすいように加工した二次データ
として記憶されている。
The information utilization server 4 includes an address 41 and a storage unit 42. The address 41 is used when acquiring a database file stored in the information utilization server 4. This makes it possible to transfer the database file stored in the information utilization server 4. The storage unit 42 stores purchase, contract, billing data, and the like as secondary data processed so as to be easily referred to by customers.

【0031】購買サーバ5は、アドレス51と、記憶部
52とを具備し、アドレス51は、購買サーバ5に記憶
されているデータベースのファイルを取得する際に使用
される。これにより、購買サーバ5に記憶されているデ
ータベースのファイルを移行することが可能になる。ま
た、記憶部52には、購入要求、決裁等の購買に関する
データが記憶されている。
The purchase server 5 includes an address 51 and a storage unit 52. The address 51 is used when acquiring a database file stored in the purchase server 5. This makes it possible to transfer the database file stored in the purchase server 5. Further, the storage unit 52 stores data relating to purchase such as purchase requests and approval.

【0032】管理会計サーバ6は、アドレス61と、記
憶部62とを具備し、アドレス61は、管理会計サーバ
6に記憶されているデータベースのファイルを取得する
際に使用される。これにより、管理会計サーバ6に記憶
されているデータベースのファイルを移行することが可
能になる。また、記憶部62には、事業計画、実行計
画、月次分析等の管理会計に関するデータが記憶されて
いる。
The management accounting server 6 has an address 61 and a storage unit 62. The address 61 is used when acquiring a database file stored in the management accounting server 6. This makes it possible to transfer the database file stored in the management accounting server 6. The storage unit 62 stores data relating to management accounting such as a business plan, an execution plan, and a monthly analysis.

【0033】資金管理サーバ7は、アドレス71と、記
憶部72とを具備し、アドレス71は、資金管理サーバ
7に記憶されているデータベースのファイルを取得する
際に使用される。これにより、資金管理サーバ7に記憶
されているデータベースのファイルを移行することが可
能になる。また、記憶部72には、契約、購買等のデー
タを加工した資金管理に関するデータが記憶されてい
る。
The fund management server 7 has an address 71 and a storage unit 72. The address 71 is used when acquiring a database file stored in the fund management server 7. Thereby, it becomes possible to transfer the files of the database stored in the fund management server 7. Further, the storage unit 72 stores data relating to fund management obtained by processing data such as contracts and purchases.

【0034】図2は、本発明のサーバに記憶されている
ファイルの構成を示す構成図である。
FIG. 2 is a configuration diagram showing the configuration of a file stored in the server of the present invention.

【0035】記憶部22の中には、データベースを構成
するするためのファイルが格納されている。具体的に
は、データベースを利用するために必要とされるコンフ
ィグファイル22aと、データファイル22bと、RE
DOログファイル22cとを含んだ構成である。
The storage unit 22 stores files for constituting a database. Specifically, a configuration file 22a required to use the database, a data file 22b,
The configuration includes a DO log file 22c.

【0036】コンフィグファイル22aは、移行元サー
バに記憶されている制御ファイルのパスの設定を行って
いる。また、データファイル22bは、データベースと
して使用されるデータをファイルとして管理している。
更には、REDOログファイル22cは、データベース
を立ち上げるときに使用される。
The configuration file 22a sets the path of the control file stored in the source server. The data file 22b manages data used as a database as a file.
Further, the REDO log file 22c is used when starting up the database.

【0037】コンフィグファイル22aと、データファ
イル22bと、REDOログファイル22cとは、それ
ぞれの移行元サーバから移行先であるデータ移行先の装
置1に送られる。
The configuration file 22a, the data file 22b, and the REDO log file 22c are transmitted from the respective source servers to the data transfer destination apparatus 1 as the destination.

【0038】なお、ここでは、コンフィグファイル22
a、データファイル22b、REDOログファイル22
cの三種類のファイルについて説明をしたが、この他に
も、データベースを構成するのに使用されるファイル
は、制御ファイルを除いて全てデータ移行先の装置1に
移行される。ただし、アーカイブファイルの場合には、
ファイルの指定のみを行う。
In this case, the configuration file 22
a, data file 22b, REDO log file 22
Although the three types of files c have been described, in addition to the above, all files used to configure the database are migrated to the data migration destination device 1 except for the control file. However, for archive files,
Only specify the file.

【0039】図3は、データ移行先の装置の動作を示す
フローチャートである。
FIG. 3 is a flowchart showing the operation of the data transfer destination device.

【0040】ステップS11では、移行元サーバ2〜7
から送られる業務停止命令を検出する。具体的には、S
QL(Structured Query Langu
age)のシェルスクリプトが起動して、移行元サーバ
2〜7の業務を停止させる。
In step S11, the source servers 2 to 7
Detects a business stop command sent from. Specifically, S
QL (Structured Query Langu)
The shell script of “age” is started, and the operations of the source servers 2 to 7 are stopped.

【0041】その際に、ファイルの移行前の状態とファ
イルの移行後の状態を比較することが出来るようにデー
タベースの情報を出力する。
At this time, database information is output so that the state before the file transfer and the state after the file transfer can be compared.

【0042】ここで出力されるデータベース情報は、テ
ーブル情報、スナップショット情報、インデックス情
報、スナップショットインデックス情報、ビュースキー
マ情報、インデックスカラム情報、テーブルの件数、ス
ナップショットの件数、ビューの件数、テーブルスペー
ス情報である。
The database information output here includes table information, snapshot information, index information, snapshot index information, view schema information, index column information, number of tables, number of snapshots, number of views, and table space. Information.

【0043】ステップS12では、移行元サーバ2〜7
から送られる業務停止命令に合わせてファイルデータの
取得の動作がされる。具体的にはUNIX(登録商標)
のシェルスクリプトが起動してデータ取得部12に読み
出され、移行元サーバ2〜7の記憶部に記憶されている
ファイルデータを取得する。これにより、データベース
のファイルを移行する際の移行時間を短縮することが出
来る。
In step S12, the source servers 2 to 7
The operation of obtaining file data is performed in accordance with the business stop command sent from the server. Specifically, UNIX (registered trademark)
Is started and read by the data acquisition unit 12 to acquire the file data stored in the storage units of the source servers 2 to 7. As a result, the migration time when migrating the database file can be reduced.

【0044】ステップS13では、指定された移行元サ
ーバ2〜7の中で指定された記憶部に記憶されているデ
ータファイルを取得して記憶部16a〜16fに記憶す
る。具体的には、ステップS12でのUNIXのシェル
スクリプトがデータ取得部12に読み出され、入力サー
バ2が指定されている場合には、そのサーバの記憶部2
2からファイルを取得する。同様に原価計算サーバ3が
指定されている場合には、そのサーバの記憶部32から
ファイルを取得する。
In step S13, the data files stored in the specified storage units in the specified migration source servers 2 to 7 are acquired and stored in the storage units 16a to 16f. Specifically, the UNIX shell script in step S12 is read by the data acquisition unit 12, and when the input server 2 is specified, the storage unit 2 of the server is specified.
Get the file from 2. Similarly, when the cost calculation server 3 is specified, the file is acquired from the storage unit 32 of the server.

【0045】ステップS14では、各サーバから集めら
れたデータファイルを使用するのに必要な制御ファイル
を生成する。
In step S14, a control file required to use the data files collected from each server is generated.

【0046】なお、ここでいう制御ファイルとは、デー
タベースを管理するためのファイルのことである。
The control file referred to here is a file for managing a database.

【0047】ステップS15では、環境変数の再設定を
行う。具体的には、UNIXのシェルスクリプトが環境
変数設定部に読み込まれ、環境変数が再設定される。
In step S15, the environment variables are reset. Specifically, the UNIX shell script is read into the environment variable setting unit, and the environment variables are reset.

【0048】ステップS16では、ファイル取得後にデ
ータベースを起動させる。具体的には、SQLのシェル
スクリプトが読み出されることにより、移行先のデータ
移行装置でもデータベースを起動させることが可能にな
る。
In step S16, the database is started after the file is obtained. Specifically, by reading the SQL shell script, the database can be activated even in the data migration device at the migration destination.

【0049】この時に、データベースで使用されている
情報を出力する。出力される情報は、テーブル情報と、
スナップショット情報と、インデックス情報と、スナッ
プショットインデックス情報と、ビュースキーマ情報
と、インデックスカラム情報と、テーブルの件数と、ス
ナップショットの件数と、ビューの件数と、テーブルス
ペース情報とである。
At this time, information used in the database is output. The information output is table information,
The information includes snapshot information, index information, snapshot index information, view schema information, index column information, the number of tables, the number of snapshots, the number of views, and table space information.

【0050】ここで、移行前のステップS11の処理で
出力された情報と、移行後に出力された情報をUNIX
のdiffコマンドで比較する。比較した結果、特に異
なっていなければ移行元サーバからデータ移行先の装置
1へのファイルの移行は終了する。
Here, the information output in the processing of step S11 before the transfer and the information output after the transfer are UNIX.
Are compared using the diff command. As a result of the comparison, if there is no particular difference, the migration of the file from the migration source server to the data migration destination device 1 ends.

【0051】図4は、移行元サーバの動作を示すフロー
チャートである。
FIG. 4 is a flowchart showing the operation of the migration source server.

【0052】ステップS21では、サーバの業務処理を
停止する。具体的には、移行元サーバ2〜7からの停止
要求によりデータ移行先の装置1のSQLのシェルスク
リプトが読み出され、データ移行先の装置1にファイル
を送信する動作に移る。
In step S21, the business process of the server is stopped. Specifically, the SQL shell script of the data migration destination device 1 is read in response to a stop request from the migration source servers 2 to 7, and the operation shifts to an operation of transmitting a file to the data migration destination device 1.

【0053】ステップS22では、使用されているオラ
クルの環境変数の設定を解除する。具体的には、ステッ
プS21の停止要求に合わせてUNIXのシェルスクリ
プトが読み出され、設定されている環境変数が解除され
る。
In step S22, the setting of the environment variables of the used Oracle is released. Specifically, the UNIX shell script is read in response to the stop request in step S21, and the set environment variables are released.

【0054】ステップS23では、使用されているオラ
クルのコンフィグファイル22aを修正する。ここで行
われるコンフィグファイル22aの修正は、移行先であ
るデータ移行先の装置1で行われる制御ファイルの生成
に失敗したときに、修正前の制御ファイルを使用するの
に必要となるからである。
In step S23, the configuration file 22a of the used Oracle is modified. This is because the modification of the configuration file 22a performed here is necessary to use the unmodified control file when the generation of the control file performed by the data migration destination device 1 as the migration destination fails. .

【0055】ステップS24では、使用されているデー
タファイル22bやREDOログファイル22cのコピ
ーが行われる。具体的には、移行先であるデータ移行先
の装置1でデータベースを起動させることが目的である
ために、データファイル22bやREDOログファイル
22c以外のコンフィグファイル22aなどもコピーす
る。また、アーカイブファイルの場合には、ファイルは
移行せずに移行先から呼び出せるように指定のみを変更
する。
In step S24, the used data file 22b and redo log file 22c are copied. More specifically, since the purpose is to activate the database in the data transfer destination device 1 as the transfer destination, the configuration file 22a other than the data file 22b and the REDO log file 22c is also copied. In the case of an archive file, only the specification is changed so that the file can be called from the migration destination without being migrated.

【0056】なお、上記説明した処理を行うための処理
プログラムは、本発明のデータ移行プログラムに相当す
るものであり、半導体メモリ、磁気ディスク、光ディス
ク、光磁気ディスク、磁気テープなどのコンピュータ読
み取り可能な記録媒体に格納することで流通可能にな
る。また、インターネット等の通信網を介して伝達する
ことが可能となる。
The processing program for performing the above-described processing corresponds to the data migration program of the present invention, and is readable by a computer such as a semiconductor memory, a magnetic disk, an optical disk, a magneto-optical disk, and a magnetic tape. It can be distributed by storing it on a recording medium. In addition, it is possible to transmit via a communication network such as the Internet.

【0057】[0057]

【発明の効果】以上説明したように、本発明によれば、
予め設定された取得手順に従ってデータファイルを順次
に取得し、一つの格納場所に格納し、新たなファイルを
生成してデータベースを構築することによりオペレータ
の行う操作の負担を軽減し、データベースのファイルを
移行する際の移行時間を短縮するデータ移行方法を提供
することが可能になる。
As described above, according to the present invention,
Data files are sequentially acquired in accordance with a preset acquisition procedure, stored in one storage location, a new file is generated and a database is constructed, thereby reducing the burden of operations performed by the operator, and the database file is saved. It is possible to provide a data migration method that reduces the migration time when migrating.

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

【図1】本発明の実施の形態に係るデータ移行先の装置
の構成を示す構成図である。
FIG. 1 is a configuration diagram showing a configuration of a data migration destination device according to an embodiment of the present invention.

【図2】本発明の移行元サーバに記憶されているファイ
ルの構成を示す構成図である。
FIG. 2 is a configuration diagram showing a configuration of a file stored in a migration source server of the present invention.

【図3】データ移行先の装置の動作を示すフローチャー
トである。
FIG. 3 is a flowchart illustrating an operation of a data transfer destination device.

【図4】移行元サーバの動作を示すフローチャートであ
る。
FIG. 4 is a flowchart illustrating an operation of a migration source server.

【図5】従来のサーバに記憶されているデータベースを
中間ファイルを用いてデータ移行先の装置への移行を示
す構成図である。
FIG. 5 is a configuration diagram showing migration of a database stored in a conventional server to a data migration destination device using an intermediate file.

【図6】従来のサーバに記憶されているデータベースを
データベースリンクを使用することによりデータ移行先
の装置への移行を示す構成図である。
FIG. 6 is a configuration diagram showing migration of a database stored in a conventional server to a data migration destination device by using a database link.

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

1 データ移行先の装置 11 制御部 12 データ取得部 13 制御ファイル 14 環境変数再設定部 15 アドレス帳 16a〜16f 記憶部 2 入力サーバ 21 アドレス 22 記憶部 3 原価計算サーバ 31 アドレス 32 記憶部 4 情報活用サーバ 41 アドレス 42 記憶部 5 購買サーバ 51 アドレス 52 記憶部 6 管理会計サーバ 61 アドレス 62 記憶部 7 資金管理サーバ 71 アドレス 72 記憶部 Reference Signs List 1 device to which data is transferred 11 control unit 12 data acquisition unit 13 control file 14 environment variable resetting unit 15 address book 16a to 16f storage unit 2 input server 21 address 22 storage unit 3 cost calculation server 31 address 32 storage unit 4 information utilization Server 41 address 42 storage unit 5 purchasing server 51 address 52 storage unit 6 management accounting server 61 address 62 storage unit 7 fund management server 71 address 72 storage unit

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 複数のサーバに分散して配置されたデー
タベースを取得するときのデータ移行方法であって、 前記複数のサーバのデータベースに格納された移行対象
のファイルを予め設定された取得手順に従って順次に取
得する取得ステップと、 前記取得された複数のファイルを一つの格納場所に格納
して新たなファイルを生成する生成ステップとを有する
ことを特徴とするデータ移行方法。
1. A data migration method for acquiring a database distributed and arranged on a plurality of servers, the method comprising: acquiring files to be migrated stored in the databases of the plurality of servers according to a preset acquisition procedure. A data migration method, comprising: an acquiring step of sequentially acquiring; and a generating step of storing the acquired plurality of files in one storage location and generating a new file.
【請求項2】 複数のサーバに分散して配置されたデー
タベースを取得するときのデータ移行プログラムであっ
て、 前記複数のサーバのデータベースに格納された移行対象
のファイルを予め設定された取得手順に従って順次に取
得する取得ステップと、 前記取得された複数のファイルを一つの格納場所に格納
して新たなファイルを生成する生成ステップとを具備す
ることを特徴とするデータ移行プログラム。
2. A data migration program for acquiring a database distributed and arranged on a plurality of servers, wherein a migration target file stored in the databases of the plurality of servers is acquired according to a preset acquisition procedure. A data migration program, comprising: an acquisition step of sequentially acquiring a plurality of files; and a generation step of generating a new file by storing the acquired plurality of files in one storage location.
【請求項3】 複数のサーバに分散して配置されたデー
タベースを取得するときのデータ移行プログラムが格納
されたコンピュータ読み取り可能な記憶媒体であって、 前記複数のサーバのデータベースに格納された移行対象
のファイルを予め設定された取得手順に従って順次に取
得する取得ステップと、 前記取得された複数のファイルを一つの格納場所に格納
して新たなファイルを生成する生成ステップとを具備す
ることを特徴とするデータ移行プログラムが格納された
コンピュータ読み取り可能な記憶媒体。
3. A computer-readable storage medium storing a data migration program for acquiring a database distributed and arranged on a plurality of servers, wherein a migration target stored in the databases of the plurality of servers is provided. And an acquisition step of sequentially acquiring the files according to a preset acquisition procedure, and a generation step of storing the acquired plurality of files in one storage location and generating a new file. Computer-readable storage medium storing a data migration program to be executed.
JP2001175991A 2001-06-11 2001-06-11 Data transfer method, program, and storage medium Pending JP2002366400A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001175991A JP2002366400A (en) 2001-06-11 2001-06-11 Data transfer method, program, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001175991A JP2002366400A (en) 2001-06-11 2001-06-11 Data transfer method, program, and storage medium

Publications (1)

Publication Number Publication Date
JP2002366400A true JP2002366400A (en) 2002-12-20

Family

ID=19017044

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001175991A Pending JP2002366400A (en) 2001-06-11 2001-06-11 Data transfer method, program, and storage medium

Country Status (1)

Country Link
JP (1) JP2002366400A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008250733A (en) * 2007-03-30 2008-10-16 Softbank Mobile Corp Database migration method, database system and database migration program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008250733A (en) * 2007-03-30 2008-10-16 Softbank Mobile Corp Database migration method, database system and database migration program

Similar Documents

Publication Publication Date Title
CN107122355B (en) Data migration system and method
CN107122360B (en) Data migration system and method
US10291704B2 (en) Networked solutions integration using a cloud business object broker
US8555018B1 (en) Techniques for storing data
US8121966B2 (en) Method and system for automated integrated server-network-storage disaster recovery planning
US8090917B2 (en) Managing storage and migration of backup data
US10860563B2 (en) Distributed database with modular blocks and associated log files
CN1848849B (en) Method and device for replicating modifications of a directory
CN107122361B (en) Data migration system and method
US5758334A (en) File system remount operation with selectable access modes that saves knowledge of the volume path and does not interrupt an executing process upon changing modes
CN110019469B (en) Distributed database data processing method and device, storage medium and electronic device
CN103870536A (en) Systems and Methods for In-Memory Database Processing
US20050240636A1 (en) Storage system storing worm file
US7194486B2 (en) Method and system for data processing with data replication for the same
WO2022009162A1 (en) Archiving accelerator-only database tables
JP2018180688A (en) Update processing program, device and method
CN111581227A (en) Event pushing method and device, computer equipment and storage medium
JP4299033B2 (en) Journal acquisition / distribution device, journal acquisition / distribution method, and program for causing computer to execute the method
US9122400B2 (en) Managing data set volume table of contents
JP2002366400A (en) Data transfer method, program, and storage medium
JP3962795B2 (en) Computer-readable recording medium recording a business program
JP6680897B2 (en) Computer system and analysis source data management method
TW201807600A (en) Data storage method and system thereof including a disc storage module, a magnetic tape storage module, and a processing module
WO2023227921A1 (en) Systems and methods for database migration
JPH11120056A (en) Saving and restoring method for project data

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040511

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20040914