JP2001187477A - Data base system having hierarchic link table - Google Patents

Data base system having hierarchic link table

Info

Publication number
JP2001187477A
JP2001187477A JP37571899A JP37571899A JP2001187477A JP 2001187477 A JP2001187477 A JP 2001187477A JP 37571899 A JP37571899 A JP 37571899A JP 37571899 A JP37571899 A JP 37571899A JP 2001187477 A JP2001187477 A JP 2001187477A
Authority
JP
Japan
Prior art keywords
data
database
hierarchical
business processing
processing program
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
JP37571899A
Other languages
Japanese (ja)
Inventor
Hidenori Nishikawa
英徳 西川
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.)
IBM Japan Ltd
Original Assignee
IBM Japan Ltd
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 IBM Japan Ltd filed Critical IBM Japan Ltd
Priority to JP37571899A priority Critical patent/JP2001187477A/en
Priority to US09/742,657 priority patent/US6947946B2/en
Publication of JP2001187477A publication Critical patent/JP2001187477A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To obtain a data base system which can deal flexibly and quickly even with addition/modification of the content of business or associated data (including information related to the content of service or client). SOLUTION: Information (e.g. a pointer) for linking data bases (entities) is not included (hierarchic node data base), as a rule, in a data base containing data processed according to each business processing program. On the other hand, a table (hierarchic link table) principally comprising information for linking data bases is formed in correspondence with each business processing program. Each business processing program can accesses a required hierarchic node data base with reference to a corresponding hierarchic link table. When modification in the hierarchic structure of data, e.g. addition of a business based on a new business, is required, a corresponding correction is simply required to reflect on the hierarchic link table.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、一定の業務処理を
行なうアプリケーションプログラム(業務処理プログラ
ム)がアクセスするデータベース・システムに係り、特
に業務内容や関連データの追加・変更に対しても柔軟に
対処できるデータベース・システムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a database system accessed by an application program (business processing program) for performing a certain business process, and particularly flexibly copes with additions and changes of business contents and related data. About possible database systems.

【0002】[0002]

【従来の技術】一定の業務処理を行なうアプリケーショ
ンプログラム(業務処理プログラム)が扱うデータはそ
の量が大きいため、通常データベース・システムに格納
されて管理される。このデータベース・システムは、典
型的には概ね次のようにして構築される。まず、すべて
の業務処理プログラムに必要なデータベース(エンティ
ティともいう)と当該データベース内のデータ項目(各
エンティティの属性項目ともいう)を洗い出す。そし
て、想定されるすべての業務処理プログラムが効率的な
処理を行なえるように、データベース間の関係(親子関
係等の階層構造)およびデータベース内のデータ項目間
の関係(これらの関係のことをリレーションシップとも
いう)を定義または決定する。決定されたこれら関係
は、ER図(エンティティ・リレーションシップ・ダイ
ヤグラム)として表現することができる。このER図
は、データベース管理システム(DBMS)の機能を用
いて、実際のデータベースとして定義される。例えば、
リレーショナル・データベースの場合には、SQLのよ
うな言語を用いてデータベースが定義される。その結
果、各データベースにおいては、各データの実際の値や
内容等(インスタンス)を格納するレコード中(キーエ
リア、カラム等)に、関連するデータベースのレコード
識別子を示す関連付け情報(ポインタ等)が生成され
る。このような関連付け情報(ポインタ等)は、実際に
は、通常の業務処理の一環として業務処理プログラムが
作成することが多い。
2. Description of the Related Art Data handled by an application program (business processing program) for performing a certain business process is large and therefore usually stored and managed in a database system. This database system is typically constructed as follows. First, a database (also referred to as an entity) necessary for all business processing programs and data items (also referred to as attribute items of each entity) in the database are identified. The relations between databases (hierarchical structure such as parent-child relations) and the relations between data items in the database (relationships between these relations) so that all assumed business processing programs can perform efficient processing. Ship). These determined relationships can be expressed as an ER diagram (entity relationship diagram). This ER diagram is defined as an actual database using the function of a database management system (DBMS). For example,
In the case of a relational database, the database is defined using a language such as SQL. As a result, in each database, association information (pointer, etc.) indicating the record identifier of the related database is generated in a record (key area, column, etc.) storing the actual value, contents, etc. (instance) of each data. Is done. In practice, such association information (such as a pointer) is often created by a business processing program as a part of normal business processing.

【0003】業務の処理要件の変更や新しい業務の追加
が行なわれたり、データベースが追加/変更されたりす
ると、データベース間の関係/階層構造が修正(例え
ば、親子関係の解消/追加/逆転等)されることにな
る。この場合、あらためて先に述べたようなデータベー
ス間の関係付け作業を行って、変更後の階層構造をデー
タベース管理システム(DBMS)の機能を用いてデー
タベース中に作りこむという変更作業が必要になる。ま
た、既存の各データベース内のレコード中(カラム)に
存在するポインタ等の関連付け情報も変更しなければな
らない。具体的には、変更のためのプログラムを作成し
てデータベースに変更を加える。
When the processing requirements of a business are changed, a new business is added, or a database is added / changed, the relation / hierarchical structure between the databases is corrected (for example, elimination / addition / reversal of parent-child relationship). Will be done. In this case, it is necessary to perform a linking operation between databases as described above, and to create a changed hierarchical structure in the database by using a function of the database management system (DBMS). Further, it is necessary to change the association information such as a pointer existing in a record (column) in each existing database. Specifically, a program for the change is created and the change is made to the database.

【0004】このような変更作業が行なわれると、変更
されたデータベースを使用(データ項目を読み出して処
理したり、書き込み/更新したりすることをいう)して
いるすべての業務処理プログラムに対して、データベー
スの階層構造の変更に応じた内容の修正か、少なくとも
その影響が無いことの確認のテストを行なう必要が生じ
る。データベース間の関係すなわちデータベースの階層
構造には変更がないが、データベース内のレコードとこ
れに関係付けられた別のデータベース内のレコードとの
間の関連付けが変更されるといったこと(例えば、顧客
Aがある電話番号を別の人に譲渡した場合等のように、
いわゆるインスタンス・レベルで親子関係の変更/所属
変更等が発生すること)は、通常の業務処理の一環とし
て発生しうることであり、業務処理プログラムがかかる
変更処理を実施する。
When such a change operation is performed, all business processing programs using the changed database (which means reading and processing data items, and writing / updating the data items) are executed. In this case, it is necessary to correct the contents in accordance with the change in the hierarchical structure of the database or at least to perform a test for confirming that there is no influence. The relationship between the databases, that is, the hierarchical structure of the database is not changed, but the association between the record in the database and the record in another database related thereto is changed (for example, when the customer A If you transfer a phone number to another person,
The so-called parent-child relationship change / affiliation change at the instance level) can occur as part of normal business processing, and the business processing program performs such change processing.

【0005】ある特定の業務処理プログラムから見た場
合、このプログラム自身が使用するデータベース群の間
にはその処理上必要な関係や階層構造が存在するが、こ
の関係/階層構造は、全データベース間の関係の一部を
構成している(部分集合となっている)ので、当該業務
処理プログラム用の関係/階層構造を個別に作成してお
く必要は必ずしもない。すなわち、全データベース間の
関係を示すポインタ等の関連付け情報をたどっていけ
ば、必要なデータベースにはたどり着くことができる。
しかしながら、処理効率等を考慮して、通常は当該業務
処理プログラムに対応する関係/階層構造を、ビューと
呼ばれるデータベース管理システム(DBMS)の機能
を用いて作成しておく。業務処理プログラムは、このよ
うに別途作成されたビュー等を参照することにより、該
当するデータベース群にアクセスすることができる。
When viewed from a specific business processing program, there is a relationship and a hierarchical structure necessary for the processing between the database groups used by the program itself. (Partial set), it is not always necessary to separately create a relation / hierarchical structure for the business processing program. That is, by following the association information such as the pointer indicating the relationship between all the databases, it is possible to reach the necessary database.
However, in consideration of processing efficiency and the like, a relation / hierarchical structure corresponding to the business processing program is usually created using a function of a database management system (DBMS) called a view. The business processing program can access the corresponding database group by referring to the views and the like created separately in this way.

