JP2012104005A - Data verification system and data verification method - Google Patents
Data verification system and data verification method Download PDFInfo
- Publication number
- JP2012104005A JP2012104005A JP2010253425A JP2010253425A JP2012104005A JP 2012104005 A JP2012104005 A JP 2012104005A JP 2010253425 A JP2010253425 A JP 2010253425A JP 2010253425 A JP2010253425 A JP 2010253425A JP 2012104005 A JP2012104005 A JP 2012104005A
- Authority
- JP
- Japan
- Prior art keywords
- check
- data
- item
- registered
- result
- 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.)
- Withdrawn
Links
Abstract
Description
本発明は、テーブルに設定されているデータの妥当性を検証するデータ検証システムおよびデータ検証方法に関する。 The present invention relates to a data verification system and a data verification method for verifying the validity of data set in a table.
基幹系システムの新規開発プロジェクトでは、現行システムからのデータ移行が必要となるケースがほとんどである。そのため、現行システムからデータを抽出して、新システムのテーブル構成にあう形に変換するツール「データ移行ツール」、および、移行したデータの整合性が確保されているか否かを検証するツール「データ検証ツール」が必要である。
しかし、業務アプリケーションの開発プロジェクトにおいては、アプリケーションの開発を優先する傾向にある点、および、現行システムの有識者の工数確保が難しい点等の理由により、一般的にデータ移行ツールとデータ検証ツールは、短期、および低コストでの開発が余儀なくされることが多い。
そのため、データ移行ツールとデータ検証ツールを標準化し、開発コストを削減することは、重要な課題の1つであり、プロジェクト毎に個別開発しないですむようにツールの汎用化が求められている。
Most new development projects for mission-critical systems require data migration from the current system. Therefore, the tool “Data Migration Tool” that extracts data from the current system and converts it into a form that matches the table structure of the new system, and the tool “Data that verifies whether the consistency of the migrated data is ensured” A “verification tool” is required.
However, in business application development projects, data migration tools and data verification tools are generally used for reasons such as the tendency to prioritize application development and the difficulty of securing manpower for experts in the current system. Often, short-term and low-cost development is forced.
Therefore, standardizing the data migration tool and the data verification tool and reducing the development cost is one of the important issues, and the generalization of the tool is required so that individual development is not required for each project.
そこで、例えば、特許文献1は、「データ移行ツール」に関して、データ移行に関するシェルスクリプトを自動作成し、データ移行を自動化する発明を開示する。
そして、特許文献2は、「データ検証ツール」に関して、移行前と移行後の代表的なデータパターンを抽出して、その結果を管理者が目視することによりデータ移行を検証する発明を開示する。
Therefore, for example, Patent Document 1 discloses an invention that automatically creates a shell script related to data migration and automates data migration with respect to the “data migration tool”.
Patent Document 2 discloses an invention in which a representative data pattern before and after migration is extracted with respect to the “data verification tool”, and an administrator visually checks the result to verify the data migration.
しかしながら、特許文献2に開示されている「データ検証ツール」は、移行前と移行後の代表的なデータパターンを抽出して比較するだけであり、データ検証として十分ではない。また、データパターンが抽出されても、当該データパターンの各項目の値が移行前と移行後で一致しているか否かは人間が確認するため、開発工程に負担がかかることには変わりない。さらに、特定のデータ形式でしか用いることができず、汎用性がない。
一方、データ検証において、新システムのテーブル定義は顧客毎に異なるが、データの妥当性チェックの観点はどのシステムでも同様である。
However, the “data verification tool” disclosed in Patent Document 2 only extracts and compares representative data patterns before and after migration, and is not sufficient for data validation. Further, even if a data pattern is extracted, a human being checks whether or not the value of each item of the data pattern is the same before and after the migration, so that the development process is still burdened. Furthermore, it can be used only in a specific data format and is not versatile.
On the other hand, in the data verification, the table definition of the new system is different for each customer, but the viewpoint of data validity check is the same in any system.
本発明は、上記実情を鑑みてなされたものであり、データの妥当性のチェック処理を行う共通部品を用いてノンプログラミングでデータ検証することができ、プロジェクト毎にデータ検証ツールをプログラム開発することが不要となるデータ検証システムおよびデータ検証方法を提供することを目的とする。 The present invention has been made in view of the above circumstances, and can perform data verification by non-programming using a common component for performing data validity check processing, and develop a data verification tool for each project. An object of the present invention is to provide a data verification system and a data verification method that eliminate the need for.
上記目的を達成するため、本発明のデータ検証システムは、
取引ごとに発生するデータが登録された複数のテーブルを含む業務テーブルと、前記各取引において共通に使用されるデータが登録された関連マスタテーブルと、前記業務テーブルに含まれる各テーブル中のデータ項目ごとに当該各データ項目に登録されるデータが満たすべき条件を示すチェック仕様が登録されるチェック項目テーブルと、チェック結果を示す情報が格納されるチェック結果テーブルとを記憶する記憶手段と、
ユーザによって作成された前記各チェック仕様を前記チェック項目テーブルに登録するチェック仕様登録手段と、
前記チェック項目テーブルからチェック仕様を示すパラメータ文字列を抽出するパラメータ文字列抽出手段と、
前記パラメータ文字列抽出手段によって抽出されたパラメータ文字列に基づいてクエリを作成し、作成した当該クエリを前記業務テーブル、または前記業務テーブルと前記関連マスタテーブルの両方に対して実行するクエリ実行手段と、
前記クエリ実行手段によって実行されたクエリの結果に基づいて、前記業務テーブルに含まれる各テーブルに登録されているデータが、前記チェック項目テーブルに登録されているチェック仕様を満たすか否か判定するチェック仕様判定手段と、
前記チェック仕様判定手段による判定の結果を示す情報を前記チェック結果テーブルに格納するチェック結果テーブル格納手段と、
を備える。
In order to achieve the above object, the data verification system of the present invention includes:
A business table including a plurality of tables in which data generated for each transaction is registered, a related master table in which data commonly used in each transaction is registered, and data items in each table included in the business table Storage means for storing a check item table in which a check specification indicating a condition to be satisfied by data registered in each data item is registered, and a check result table in which information indicating a check result is stored;
Check specification registration means for registering each check specification created by a user in the check item table;
Parameter character string extracting means for extracting a parameter character string indicating a check specification from the check item table;
Query execution means for creating a query based on the parameter character string extracted by the parameter character string extraction means, and executing the created query on the business table or both the business table and the related master table; ,
A check for determining whether data registered in each table included in the business table satisfies a check specification registered in the check item table based on a result of a query executed by the query execution unit Specification judging means;
Check result table storage means for storing information indicating a result of determination by the check specification determination means in the check result table;
Is provided.
また、本発明のデータ検証方法は、
取引ごとに発生するデータが登録された複数のテーブルを含む業務テーブルと、前記各取引において共通に使用されるデータが登録された関連マスタテーブルと、前記業務テーブルに含まれる各テーブル中のデータ項目ごとに当該各データ項目に登録されるデータが満たすべき条件を示すチェック仕様が登録されるチェック項目テーブルと、チェック結果を示す情報が格納されるチェック結果テーブルとを記憶する記憶手段を備えたデータ検証システムにおけるデータ検証方法であって、
ユーザによって作成された前記各チェック仕様を前記チェック項目テーブルに登録するステップと、
前記チェック項目テーブルからチェック仕様を示すパラメータ文字列を抽出するステップと、
前記抽出されたパラメータ文字列に基づいてクエリを作成し、作成した当該クエリを前記業務テーブル、または前記業務テーブルと前記関連マスタテーブルの両方に対して実行するステップと、
前記実行されたクエリの結果に基づいて、前記業務テーブルに含まれる各テーブルに登録されているデータが、前記チェック項目テーブルに登録されているチェック仕様を満たすか否か判定するステップと、
判定の結果を示す情報を前記チェック結果テーブルに格納するステップと、
を備える。
Further, the data verification method of the present invention includes:
A business table including a plurality of tables in which data generated for each transaction is registered, a related master table in which data commonly used in each transaction is registered, and data items in each table included in the business table Data provided with a storage means for storing a check item table in which a check specification indicating a condition to be satisfied by data registered in each data item is stored and a check result table in which information indicating a check result is stored A data verification method in a verification system,
Registering each check specification created by a user in the check item table;
Extracting a parameter character string indicating a check specification from the check item table;
Creating a query based on the extracted parameter string, and executing the created query on the business table or both the business table and the related master table;
Determining whether data registered in each table included in the business table satisfies a check specification registered in the check item table based on a result of the executed query;
Storing information indicating a result of the determination in the check result table;
Is provided.
本発明によれば、データの妥当性のチェック処理を行う共通部品を用いてノンプログラミングでデータ検証することができ、プロジェクト毎にデータ検証ツールをプログラム開発することが不要となる。 According to the present invention, it is possible to perform data verification by non-programming using a common component that performs a data validity check process, and it becomes unnecessary to develop a data verification tool for each project.
以下、本発明の実施形態に係るデータ検証システムについて図面を参照しながら説明する。 Hereinafter, a data verification system according to an embodiment of the present invention will be described with reference to the drawings.
図1は、本発明の実施形態に係るデータ検証システム1の構成の一例を示す。
データ検証システム1は、業務テーブル11と、関連マスタテーブル12と、チェック項目テーブル13と、標準チェック部品14と、チェック結果テーブル15と、制御部16とを備える。
FIG. 1 shows an example of the configuration of a data verification system 1 according to an embodiment of the present invention.
The data verification system 1 includes a business table 11, a related master table 12, a check item table 13, a standard check component 14, a check result table 15, and a control unit 16.
業務テーブル11は、受注伝票や売上伝票等に記載されており、取引のつど発生するトランザクションデータを格納する。業務テーブル11は、商品の受注や売上げ等についてのトランザクションデータが登録された複数のテーブルを含み、例えば商品の受注データが登録された受注テーブルや商品の売上げデータが登録された売上テーブル等を含む。業務テーブル11に含まれる各テーブルには、各々のテーブルを識別するためにテーブルIDが付されている。業務テーブル11は、例えば、データ移行ツールによって、現行システムからデータが抽出され、新システムのテーブル構成に適合する形式に変換されたテーブルである。業務テーブル11が、データ検証システム1による検証の対象である。
関連マスタテーブル12は、取引先データや商品データ等、取引のつど発生するのではなく、予め判明しているマスタデータを格納する。関連マスタテーブル12は、各取引において共通に使用されるマスタデータが登録された複数のテーブルを含み、例えば取引先データが記録された取引先テーブルや商品データが記録された商品テーブル等を含む。関連マスタテーブル12に含まれる各テーブルには、各々のテーブルを識別するためにマスタテーブルIDが付されている。
The business table 11 is described in an order slip, a sales slip, or the like, and stores transaction data that occurs each time a transaction is made. The business table 11 includes a plurality of tables in which transaction data regarding product orders, sales, and the like are registered. For example, the business table 11 includes an order table in which product order data is registered and a sales table in which product sales data is registered. . Each table included in the business table 11 is given a table ID to identify each table. The business table 11 is, for example, a table in which data is extracted from the current system by a data migration tool and converted into a format suitable for the table configuration of the new system. The business table 11 is a verification target by the data verification system 1.
The related master table 12 stores master data that is known in advance, rather than every transaction, such as customer data and product data. The related master table 12 includes a plurality of tables in which master data commonly used in each transaction is registered, and includes, for example, a customer table in which customer data is recorded, a product table in which product data is recorded, and the like. Each table included in the related master table 12 is assigned a master table ID to identify each table.
チェック項目テーブル13は、業務テーブル11に含まれる受注テーブルや売上テーブル等の各テーブル中のデータ項目ごとにそのデータ項目に登録されるデータが満たすべき条件を示すチェック仕様が登録されるテーブルである。
アップロードツール17は、データ検証システム1を補助するツールである。ユーザは、まず、各標準チェック部品14のチェック観点が記述された標準チェック部品一覧ドキュメントを参照しながら、チェック項目定義書18にチェック仕様を記述する。ユーザは、次に、アップロードツール17を利用してチェック項目定義書18からチェック仕様をチェック項目テーブル13にアップロードする。
The check item table 13 is a table in which, for each data item in each table such as an order table or sales table included in the business table 11, a check specification indicating a condition to be satisfied by data registered in the data item is registered. .
The upload tool 17 is a tool that assists the data verification system 1. The user first describes the check specification in the check item definition document 18 while referring to the standard check component list document in which the check viewpoint of each standard check component 14 is described. Next, the user uploads the check specification from the check item definition document 18 to the check item table 13 using the upload tool 17.
標準チェック部品14は、後述するように、チェック項目テーブル13を参照し、業務テーブル11と関連マスタテーブル12からデータを抽出してチェック処理を実行する。そして、標準チェック部品14は、チェックした結果を示す所定の情報をチェック結果テーブル15に格納する。なお、図1には標準チェック部品14を1つしか示していないが、標準チェック部品14は複数であってもよい。
ユーザは、チェック結果テーブル15を参照することにより、業務テーブル11に登録されているデータが妥当か否か確認することができる。
制御部16は、データ検証システム1全体を管理し、制御する。
As will be described later, the standard check component 14 refers to the check item table 13 and extracts data from the business table 11 and the related master table 12 to execute a check process. Then, the standard check component 14 stores predetermined information indicating the checked result in the check result table 15. Although only one standard check component 14 is shown in FIG. 1, a plurality of standard check components 14 may be provided.
The user can check whether the data registered in the business table 11 is valid by referring to the check result table 15.
The control unit 16 manages and controls the entire data verification system 1.
データ検証システム1の機能は、CPU(Central Processing Unit)と、メモリと、記憶装置と、入力装置と、表示装置とを備えたコンピュータによって実現される。
メモリは、RAM(Random Access Memory)やROM(Read Only Memory)等を含む。メモリは、データ検証プログラムとアップロードプログラムを記憶している。CPUがデータ検証プログラムを実行することにより、データ検証システム1の機能が実現される。また、CPUがアップロードプログラムを実行することにより、アップロードツール16の機能が実現される。
記憶装置は、ハードディスク装置や光ディスク装置等を含む。記憶装置は、業務テーブル11と、関連マスタテーブル12と、チェック項目テーブル13と、チェック結果テーブル15とを記憶する。
入力装置は、キーボードやマウス等を含む。表示装置は、ディスプレイやプリンタ等を含む。ユーザは、例えば、表示装置に表示された標準チェック部品一覧を参照しながら、入力装置を用いてチェック項目定義書18に業務テーブル11の各データ項目のチェック仕様を記述する。
The functions of the data verification system 1 are realized by a computer including a CPU (Central Processing Unit), a memory, a storage device, an input device, and a display device.
The memory includes a RAM (Random Access Memory), a ROM (Read Only Memory), and the like. The memory stores a data verification program and an upload program. The function of the data verification system 1 is realized by the CPU executing the data verification program. Further, the function of the upload tool 16 is realized by the CPU executing the upload program.
The storage device includes a hard disk device, an optical disk device, and the like. The storage device stores a business table 11, a related master table 12, a check item table 13, and a check result table 15.
The input device includes a keyboard and a mouse. The display device includes a display, a printer, and the like. For example, the user describes the check specification of each data item of the work table 11 in the check item definition 18 using the input device while referring to the list of standard check parts displayed on the display device.
図2は、チェック項目定義書18の構成の一例を示す。
チェック項目定義書18は、データ検証システム1による検証を行う前に、業務テーブル11に登録されている受注テーブルや売上テーブル等の各テーブルに含まれるデータ項目ごとに、各標準チェック部品14によってどのようなチェック観点を満たすことを検証するかを、ユーザが指定するものである。
一般的には、業務システムのテーブル定義書ではデータ項目ID、桁数、データ型およびデータ項目の説明等を記載することが多い(21〜23)。本実施形態に係るチェック項目定義書18では、これらの各チェック事項に加えて、データ項目毎にチェック観点の詳細(チェック仕様)を定義するため、テーブル定義書のフォーマットを拡張し、各データ項目のチェック仕様を設定する(24〜26)。例えば、図2に示すチェック項目定義書18には、データ項目ID21、データ型22、データ項目説明23に加えて、固定値チェック部品のチェック仕様24と、桁数チェック部品のチェック仕様25と、マスタ存在チェック部品のチェック仕様26等が設定されている。
各チェック仕様は、例えば、それぞれ4つのチェック項目((1)〜(4))を含む。各チェック項目は標準チェック部品に設定される引数に対応する。
FIG. 2 shows an example of the configuration of the check item definition document 18.
Before the verification by the data verification system 1, the check item definition 18 is determined by each standard check component 14 for each data item included in each table such as an order table or a sales table registered in the business table 11. The user specifies whether to verify that such a check viewpoint is satisfied.
In general, a business system table definition document often describes a data item ID, the number of digits, a data type, a description of the data item, and the like (21 to 23). In the check item definition document 18 according to the present embodiment, in addition to each of these check items, in order to define details (check specifications) of the check viewpoint for each data item, the format of the table definition document is expanded, and each data item The check specifications are set (24 to 26). For example, in the check item definition 18 shown in FIG. 2, in addition to the data item ID 21, the data type 22, and the data item description 23, a check specification 24 for a fixed value check component, a check specification 25 for a digit number check component, A check specification 26 of the master existence check component is set.
Each check specification includes, for example, four check items ((1) to (4)). Each check item corresponds to an argument set in the standard check part.
図3は、代表的な標準チェック部品の一覧を示す。標準チェック部品14は、業務テーブル11に含まれる各テーブルの各データ項目について、所定のチェック観点に基づいてデータ検証を実施する部品ツールである。標準チェック部品14は、例えば、データの値が指定の固定値であることをチェックする固定値チェック部品、データの値が指定の桁数であることをチェックする桁数チェック部品などを含む。本実施形態では、検証対象の各データ項目について、標準チェック部品14ごとに指定されたチェック仕様を満たすか否かを検証する。 FIG. 3 shows a list of typical standard check parts. The standard check component 14 is a component tool that performs data verification on each data item of each table included in the business table 11 based on a predetermined check viewpoint. The standard check component 14 includes, for example, a fixed value check component for checking that the data value is a specified fixed value, and a digit number check component for checking that the data value has a specified number of digits. In this embodiment, it is verified whether or not each data item to be verified satisfies a check specification specified for each standard check component 14.
図4は、各標準チェック部品のチェック仕様の一例を示す。このチェック仕様は、標準チェック部品一覧ドキュメントに定義されている。
図4(A)は、桁数チェック部品のチェック仕様を示す。桁数チェック部品は、与えられた検証データが第一引数で指定された桁数であるか否かをチェックする。このため、図4(A)のチェック項目ID=1の説明欄には、「特殊文字列+桁数を指定する。」と記載されている。これを見たユーザは、図2のチェック項目定義書18における桁数チェック部品のチェック仕様25の1つ目のセル(1)に、各データ項目のデータが取り得る桁数を指定する。例えば、図2の項目1の場合、”会社コード”は4桁でなければならないことを意味する。
桁数チェック部品は、桁数のみをチェックするため、第2引数(チェック項目ID=2)から第4引数(チェック項目ID=4)は機能を有しない。
なお、第1引数(チェック項目ID=1)では、桁数と合わせて特殊文字列を指定することも可能である。特殊文字列は、例えば「全」と「バ」を含み、「全」は全角の文字列を1単位とした桁数で指定した桁数を検証することを意味し、「バ」はバイト単位の桁数で指定した桁数を検証することを意味する。
FIG. 4 shows an example of a check specification for each standard check component. This check specification is defined in the standard check parts list document.
FIG. 4A shows the check specifications of the digit number check component. The digit number check component checks whether the given verification data has the number of digits specified by the first argument. For this reason, “special character string + number of digits is specified” is described in the explanation column of check item ID = 1 in FIG. The user who sees this designates the number of digits that the data of each data item can take in the first cell (1) of the check specification 25 of the digit number check component in the check item definition 18 of FIG. For example, in the case of item 1 in FIG. 2, it means that “company code” must be four digits.
Since the digit number check component checks only the number of digits, the second argument (check item ID = 2) to the fourth argument (check item ID = 4) have no function.
In the first argument (check item ID = 1), a special character string can be specified together with the number of digits. Special character strings include, for example, “all” and “bar”, where “all” means to verify the number of digits specified by the number of digits with one-byte character string as one unit, and “bar” means byte unit This means that the number of digits specified by the number of digits is verified.
図4(B)は、マスタ存在チェック部品のチェック仕様を示す。マスタ存在チェック部品の第1引数(チェック項目ID=1)は、存在チェックを行なうマスタテーブルIDを設定するものである。第2引数(チェック項目ID=2)は、マスタテーブルのデータ項目IDを設定する。これは、第1引数(チェック項目ID=1)により特定される関連マスタテーブル12に含まれるテーブルの中の、チェック対象となるデータ項目のIDを設定するものである。第3引数(チェック項目ID=3)では、結合条件を設定する。これは、対象テーブルとマスタテーブルの結合条件を設定するものである。第4引数(チェック項目ID=4)は機能を有しない。 FIG. 4B shows the check specification of the master presence check part. The first argument (check item ID = 1) of the master existence check component is used to set a master table ID for performing existence check. The second argument (check item ID = 2) sets the data item ID of the master table. This is to set the ID of the data item to be checked in the table included in the related master table 12 specified by the first argument (check item ID = 1). In the third argument (check item ID = 3), a join condition is set. This sets a join condition between the target table and the master table. The fourth argument (check item ID = 4) has no function.
なお、各標準チェック部品の引数は、標準チェック部品の検証内容に照らして、設定が必須のもの(必ず設定しなければならないチェック項目)や設定が任意のもの(必ずしも設定しなくてもよいチェック項目)がある。設定が任意のものについては、値が設定されていなければ、データ検証システム1はデータ検証を行わない。 Note that the arguments of each standard check component must be set (check items that must be set) or set arbitrarily (checks that do not necessarily have to be set) in light of the verification contents of the standard check component. Item). For any setting, if no value is set, the data verification system 1 does not perform data verification.
ユーザは、標準チェック部品一覧ドキュメントに基づいて、チェック項目定義書18の各セルの値を入力する。データ検証対象によっては実施の必要の無い標準チェック部品があるので、その場合は、そのチェック部品についてのセルに値を設定しないことで、対象外とすることができる。 The user inputs the value of each cell of the check item definition 18 based on the standard check parts list document. Depending on the data verification target, there is a standard check part that does not need to be implemented. In this case, the value can not be set in the cell for the check part, so that it can be excluded.
なお、本実施形態では、各標準チェック部品は最大4個の引数を設定可能としているが、検証内容に応じて、設定可能な引数の数は可変である。 In this embodiment, each standard check component can set a maximum of four arguments, but the number of arguments that can be set is variable according to the verification content.
図5は、チェック項目テーブル13のテーブル定義の一例を示す。テーブルID、データ項目IDをキーとし、標準チェック部品毎に引数(チェック項目)が格納される。ここで、テーブルIDとは、業務テーブル11に含まれる各テーブル(受注テーブルや売上テーブル等)を識別するためのIDである。
図2のチェック項目定義書18をアップロードツール16等で変換することにより、チェック項目定義書18で設定された内容をチェック項目テーブル13に登録する。
FIG. 5 shows an example of the table definition of the check item table 13. The table ID and data item ID are used as keys, and an argument (check item) is stored for each standard check component. Here, the table ID is an ID for identifying each table (such as an order table or a sales table) included in the business table 11.
By converting the check item definition document 18 of FIG. 2 with the upload tool 16 or the like, the contents set in the check item definition document 18 are registered in the check item table 13.
本実施形態に係るデータ検証システム1は、チェック項目テーブル13を参照しながらデータ検証を実施する。チェック項目テーブル13における各標準チェック部品のチェック項目41は、所定の標準チェック部品の順序で並んでおり、また、各標準チェック部品は第4引数まで有するので、特にどのチェック項目がどの標準チェック部品に該当するかを管理する必要は無く、データ検証システム1で処理可能である。 The data verification system 1 according to the present embodiment performs data verification with reference to the check item table 13. The check items 41 of each standard check part in the check item table 13 are arranged in the order of a predetermined standard check part, and each standard check part has up to the fourth argument. It is not necessary to manage whether or not this is true, and can be processed by the data verification system 1.
図6は、データ検証システム1のチェック実行時の処理フローの一例を示す。CPUがデータ検証プログラムを実行することにより、データ検証システム1の機能が実現される。データ検証プログラムの実行が開始されたとき(データ検証システム1が起動されたとき)、チェック対象となるテーブル(受注テーブルや売上テーブル等)のテーブルIDを引数として受け取った場合、制御部16はそのテーブルIDにより指定されるチェック項目テーブル13中のテーブルのみをチェック対象とする。一方、引数がない場合、制御部16はチェック項目テーブル13に設定されているすべてのテーブルをチェック対象とする。 FIG. 6 shows an example of a processing flow when the data verification system 1 executes a check. The function of the data verification system 1 is realized by the CPU executing the data verification program. When the execution of the data verification program is started (when the data verification system 1 is started), when the table ID of the table to be checked (order reception table, sales table, etc.) is received as an argument, the control unit 16 Only the table in the check item table 13 specified by the table ID is set as a check target. On the other hand, when there is no argument, the control unit 16 sets all the tables set in the check item table 13 as a check target.
制御部16は、チェック項目テーブル13からチェック仕様を示すパラメータ文字列を抽出してチェック項目を取得する(S101)。制御部16は、パラメータ文字列が設定されているチェック仕様に対応する各標準チェック部品14を呼び出して実行する(S102)。このため、パラメータ文字列が設定されていないチェック仕様に対応する標準チェック部品14が実行されることはない。
標準チェック部品14は各部品によって処理に差異はあるが、標準チェック部品14の一般的な処理フローを図7に示す。標準チェック部品14は、まずステップS101で取得したパラメータ文字列を受け取り、クエリ文字列で構成されるクエリを作成する(S201)。次に、業務テーブル11と関連マスタテーブル12に対して作成したクエリを実行する(S202,S203)。そして、標準チェック部品14は、実行したクエリの結果を取得して、業務テーブル11に含まれる各テーブルに登録されているデータが、チェック項目テーブル13に登録されているチェック仕様を満たすか否か判定する。その判定の結果、チェック仕様を満たさないと判定された場合には、標準チェック部品14はチェック仕様を満たさないことを示す情報をチェック結果テーブル15に格納する(S204)。
なお、その判定の結果、チェック仕様を満たすと判定された場合には、標準チェック部品14はチェック仕様を満たすことを示す情報をチェック結果テーブル15に格納することとしてもよい。
The control unit 16 extracts a parameter character string indicating a check specification from the check item table 13 and acquires a check item (S101). The control unit 16 calls and executes each standard check component 14 corresponding to the check specification in which the parameter character string is set (S102). For this reason, the standard check component 14 corresponding to the check specification in which no parameter character string is set is not executed.
FIG. 7 shows a general processing flow of the standard check component 14 although the process of the standard check component 14 is different depending on each component. The standard check component 14 first receives the parameter character string acquired in step S101, and creates a query composed of the query character string (S201). Next, the created query is executed on the business table 11 and the related master table 12 (S202, S203). Then, the standard check component 14 acquires the result of the executed query, and whether or not the data registered in each table included in the business table 11 satisfies the check specification registered in the check item table 13. judge. As a result of the determination, if it is determined that the check specification is not satisfied, the standard check component 14 stores information indicating that the check specification is not satisfied in the check result table 15 (S204).
If it is determined that the check specification is satisfied as a result of the determination, the standard check component 14 may store information indicating that the check specification is satisfied in the check result table 15.
制御部16は、図3の一覧に例示した標準チェック部品14を1つずつ順番に実行する(S102、S103)。各標準チェック部品14は、図7に示すように、チェック対象の業務テーブル11からデータを取得して、必要に応じて関連マスタテーブル12とのデータチェックを実行する。エラーが発生した場合はそのエラー内容をチェック結果テーブル15に出力する。エラー出力は、非同期でコミットする実装となっているため、チェック処理が実行中でも、エラー出力行を照会することが可能である。
制御部16は、一つのチェック対象テーブルについて全ての標準チェック部品14によるチェックが終了する(S103:Yes)と、次のチェック対象テーブルが存在するか否か判定し(S104)、存在する場合(S104:Yes)には、そのチェック対象テーブルを対象として標準チェック部品14を1つずつ順番に実行する(S102、S103)。
The control unit 16 sequentially executes the standard check components 14 exemplified in the list of FIG. 3 one by one (S102, S103). As shown in FIG. 7, each standard check component 14 acquires data from the check target business table 11 and performs data check with the related master table 12 as necessary. If an error occurs, the error content is output to the check result table 15. Since error output is implemented to commit asynchronously, it is possible to query error output lines even while the check process is being executed.
When the check by all the standard check components 14 is completed for one check target table (S103: Yes), the control unit 16 determines whether or not the next check target table exists (S104). In S104: Yes, the standard check components 14 are sequentially executed one by one for the check target table (S102, S103).
図7で示した処理について、標準チェック部品14ごとの具体的な処理内容を、例示する。
図8は、マスタ存在チェック部品の処理フローの一例を示す。図8(A)は、ステップS202とS203の業務テーブル11と関連マスタテーブル12に対するクエリ実行に関する処理である。マスタ存在チェック部品は、チェック対象の業務テーブル11と関連マスタテーブル12とを、データ項目をキーとして外部結合するクエリ文字列を組み立てる(S301)。次に、このクエリ文字列で構成されるクエリを実行して、関連マスタテーブル12の該当データ項目がNULLである件数を取得する(S302)。
次に、図8(B)は、ステップS204のクエリ結果をもとにエラー判定して、チェック結果テーブル15に格納する処理である。マスタ存在チェック部品は、ステップS302で実行したクエリの結果件数によって結果判定を行なう(S303)。まず、結果が0件の場合(S303:Yes)は、業務テーブル11に存在するデータ項目は全て関連マスタテーブル12にも存在しているということと等しいため、マスタ存在チェック部品は整合性が取れていると判断する(S304)。
About the process shown in FIG. 7, the specific processing content for every standard check component 14 is illustrated.
FIG. 8 shows an example of the processing flow of the master existence check component. FIG. 8A shows processing related to query execution for the business table 11 and the related master table 12 in steps S202 and S203. The master existence check component assembles a query character string that externally joins the check target business table 11 and the related master table 12 with data items as keys (S301). Next, a query composed of this query character string is executed to obtain the number of cases where the corresponding data item of the related master table 12 is NULL (S302).
Next, FIG. 8B is a process of determining an error based on the query result in step S204 and storing it in the check result table 15. The master existence check component makes a result determination based on the number of results of the query executed in step S302 (S303). First, if the result is 0 (S303: Yes), it means that all the data items existing in the business table 11 are also present in the related master table 12, so that the master existence check component is consistent. (S304).
一方、取得した件数が0件より大きい場合(S303:No)、業務テーブル11に存在し、かつ、関連マスタテーブル12には存在しない値が存在するということと等しいため、マスタ存在チェック部品はエラーとする。具体的には、マスタ存在チェック部品は、エラーメッセージを”関連マスタテーブルに存在しないコードがチェック対象テーブルに存在します”とし、データ検証システム1の実行日、検証対象のテーブル名等とともに、図9のチェック結果テーブル15に追記する(S305)。 On the other hand, if the acquired number is greater than 0 (S303: No), it is equivalent to the existence of a value that exists in the business table 11 and does not exist in the related master table 12, so that the master existence check component is an error. And Specifically, the master existence check component sets the error message to "Check that the code that does not exist in the related master table exists in the check target table", the execution date of the data verification system 1, the table name to be verified, etc. 9 is added to the check result table 15 (S305).
図10は、桁数チェック部品の処理フローの一例を示す。図10(A)(図7のステップS202に対応)では、チェック項目テーブル13に基づき、業務テーブル11からチェック対象のデータ項目のレコードを取得する(S401)。
図10(B)(図7のステップS203に対応)では、桁数チェックの場合は関連マスタテーブル12を参照しないので何もしない(S402)。
図10(C))(図7のステップS204に対応)では、チェック項目テーブル13のチェック項目41として設定された、”桁数”の設定値に基づき、特殊文字列の指定の有無及び指定の内容をチェックする(S403)。ここで、特殊文字列の指定があり、かつ“全(全角)”が指定されている場合は、ステップS401で取得したデータを全角の文字数でカウントする(S404)。また、特殊文字列の指定がない場合、および特殊文字列の指定があり、かつ“バ(バイト)”が指定されている場合、ステップS401で取得したデータをバイト数でカウントする(S405)。そして、チェック項目テーブル13のチェック項目41で指定された桁数と、ステップS404又はステップS405の処理で取得した桁数が一致するか判断する(S406)。一致する場合(S406:Yes)はエラーなしと判断する(S407)。一致しなかった場合(S406:No)は、”指定桁数の範囲外の値が存在します”とエラーメッセージを設定し、その他の事項とともにチェック結果テーブル15に格納する(S408)。そして、ステップS401で取得したレコード全てについてステップS403〜S408の処理を繰り返す(S409)。
なお、チェック対象のデータ項目の型がCHAR型の場合は、チェック項目の設定に寄らず、CHAR型のバイト数(16バイト)に収まる値か否かをチェックするようにしても良い。
FIG. 10 shows an example of the processing flow of the digit number check component. In FIG. 10A (corresponding to step S202 in FIG. 7), a record of the data item to be checked is acquired from the work table 11 based on the check item table 13 (S401).
In FIG. 10B (corresponding to step S203 in FIG. 7), in the case of the digit number check, nothing is done because the related master table 12 is not referred to (S402).
10 (C)) (corresponding to step S204 in FIG. 7), whether or not a special character string is specified and specified based on the setting value of “number of digits” set as the check item 41 of the check item table 13. The contents are checked (S403). If a special character string is designated and “full (full-width)” is designated, the data acquired in step S401 is counted by the full-width character count (S404). If no special character string is specified, or if a special character string is specified and “bar (byte)” is specified, the data acquired in step S401 is counted by the number of bytes (S405). Then, it is determined whether the number of digits specified in the check item 41 of the check item table 13 matches the number of digits acquired in the process of step S404 or step S405 (S406). If they match (S406: Yes), it is determined that there is no error (S407). If they do not match (S406: No), an error message is set that “a value outside the range of the specified number of digits exists” and is stored in the check result table 15 together with other items (S408). Then, the processes in steps S403 to S408 are repeated for all the records acquired in step S401 (S409).
When the type of the data item to be checked is the CHAR type, it may be checked whether the value is within the CHAR type byte count (16 bytes), regardless of the setting of the check item.
図9はチェック結果テーブル15の構成の一例を示す。チェック結果テーブル15には、チェック項目テーブル13内の対応するテーブルIDとデータ項目ID、チェック日(チェック実行日)、標準チェック部品名、検証対象のテーブル名、エラーメッセージ、エラー発生時に実行したクエリを記録する。
エラーメッセージは、エラーが発生した標準チェック部品14ごとに異なり、例えば、桁数チェック部品の場合、エラーメッセージには、“指定桁数の範囲外の値が存在します”という内容を登録する。
検証終了後、ユーザはチェック結果テーブル15を照会することで、エラー内容を確認する。ユーザはいずれのチェック観点で問題が生じたのかを瞬時につかむことができ、さらには、登録されたエラークエリを実行することで、エラーとなるデータを特定することが可能である。
FIG. 9 shows an example of the configuration of the check result table 15. The check result table 15 includes a corresponding table ID and data item ID in the check item table 13, a check date (check execution date), a standard check component name, a table name to be verified, an error message, and a query executed when an error occurs. Record.
The error message is different for each standard check component 14 in which an error has occurred. For example, in the case of a digit number check component, the content “the value outside the specified number of digits exists” is registered in the error message.
After the verification is completed, the user checks the error content by referring to the check result table 15. The user can grasp immediately from which check point a problem has occurred, and further, by executing a registered error query, it is possible to identify data that causes an error.
本発明のデータ検証システムによれば、次の効果がある。
(1)開発対象のシステムに依存せず、検証対象のテーブル毎にデータ項目のチェック仕様をドキュメントに設定することで、全てのシステムにおいて本ツールは利用可能である。
(2)データ項目のチェック仕様は、標準チェック部品で実現可能なチェック仕様であれば、ノンプログラミングでデータの妥当性検証を実現することが可能となる。
The data verification system of the present invention has the following effects.
(1) This tool can be used in all systems by setting the check specification of the data item in the document for each table to be verified without depending on the development target system.
(2) If the check specification of the data item is a check specification that can be realized by a standard check component, it is possible to realize data validity verification without programming.
1…データ検証システム、11…業務テーブル、12…関連マスタテーブル、13…チェック項目テーブル、14…標準チェック部品、15…チェック結果テーブル、16…制御部、17…アップロードツール、18…チェック項目定義書 DESCRIPTION OF SYMBOLS 1 ... Data verification system, 11 ... Business table, 12 ... Related master table, 13 ... Check item table, 14 ... Standard check part, 15 ... Check result table, 16 ... Control part, 17 ... Upload tool, 18 ... Check item definition book
Claims (2)
ユーザによって作成された前記各チェック仕様を前記チェック項目テーブルに登録するチェック仕様登録手段と、
前記チェック項目テーブルからチェック仕様を示すパラメータ文字列を抽出するパラメータ文字列抽出手段と、
前記パラメータ文字列抽出手段によって抽出されたパラメータ文字列に基づいてクエリを作成し、作成した当該クエリを前記業務テーブル、または前記業務テーブルと前記関連マスタテーブルの両方に対して実行するクエリ実行手段と、
前記クエリ実行手段によって実行されたクエリの結果に基づいて、前記業務テーブルに含まれる各テーブルに登録されているデータが、前記チェック項目テーブルに登録されているチェック仕様を満たすか否か判定するチェック仕様判定手段と、
前記チェック仕様判定手段による判定の結果を示す情報を前記チェック結果テーブルに格納するチェック結果テーブル格納手段と、
を備えることを特徴とするデータ検証システム。 A business table including a plurality of tables in which data generated for each transaction is registered, a related master table in which data commonly used in each transaction is registered, and data items in each table included in the business table Storage means for storing a check item table in which a check specification indicating a condition to be satisfied by data registered in each data item is registered, and a check result table in which information indicating a check result is stored;
Check specification registration means for registering each check specification created by a user in the check item table;
Parameter character string extracting means for extracting a parameter character string indicating a check specification from the check item table;
Query execution means for creating a query based on the parameter character string extracted by the parameter character string extraction means, and executing the created query on the business table or both the business table and the related master table; ,
A check for determining whether data registered in each table included in the business table satisfies a check specification registered in the check item table based on a result of a query executed by the query execution unit Specification judging means;
Check result table storage means for storing information indicating a result of determination by the check specification determination means in the check result table;
A data verification system comprising:
ユーザによって作成された前記各チェック仕様を前記チェック項目テーブルに登録するステップと、
前記チェック項目テーブルからチェック仕様を示すパラメータ文字列を抽出するステップと、
前記抽出されたパラメータ文字列に基づいてクエリを作成し、作成した当該クエリを前記業務テーブル、または前記業務テーブルと前記関連マスタテーブルの両方に対して実行するステップと、
前記実行されたクエリの結果に基づいて、前記業務テーブルに含まれる各テーブルに登録されているデータが、前記チェック項目テーブルに登録されているチェック仕様を満たすか否か判定するステップと、
判定の結果を示す情報を前記チェック結果テーブルに格納するステップと、
を備えることを特徴とするデータ検証方法。 A business table including a plurality of tables in which data generated for each transaction is registered, a related master table in which data commonly used in each transaction is registered, and data items in each table included in the business table Data provided with a storage means for storing a check item table in which a check specification indicating a condition to be satisfied by data registered in each data item is stored and a check result table in which information indicating a check result is stored A data verification method in a verification system,
Registering each check specification created by a user in the check item table;
Extracting a parameter character string indicating a check specification from the check item table;
Creating a query based on the extracted parameter string, and executing the created query on the business table or both the business table and the related master table;
Determining whether data registered in each table included in the business table satisfies a check specification registered in the check item table based on a result of the executed query;
Storing information indicating a result of the determination in the check result table;
A data verification method comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010253425A JP2012104005A (en) | 2010-11-12 | 2010-11-12 | Data verification system and data verification method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010253425A JP2012104005A (en) | 2010-11-12 | 2010-11-12 | Data verification system and data verification method |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2012104005A true JP2012104005A (en) | 2012-05-31 |
Family
ID=46394295
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2010253425A Withdrawn JP2012104005A (en) | 2010-11-12 | 2010-11-12 | Data verification system and data verification method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2012104005A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111210204A (en) * | 2020-01-13 | 2020-05-29 | 普元信息技术股份有限公司 | System and method for realizing configuration and display processing of universal check items in approval link of cloud platform process application business |
-
2010
- 2010-11-12 JP JP2010253425A patent/JP2012104005A/en not_active Withdrawn
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111210204A (en) * | 2020-01-13 | 2020-05-29 | 普元信息技术股份有限公司 | System and method for realizing configuration and display processing of universal check items in approval link of cloud platform process application business |
CN111210204B (en) * | 2020-01-13 | 2023-10-27 | 普元信息技术股份有限公司 | System and method for realizing general check item configuration and display processing in cloud platform flow application business approval link |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9734214B2 (en) | Metadata-based test data generation | |
US8768880B2 (en) | Automated data analysis and transformation | |
US8793660B2 (en) | Automated testing of programming code for a web service | |
US9037549B2 (en) | System and method for testing data at a data warehouse | |
US20150324437A1 (en) | Grid format data viewing and editing environment | |
US11093521B2 (en) | Just-in-time data quality assessment for best record creation | |
CN104765745B (en) | Loading data in database are carried out with the method and system of logic checking | |
WO2009146558A1 (en) | System and method for building a data warehouse | |
CN109299177A (en) | Data pick-up method, apparatus, storage medium and electronic equipment | |
US20170235713A1 (en) | System and method for self-learning real-time validation of data | |
US20080313120A1 (en) | Enabling validation of data stored on a server system | |
CN111159016A (en) | Standard detection method and device | |
US10339035B2 (en) | Test DB data generation apparatus | |
US20160162539A1 (en) | Computer executable method of generating analysis data and apparatus performing the same and storage medium for the same | |
US7814334B2 (en) | Method and apparatus for changing and adding activation keys for functions of digital content without having to change and recompile the digital content | |
US11625366B1 (en) | System, method, and computer program for automatic parser creation | |
US11182375B2 (en) | Metadata validation tool | |
CN114676231A (en) | Target information detection method, device and medium | |
CN111061733A (en) | Data processing method and device, electronic equipment and computer readable storage medium | |
US10489137B1 (en) | Software verification system and methods | |
CN110570207A (en) | commodity tracing method and device | |
CN103348354A (en) | Security verification device and security verification method | |
JP2012104005A (en) | Data verification system and data verification method | |
CN112685304A (en) | Front-end information standard checking method, system, device and storage medium | |
JP2014137748A (en) | Document data management system, document data management method and document data management program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A300 | Application deemed to be withdrawn because no request for examination was validly filed |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20140204 |