JP3366257B2 - Data warehouse test data creation device - Google Patents
Data warehouse test data creation deviceInfo
- Publication number
- JP3366257B2 JP3366257B2 JP19184898A JP19184898A JP3366257B2 JP 3366257 B2 JP3366257 B2 JP 3366257B2 JP 19184898 A JP19184898 A JP 19184898A JP 19184898 A JP19184898 A JP 19184898A JP 3366257 B2 JP3366257 B2 JP 3366257B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- information
- database
- test data
- join
- 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.)
- Expired - Fee Related
Links
Description
【発明の詳細な説明】
【0001】
【発明の属する技術分野】この発明は、データウェアハ
ウスのデータベースをテストするデータを作成すること
に関し、特にデータベースのスキーマ情報と、データ生
成ルール及び結合情報とに基づいて、テストデータを自
動的に生成するデータウェアハウステストデータ作成装
置に関する。
【0002】
【従来の技術】大規模データウェアハウスを構築する
際、データベースの検索性能に影響を与える1つの要因
としスキーマ構造があげられる。このスキーマ構造が適
切に設計されているか否かを検証するには、実際に構築
したデータベースにサンプルデータを登録して性能検査
を行う必要がある。このサンプルデータ作成は、実際の
業務データを、構築したスキーマ構成に適合した形に加
工して登録するか、作成するサンプルデータが大量にな
った場合、データ作成用のプログラムによって、データ
を作成している。
【0003】従来、スキーマ情報をデータ登録やデータ
検索に利用することは行われている。特開平5−281
54号公報によれば、文書を構成する情報要素及びそれ
の階層関係を定義する文書構造情報に基づく入力画面
と、文書構造情報に基づくスキーマをデータベースに構
築して、文書をデータベースに容易に登録することが開
示されている。利用者はスキーマを作成しておくだけ
で、該スキーマに基づく入力画面によって、文書登録を
容易に行うことができる。また、特開平6−22311
8号公報によれば、データベースの論理定義情報を保持
し、該定義情報によりデータ検索することが開示されて
いる。アプリケーションプログラムに対して論理的なデ
ータベースが該定義情報で定義されているので、検索対
象が複数のテーブルに格納されている状態のデータ検索
が容易に行える。
【0004】この従来技術では、入力したデータをデー
タベースに登録すること、あるは外部からのデータベー
ス検索を容易にすることにスキーマ情報を利用してい
る。データベースのテストや評価に使用するテストデー
タ作成のため、上述の業務データの加工やテストデータ
作成プログラムに代えてスキーマ情報を利用することの
従来例は見あたらない。
【0005】
【発明が解決しようとする課題】第1の問題点は、スキ
ーマ情報が変更になるたびに新しいスキーマ情報に合わ
せてデータ作成プログラムを変更しなければならないこ
とである。
【0006】第2の問題点は、データを生成する際のパ
ターンをプログラム中に保持しているため、パターンの
異なるデータを生成するためには該プログラムを変更し
なけらばならないことである。
【0007】この発明の目的は、データベースが有する
スキーマ情報に、データ生成ルールと結合情報とを加え
て、テストデータを自動生成するデータウェアハウステ
ストデータ作成装置にある。
【0008】
【課題を解決するための手段】そのため、この発明のデ
ータウェアハウスのデータベースをテストするテストデ
ータを作成するデータウェアハウステストデータ作成装
置において、データ生成ルール及び対象表の結合情報並
びに前記データベースのスキーマ情報に基づいて、テス
トデータを生成することを特徴とする。
【0009】更に、前記データウェアハウステストデー
タ作成装置は、前記データベースに入出力するデータベ
ースアクセス手段と、テストデータのデータ生成ルール
及び前記対象表の結合情報を入力するデータ作成情報登
録手段と、前記データベースから前記データベースアク
セス手段を通じて読み出した前記スキーマ情報と、前記
データ生成ルール及び前記結合情報と、でなるデータ作
成情報を保持するデータ作成情報記憶手段と、前記スキ
ーマ情報並びに前記データ生成ルール及び前記結合情報
によりテストデータを生成するデータ作成手段と、前記
データ作成手段に指示及びパラメータを入力するデータ
作成起動手段と、前記テストデータ生成の作業領域であ
るデータメモリと、を具備し、前記データメモリのテス
トデータを前記データベースアクセス手段によって、前
記データベースに出力することを特徴とする。
【0010】
【発明の実施の形態】この発明について、図面を参照し
て説明する。この発明の第1の実施の形態を示す図1を
参照すると、データウェアハウステストデータ作成装置
1は、テストデータ作成に必要なデータ生成ルールと結
合情報とを入力するデータ作成情報登録手段3と、デー
タベースのスキーマ情報とデータ生成ルールと結合情報
とでなるデータ作成情報を保持するデータ作成情報記憶
手段4と、該データ作成情報に基づいてテストデータを
作成するデータ作成手段5と、入力画面から指示及びパ
ラメータを入力してデータ作成手段5を起動するデータ
作成起動手段6と、テストデータを生成する作業領域の
データメモリ7と、データウェアハウスが有するデータ
ベース8と、データベース8に入出力するデータベース
アクセス手段9と、を備える。
【0011】更に、この実施の形態の細部を示す図2を
参照すると、データ作成情報登録手段3は、データベー
ス8から読み込んだスキーマ情報に対して、テストデー
タ作成のデータ生成ルールを定義するデータ生成ルール
登録手段30と、データベースのスキーマ間の結合情報
を定義する結合情報登録手段31と、を有している。デ
ータ作成情報記憶手段4は、データベース8から読み込
んだスキーマ情報及びデータ作成に必要なデータ生成ル
ール等を格納するスキーマ情報ファイル40と、データ
ベースのスキーマ間の結合情報を格納する結合情報ファ
イル41と、を有している。
【0012】データ作成手段5は、結合情報ファイル4
1に格納されている結合情報と、スキーマ情報ファイル
40に格納されているスキーマ情報及びデータ生成ルー
ルを読み込む作成情報読み取り手段50と、結合元表で
あるファクトテーブルに結合される結合先表であるマス
タテーブルの結合キーを読み込んで結合キーテーブルを
作成する結合キーテーブル作成手段51と、スキーマ情
報及びデータ生成ルール並びに結合キーテーブルをもと
にデータ作成を行うデータ生成手段52と、作成したテ
ストデータをデータメモリ7に書き込むデータ出力手段
53と、を備えている。データベースアクセス手段9
は、データベース8のスキーマ情報を読みとるスキーマ
情報取り込み手段90と、データベース8のデータを読
み込んでデータメモリ7に送出するデータ読み込み手段
91と、データメモリ7の内容をデータベース8に登録
するためのデータ書き込み手段92と、を有している。
【0013】スキーマ情報ファイル40の構造を示す図
3を参照すると、スキーマ情報ファイル40は、データ
ベース8からスキーマ情報取り込み手段90によって取
り込まれた表名311と、列名312と、属性313
と、桁数314と、制約315と、に対して、データ生
成ルール登録手段30を通じて入力されたデータ生成ル
ール316を付加して構成される。項目のうち、表名3
11、列名312、属性313、桁数314、制約31
5はデータベース8が格納しているスキーマの定義情報
である。制約315には、重複の有無やNULL値を認
めるかどうかが格納される。データ生成ルール316
は、データ生成ルール登録手段30によって、外部設定
される。
【0014】結合情報ファイル41の構造を示す図4を
参照すると、結合情報ファイル41は、結合情報登録手
段31を通じて入力される結合元表名411と、結合元
列名412と、結合先表名413と、結合先列名414
と、カーディナリティ415と、から構成される。結合
元列名412及び結合先列名414は、表を結合させる
ときのキーとなる列名である。カーディナリティ415
には、1:1、1:n、n:1、n:n等の結合の対応
関係が格納される。
【0015】この第1の実施の形態の各手段の機能細部
について、図2を参照して説明すると、スキーマ情報取
り込み手段90は、データベース8中の各テーブル毎の
スキーマ情報を取得する。取得するスキーマ情報の項目
は、表名311と、列名312と、属性313と、桁数
314と、制約315と、でなる。これらの取得した項
目は、スキーマ情報ファイル40に登録する。スキーマ
情報ファイル40に登録される内容を例示する図3を参
照すると、表名311に、Fact1、Master
1、Master2の3つの表があり、行301乃至行
305は、Fact1の各列、行306乃至行308
は、Master1の各列、行309,行310は、M
aster2の各列の項目である。結合情報登録手段3
1から各スキーマ間の結合情報を入力し、結合情報ファ
イル41に登録する。結合情報ファイル41に登録され
る内容を例示する図4を参照すると、行401では、結
合元表名411のFact1と結合先表名413のMa
ster1とが結合し、結合元列名Fact1col3
と結合先列名Master1col1とが結合し、その
カーディナリティはN:1である。また、行402で
は、結合元表名411のFact1と結合先表名のMa
ster2とが結合し、結合元列名Fact1col4
と結合先列名Master2col1とが結合し、その
カーディナリティはN:1である。次に、データ生成ル
ール登録手段30では、データ生成時に必要なデータ生
成ルールを入力し、スキーマ情報ファイル40に格納す
る。図3では、データ生成ルール316が、各行301
乃至行310に格納されている。図5に例示する書式5
00を用いて、データ生成ルール316の内容を説明す
ると、データ生成ルール316はキーワードパラメータ
の形式で指定される。「MODE」には、データを生成
する方法を指定する「R」(RANDOM)と、「I」
(INCREASE)と、「W」(WAVE)と、
「F」(FIX)と、「P」(PREFIX)と、
「M」(MASTER)と、の6種類の内のいずれかが
指定される。「FROM」および「TO」パラメータは
「R」,「I」,「W」の指定の際に有効となり、値の
最小値と最大値とを指定する。「MARGIN」パラメ
ータは「I」,「W」の指定の際に有効となり、各値の
データ間隔を表す。
【0016】上記のデータ生成ルールを適用して、生成
されるデータイメージを図6に例示する。「RANDO
M」指定601には、「FROM」で指定された値から
「TO」で指定された値までの範囲内でランダムな数値
を生成する。この例では、「1」から「100」までの
値がランダムに生成される。次に「INCREASE」
指定611には、「FROM」で指定された値から、
「TO」で指定された値まで「MARGIN」パラメー
タで指定された値を増分にした数値が生成される。「T
O」が指定されていない場合は、作成時に指定した件数
まで作成する。この例では、「1」から「100」まで
「2」を増分にした値が生成され、「1,3,5,7」
の数列が生成される。「WAVE」指定621には、
「FROM」で指定された値から、「TO」で指定され
た値まで「MARGIN」パラメータで指定された値で
増減を繰り返す。この例では、「1」から「100」ま
で「1」ずつ増加した値を生成した後、「100」に達
した後は、「1」ずつ減少した値を生成する。「FI
X」指定631には、固定の値を生成するが、複数指定
された場合はその値の中からランダムに選択される。こ
の例では、「FIX」値として、「aaaaa」と、
「bbbbb」と、の2つの値が指定されているため、
この2つの値をランダムに選択して生成する。「PRE
FIX」指定641には「PREFIX」指定値にキー
値を加えた値を選択する。複数指定された場合はその中
からランダムに値が選択される。この例では、プリフィ
ックス値「aaaaa」にキー値をつけた値が生成され
る。「MASTER」指定651には、結合対象となる
マスタテーブルの結合キーを値とし、ランダムに生成す
る。この例では、結合キーテーブル660に結合先列の
キー値「101」乃至キー値「109」が登録されてい
るため、この中からランダムに選択された値を生成す
る。
【0017】次に、データ作成起動手段6を用いて、作
成対象となる表を選択し、作成するデータ件数等のパラ
メータを指定し、データ作成手段5を起動する。作成情
報読み取り手段50は、作成対象となる表に関するスキ
ーマ情報ファイル40及び結合情報ファイル41を取得
する。結合キーテーブル作成手段51は、結合対象の表
のデータをデータベース8からデータベースアクセス手
段9を通じて取得し、対象の表の結合キーとなる列名の
データをデータメモリ7上に作成する。データ生成手段
52は作成情報読み取り手段50で読み込んだスキーマ
情報ファイル40及び結合情報ファイル41に基づい
て、対象となる表データの生成をデータ生成ルール31
6によって行い、データ出力手段53に引き渡す。デー
タ出力手段53は、データメモリ7にデータ出力を行
う。データメモリ7のデータはデータ書き込み手段92
によってデータベース8に書き込まれる。
【0018】この第1の実施の形態の動作を説明する。
データ作成手段5の処理手順を表すフローの図7を参照
すると、まず初期設定を行う(ステップ701)。デー
タ作成の対象となる表名及び作成データ件数等の作成パ
ラメータをデータ作成起動手段6を通じて取得し(ステ
ップ702)、スキーマ情報ファイル40を読み込み、
その表のスキーマ情報を取得する(ステップ703)。
次に、作成対象となるテーブルのテーブル種別を判断す
る(ステップ704)。テーブル種別が結合元表のファ
クトテーブルの場合(ステップ704のYes)、該フ
ァクトテーブルに結合される結合先表のマスタテーブル
の結合先列名414及びカーディナリティ415を結合
情報ファイル41より取得する(ステップ705)。取
得したマスタテーブルと結合列の情報を読み込み対象マ
スタテーブル情報としてセットする(ステップ70
6)。セットされた対象マスタテーブルのデータを全て
読み込み、結合キーテーブル660としてデータメモリ
7に登録する(ステップ707)。結合キーテーブル6
01未作成のマスタテーブルが存在するか否かを判断し
(ステップ708)、結合キーテーブル未作成のマスタ
テーブルが存在する場合(ステップ708のYes)、
ステップ706に戻る。結合キーテーブル未作成のマス
タテーブルが存在しない場合(ステップ708のN
o)、データ生成ルールの解釈を行う(ステップ70
9)。解釈したデータ生成ルール及び結合キーテーブル
の情報に基づいて、データ生成を行い(ステップ71
0)、データ出力を行う(ステップ711)。データ作
成終了したか否かを判断し(ステップ712)、データ
作成終了の場合(ステップ712のYes)、終了す
る。データ作成終了でない場合(ステップ712のN
o)、ステップ710に戻る。ステップ704の判定
で、テーブル種別がファクトテーブルでない場合(ステ
ップ708のNo)、ステップ709に進む。
【0019】次に、この発明の第2の実施の形態につい
て図面を参照して説明する。第1の実施の形態の細部構
成を示す図2に対して、データ作成情報登録手段3にス
キーマ情報登録手段32と、データベースアクセス手段
9にスキーマ情報登録手段93とを付加する変形を施し
た第2の実施の形態のデータウェアハウステストデータ
作成装置2を図8に示す。スキーマ情報登録部93は、
スキーマ情報ファイル40の表名311、列名312、
属性313、桁数314、制約315等の定義情報をデ
ータベース8に登録し、データベース8上にスキーマを
構築する。このデータウェアハウステストデータ作成装
置2では、このデータウェアハウステストデータ作成装
置1をデータベース8のスキーマ定義装置として拡張す
ることで、スキーマ変更時の作業をさらに効率化できる
という新たな効果を有する。
【0020】
【発明の効果】第1の効果は、データベースが有するス
キーマ情報に基づいて、テストデータ生成を行うため、
スキーマ変更の度にテストデータ作成プログラムを変更
あるいは作成する必要がなく、スキーマ情報の修正だけ
でデータ作成が行えるためテストデータ作成作業を効率
化できるということである。
【0021】第2の効果は、テストデータ作成時に対象
となる表及び項目にデータ生成ルール及び結合情報を指
定することができるため、この生成ルールを変更するだ
けで、対象表に対して、様々なパターンのテストデータ
作成が行えるということである。Description: BACKGROUND OF THE INVENTION [0001] 1. Field of the Invention [0002] The present invention relates to creating data for testing a data warehouse database, and in particular, to database schema information, data generation rules and connection information. The present invention relates to a data warehouse test data creation device that automatically generates test data based on a test data. 2. Description of the Related Art When constructing a large-scale data warehouse, a schema structure is one factor that influences the search performance of a database. In order to verify whether or not this schema structure is properly designed, it is necessary to register sample data in an actually constructed database and perform a performance test. In this sample data creation, actual business data is processed and registered in a form that conforms to the constructed schema configuration, or if there is a large amount of sample data to be created, the data is created by a data creation program. ing. Conventionally, schema information has been used for data registration and data retrieval. JP-A-5-281
According to Japanese Patent Publication No. 54, an input screen based on document structure information defining information elements constituting a document and its hierarchical relationship, and a schema based on the document structure information are constructed in a database, and the document is easily registered in the database. Is disclosed. By simply creating a schema, the user can easily register a document on an input screen based on the schema. In addition, Japanese Patent Application Laid-Open No. 6-22311
Japanese Patent Laid-Open No. 8 discloses that logical definition information of a database is held and data is searched based on the definition information. Since a logical database is defined for the application program by the definition information, data retrieval in a state where retrieval targets are stored in a plurality of tables can be easily performed. In this prior art, schema information is used to register input data in a database or to facilitate external database search. For test data creation for database testing and evaluation, the conventional example of using a schema information in place of the processing and test data creation program of the aforementioned operational data missing. The first problem is that every time the schema information is changed, the data creation program must be changed in accordance with the new schema information. A second problem is that since a pattern for generating data is held in a program, the program must be changed to generate data having a different pattern. An object of the present invention is to provide a data warehouse test data creating apparatus for automatically generating test data by adding data generation rules and connection information to schema information of a database. According to the present invention, there is provided a data warehouse test data generating apparatus for generating test data for testing a data warehouse database according to the present invention. Test data is generated based on schema information of a database. Further, the data warehouse test data creation device includes a database access means for inputting and outputting to the database, a data creation information registration means for inputting data generation rules for test data and connection information of the target table, said schema information read through the database access means from the database, the data and the generation rules and the binding information, in the data creation information storage means for storing data creation information ing, the schema information as well as the data generation rule and said The data memory, comprising: data creating means for creating test data based on combination information; data creation starting means for inputting instructions and parameters to the data creating means; and a data memory as a work area for the test data creation. Test data The database access means, and outputs to the database. Embodiments of the present invention will be described with reference to the drawings. Referring to FIG. 1 showing a first embodiment of the present invention, a data warehouse test data creating apparatus 1 includes a data creation information registration unit 3 for inputting data generation rules and connection information required for test data creation. A data creation information storage unit 4 for holding data creation information consisting of database schema information, data generation rules, and connection information; a data creation unit 5 for creating test data based on the data creation information; A data creation / activation unit 6 for inputting instructions and parameters to activate the data creation unit 5; a data memory 7 of a work area for generating test data; a database 8 of a data warehouse; Access means 9. Further, referring to FIG. 2 showing details of this embodiment, the data creation information registering means 3 creates a data creation rule for defining data creation rules for test data creation with respect to the schema information read from the database 8. It has a rule registration means 30 and a connection information registration means 31 for defining connection information between database schemas. The data creation information storage means 4 includes: a schema information file 40 for storing schema information read from the database 8 and data generation rules necessary for data creation; a connection information file 41 for storing connection information between schemas of the database; have. [0012] The data creation means 5 includes a connection information file 4
1, the creation information reading means 50 for reading the schema information and the data generation rules stored in the schema information file 40, and the join destination table to be joined to the fact table as the join source table. A joining key table creating unit 51 for reading a joining key of a master table to create a joining key table; a data generating unit 52 for creating data based on schema information and data generation rules and a joining key table; And data output means 53 for writing the data into the data memory 7. Database access means 9
Are schema information fetching means 90 for reading schema information of the database 8, data reading means 91 for reading data of the database 8 and sending the data to the data memory 7, and data writing for registering the contents of the data memory 7 in the database 8. Means 92. Referring to FIG. 3 showing the structure of the schema information file 40, the schema information file 40 includes a table name 311 fetched from the database 8 by the schema information fetching means 90, a column name 312, and an attribute 313.
, The number of digits 314, and the constraint 315, the data generation rule 316 input through the data generation rule registration unit 30 is added. Of the items, table name 3
11, column name 312, attribute 313, number of digits 314, constraint 31
Reference numeral 5 denotes schema definition information stored in the database 8. The constraint 315 stores the presence or absence of duplication and whether to accept a NULL value. Data generation rule 316
Is externally set by the data generation rule registration unit 30. Referring to FIG. 4 showing the structure of the join information file 41, the join information file 41 includes a join source table name 411, a join source column name 412, and a join destination table name input through the join information registering means 31. 413 and the column name 414 of the join destination
And a cardinality 415. The join source column name 412 and the join destination column name 414 are column names that are keys when joining tables. Cardinality 415
Stores a connection correspondence such as 1: 1, 1: n, n: 1, n: n. The details of the functions of each means of the first embodiment will be described with reference to FIG. 2. The schema information capturing means 90 acquires schema information for each table in the database 8. The items of the schema information to be acquired include a table name 311, a column name 312, an attribute 313, the number of digits 314, and a constraint 315. These acquired items are registered in the schema information file 40. Referring to FIG. 3 exemplifying the contents registered in the schema information file 40, the table name 311 includes Fact1, Master
1, there are three tables, Master2, and rows 301 to 305 are columns of Fact1, rows 306 to 308, respectively.
Is each column of Master1, row 309 and row 310 are M
It is an item of each column of aster2. Combination information registration means 3
From 1, the connection information between the respective schemas is input and registered in the connection information file 41. Referring to FIG. 4 exemplifying the contents registered in the join information file 41, in line 401, Fact1 of the join source table name 411 and Ma of the join destination table name 413
ster1 is joined, and the joining source column name Fact1col3
And the connection destination column name Master1col1, and the cardinality is N: 1. Also, in line 402, Fact1 of the join source table name 411 and Ma of the join destination table name
and ster2 are bonded, combining the original column name Fact1col4
And the connection destination column name Master2col1 are connected, and the cardinality is N: 1 . In the following, the data generation rule registration means 30 receives the data generation rule required for data generation, and stores the schema information file 40. In FIG. 3, the data generation rule 316 indicates that each row 301
Through row 310. Format 5 illustrated in FIG.
The contents of the data generation rule 316 will be described with reference to 00. The data generation rule 316 is specified in the form of a keyword parameter. “MODE” includes “R” (RANDOM) for specifying a method of generating data, and “I”.
(INCREASE), "W" (WAVE),
"F" (FIX), "P" (PREFIX),
"M" (MASTER) is specified. The “FROM” and “TO” parameters are valid when “R”, “I”, and “W” are specified, and specify the minimum and maximum values. The “MARGIN” parameter is valid when “I” or “W” is specified, and indicates a data interval of each value. FIG. 6 illustrates a data image generated by applying the above data generation rule. "RANDO
For the “M” designation 601, a random numerical value is generated within the range from the value designated by “FROM” to the value designated by “TO”. In this example, values from “1” to “100” are randomly generated. Next, "INCREASE"
In the designation 611, from the value designated by "FROM",
A numerical value is generated by incrementing the value specified by the "MARGIN" parameter up to the value specified by "TO". "T
If "O" is not specified, the file is created up to the number specified at the time of creation. In this example, values obtained by incrementing “2” from “1” to “100” are generated, and “1, 3, 5, 7”
Is generated. The “WAVE” designation 621 includes
From the value specified by “FROM” to the value specified by “TO”, the increase / decrease is repeated by the value specified by the “MARGIN” parameter. In this example, a value that is incremented by “1” from “1” to “100” is generated, and after the value reaches “100”, a value that is decreased by “1” is generated. "FI
The X "specified 6 31, but generates a fixed value, if it is more than specified is randomly selected from among the values. In this example, the “FIX” value is “aaaaaa”,
Since two values of “bbbbbb” are specified,
These two values are randomly selected and generated. "PRE
For the "FIX" designation 641, a value obtained by adding a key value to the "PREFIX" designation value is selected. If more than one is specified, a value is randomly selected from them. In this example, a value obtained by adding a key value to the prefix value “aaaaaa” is generated. The “MASTER” designation 651 is randomly generated with the value of the join key of the master table to be joined. In this example, since the key values “101” to “109” of the join destination column are registered in the join key table 660, a value selected at random from these is generated. Next, a table to be created is selected by using the data creating and activating means 6, and parameters such as the number of data to be created are designated, and the data creating means 5 is activated. The creation information reading unit 50 acquires the schema information file 40 and the combination information file 41 relating to the table to be created. The join key table creating means 51 acquires the data of the table to be joined from the database 8 through the database access means 9 and creates the data of the column name to be the join key of the target table in the data memory 7. The data generation unit 52 generates the target table data based on the schema information file 40 and the binding information file 41 read by the creation information reading unit 50, according to the data generation rule 31.
6 and handover to the data output means 53. The data output unit 53 outputs data to the data memory 7. Data in the data memory 7 is stored in a data writing unit 92.
Is written to the database 8. The operation of the first embodiment will be described.
Referring to FIG. 7, which is a flow chart showing the processing procedure of the data creating means 5, first, initial settings are made (step 701). Acquisition parameters such as a table name to be created and the number of created data are acquired through the data creation starting means 6 (step 702), and the schema information file 40 is read.
The schema information of the table is obtained (Step 703).
Next, the type of the table to be created is determined (step 704). If the table type is the fact table of the join source table (Yes in step 704), the join destination column name 414 and the cardinality 415 of the master table of the join destination table to be joined to the fact table are acquired from the join information file 41 (step 704). 705). The acquired master table and join column information are set as read target master table information (step 70).
6). All the data of the set target master table is read and registered in the data memory 7 as the connection key table 660 (step 707). Join key table 6
It is determined whether there is a master table for which no 01 has not been created (step 708). If there is a master table for which no join key table has been created (Yes in step 708),
Return to step 706. If there is no master table for which a join key table has not been created (N in step 708)
o), interpret the data generation rules (step 70)
9). Data generation is performed based on the interpreted data generation rules and information of the binding key table (step 71).
0), and output data (step 711). It is determined whether the data creation has been completed (step 712). If the data creation has been completed (Yes in step 712), the process ends. If data creation is not completed (N in step 712)
o), returning to step 710; If it is determined in step 704 that the table type is not a fact table (No in step 708), the process proceeds to step 709. Next, a second embodiment of the present invention will be described with reference to the drawings. FIG. 2 showing the detailed configuration of the first embodiment is modified so that a schema information registration unit 32 is added to the data creation information registration unit 3 and a schema information registration unit 93 is added to the database access unit 9. FIG. 8 shows a data warehouse test data creation device 2 according to the second embodiment. The schema information registration unit 93
Table name 311, column name 312,
The definition information such as the attribute 313, the number of digits 314, and the constraint 315 is registered in the database 8, and a schema is constructed on the database 8. The data warehouse test data creation device 2 has a new effect that the work at the time of schema change can be made more efficient by extending the data warehouse test data creation device 1 as a schema definition device of the database 8. The first effect is that test data is generated based on schema information stored in a database.
There is no need to change or create a test data creation program every time the schema is changed, and data can be created only by modifying the schema information, so that the test data creation work can be made more efficient. The second effect is that the data generation rule and the connection information can be specified for the target table and item when the test data is generated. That is, test data of various patterns can be created.
【図面の簡単な説明】
【図1】この発明の第1の実施の形態を示す図である。
【図2】図1の細部を示す図である。
【図3】図2のスキーマ情報ファイルの構成を例示する
図である。
【図4】図2の結合情報ファイルの構成を例示する図で
ある。
【図5】図2のデータ生成ルールを例示する図である。
【図6】生成されたデータを例示する図である。
【図7】図2のデータ作成手段の動作を示す図である。
【図8】この発明の第2の実施の形態を示す図である。
【符号の説明】
1,2 データウェアハウステストデータ作成装置
3 データ作成情報登録手段
4 データ作成情報記憶手段
5 データ作成手段
6 データ作成起動手段
7 データメモリ
8 データベース
9 データベースアクセス手段
40 スキーマ情報ファイル
41 結合情報ファイル
311乃至315 スキーマの定義情報
315 データ生成ルールBRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a diagram showing a first embodiment of the present invention. FIG. 2 shows a detail of FIG. 1; FIG. 3 is a diagram illustrating a configuration of a schema information file of FIG. 2; FIG. 4 is a diagram illustrating a configuration of a binding information file of FIG. 2; FIG. 5 is a diagram illustrating a data generation rule of FIG. 2; FIG. 6 is a diagram illustrating generated data. FIG. 7 is a diagram showing the operation of the data creation means of FIG. 2; FIG. 8 is a diagram showing a second embodiment of the present invention. DESCRIPTION OF SYMBOLS 1, 2 Data warehouse test data creation device 3 Data creation information registration means 4 Data creation information storage means 5 Data creation means 6 Data creation starting means 7 Data memory 8 Database 9 Database access means 40 Schema information file 41 Binding information files 311 to 315 Schema definition information 315 Data generation rules
フロントページの続き (56)参考文献 特開 平4−160651(JP,A) 特開 平6−119204(JP,A) 特開 平2−136933(JP,A) Excelをデータベースとして使う 3,Windows NT POWER S 第2巻 第2号,p.160−163 (58)調査した分野(Int.Cl.7,DB名) G06F 17/30 G06F 12/00 Continuation of the front page (56) References JP-A-4-160651 (JP, A) JP-A-6-119204 (JP, A) JP-A-2-136933 (JP, A) Using Excel as a database 3, Windows NT POWER S Vol. 2, No. 2, p. 160-163 (58) Field surveyed (Int. Cl. 7 , DB name) G06F 17/30 G06F 12/00
Claims (1)
ストするテストデータを作成するデータウェアハウステ
ストデータ作成装置であって、 前記データベースに入出力するデータベースアクセス手
段と、 前記テストデータのデータ生成方法の指定と値の最大値
と最小値の指定とを含むデータ生成ルールと、結合する
表の結合条件である結合元表名と結合元列名と結合先表
名と結合先列名とカーディナリティとを含む結合情報と
を入力するデータ作成情報登録手段と、 前記データベースアクセス手段が前記データベースから
読み出した表名と列名と属性と桁数と制約条件とを有す
る定義情報を含むスキーマ情報と、前記データ作成情報
登録手段が入力した前記データ生成ルールと前記結合情
報とを記憶するデータ作成情報記憶手段と、 前記データ作成情報記憶手段に記憶されている前記スキ
ーマ情報と前記データ生成ルールと前記結合情報とに基
づいてテストデータを生成するデータ作成手段と、 前記データ作成手段に指示及びパラメータを入力するデ
ータ作成起動手段と、 前記テストデータ生成の作業領域であるデータメモリ
と、 を具備し、 前記データベースアクセス手段が、前記データメモリに
生成されたテストデータを前記データベースに出力 する
ことを特徴とするデータウェアハウステストデータ作成
装置。(57) [Claim 1] A data warehouse test data creating apparatus for creating test data for testing a database of a data warehouse , wherein a database access means for inputting and outputting to the database.
And the specification of the data generation method of the test data and the maximum value of the values
With data generation rules that include and a minimum value specification
Join source table name, join source column name, and join destination table as table join conditions
Information including the name, destination column name, and cardinality
A data generation information registration means for inputting the database access means from the database
Contains the read table name, column name, attribute, number of digits, and constraints
Schema information including definition information, and the data creation information
The data generation rule and the combination information input by the registration means;
A data creation information storage means for storing and distribution, the stored in the data creation information storage means love
Information, the data generation rule, and the combination information.
A data generating means for generating test data Zui, de inputting an instruction and parameters in the data creating means
Data creation starting means, and a data memory as a work area for generating the test data.
And wherein the database access means is provided in the data memory.
A data warehouse test data creation device, which outputs the generated test data to the database .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP19184898A JP3366257B2 (en) | 1998-07-07 | 1998-07-07 | Data warehouse test data creation device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP19184898A JP3366257B2 (en) | 1998-07-07 | 1998-07-07 | Data warehouse test data creation device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2000020529A JP2000020529A (en) | 2000-01-21 |
JP3366257B2 true JP3366257B2 (en) | 2003-01-14 |
Family
ID=16281523
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP19184898A Expired - Fee Related JP3366257B2 (en) | 1998-07-07 | 1998-07-07 | Data warehouse test data creation device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3366257B2 (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8037109B2 (en) * | 2003-06-30 | 2011-10-11 | Microsoft Corporation | Generation of repeatable synthetic data |
JP4159099B2 (en) | 2005-05-16 | 2008-10-01 | インターナショナル・ビジネス・マシーンズ・コーポレーション | Dimension table processing apparatus, dimension hierarchy extraction apparatus, dimension table processing method, dimension hierarchy extraction method, and program |
JP5292956B2 (en) * | 2007-09-27 | 2013-09-18 | 富士通株式会社 | Test data generation program |
WO2012104907A1 (en) | 2011-02-02 | 2012-08-09 | 株式会社日立製作所 | Test data production method for evaluating execution performance of program |
JP6287101B2 (en) * | 2013-11-21 | 2018-03-07 | 日本電気株式会社 | Data processing system, data processing method and program |
CN105095325A (en) * | 2014-05-23 | 2015-11-25 | 中兴通讯股份有限公司 | Method and device for generating test data |
-
1998
- 1998-07-07 JP JP19184898A patent/JP3366257B2/en not_active Expired - Fee Related
Non-Patent Citations (1)
Title |
---|
Excelをデータベースとして使う3,Windows NT POWERS 第2巻 第2号,p.160−163 |
Also Published As
Publication number | Publication date |
---|---|
JP2000020529A (en) | 2000-01-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7149752B2 (en) | Method for simplifying databinding in application programs | |
KR101213798B1 (en) | Complex data access | |
US20100049692A1 (en) | Apparatus and Method For Retrieving Information From An Application Functionality Table | |
US7831614B2 (en) | System and method for generating SQL using templates | |
JP3366257B2 (en) | Data warehouse test data creation device | |
US7885927B2 (en) | Transfer of table instances between databases | |
US6925630B1 (en) | Method for generating code for processing a database | |
JPH11161656A (en) | Data base retrieval and extraction system and recording medium in which control program for data base retrieval and extraction is recorded | |
JPH1185787A (en) | Method for retrieving and registering information having link structure | |
KR100333676B1 (en) | Method for generating multiple dataview screen control using single software program for data retrieval | |
JPH06161726A (en) | Tool data reusing device | |
JP2007157037A (en) | Access environment establishment method, access environment establishment program and access environment establishment device for database | |
JP3216951B2 (en) | Finite element mesh generator | |
JP2000123038A (en) | Database device, database access method and recording medium recorded with database access program | |
JP2004110102A (en) | Project management method and process definition device | |
JPH11312166A (en) | Data base management device | |
CN116303518A (en) | Relational database differentiated comparison method and system | |
JP2616203B2 (en) | Management method of name table in translation system | |
US20050278356A1 (en) | Module editor | |
JP2513924B2 (en) | Setting method of item definition information | |
JPH09212515A (en) | Information retrieving device | |
JPS62282372A (en) | Library management system | |
JPH0877164A (en) | Document processor | |
JPH05143304A (en) | Consistency inspecting system | |
Huang | The implementation of relational data base management systems on micro-computers |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20020716 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20021008 |
|
S533 | Written request for registration of change of name |
Free format text: JAPANESE INTERMEDIATE CODE: R313533 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20081101 Year of fee payment: 6 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20081101 Year of fee payment: 6 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091101 Year of fee payment: 7 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091101 Year of fee payment: 7 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20101101 Year of fee payment: 8 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20111101 Year of fee payment: 9 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20111101 Year of fee payment: 9 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121101 Year of fee payment: 10 |
|
LAPS | Cancellation because of no payment of annual fees |