【0006】また、別の観点からこれらの業務処理に用
いられるオペレーショナルなデータベースに着目する
と、各データベース中の個々のレコードには、通常「最
新」のデータの実際の値/内容(インスタンス)が格納
されており、この「最新」のデータのみが利用可能にな
っている。ここで「最新」とは、前日の夜間の処理終了
時点での値(夜間バッチ処理結果等)であったり、取引
処理(トランザクション)が発生する毎に追加/更新さ
れた最新状態(リアルタイム処理結果)であったりす
る。例えば、業務処理プログラムが一定の期間単位で処
理を行うような場合、例えば、1ヶ月間に格納されたレ
コードをその月の月末にまとめて集計/計算処理するよ
うな場合等に、当該業務処理プログラムは、当月末にデ
ータベースにアクセスして、その中に格納されている最
新の全データレコードに基づき一定の処理を行なう。し
かしながら、その月の途中のある時点でデータベース間
またはデータレコード間の関係が変更される場合がある
(例えば、顧客Aがある電話番号を別の人に譲渡した場
合等のように、いわゆるインスタンス・レベルで親子関
係の変更/所属変更等が発生する場合)。この場合、従
来の関連付け情報(ポインタ等)には、その関係がいつ
からいつまで有効であったかを示すようなデータは保持
されていない。その結果、その変更が発生した時点で、
一旦、最新のデータおよび関連付け情報に基づいて当該
業務処理プログラムを実行させ、その変更時点以降につ
き月末になった時点で、再度最新のすなわち変更後のデ
ータおよび関連付け情報に基づいてプログラムを実行さ
せる必要が生じる。
From another viewpoint, focusing on operational databases used for these business processes, individual records in each database usually store the actual value / content (instance) of the “latest” data. Only this "latest" data is available. Here, the “latest” is the value at the end of the previous night's processing (nightly batch processing result, etc.), or the latest state (real-time processing result) added / updated every time transaction processing (transaction) occurs. ). For example, when the business processing program performs processing in a certain period unit, for example, when records stored in one month are aggregated / calculated at the end of the month, the business processing program is executed. The program accesses the database at the end of the month and performs certain processing based on all the latest data records stored therein. However, at some point during the month, the relationship between databases or data records may change (for example, when customer A transfers one telephone number to another person, so-called instance- When parent-child relationship changes / affiliation changes occur at the level). In this case, the conventional association information (pointer or the like) does not hold data that indicates when the relationship was valid from when to when. As a result, when that change occurs,
It is necessary to execute the business processing program once based on the latest data and association information, and to execute the program again based on the latest, ie, changed data and association information at the end of the month after the change. Occurs.

【0007】[0007]

【発明が解決しようとする課題】しかしながら、上述の
ようなデータベースの構築の手法において、想定される
すべての業務処理プログラムが必要とするすべてのデー
タベース間の関係を事前に洗い出して定義または決定す
ることは極めて困難であり、かつ非常に時間がかかる。
このため、実際には、ある程度のところで妥協して定義
・決定を行うので、後にデータベース間の関係の変更作
業が頻繁に発生し、これに付随して多くの業務処理プロ
グラムの変更やテスト作業が生じ、多大な労力と時間を
消費することになる。上述のようなビューと呼ばれるデ
ータベース管理システム(DBMS)の機能を用いて作
成された階層構造は、あくまで全体の階層構造の部分集
合であり、データベースの実体そのものではない。よっ
て、これを単独に変更することはできず、同様の問題が
生じることに変わりはない。
However, in the above-described database construction technique, it is necessary to preliminarily identify and define or determine relationships between all databases required by all assumed business processing programs. Is extremely difficult and very time consuming.
For this reason, in practice, definitions and decisions are compromised to some extent, so that the work of changing the relationship between databases frequently occurs later, and this is accompanied by the change and testing of many business processing programs. And consumes a great deal of labor and time. A hierarchical structure created by using a function of a database management system (DBMS) called a view as described above is a subset of the entire hierarchical structure, and is not an actual database. Therefore, this cannot be changed alone, and the same problem still occurs.

【0008】このことは、新しい業務の追加や既存の業
務内容の変更に対して、柔軟かつ迅速に対応できるデー
タベース・システムの提供ができないことを意味する。
すなわち、新しいデータベース間の関係/階層構造を持
つような新しい業務上の要件が発生しても(例えば、競
争優位のために従来にないデータベース間の親子関係/
グルーピング関係を持つ新しい商品やサービスを提供し
たいと思っても)、迅速にデータベース・システムを更
新することはできない。また、ある業務処理プログラム
にとって必要なデータベース間の親子関係と別の業務処
理プログラムにとって必要な親子関係が逆転しているよ
うな場合、あるいは業務上の要件が変更されデータベー
ス間の親子関係を逆にしたい場合には、そもそもデータ
ベースの階層構造を定義できないこともあり、そのよう
な業務要件を実現できないこともある。また、ある業務
処理プログラムが、基準となる特定のデータベース(親
エンティティ)とその下に関係付けられるデータベース
(子のエンティティ)群を処理するように設計されてい
たのに、新しい要件として当該基準データベース(親エ
ンティティ)より上位(親の親の位置)に別のエンティ
ティを追加し、これを基準としてデータベース群を処理
しなければならなくなった場合(例えば、「会社」を基
準とする単位で請求や割引処理をするような業務処理プ
ログラムがあったとして、「会社」より上位のエンティ
ティとして「持株会社」を追加して、これを基準とする
単位で処理しなければならなくなったような場合)、デ
ータベース、その関連付け情報、関与する業務処理プロ
グラムの大幅な変更が必要となり、実質的には、その実
現をあきらめることも多い。さらに、上記の例で、二つ
の基準となるデータベース(エンティティ)のデータレ
コード(インスタンス)が合体して一つになるような場
合(例えば、二つの会社が合併して一つになったような
場合)にも同様の問題が生じる。
This means that it is not possible to provide a database system that can flexibly and quickly respond to addition of a new business or change of the contents of an existing business.
That is, even if a new business requirement having a new database relationship / hierarchical structure occurs (for example, a parent-child relationship
Even if you want to offer a new product or service with a grouping relationship), you cannot update your database system quickly. In addition, when the parent-child relationship between databases required for one business processing program is reversed from the parent-child relationship required for another business processing program, or when business requirements are changed, the parent-child relationship between databases is reversed. If it is desired, the hierarchical structure of the database may not be defined in the first place, and such business requirements may not be realized. Also, although a business processing program was designed to process a specific database serving as a reference (parent entity) and a group of databases (child entities) associated therewith, a new requirement for the reference database is given. If another entity is added above the (parent entity) (parent position) and the database group must be processed based on this (for example, billing or If there is a business processing program that performs discount processing, it is necessary to add "holding company" as an entity higher than "company" and process it in units based on this) Significant changes are required in the database, its association information, and the business processing programs involved. It is also often give up. Further, in the above example, when data records (instances) of two reference databases (entities) are united into one (for example, when two companies are merged into one). Case) also has the same problem.

【0009】さらに別の観点からの問題として、一定の
期間単位で処理を行なう業務処理プログラムにおいて
は、その期間の途中でデータベースのデータレコードの
変更やデータベース間の関係の変更が生じた場合、上述
のように煩雑なプログラムの実行処理が要求される点が
挙げられる。これは、通常、業務処理に用いられるデー
タベースが「最新」という一時点に対応するデータ内容
を維持するのみであるため、そのデータベースだけにア
クセスしても、過去に溯っての処理はできないことに起
因する。このような場合、データベース等の変更が発生
する都度プログラムを実行したり、または過去の記録を
保存するファイル(例えば、ログ・ファイル等)を読み
出してきて特別の処理を実行したりしなければならず、
業務処理プログラム等にそれ用の特別の機能を作りこん
でおく必要がある。これは、業務処理プログラムの複雑
化や膨大化、品質の悪化、開発・維持コストの増大につ
ながる。
As another problem from another viewpoint, in a business processing program that performs processing in a fixed period unit, if a change in data records of a database or a change in a relation between databases occurs in the middle of the period, As described above, a complicated program execution process is required. This usually means that the database used for business processing only keeps the data content corresponding to the point of time "latest", so even if only the database is accessed, it is not possible to retroactively process it. to cause. In such a case, a program must be executed each time a change in the database or the like occurs, or a file (for example, a log file or the like) for storing past records must be read and special processing must be executed. Without
It is necessary to build a special function for it in a business processing program or the like. This leads to complicated and enormous business processing programs, deterioration of quality, and increase in development and maintenance costs.

【0010】また、ビューと呼ばれるデータベース管理
システム(DBMS)の機能を用いて作成された階層構
造は、上述のようにデータベースの実体そのものではな
いため、業務上必要となるこれらの有効期間情報を任意
に設定することはできず、上記で述べたような課題の解
決にはならない。
Further, the hierarchical structure created by using a function of a database management system (DBMS) called a view is not the actual entity of the database as described above. Cannot be set, and this does not solve the problem described above.

【0011】[0011]

【発明を解決するための手段】本発明は、上記のような
問題、すなわち業務内容やデータベースの内容・関係の
変更に対して既存のデータベース・システムが柔軟かつ
迅速に対応できないという問題を解決することをその目
的とする。そのため、本発明は、データベース(エンテ
ィティ)間の関係付けを、データベースや業務処理プロ
グラムの開発/維持に大きな負担をかけることなく柔軟
に設定・変更できるデータベースの管理方式、ならびに
業務処理プログラムによりデータベースを処理する時期
と、データベース間の関係付けを追加・変更する時期ま
たはデータレコード(インスタンス)を追加・変更する
時期とを独立に扱い、互いの依存度を高めて等時間軸
(時間の流れ)に関する柔軟性をもたらすデータベース
管理方式を提供する。これによって、変更に対して柔軟
なデータベース・システムを実現することが可能とな
る。
SUMMARY OF THE INVENTION The present invention solves the above-mentioned problem, that is, the problem that existing database systems cannot flexibly and promptly respond to changes in business contents and database contents and relationships. That is its purpose. Therefore, the present invention provides a database management method that can flexibly set and change the relationship between databases (entities) without putting a large burden on the development / maintenance of a database or a business processing program, and a database using a business processing program. The timing of processing and the timing of adding / changing the relationship between databases or the timing of adding / modifying data records (instances) are treated independently, and the mutual dependency is increased to improve the isochronous axis (time flow). Provides a database management method that provides flexibility. This makes it possible to realize a database system that is flexible against changes.

【0012】具体的には、本発明においては、まず処理
対象となる各データベース中(およびそのデータレコー
ド内)にデータベース(エンティティ)間の関連付け情
報(ポインタ等)を原則として持たせない。このように
して構成するデータベースを「階層ノード・データベー
ス」という。一方、これとは別個にデータベース(エン
ティティ)間の関連付け情報を主として有するテーブル
(データベースの一種)を各業務処理プログラムに対応
して作成する。このようにして構成されたテーブルを
「階層リンク・テーブル」という。各業務処理プログラ
ムは、対応する階層リンク・テーブルを参照することに
より、自分が必要とする階層ノード・データベースにア
クセスすることができる。(ただし、階層リンク・テー
ブルが何らかの原因で壊れても別ルートを辿って復旧が
できるようにといった処理性能上の理由等から、階層ノ
ード・データベースの中に一部の関連付け情報をもたせ
る方式を採用してもよい。)
More specifically, in the present invention, first, in principle, the association information (pointer, etc.) between databases (entities) is not provided in each database to be processed (and in its data record). The database configured in this manner is called a “hierarchical node database”. On the other hand, a table (a type of database) mainly having association information between databases (entities) is created separately for each business processing program. The table configured in this manner is called a “hierarchical link table”. Each business processing program can access the hierarchical node database required by referring to the corresponding hierarchical link table. (However, for reasons such as processing performance, so that the hierarchical link table can be restored by following another route even if it is broken for some reason, a method is adopted in which some association information is provided in the hierarchical node database. May be used.)

【0013】この本発明のデータベース管理方式によれ
ば、想定されるすべての業務処理プログラムが必要とす
るデータベース等を、事前にすべて洗い出して定義/決
定する必要はなく、当面想定される必要なデータベース
のみを各業務処理プログラムの要件毎に階層リンク・テ
ーブルに設定しておけばよい。新しい要件に基づく業務
処理プログラムが追加されたときには、それに対応した
修正を階層リンク・テーブルに反映するだけでよい。ま
た、ある業務処理プログラムにとって必要なデータベー
ス間の親子関係と別の業務処理プログラムにとって必要
な親子関係が逆転する場合や、新たな業務上の要件が変
わって親子関係を逆にしたい場合にも、データそのもの
を格納する階層ノード・データベースには手を加える必
要はなく、それぞれの業務処理プログラムに対応する階
層リンク・テーブルにのみ必要な親子関係/階層構造を
定義すればよい。また、基準となる特定のデータベース
(エンティティ)の追加・修正が生じた場合(上述の
「持株会社」の例)や二つの基準となるデータベース
(エンティティ)のデータレコード(インスタンス)が
合体する場合(上述の会社の合併の例)も同様である。
According to the database management method of the present invention, it is not necessary to identify and define / determine all the databases and the like required by all assumed business processing programs in advance. Only the requirements of each business processing program need to be set in the hierarchical link table. When a business processing program based on a new requirement is added, it is only necessary to reflect the corresponding correction in the hierarchical link table. Also, when the parent-child relationship between databases required for one business processing program and the parent-child relationship required for another business processing program are reversed, or when new business requirements change and the parent-child relationship is to be reversed, There is no need to modify the hierarchical node database that stores the data itself, and it is sufficient to define the parent-child relationship / hierarchical structure required only for the hierarchical link table corresponding to each business processing program. In addition, when a specific database (entity) serving as a reference is added or modified (example of “holding company” described above) or when data records (instances) of two reference databases (entities) are combined ( The same applies to the above-mentioned example of merger of companies).

【0014】階層リンク・テーブルの各データレコード
は、関連付け情報(ポインタ等)と必要な場合には後述
する有効期間情報等が格納されているのみで比較的短い
レコードであるため、階層リンク・テーブルの変更作業
自体は、トラブルに備えて各種バックアップ等を取ると
いった作業を含めても、短時間で容易に実行できる。ま
た、対応する業務処理プログラムは、一個か極めて少な
い数でその影響範囲が限定されていいるため、変更後の
確認テストも比較的少ない手間で行なうことができる。
Each data record in the hierarchical link table is a relatively short record that only stores association information (pointers and the like) and, if necessary, validity period information to be described later. Can be easily executed in a short period of time, even if it involves various backups in preparation for a trouble. In addition, since the range of influence is limited to one or a very small number of the corresponding business processing programs, the confirmation test after the change can be performed with relatively little trouble.

【0015】さらに、本発明は、上述の階層リンク・テ
ーブルの各データレコードに、そのデータレコードがポ
インタ情報として保持している階層ノード・データベー
ス(データレコード)間の親子関係/階層構造が、対応
する業務処理プログラムからみて有効である期間、すな
わち有効になる日時(有効開始日)と有効でなくなる日
時(有効終了日)を設定することもできる。このように
設定される有効開始日と有効終了日をあわせて有効期間
情報という。この有効期間情報の付加により、各業務処
理プログラムが過去に溯って処理を実行することができ
る。
Further, according to the present invention, the parent / child relationship / hierarchical structure between the hierarchical node databases (data records) held by the data records as pointer information corresponds to each data record of the hierarchical link table. It is also possible to set a period that is valid from the viewpoint of the business processing program to be executed, that is, a date and time when the data becomes valid (valid start date) and a date and time when the data becomes invalid (valid end date). The valid start date and the valid end date set in this way are collectively referred to as valid period information. By adding the validity period information, each business processing program can execute processing retroactively in the past.

【0016】階層ノード・データベースに有効期間情報
を設定するか否かは任意である。階層ノード・データベ
ースは、一般に、各種業務処理プログラムから共通にア
クセスされるので、アクセスしてくるすべての業務処理
プログラムにとって有効な日時をセットするか、主要な
業務処理プログラムにとって有効な日時を複数個セット
するか、一切セットしないか、のいずれをも選択でき
る。逆に、特定の業務処理プログラムに対してのみ有効
期間を設定したい場合には、階層リンク・テーブル側の
有効期間情報を調整すればよく、階層ノード・データベ
ース側でかかる情報を保持する必要はない。
Whether validity period information is set in the hierarchical node database is optional. Generally, the hierarchical node database is commonly accessed by various business processing programs. Therefore, set a date and time that is valid for all business processing programs that are accessed, or set multiple valid dates and times for the main business processing programs. You can select either to set or not to set at all. Conversely, when it is desired to set the validity period only for a specific business processing program, the validity period information on the hierarchical link table only needs to be adjusted, and there is no need to maintain such information on the hierarchical node database side. .

【0017】以上まとめると、本発明は、一定の業務を
実行するための業務処理プログラムの処理で用いられる
データをノード・データとしてデータレコードに格納す
る階層ノード・データベースと、各業務処理プログラム
ごとに対応して設けられ、上記階層ノード・データベー
スに格納されたデータ・ノード間の階層構造を定義する
関連付け情報をデータレコードのデータ項目として保持
する階層リンク・テーブルとを具備するデータベース・
システムによって実現される。この階層リンク・テーブ
ルは、各データレコードの有効期間を定義する有効期間
情報をそれぞれのデータレコードのデータ項目として保
持することができる。また任意ではあるが、階層ノード
・データベースがこのような有効期間情報を保持しても
よい。
In summary, the present invention provides a hierarchical node database for storing data used in processing of a business processing program for executing a predetermined business in a data record as node data, A hierarchical link table provided correspondingly and holding, as a data item of a data record, association information defining a hierarchical structure between data nodes stored in the hierarchical node database.
Implemented by the system. This hierarchical link table can hold valid period information defining the valid period of each data record as a data item of each data record. Optionally, the hierarchical node database may hold such validity period information.

【0018】[0018]

【発明の実施の形態】以下、本発明の実施の形態につい
て説明するが、ここでは説明の便宜のために電話料金等
の費用の計算処理(割引処理)システムに適用した実施
例を用いる。しかしながら、本発明はかかる実施例に限
定されるものではなく、変更に対し柔軟なデータベース
・システムの構築を意図するものであれば他の実施例に
も適用できることに留意されたい。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The embodiments of the present invention will be described below. Here, for convenience of explanation, an embodiment applied to a system for calculating costs (such as a telephone charge) (discount processing) will be used. However, it should be noted that the present invention is not limited to such an embodiment, and can be applied to other embodiments as long as it is intended to construct a database system that is flexible against changes.

【0019】図1は、本発明を構成するデータ処理シス
テムを説明するブロック図である。特定の業務処理を行
なうためのアプリケーションプログラムである業務処理
プログラム100は、データベース管理システム200
を通じて、その処理に必要なデータをデータベース・シ
ステム300から取得する。本発明のデータベース・シ
ステム300には、各業務処理プログラム100に対応
する形で階層リンク・テーブル310が設けられてい
る。この階層リンク・テーブル310は、データベース
(エンティティ)間の関連付け情報(ポインタ等)を保
持するテーブルであり、対応する業務処理プログラム1
00の処理に必要なデータを有する階層ノード・データ
ベース320の階層構造にかんする情報を保持する。階
層ノード・データベース320は、原則として、かかる
関連付け情報をもたないデータ本体を保持するデータベ
ースである。なお、図示していないが、後述するサイク
ル制御表のようなテーブル情報もデータベース310に
格納されている。
FIG. 1 is a block diagram for explaining a data processing system constituting the present invention. A business processing program 100, which is an application program for performing a specific business processing, includes a database management system 200
, Data necessary for the processing is acquired from the database system 300. In the database system 300 of the present invention, a hierarchical link table 310 is provided so as to correspond to each business processing program 100. The hierarchical link table 310 is a table that holds association information (pointers and the like) between databases (entities).
The information on the hierarchical structure of the hierarchical node database 320 having the data necessary for the processing of 00 is stored. The hierarchy node database 320 is a database that holds a data body that does not have such association information in principle. Although not shown, table information such as a cycle control table described later is also stored in the database 310.

【0020】次に、本発明の階層リンク・テーブルによ
るデータベース管理方式を従来の方式と比較しつつ、図
2ないし図4を用いて説明する。
Next, a database management method using a hierarchical link table according to the present invention will be described with reference to FIGS.

【0021】図2は、従来型のデータベース(エンティ
ティ)間の関係付けを説明する図である。ここでは、エ
ンティティAが親でエンティティBが子というデータベ
ースの階層構造を示している。この従来の方式では、エ
ンティティBのデータレコード(インスタンス)中に、
親であるエンティティAを指示するポインタ情報が保持
されている。したがって、階層構造が変更されると、こ
のデータベースB本体を修正する必要が生じる。
FIG. 2 is a diagram for explaining a relation between conventional databases (entities). Here, a hierarchical structure of a database in which the entity A is a parent and the entity B is a child is shown. In this conventional method, in the data record (instance) of entity B,
The pointer information indicating the parent entity A is held. Therefore, when the hierarchical structure is changed, it is necessary to correct the database B itself.

【0022】図3は、本発明の階層リンク・テーブルを
用いた関係付けを説明する図である。ここでは、処理対
象であるエンティティAとBはポインタ情報を持たない
階層ノード・データベースとして構築される。両者の関
係は、別途ポインタ情報を有する階層リンク・テーブル
Xの中で定義される。したがって、階層構造が変更され
ても、データベースそのものを修正する必要はなく、よ
りサイズの小さい階層リンク・テーブルの内容を修正す
るだけでよい。
FIG. 3 is a diagram for explaining the association using the hierarchical link table of the present invention. Here, the entities A and B to be processed are constructed as a hierarchical node database having no pointer information. The relationship between the two is defined in a hierarchical link table X having pointer information separately. Therefore, even if the hierarchical structure is changed, it is not necessary to modify the database itself, but only the contents of the smaller hierarchical link table.

【0023】図4は、本発明の階層リンク・テーブル方
式を従来方式と比較しつつ説明する図である。この図で
は、ある業務処理プログラムが6つのエンティティ(実
際にはそのインスタンス)からなるデータベースを利用
する。その階層構造をみると、エンティティ1が最上位
ノードであり、その下層の子ノードとしてエンティティ
2と3が、エンティティ2の下層にエンティティ4が、
エンティティ3の下層にエンティティ5と6が位置して
いる。このデータ構造を従来の方式で記述すると中欄の
ようになる。図示されているように、各データレコード
(データフィールド)中には、データ本体である属性情
報の他に、親子関係を示す(具体的には親エンティティ
を指示する)ポインタ情報が格納されている。同じデー
タ構造を階層リンク・テーブルで記述すると下欄のよう
になる。図示されているように、ポインタ情報は階層リ
ンク・テーブルのデータレコード(データフィールド)
にのみ格納され、階層ノード・データベースのデータレ
コード(データフィールド)には属性情報が保持される
のみである。
FIG. 4 is a diagram for explaining the hierarchical link table system of the present invention in comparison with the conventional system. In this figure, a certain business processing program uses a database composed of six entities (actually, instances thereof). Looking at the hierarchical structure, Entity 1 is the highest node, Entity 2 and 3 as child nodes under it, Entity 4 below Entity 2,
The entities 5 and 6 are located below the entity 3. When this data structure is described in a conventional manner, it is as shown in the middle column. As illustrated, in each data record (data field), pointer information indicating a parent-child relationship (specifically, indicating a parent entity) is stored in addition to the attribute information which is the data body. . If the same data structure is described in the hierarchical link table, it is as shown in the lower column. As shown, the pointer information is a data record (data field) of the hierarchical link table.
, And only the attribute information is held in the data record (data field) of the hierarchical node database.

【0024】図5は、階層ノード・データベースの内容
を説明する図である。階層ノード・データベースは、す
べての業務処理プログラムに必要なエンティティのそれ
ぞれにノードID(識別子)を付与し、各エンティティ
ごとにノード属性としてデータ本体を格納する。すなわ
ち、階層ノード・データベースは、各業務処理プログラ
ムから共通に利用されうるデータを、ノード・データと
して各データレコード(データフィールド)中に保持し
ているわけである。各業務処理プログラムは、前述の階
層リンク・テーブルを通じてこのノードIDを参照する
ことによって、必要なデータベースおよびその階層構造
を特定することができる。
FIG. 5 is a diagram for explaining the contents of the hierarchical node database. The hierarchical node database assigns a node ID (identifier) to each entity required for all business processing programs, and stores a data body as a node attribute for each entity. That is, the hierarchical node database holds data that can be commonly used by each business processing program in each data record (data field) as node data. Each business processing program can specify a necessary database and its hierarchical structure by referring to this node ID through the above-described hierarchical link table.

【0025】図6は、業務処理プログラムごとに異なる
データ階層構造を有する場合の階層リンク・テーブルの
実施例を説明する図である。業務処理プログラムが利用
する階層ノード・データベースは、ここでは「エンティ
ティ」として示されている。業務処理プログラムAP1
において利用されるデータベースは、エンティティ1が
最上位ノードで、その下層にエンティティ2、5、4、
3が図示するような関係で連なる階層構造を有してい
る。このAP1に関するデータの階層構造は、階層リン
ク・テーブルT1に格納されるエンティティ間の関係を
記述するリンク28〜31のリンク情報により保持され
る。これに対し、業務処理プログラムAP2において利
用されるデータベースは、エンティティ6が最上位ノー
ドで、その下層にエンティティ2、1、4が図示するよ
うな関係で連なる階層構造を有している。このAP2に
関するデータの階層構造は、階層リンク・テーブルT2
に格納されるエンティティ間の関係を記述するリンク3
2〜34のリンク情報により保持される。この図からも
理解できるように、本発明の階層リンク・テーブルは、
各業務処理プログラムごとに作成され保持される。
FIG. 6 is a view for explaining an embodiment of a hierarchical link table in a case where each business processing program has a different data hierarchical structure. The hierarchical node database used by the business processing program is shown here as "entity". Business processing program AP1
In the database used in, the entity 1 is the top node and the entities 2, 5, 4,
3 has a hierarchical structure connected in a relationship as shown. The hierarchical structure of the data relating to the AP1 is held by link information of links 28 to 31, which describe relationships between entities stored in the hierarchical link table T1. On the other hand, the database used in the business processing program AP2 has a hierarchical structure in which the entity 6 is the highest-order node and the entities 2, 1, and 4 are connected under the entity 6 in the lower layer. The hierarchical structure of the data relating to the AP2 is the hierarchical link table T2.
Link 3 describing the relationships between the entities stored in the
It is held by link information 2-34. As can be seen from this figure, the hierarchical link table of the present invention is:
It is created and stored for each business processing program.

【0026】図7は、上記のような業務処理プログラム
と階層リンク・テーブルと階層ノード・データベースの
関係を説明する図である。階層リンク・テーブルAは、
業務処理プログラムAに対応して設けられる。階層リン
ク・テーブルAは、この業務処理プログラムAから見た
関連付け情報(階層構造情報)や後述の有効期間情報等
を格納しており、業務処理プログラムAは、この階層リ
ンク・テーブルAの内容に基づいて、処理対象である階
層ノード・データベースX、Y、Zにアクセスして必要
なデータを取得し、これを用いて特定の業務を処理す
る。
FIG. 7 is a diagram for explaining the relationship between the business processing program, the hierarchical link table, and the hierarchical node database as described above. The hierarchical link table A is
It is provided corresponding to the business processing program A. The hierarchical link table A stores association information (hierarchical structure information) viewed from the business processing program A, validity period information described later, and the like. Based on this, the hierarchical node databases X, Y, and Z to be processed are accessed to obtain necessary data, and a specific task is processed using the data.

【0027】図8は、本発明の階層リンク・テーブルを
用いたデータベース管理方式を通信事業者の料金業務支
援システムに適用した例を説明するための図である。こ
こでは、各顧客ごとに、図示するような5つの業務処理
プログラム(AP1〜AP5)が稼動している。それぞ
れの業務からみた階層構造はすべて異なるので、それぞ
れの業務処理プログラムに対応した階層リンク・テーブ
ルを定義される。階層構造の変更は、この階層リンク・
テーブルを変更することにより柔軟に対応できる。な
お、各顧客ごとに別の階層構造を用いることができる
(あるいはその場合が多い)ことにも留意されたい。ま
た、図では省略されているが、AP1の契約サービス基
本構造内の各商品/サービスは、上位層のカスタマ以外
にも他の構造の最下位層にも関連付けられている。これ
らの業務のうち、いくつかを取り上げて、その実施例を
図9および図10を用いて説明する。
FIG. 8 is a diagram for explaining an example in which the database management system using the hierarchical link table of the present invention is applied to a toll service support system of a telecommunications carrier. Here, five business processing programs (AP1 to AP5) as illustrated are running for each customer. Since the hierarchical structures are different from the viewpoint of each business, a hierarchical link table corresponding to each business processing program is defined. The change of the hierarchical structure
It is possible to respond flexibly by changing the table. It should also be noted that a different hierarchical structure can be used (or more often) for each customer. Although not shown in the figure, each product / service in the basic contract service structure of the AP 1 is associated not only with the upper layer customer but also with the lowest layer of another structure. Some of these tasks will be described, and embodiments thereof will be described with reference to FIGS.

【0028】図9は、図8のうち割引計算業務(AP
2)における階層構造の実施例を説明する図である。こ
こでは、階層ノード・データベース「プロダクト・カタ
ログ」のプロダクトID欄に示されるとおり、7つのノ
ードでデータベースの階層が構成されている。なお、同
図では、例えば「属性4」が2つ存在しているが、これ
は参照の便宜上記述されているものであり、同じ内容の
情報が格納されていることを意味するものではない。階
層ノード・データベースでは、各ノードごとに対応する
個々の情報が格納されていることに留意されたい(図1
0でも同様)。図9で示す割引計算業務プログラムAP
2の階層構造は、階層リンク・テーブル「割引構造1」
で示される。このテーブルから判断できるように、ここ
では「料金計算4」、「割引5」、「割引6」の3つの
親ノードが存在し、それぞれに対応する子ノードが定義
されている。例えば、割引5が適用されるのは、商品/
サービス1と2のみに対してであり、商品/サービス3
や4には適用されないことが分かる。
FIG. 9 shows a discount calculation operation (AP
It is a figure explaining the Example of the hierarchical structure in 2). Here, as shown in the product ID column of the hierarchical node database "product catalog", the hierarchy of the database is composed of seven nodes. In the figure, for example, there are two “attributes 4”, but this is described for convenience of reference, and does not mean that information having the same content is stored. Note that the hierarchical node database stores individual information corresponding to each node (FIG. 1).
0 is the same). Discount calculation business program AP shown in FIG.
The hierarchical structure of 2 is a hierarchical link table "discount structure 1"
Indicated by As can be determined from this table, here, there are three parent nodes “charge calculation 4”, “discount 5”, and “discount 6”, and the corresponding child nodes are defined. For example, discount 5 is applied to products /
For services 1 and 2 only, product / service 3
It can be seen that this does not apply to や and 4.

【0029】図10は、図8のうち請求集計業務(AP
4)における階層構造の実施例を説明する図である。基
本的には図9と同様の説明が妥当するが、ここでは「組
織体DB」という階層ノード・データベースが存在して
いる点が異なる。なお、図10の階層ノード・データベ
ース「プロダクト・カタログ」は、説明の便宜のため図
9と異なるものとして記述されているが、図9と同一の
データベースであってよい。
FIG. 10 is a diagram showing the billing totalization service (AP
It is a figure explaining the Example of the hierarchical structure in 4). Basically, the description similar to that of FIG. 9 is appropriate, except that a hierarchical node database called “organizational entity DB” exists here. Note that the hierarchical node database “product catalog” in FIG. 10 is described as being different from FIG. 9 for convenience of description, but may be the same database as FIG. 9.

【0030】以上の段落においては、本発明の階層リン
ク・テーブルを用いたデータベース管理システムについ
て説明した。以下では、さらに有効な仕組みとして、
「有効期間情報」を用いたデータベース管理方式につい
て説明する。
In the above paragraphs, the database management system using the hierarchical link table of the present invention has been described. Below, as a more effective mechanism,
A database management method using “validity period information” will be described.

【0031】図11は、有効期間情報を階層リンク・テ
ーブルや階層ノード・データベースのデータレコード
(データフィールド)に設定する実施例を説明する図で
ある。有効期間情報とは、テーブルやデータベース内の
各データレコードが、対応する業務処理プログラムから
みて有効である期間をいい、通常は、有効になる日時
(有効開始日)と有効でなくなる日時(有効終了日)を
データとして記述することにより設定できる。例えば、
図中の階層リンク・テーブルへの適用例において、リン
ク30は1999年1月10日から有効となり同年3月
31日まで有効なものとして存続する。この有効期間が
終了した後は、親ノード101と子ノード103間の親
子関係も終了する。一方、リンク31は1999年4月
1日から有効となり現在も有効なものとして存続してい
る。したがって、同年4月1日以降は、親ノード101
と子ノード102の親子関係が有効なものとして適用さ
れる。
FIG. 11 is a view for explaining an embodiment in which validity period information is set in a data record (data field) of a hierarchical link table or a hierarchical node database. The validity period information refers to the period during which each data record in a table or database is valid as viewed from the corresponding business processing program. Usually, the date and time when the data record becomes valid (valid start date) and the date and time when it is no longer valid (valid end date) Day) as data. For example,
In the example of application to the hierarchical link table in the figure, the link 30 is valid from January 10, 1999 and remains valid until March 31, 1999. After this validity period ends, the parent-child relationship between the parent node 101 and the child node 103 also ends. On the other hand, the link 31 has been effective since April 1, 1999, and is still effective. Therefore, after April 1 of the same year, the parent node 101
The parent-child relationship between the child node 102 and the child node 102 is applied as valid.

【0032】図11では、階層ノード・データベースの
データレコードにも有効期間情報を設定している。しか
しながら、階層ノード・データベースに有効期間情報を
設定するか否かは任意である。階層ノード・データベー
スは、一般に、各種業務処理プログラムから共通にアク
セスされるので、アクセスしてくるすべての業務処理プ
ログラムにとって有効な日時をセットしたり、主要な業
務処理プログラムにとって有効な日時を複数個セットし
たりする場合には、階層ノード・データベース側にも有
効期間情報を設定する意義がある。例えば、特定日以降
からいっせいに新商品の提供をスタートする(あるいは
ストップする)ような場合である。逆に、特定の業務処
理プログラムに対してのみ有効期間を設定したいような
場合には、階層リンク・テーブル側の有効期間情報のみ
を調整すればよく、階層ノード・データベース側でかか
る情報を保持する必要はない。
In FIG. 11, validity period information is also set in the data record of the hierarchical node database. However, whether or not to set the validity period information in the hierarchical node database is optional. Generally, the hierarchical node database is commonly accessed by various business processing programs, so that a valid date and time can be set for all the business processing programs that are accessed, or a plurality of valid dates and times can be set for the main business processing programs. When it is set, it is meaningful to set the validity period information also on the hierarchical node database side. For example, there is a case where the provision of new products is started (or stopped) all at once from a specific date. Conversely, when it is desired to set the validity period only for a specific business processing program, it is sufficient to adjust only the validity period information on the hierarchical link table side, and the hierarchical node database stores such information. No need.

【0033】業務処理プログラムは、対応する階層リン
ク・ テーブルの有効期間情報を見て処理を実行するの
で、当該有効期間外の処理を間違って実行することはな
い。例えば、業務処理プログラムが一定の期間単位で処
理を行う場合(例えば、一ヶ月間に格納されたレコード
を、その月の月末にまとめて集計/計算処理する等)、
月の途中でデータベース内のデータレコードとこれに関
係付けられた別のデータレコードとの関係/階層構造が
変更になる場合がある(例えば、顧客Aがある電話番号
を別の人Bに譲渡した場合等のように、いわゆるインス
タンス・レベルで親子関係の変更/所属変更等が発生す
るような場合)。従来の方式では、変更の生じた時点で
一旦業務処理プログラムを走行させる必要があったが、
有効期間情報を用いた本発明の構成によればこのような
処理を実行する必要はない。
Since the business processing program executes the process by looking at the validity period information of the corresponding hierarchical link table, it does not mistakenly execute the process outside the validity period. For example, when the business processing program performs processing in a certain period unit (for example, records stored in one month are aggregated / calculated at the end of the month of the month).
During the month, the relationship / hierarchy between the data record in the database and another data record associated therewith may change (eg, customer A transfers one telephone number to another B) As in the case where a change in parent-child relationship / change of affiliation occurs at a so-called instance level). In the conventional method, it was necessary to run the business processing program once when the change occurred,
According to the configuration of the present invention using the validity period information, it is not necessary to execute such processing.

【0034】図12は、有効期間情報が設定された階層
リンク・テーブルを適用した実施例を説明する図であ
る。ここでは、上述のような通信事業者の料金計算/請
求集計処理の事例に適用したものとして説明する。この
想定事例では、前月の20日から当月の19日までの顧
客のサービス利用情報(呼情報)に基づき、当月の26
日に料金/割引計算を実行するものとする(ここでは7
月が当月)。まず、(a)月の途中での変更がなかった
場合の料金計算/割引計算について説明する。業務処理
プログラムは、必要に応じてサイクル制御表(サイクル
・コントロール・テーブル)の指示にしたがって、料金
計算/請求集計日である26日に、6月20日から7月
19日までの呼情報を選択して料金計算/割引計算を行
い、その実行結果を割引1の下にリンクする。サイクル
制御表とは、ある一連の業務処理が一定の時間間隔(年
単位、四半期単位、月単位、週単位、日単位等)で実行
されるような場合に、その実行のタイミングと時間間隔
(サイクル)を記述しておくためのテーブル(データベ
ースの一種)をいう。特に図示はしていないが、このよ
うなサイクル表を用いて、その表中に業務処理プログラ
ムの識別子(プロダクトIDともいう)を指示しておけ
ば、本発明のもとで柔軟に管理できる階層構造を用い
て、自動的に必要な業務処理プログラムを実行できる。
FIG. 12 is a view for explaining an embodiment to which a hierarchical link table in which validity period information is set is applied. Here, a description will be given assuming that the present invention is applied to the case of the above-described charge calculation / billing aggregation processing of a communication carrier. In this assumed case, based on customer service usage information (call information) from the 20th of the previous month to the 19th of the current month, 26
A charge / discount calculation is performed on a day (here, 7
Month is the current month). First, (a) charge calculation / discount calculation when there is no change in the middle of the month will be described. The business processing program converts the call information from June 20 to July 19 on the 26th, which is the charge calculation / billing total date, according to the instructions of the cycle control table (cycle control table) as necessary. Select and perform charge calculation / discount calculation, and link the execution result under Discount 1. When a series of business processes are executed at fixed time intervals (yearly, quarterly, monthly, weekly, daily, etc.), the cycle control table indicates the execution timing and time interval ( Cycle) is a table (a type of database) for describing the cycle. Although not particularly shown, by using such a cycle table and designating an identifier (also referred to as a product ID) of a business processing program in the table, a hierarchy that can be flexibly managed under the present invention is provided. By using the structure, a necessary business processing program can be automatically executed.

【0035】次に、(b)月の途中で変更がなされた場
合の料金計算/割引計算について説明する。ここでは7
月13日に前サービス(割引1)のもとでの契約が終了
し、7月14日から新サービス(割引2)のもとでの契
約がはじまるものとする。通常のサイクル制御表からの
制御では、6月20日から7月19日までの呼情報を選
択して料金計算/割引計算しようとするが、割引1につ
いては、電話1/電話2との関係(契約状況)を示す階
層リンク・テーブルの有効終了日が7月13日になって
いるため、6月20日から7月13日までの計算しか行
わない。結果は割引1の下にリンクしておく。割引2に
ついては、階層リンク・テーブルの有効期間情報で指定
された7月14日以降(同19日まで)の期間に対して
同様に料金を計算し、結果を割引2の下にリンクしてお
く。
Next, (b) charge calculation / discount calculation when a change is made in the middle of a month will be described. Here 7
It is assumed that the contract under the previous service (discount 1) ends on the 13th of the month, and the contract under the new service (discount 2) starts on the 14th of July. In the control from the normal cycle control table, the call information from June 20 to July 19 is selected to calculate the charge / discount. Since the effective end date of the hierarchical link table indicating (contract status) is July 13, only the calculation from June 20 to July 13 is performed. The result is linked below Discount 1. As for discount 2, charge is similarly calculated for the period from July 14 (until the same day as 19) specified in the validity period information of the hierarchical link table, and the result is linked under discount 2. deep.

【0036】また、(c)請求料金集計についてである
が、請求1(請求集計プログラム)は、自己の下層にリ
ンクされている「割引」という階層ノード・データベー
スのデータレコード(割引1および割引2)を見て、そ
れらにリンクされている計算結果を集計するだけで請求
金額を算出し、これをもとに顧客である会社2に対する
請求処理を実行することができる。
Regarding (c) billing totaling, billing 1 (billing totaling program) is based on data records (discount 1 and discount 2) of a hierarchical node database called “discount” linked to its own lower layer. ), The billing amount can be calculated only by summing up the calculation results linked to them, and the billing process for the company 2 as the customer can be executed based on this.

【0037】図13は、本発明によるデータベース管理
方式の柔軟性をより高める可変長コラムの実施例につい
て説明する図である。上述の階層ノード・データベース
のすべてまたは主要なものを、固定長カラムと可変長カ
ラムから構成される同一レコード様式のデータベース形
式とすることができる。具体的にいうと、各データレコ
ードの固定長カラムには、レコード識別子(ノード識別
子)や有効期間情報等、そのデータサイズが常に一定な
必須のデータ項目のみを格納し、当該データベース(エ
ンティティ)の属性情報はすべて可変長カラムに格納す
る。このようにすることにより、顧客、サービス、設備
等多様なタイプのエンティティのレコード形式を共通化
して、ごく少数のスーパータイプに整理統合し、データ
ベースの維持・管理作業の負担を軽減することができ
る。図13では、通信事業者の設備データベースの維持
・管理を容易にし、変更への柔軟性を確保するために、
設備関連エンティティのタイプや属性情報を全て可変長
カラム部分に格納し、固定長カラム部分には有効期間情
報のみを格納した例を示しており、これにより多種多様
なエンティティを同一のデータベース構造とすることが
できる。
FIG. 13 is a diagram for explaining an embodiment of a variable-length column for further improving the flexibility of the database management system according to the present invention. All or a major part of the hierarchical node database described above can be in the same record format database format consisting of fixed length columns and variable length columns. Specifically, in the fixed-length column of each data record, only essential data items whose data size is always constant, such as a record identifier (node identifier) and validity period information, are stored. All attribute information is stored in variable-length columns. By doing so, it is possible to standardize the record format of various types of entities such as customers, services, facilities, etc., consolidate them into a very small number of super types, and reduce the burden of database maintenance and management work . In FIG. 13, in order to facilitate the maintenance and management of the equipment database of the telecommunications carrier and to ensure the flexibility for changes,
An example is shown in which the type and attribute information of the facility-related entities are all stored in the variable-length column portion, and only the validity period information is stored in the fixed-length column portion, so that various entities have the same database structure. be able to.

【0038】本発明の利点を、いくつかの実施例をまじ
えて説明してきたが、さらなる利点がある。それは、業
務のプロセスごとに互いに論理的に分離・独立した処理
対象の制御が可能となる点である。これを、図8に示す
業務のいくつかを参照しつつ図14および図15を用い
て説明する。
While the advantages of the present invention have been described in terms of several embodiments, there are additional advantages. The point is that it is possible to control processing targets that are logically separated and independent from each other for each business process. This will be described with reference to FIGS. 14 and 15 while referring to some of the tasks shown in FIG.

【0039】図14は、本発明のデータベース管理方式
を通信事業者の料金業務の一つである割戻し金額計算に
適用する実施例を説明する図である。割戻し計算とは、
各顧客単位で計算した料金(割引計算を含む)を、顧客
が指定する請求先(割戻し先)に顧客が指定する割合等
で請求するための計算処理をいう。図14では、(a)
の料金計算/割引計算階層構造と(b)の請求階層構造
とを別の階層リンク・テーブルを定義することにより分
離している。オペレーション上は、(a)の料金計算/
割引計算階層構造に基づき各種の割引サービス等に応じ
た料金計算を行ない、(b)の請求階層構造に基づき、
顧客が指定する方式で料金を請求する。これにより、例
えば(b)で請求先を顧客が指定・変更できるようにな
る等、変更のための柔軟性が増し、また各階層構造の保
守・メンテナンスも容易になる。通常、(a)の料金計
算/割引計算階層構造は、商品・サービスの仕様により
決まり、(b)の請求階層構造は、顧客の組織・場所等
により決まる。この図での割引計算時の割戻しは、単純
な比例配分としておき、請求金額集計時に割引前料金集
計階層構造とは別に割引額集計階層構造を用意してお
り、これにより、顧客から要求されるさまざまな割引額
配分(割戻し)方法すなわち比例配分(貢献度配分)/
同額配分/特別配分等が柔軟に実現できる。
FIG. 14 is a diagram for explaining an embodiment in which the database management system of the present invention is applied to a rebate amount calculation which is one of the fee operations of a communication carrier. What is rebate calculation?
It refers to a calculation process for charging a fee (including a discount calculation) calculated for each customer to a billing destination (rebate destination) specified by the customer at a rate specified by the customer. In FIG. 14, (a)
Is separated from the charge calculation / discount calculation hierarchical structure of (b) and the billing hierarchical structure of (b) by defining another hierarchical link table. In operation, the charge calculation in (a) /
Based on the discount calculation hierarchical structure, charges are calculated according to various discount services, etc., and based on the billing hierarchical structure of (b),
Charge a fee according to the method specified by the customer. As a result, for example, the customer can specify and change the billing destination in (b), so that the flexibility for the change is increased, and the maintenance of each hierarchical structure is also facilitated. Usually, the charge calculation / discount calculation hierarchical structure of (a) is determined by the specification of the product / service, and the billing hierarchical structure of (b) is determined by the organization and location of the customer. In this figure, the rebate at the time of discount calculation is a simple proportional distribution, and a discount amount aggregation hierarchy structure is prepared separately from the pre-discount charge aggregation hierarchy structure at the time of billing amount aggregation. Various discount distribution (rebate) methods, ie, proportional distribution (contribution distribution) /
The same amount / special allocation can be flexibly realized.

【0040】図15は、本発明のデータベース管理方式
を通信事業者の料金業務に適用する別の実施例を説明す
る図である。この図では、各顧客の請求用構造と報告用
構造の定義を、別個の階層リンク・テーブルを用いるこ
とにより、任意にかつ相互に独立して行う例を示してい
る。これら請求処理に用いられるデータベース間の関係
/階層構造を請求グループ構造とも呼ぶが、この請求グ
ループ構造は、従来は顧客の要求が変わるたびに修正作
業が必要になり、関連する多くのデータベースの変更と
いう多大な稼働を要する作業となっていた。しかし、こ
の関係付けを階層リンク・テーブルを用いて定義してお
けば、このサイズの小さい階層リンク・テーブルを変更
するだけで済むので、変更作業は容易に行なうことがで
きる。すなわち、階層リンク・テーブルにより請求グル
ープ構造を定義する方式を持つ本発明のシステムは、顧
客の要件変更に柔軟に対応できるものといえる。
FIG. 15 is a diagram for explaining another embodiment in which the database management system of the present invention is applied to a charge business of a telecommunications carrier. This figure shows an example in which the billing structure and the reporting structure of each customer are defined arbitrarily and independently of each other by using separate hierarchical link tables. The relationship / hierarchical structure between the databases used for the billing process is also called a billing group structure. This billing group structure conventionally requires a modification work every time a customer's request changes, and many related database changes are made. It was a task that required a lot of operation. However, if this association is defined using a hierarchical link table, only the small hierarchical link table needs to be changed, so that the change operation can be easily performed. That is, it can be said that the system of the present invention having the method of defining the billing group structure by the hierarchical link table can flexibly cope with a change in customer requirements.

【0041】ここで、「請求」業務処理プログラムは、
顧客であるカスタマaへの請求(請求1)処理として、
カスタマa、その下層にある部門x...yで利用され
たサービスの料金計算結果を集計し、カスタマaの住所
に請求する。「レポート」業務処理プログラムは、当該
顧客に対しては、レポート10の処理によりカスタマ
a、部門x...yの集計結果(および明細)をカスタ
マaの住所に報告し、部門yに対しては、レポート11
の処理により部門yの集計結果(および明細)を、部門
yの住所に報告する。
Here, the “claim” business processing program is:
As billing (billing 1) processing to customer a, which is a customer,
Customer a, the department under it x. . . The charge calculation results of the service used in y are totaled and charged to the address of the customer a. The “report” business processing program provides the customer a, the department x. . . The result of the aggregation of y (and the details) is reported to the address of the customer a.
Report the result (and details) of department y to the address of department y.

【0042】[0042]

【発明の効果】以上説明したように、本発明の階層リン
ク・テーブルを採用したデータベース管理方式によれ
ば、業務内容や関連データ(サービス内容や顧客に関す
る情報を含む)の追加・変更に対しても柔軟かつ迅速に
対処できるデータベース・システムが提供される。ま
た、本発明の有効期間情報の構成をさらに備えること
で、処理対象となる期間の途中で上記の追加・変更が生
じた場合であっても、過去のデータに溯っての処理が適
切かつ迅速、簡便に行なえるようになる。
As described above, according to the database management system employing the hierarchical link table of the present invention, addition or change of business contents or related data (including information on service contents and customers) is performed. A flexible and prompt database system is provided. Further, by further providing the configuration of the validity period information of the present invention, even in the case where the above addition / change occurs in the middle of the period to be processed, the process retroactively to the past data is appropriate and prompt. , It can be done easily.

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

【図1】本発明を構成するデータ処理システムを説明す
るブロック図である。
FIG. 1 is a block diagram illustrating a data processing system constituting the present invention.

【図2】従来型のデータベース(エンティティ)間の関
係付けを説明する図である。
FIG. 2 is a diagram for explaining a relation between conventional databases (entities).

【図3】本発明の階層リンク・テーブルを用いた関係付
けを説明する図である。
FIG. 3 is a diagram for explaining association using a hierarchical link table according to the present invention.

【図4】本発明の階層リンク・テーブル方式を従来方式
と比較しつつ説明する図である。
FIG. 4 is a diagram for explaining a hierarchical link table method of the present invention in comparison with a conventional method.

【図5】階層ノード・データベースの内容を説明する図
である。
FIG. 5 is a diagram illustrating the contents of a hierarchical node database.

【図6】業務処理プログラムごとに設けた階層リンク・
テーブルを説明する図である。
FIG. 6 is a hierarchical link provided for each business processing program.
It is a figure explaining a table.

【図7】業務処理プログラムと階層リンク・テーブルお
よび階層ノード・データベースの関係を説明する図であ
る。
FIG. 7 is a diagram illustrating the relationship between a business processing program, a hierarchical link table, and a hierarchical node database.

【図8】本発明を通信事業者の料金業務支援システムに
適用した実施例を説明する図である。
FIG. 8 is a diagram for explaining an embodiment in which the present invention is applied to a toll service support system of a telecommunications carrier;

【図9】図8のうち割引計算業務における階層構造の実
施例を説明する図である。
FIG. 9 is a diagram illustrating an example of a hierarchical structure in a discount calculation operation in FIG.

【図10】図8のうち請求集計業務における階層構造の
実施例を説明する図である。
FIG. 10 is a diagram for explaining an embodiment of a hierarchical structure in the billing task in FIG.

【図11】有効期間情報を階層リンク・テーブル等に設
定した実施例を説明する図である。
FIG. 11 is a diagram illustrating an embodiment in which validity period information is set in a hierarchical link table or the like.

【図12】有効期間情報が設定された階層リンク・テー
ブルの実施例を説明する図である。
FIG. 12 is a diagram illustrating an example of a hierarchical link table in which validity period information is set.

【図13】本発明における可変長コラムの実施例を説明
する図である。
FIG. 13 is a diagram illustrating an embodiment of a variable-length column according to the present invention.

【図14】本発明を通信事業者の割戻し計算業務に適用
する実施例を説明する図である。
FIG. 14 is a diagram illustrating an embodiment in which the present invention is applied to a rebate calculation operation of a communication carrier.

【図15】本発明を通信事業者の料金業務に適用する別
の実施例を説明する図である。
FIG. 15 is a diagram illustrating another embodiment in which the present invention is applied to a charge business of a communication carrier.

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

100・・・業務処理プログラム、200・・・データ
ベース管理システム、300・・・データベース・シス
テム、310・・・階層リンク・テーブル、320・・
・階層ノード・データベース
100: business processing program, 200: database management system, 300: database system, 310: hierarchical link table, 320 ...
・ Hierarchy node database

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】一定の業務を実行するための業務処理プロ
グラムの処理で用いられるデータを格納し管理するため
のデータベース・システムであって、上記業務処理プロ
グラムの処理で用いられるデータをノード・データとし
てデータレコードに格納する階層ノード・データベース
と、上記業務処理プログラムごとに対応して設けられ、
上記階層ノード・データベースに格納されたデータ・ノ
ード間の階層構造を定義する関連付け情報をデータレコ
ードのデータ項目として保持する階層リンク・テーブル
と、を具備するデータベース・システム。
1. A database system for storing and managing data used in the processing of a business processing program for executing a predetermined business, wherein the data used in the processing of the business processing program is stored in node data. As a hierarchical node database to be stored in the data record, and provided for each of the business processing programs,
A hierarchical link table that holds, as a data item of a data record, association information defining a hierarchical structure between data nodes stored in the hierarchical node database.
【請求項2】上記階層リンク・テーブルが、各データレ
コードの有効期間を定義する有効期間情報をそれぞれの
データレコードのデータ項目として保持する、請求項1
に記載のデータベース・システム。
2. The hierarchical link table holds validity period information defining a validity period of each data record as a data item of each data record.
Database system as described in.
【請求項3】上記階層ノード・データベースが、各デー
タレコードの有効期間を定義する有効期間情報をそれぞ
れのデータ・フィールドのデータ項目として保持する、
請求項1または2記載のデータベース・システム。
3. The hierarchical node database stores valid period information defining a valid period of each data record as a data item of each data field.
The database system according to claim 1.
【請求項4】上記階層ノード・データベースの各データ
レコードが、データサイズが一定であるデータ項目のみ
を格納する固定長カラムと、データサイズが可変のデー
タを格納する可変長カラムを有する、請求項1ないし3
のいずれか1に記載のデータベース・システム。
4. Each data record of the hierarchical node database has a fixed length column for storing only data items having a fixed data size, and a variable length column for storing data having a variable data size. 1 to 3
The database system according to any one of claims 1 to 4.
【請求項5】一定の時間間隔で業務処理が実行される業
務処理プログラムの実行のタイミングを定義するサイク
ル情報を有するサイクル制御表をさらに具備する、請求
項1ないし4のいずれか1に記載のデータベース・シス
テム。
5. The system according to claim 1, further comprising a cycle control table having cycle information defining execution timing of a business processing program in which business processing is executed at a predetermined time interval. Database system.
JP37571899A 1999-12-28 1999-12-28 Data base system having hierarchic link table Pending JP2001187477A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP37571899A JP2001187477A (en) 1999-12-28 1999-12-28 Data base system having hierarchic link table
US09/742,657 US6947946B2 (en) 1999-12-28 2000-12-21 Database system including hierarchical link table

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP37571899A JP2001187477A (en) 1999-12-28 1999-12-28 Data base system having hierarchic link table

Publications (1)

Publication Number Publication Date
JP2001187477A true JP2001187477A (en) 2001-07-10

Family

ID=18505950

Family Applications (1)

Application Number Title Priority Date Filing Date
JP37571899A Pending JP2001187477A (en) 1999-12-28 1999-12-28 Data base system having hierarchic link table

Country Status (1)

Country Link
JP (1) JP2001187477A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006524376A (en) * 2003-04-23 2006-10-26 ボルフガング・フラトウ Generic database schema
JP2007102652A (en) * 2005-10-07 2007-04-19 Hitachi Ltd Device, method and program for retrieving hierarchical data
US10289719B2 (en) 2015-07-10 2019-05-14 Mitsubishi Electric Corporation Data acquisition device, data acquisition method and computer readable medium
WO2021220463A1 (en) * 2020-04-30 2021-11-04 日本電信電話株式会社 Name data association device, name data association method and program
WO2021220464A1 (en) * 2020-04-30 2021-11-04 日本電信電話株式会社 Name data mapping device, name data mapping method, and program

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0340043A (en) * 1989-07-06 1991-02-20 Hitachi Ltd Data base generation managing system
JPH0440043A (en) * 1990-06-04 1992-02-10 Mitsubishi Electric Corp Network layer data transfer control system
JPH07152546A (en) * 1993-09-29 1995-06-16 Hitachi Software Eng Co Ltd Programming processing method/system for object-oriented programming system using graphic
JPH09212515A (en) * 1996-01-31 1997-08-15 Mazda Motor Corp Information retrieving device
JPH10301824A (en) * 1997-04-25 1998-11-13 Nippon Telegr & Teleph Corp <Ntt> Computer readable recording medium recording information management data and information management system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0340043A (en) * 1989-07-06 1991-02-20 Hitachi Ltd Data base generation managing system
JPH0440043A (en) * 1990-06-04 1992-02-10 Mitsubishi Electric Corp Network layer data transfer control system
JPH07152546A (en) * 1993-09-29 1995-06-16 Hitachi Software Eng Co Ltd Programming processing method/system for object-oriented programming system using graphic
JPH09212515A (en) * 1996-01-31 1997-08-15 Mazda Motor Corp Information retrieving device
JPH10301824A (en) * 1997-04-25 1998-11-13 Nippon Telegr & Teleph Corp <Ntt> Computer readable recording medium recording information management data and information management system

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006524376A (en) * 2003-04-23 2006-10-26 ボルフガング・フラトウ Generic database schema
JP2007102652A (en) * 2005-10-07 2007-04-19 Hitachi Ltd Device, method and program for retrieving hierarchical data
JP4529861B2 (en) * 2005-10-07 2010-08-25 株式会社日立製作所 Hierarchical data search apparatus, search method, and search program
US7933910B2 (en) 2005-10-07 2011-04-26 Hitachi, Ltd. Retrieving apparatus, retrieving method, and retrieving program of hierarchical structure data
US10289719B2 (en) 2015-07-10 2019-05-14 Mitsubishi Electric Corporation Data acquisition device, data acquisition method and computer readable medium
WO2021220463A1 (en) * 2020-04-30 2021-11-04 日本電信電話株式会社 Name data association device, name data association method and program
WO2021220464A1 (en) * 2020-04-30 2021-11-04 日本電信電話株式会社 Name data mapping device, name data mapping method, and program
JP7392841B2 (en) 2020-04-30 2023-12-06 日本電信電話株式会社 Name data correspondence device, name data correspondence method and program
JP7392840B2 (en) 2020-04-30 2023-12-06 日本電信電話株式会社 Name data correspondence device, name data correspondence method and program

Similar Documents

Publication Publication Date Title
US6947946B2 (en) Database system including hierarchical link table
US9875505B2 (en) Hierarchical transaction filtering
US6240422B1 (en) Object to relational database mapping infrastructure in a customer care and billing system
US6850952B2 (en) Method and apparatus for populating multiple data marts in a single aggregation process
Benjamin Information technology in the 1990s: a long range planning scenario
US7457807B2 (en) Data migration and analysis
US7848970B2 (en) System and method for synchronizing ledger accounts by company group
US20090006148A1 (en) Apparatus and method for materializing related business intelligence data entities
US7853503B2 (en) Transaction allocation
JPH06175906A (en) Information accumulation system and method
US20040128185A1 (en) System and method for analyzing sales performances
JPH06110749A (en) Reconfigurating system for data base
EP1412903A2 (en) Method and tool for achieving data consistency in an enterprise resource planning system
JP2001187477A (en) Data base system having hierarchic link table
JPH096654A (en) Data-processing method of database of business processing and recording system
JP2001101065A (en) Data base integrating system
Curley et al. The Rationale for Developing a Corporate Data Warehouse and the Development of a Model for Sharing Data in a Data Warehouse Environment
US20230021962A1 (en) Subscription metric generation from storage-efficient subscription charge segment change logs
JP2001195288A (en) Trunk task package and method for selling the same
Bustamente et al. Decision support at Lands' End—An evolution
US20020029198A1 (en) Flexible information and business logic software engine
Florentin Data base representations of application models
Boyd Architecture Patterns for Business Systems
Carr A possible design and estimated cost analysis of a computer based information system for gun control
JPH11195032A (en) Master data system file generation managing device, file processing device, file updating device, device and method for safety management, and record medium

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040406

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040601

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20050419

RD12 Notification of acceptance of power of sub attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7432

Effective date: 20050427

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050513

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20050427

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20050607

A912 Re-examination (zenchi) completed and case transferred to appeal board

Free format text: JAPANESE INTERMEDIATE CODE: A912

Effective date: 20051202

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A711

Effective date: 20071029

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20071029