JP2007242061A - Data processing method and device - Google Patents
Data processing method and device Download PDFInfo
- Publication number
- JP2007242061A JP2007242061A JP2007158157A JP2007158157A JP2007242061A JP 2007242061 A JP2007242061 A JP 2007242061A JP 2007158157 A JP2007158157 A JP 2007158157A JP 2007158157 A JP2007158157 A JP 2007158157A JP 2007242061 A JP2007242061 A JP 2007242061A
- Authority
- JP
- Japan
- Prior art keywords
- data
- storage area
- time
- update
- uap
- 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
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
本発明は、任意の時点のデータベースを別の領域に記憶し、そのデータベースの処理を行うデータベース管理技術に関する。 The present invention relates to a database management technique for storing a database at an arbitrary point in another area and processing the database.
一般にオンラインシステムのデータベース(以下、DBと称す)の日次や月次の処理は、オンライン終了後に、あるいは、DBを閉塞したうえでオンラインシステムから一時的に切り離した後に、バッチ処理で一括してDBを参照することで行っていた。 In general, daily and monthly processing of an online system database (hereinafter referred to as DB) is performed batch-wise after online termination or after the DB is blocked and temporarily disconnected from the online system. This was done by referring to the DB.
従来、連続無停止システムにおけるDBの更新・検索方法としては、特許文献1や特許文献2に記載のように、DBの更新要求には直ちに対象情報が更新される一方、更新前の情報を保持して、それには更新の時系列情報を付与しておき、検索要求には要求時点の時系列情報に基づいて該当時点の情報を検索できるようにする方法がある。また、DBの回復を容易にしたり、レコードの世代管理を容易にする方法としては、特許文献3に記載のように、レコードの更新時刻や更新前情報を履歴としてDB内に内蔵させることで実現する方法がある。さらに、データセットのバックアップを取得する方法としては、特許文献4に記載のように、UAP実行の保留時間を大幅に短縮しながらある時点で一貫性を持つデータセットのバックアップを取得する方法がある。しかし、これらはいずれも、ある時点でのDBの首尾一貫する内容を読み出すことが目的であり、直接更新することはできない。
Conventionally, as a DB update / search method in a continuous non-stop system, as described in
従来技術では、DBへの本来業務による連続アクセスを保証しながら、過去のある時点のDBの内容(以下、凍結データと称す)に基づいて別途更新処理等を行うためには、ある時点のDBのコピーを作成してからそれを更新することになる。また、オンラインシステム環境下でのUAP開発時は、DBをそのバックアップから回復する作業がUAP実行に先駆けてその都度必要になっていた。 In the prior art, in order to perform separate update processing or the like based on the contents of the DB at a past time (hereinafter referred to as frozen data) while guaranteeing continuous access to the DB by the original business, the DB at a certain time Make a copy of it and then update it. In addition, when UAP is developed in an online system environment, work for recovering the DB from its backup is required every time prior to UAP execution.
本発明の目的は、データベース管理システムにおける日次業務や月次業務などの更新処理を容易に可能とすることにある。 An object of the present invention is to make it possible to easily perform update processing of daily work and monthly work in a database management system.
上記目的を達成するために、本発明では、DBを複数の記憶エリアに分割して管理する。具体的には、オンラインシステムの通常業務のUAPの処理ルート(通常処理ルート)による最新のデータのすべてを保持する第1記憶エリアを中軸にして、該通常処理ルートの過去のある時点(t0時点)に遡るための更新前のデータ(t0データ)を記憶する第2記憶エリアと、該t0データを元に、過去のある時点から新たに別のUAPの処理ルート(別処理ルート)を実行して得られる更新後のデータ(tnデータ)を記憶する第3記憶エリアに分割して管理する。 In order to achieve the above object, in the present invention, a DB is divided into a plurality of storage areas and managed. Specifically, with the first storage area that holds all the latest data by the UAP processing route (normal processing route) of the normal operation of the online system as the central axis, a past point in time (t 0) of the normal processing route A second storage area for storing data (t 0 data) before update to be traced back to the time), and a processing route (another processing route) of another UAP newly from a certain point in the past based on the t 0 data divided into a third storage area for storing the updated data obtained by executing (t n data) manages.
過去のある時点に遡る必要がなくなれば、第2記憶エリアや第3記憶エリアを切り離すだけでよい。また、新たな時点を設定する場合には、初期化した第2記憶エリアや第3記憶エリアを時系列あるいは並列に接続すればよい。これらの操作は、DBの第1記憶エリアへの通常業務によるアクセスを妨げるものではない。したがって、DBへの連続的なアクセスは保証される。
DBを複数の記憶エリアに分割するのに対応して、DBアクセス制御部では、UAPから最新あるいは過去のある時点の指定を受けて、参照要求に対しては所定の記憶エリアを検索する手段と、更新に際しては第1記憶エリアあるいは第3記憶エリアに更新後データを記憶する手段と、また、第1記憶エリアに記憶する際には必要に応じて第2記憶エリアに更新前のデータを退避する手段が組み合わせて用いられる。
If it is no longer necessary to go back to a certain point in the past, the second storage area and the third storage area need only be separated. When setting a new time point, the initialized second storage area and third storage area may be connected in time series or in parallel. These operations do not impede access to the first storage area of the DB by normal operations. Therefore, continuous access to the DB is guaranteed.
Corresponding to dividing the DB into a plurality of storage areas, the DB access control unit receives a designation of the latest or past time from the UAP and searches for a predetermined storage area for a reference request. When updating, means for storing the updated data in the first storage area or the third storage area, and when storing in the first storage area, the data before update is saved in the second storage area as necessary. Are used in combination.
このように処理することにより、所定条件を満たしたときのデータベースを格納した第2の記憶領域を入力とした処理の更新データを第3の記憶領域に格納できるため、連続運転を行うデータベース管理システムにおける日次業務や月次業務などの更新処理が容易に実現できる。また、DBを複数の記憶エリアで構成して各目的のデータを一元管理するので、従来のように別ファイルにコピーして、重複したデータを持つ必要がない。このため、データの管理が容易になる。さらに、データの重複がないことから、DBの格納スペース効率がよい、DBのコピーに要する時間が節約になる等の効果がある。一方、システムの業務・運用面では、過去の複数の時点のDBの内容を後にまとめて参照できることから、統計処理やバックアップ処理が容易となる。また、DBへの連続的なアクセスを保証しながら、過去のある時点を基点とする更新処理が複数の記憶エリアで多重化できることから、オンライン環境でのUAP開発(テスト作業等)でもDBのスペース量やリロード(再作成)回数を削除でき、効率良くDBを利用できる。 By performing processing in this way, update data of processing that is input to the second storage area that stores the database when a predetermined condition is satisfied can be stored in the third storage area, so that a database management system that performs continuous operation Update processing for daily and monthly operations can be easily realized. In addition, since the DB is composed of a plurality of storage areas and each target data is centrally managed, it is not necessary to copy the data to another file and have duplicate data as in the prior art. This facilitates data management. Furthermore, since there is no duplication of data, the storage space efficiency of the DB is good, and the time required for DB copy is saved. On the other hand, on the business / operation side of the system, the contents of the DB at a plurality of past points in time can be collectively referred to later, which facilitates statistical processing and backup processing. In addition, since update processing based on a certain point in the past can be multiplexed in a plurality of storage areas while guaranteeing continuous access to the DB, the DB space can also be used for UAP development (test work, etc.) in an online environment. The amount and the number of reloads (re-creation) can be deleted, and the DB can be used efficiently.
データベース管理システムにおける日次業務や月次業務などの処理が容易に実現できる。 Processing of daily work and monthly work in the database management system can be easily realized.
本発明の実施形態の一例を説明する
まず、DBを複数の記憶エリアに分割して管理する。具体的には、オンラインシステムの通常業務のUAPの処理ルート(通常処理ルート)による最新のデータのすべてを保持する第1記憶エリアを中軸にして、該通常処理ルートの過去のある時点(t0時点)に遡るための更新前のデータ(t0データ)を記憶する第2記憶エリアと、該t0データを元に、過去のある時点から新たに別のUAPの処理ルート(別処理ルート)を実行して得られる更新後のデータ(tnデータ)を記憶する第3記憶エリアに分割して管理する。
An example of an embodiment of the present invention will be described. First, a DB is divided into a plurality of storage areas and managed. Specifically, with the first storage area that holds all the latest data by the UAP processing route (normal processing route) of the normal operation of the online system as the central axis, a past point in time (t 0) of the normal processing route A second storage area for storing data (t 0 data) before update to be traced back to the time), and a processing route (another processing route) of another UAP newly from a certain point in the past based on the t 0 data divided into a third storage area for storing the updated data obtained by executing (t n data) manages.
次に、過去のある時点に遡る必要がなくなれば、第2記憶エリアや第3記憶エリアを切り離すだけでよい。また、新たな時点を設定する場合には、初期化した第2記憶エリアや第3記憶エリアを時系列あるいは並列に接続すればよい。これらの操作は、DBの第1記憶エリアへの通常業務によるアクセスを妨げるものではない。したがって、DBへの連続的なアクセスは保証される。 Next, when it is no longer necessary to go back to a certain point in the past, the second storage area and the third storage area need only be separated. When setting a new time point, the initialized second storage area and third storage area may be connected in time series or in parallel. These operations do not impede access to the first storage area of the DB by normal operations. Therefore, continuous access to the DB is guaranteed.
DBを複数の記憶エリアに分割するのに対応して、DBアクセス制御部では、UAPから最新あるいは過去のある時点の指定を受けて、参照要求に対しては所定の記憶エリアを検索する手段と、更新に際しては第1記憶エリアあるいは第3記憶エリアに更新後データを記憶する手段と、また、第1記憶エリアに記憶する際には必要に応じて第2記憶エリアに更新前のデータを退避する手段が組み合わせて用いられる。 Corresponding to dividing the DB into a plurality of storage areas, the DB access control unit receives a designation of the latest or past time from the UAP and searches for a predetermined storage area for a reference request. When updating, means for storing the updated data in the first storage area or the third storage area, and when storing in the first storage area, the data before update is saved in the second storage area as necessary. Are used in combination.
以下に本発明の一実施例を図面により説明する。〈システム環境〉
図1に本実施例のデータベース管理システム(DBMS)が稼働するシステム環境を示す。図1において、中央処理装置(CPU)1、端末群6、システムコンソール7およびデータベース(DB)8でオンラインシステムを構成している。ここで、CPU1にはオペレーティングシステム(OS)2、トランザクション処理モニタ(TPモニタ)3、ユーザアプリケーションプログラム(UAP)4およびDBアクセス制御部5が含まれる。OS2はシステム全体を効率よく運用するソフトウェアである。TPモニタ3は、端末群6から入力されたトランザクションをOS2を介して受信し、目的の業務処理を実行するUAP4に引き渡す。UAP4はDBアクセス制御部5を呼び出してデータの入出力処理を行う。DBアクセス制御部5はUAP4からの参照や更新要求に応じてDB8をアクセスする制御部であり、DB8の構成とともに中心的な部分である。DB8は、本オンラインシステムで動作する本来のUAPの処理(通常の処理ルート)の現時点での最新データを記憶する第1記憶エリア9と、通常の処理ルートの過去のある時点(t0)のデータ(t0データ)を記憶する第2記憶エリア10と、前記t0データをベースに、新たに別のUAPの処理(別の処理ルート)を実行して得られる更新後のデータ(tnデータ)を記憶する第3記憶エリア11で構成される。第2および第3記憶エリア10,11は、実施例における特徴的な構成であり、それぞれの記憶エリア10,11には一つまたは複数のデータセットを割り当てることができるが、図1では説明を簡単にするため一つずつとしている。
An embodiment of the present invention will be described below with reference to the drawings. <System environment>
FIG. 1 shows a system environment in which the database management system (DBMS) of this embodiment operates. In FIG. 1, the central processing unit (CPU) 1,
システムコンソール7からはシステムオペレータによりDBアクセス制御部5への指令、いわゆる各記憶エリア9,10,11に対応するデータセットの動的な接続・切り離し等の指令が投入されるが、図1は接続された状態を示す。〈UAPおよびDBアクセス制御部の構成〉
UAP4からDBアクセス制御部5に対してのDB8をアクセスする要求は、参照系と更新系に大別される。具体的には、アクセスする単位をレコードとすると、参照系とはレコードの参照、更新系とはレコードの置換、レコードの追加、およびレコードの削除である。ここでは、置換・追加・削除の要求を総称して更新要求と呼ぶことにする。図2にUAP4およびDBアクセス制御部5の構成例を示す。
From the
Requests for accessing the
UAP4には参照要求手段21と更新要求手段22が含まれる。さらに、参照要求手段21には最新データ211、t0データ212、およびtnデータ213のいずれかを選択する項目が含まれる。更新要求手段22には、最新データ221およびtnデータ222のいずれかを選択する項目が含まれる。なお、更新要求手段22にt0データを選択する項目がないのは、t0データを更新した結果得られるのがtnデータであり、t0データ更新要求は即ちtnデータ更新要求を意味することによる。
The UAP 4 includes a
DBアクセス制御部5は最新データ検索手段231、t0データ検索手段232、tnデータ検索手段233の各検索手段と、最新データ記憶手段241、t0データ記憶手段242、tnデータ記憶手段243の各記憶手段と、第1記憶エリア読み出し制御手段251、第2記憶エリア読み出し制御手段252、第3記憶エリア読み出し制御手段253の各読み出し手段と、第1記憶エリア書き込み制御手段261、第2記憶エリア書き込み制御手段262、第3記憶エリア書き込み制御手段263の各書き込み手段とからなる。実線は参照要求時の制御経路、破線は更新要求時の制御経路を示している。各データの参照要求や更新要求に対する動作については後述する。〈時点設定〉
UAPからのt0やtnの時点設定の仕方には、イベントによる方法とスケジュールによる方法の二通りがある。
The DB
There are two ways of setting the time points of t 0 and t n from the UAP: an event method and a schedule method.
イベントによる方法とは、UAPから設定要求を発した時刻そのものが設定の時点となるもので、t0データまたはtnデータの記憶を開始する時点と解釈される。 In the event method, the time when the setting request is issued from the UAP is the time of setting, and is interpreted as the time of starting to store t 0 data or t n data.
スケジュールによる方法とは、UAPから設定要求を発した時刻よりも先のシステム時刻を指定する方法である。つまり、UAPからの予約受け付けを意味し、受付後にシステムが指定の時刻になった時、DBMSは自動的にt0データまたはtnデータの記憶を開始する。〈処理ルートとレコードの更新〉
図3(1)に、通常の処理ルートと別の処理ルートの基本ツリーを示す。DB作成時点31においてDBの初期作成が行われた後に、通常処理ルート(実線で示す)は、該DB作成時点31をベースとして32の時点t0が設定され、現時点33に至っている。このルートが最新データをあらわす。一方、別処理ルート(破線で示す)は、32の時点t0が設定された後に、該時点t0をベースとして34時点tnが設定され、現時点35に至る。この処理ルートがtnデータをあらわす。
The method based on the schedule is a method of designating a system time that is earlier than the time when the setting request is issued from the UAP. That is, it means accepting a reservation from the UAP, and when the system reaches a designated time after acceptance, the DBMS automatically starts storing t 0 data or t n data. <Processing route and record update>
FIG. 3A shows a basic tree of a normal processing route and another processing route. After the initial creation of the DB at the
図3(2)に、それぞれの処理ルートによって一つのレコード(レコードA)が更新されてゆく様子を示す。DB作成時点31の作成36のレコードの内容はAであり、その後、通常処理ルートの更新37によってBとなり、32の時点t0の設定の後の更新38によってCとなる。したがって、最新データはCであり、t0データはBである。一方、t0データのBは、34の時点tnからの別の処理ルートでの更新39によってDとなる。したがって、tnデータはDである。
FIG. 3B shows how one record (record A) is updated by each processing route. The content of the
図3(3)に、さらにその後の様子を示す。即ち、34の時点tnからの別の処理ルートで、更新391によってDがEとなる。一方、通常の処理ルートの最新データのCは更新381によってFとなる。この結果、現時点331および351での最新データはF、t0データはB、tnデータはEである。
FIG. 3 (3) shows a further subsequent state. That is, D becomes E by the update 391 in another processing route from the
上記時点t0やtnは各処理ルート上に時系列に複数設定してもよい。図4(1)は、時点t0について2回設定した通常処理ルートツリーの例を示したものである。即ち、通常処理ルートは、DB作成時点41の後、一回目の時点t0[1]の設定42、二回目の時点t0[2]の設定43、そして現時点44に至っている。また、図4(2)は、時点tnについて2回設定した別処理ルートツリーの例を示したものである。即ち、これは、DB作成時点45および時点t0の設定46の後、別の処理ルートが、時点t0をベースとする一回目の時点tn[1]の設定47、時点tn[1]をベースとする二回目の時点tn[2]の設定48、そして現時点49に至っている。なお、時点t0、時点tnのいずれの場合も、3回以上の設定についても容易に類推できる。 A plurality of time points t 0 and t n may be set in time series on each processing route. 4 (1) is a diagram showing an example of normal processing route tree set twice for the time t 0. That is, after the DB creation time point 41, the normal processing route reaches the setting 42 for the first time point t 0 [1], the setting 43 for the second time point t 0 [2], and the current time point 44. FIG. 4 (2) shows an example of another processing route tree set twice for the time point t n . In other words, this is after the DB creation time 45 and the time t 0 of the set 46, another processing route, the time t 0 the set time t n of the first time based [1] 47, the time t n [1 ] Of the second time point t n [2] based on the setting 48 and the current time 49. It should be noted that in both cases of time t 0 and time t n , three or more settings can be easily inferred.
図4は時点t0やtnを同じ処理ルート上に時系列に複数設定する例であったが、時点t0をベースに別の処理ルートを複数設定することも可能である。 Although FIG. 4 shows an example in which a plurality of time points t 0 and t n are set in time series on the same processing route, a plurality of different processing routes can be set based on the time point t 0 .
図5は、同一の時点t0をベースに二つの時点tnを設定して二つの別処理ルートを走行させた例を示したものである。即ち、DB作成時点51および時点t0の設定52の後、通常ルートとは別に、時点t052をベースとする一つ目の時tn1を設定53し、現時点54に至る第1の別処理ルートがある。一方、同じ時点t052をベースとする二つ目の時点tn2を設定55し、現時点56に至る第2の別処理ルートがある。これら二つの処理ルートは、ベースとする時点t0は共通しているが、時点tn以降は独立した処理ルートを形成している。〈DBアクセス制御部の動作〉
図6から図11は、図2のDBアクセス制御部5の各手段の処理フローチャートを示したものである。
FIG. 5 shows an example in which two separate processing routes are run with two time points t n set based on the same time point t 0 . That is, after a set 52 of DB creation time 51 and time t 0, the normal route separately from the time point t 0 52
6 to 11 show processing flowcharts of respective units of the DB
図6は、最新データの参照要求に対応して動作する最新データ検索手段231のフローチャートである。UAP4から最新データの参照要求211があると、最新データ検索手段231は第1記憶エリア読み出し制御手段251を呼び出し(ステップ2311)、DB8の第1記憶エリア9をアクセスせしめて、目的の最新データを得る。その後、最新データ検索手段231はUAP4に制御を戻す。
FIG. 6 is a flowchart of the latest data search means 231 that operates in response to a request to reference the latest data. When the latest
図7は、最新データの更新要求に対応して動作する最新データ記憶手段241のフローチャートである。UAP4から最新データの更新要求221があると、最新データ記憶手段241は、時点t0が設定されているか判定し(ステップ2411)、設定されていなければ、直ちに第1記憶エリア書き込み制御手段261を呼び出し(ステップ2413)、DB8の第1記憶エリア9に目的の最新データを記憶せしめる。一方、t0が設定されている場合は、まず、更新前のデータをt0データとして第2記憶エリア10に記憶せしめるためにt0データ記憶手段242を呼び出し(ステップ2412)、該t0データ記憶手段242の実行後、当該最新データ記憶手段241は第1記憶エリア書き込み制御手段261を呼び出す。そして、最新データの更新要求の処理が終了すると、最新データ記憶手段241は制御をUAP4に戻す。
FIG. 7 is a flowchart of the latest
図8は、上記最新データの更新要求に対応して動作するt0データ記憶手段242の詳細フローチャートである。最新データ記憶手段241から呼び出されたt0データ記憶手段242は、まず、DB8の第2記憶エリア10に該当t0データが記憶されているかを確認するために第2記憶エリア読み出し制御手段252を呼び出し(ステップ2421)、第2記憶エリア10をアクセスせしめる。なお、第2記憶エリア10が時系列t0[1]〜t0[n]に分割されている時には、最後に時点設定t0[n]されたエリアが対象になる。そして、該当t0データがあるかを判定し(ステップ2422)、あれば、なにもせずに最新データ記憶手段241に制御を戻す。一方、該当t0データがない場合には、第1記憶エリア読み出し制御手段251を呼び出し(ステップ2423)、第1記憶エリア9をアクセスせしめる。即ち、第1記憶エリア9に該当データがあれば、それがt0データとなる。次に、第2記憶エリア書き込み制御手段262を呼び出し(ステップ2424)、第1記憶エリア9から読み出した更新前データをt0データとして第2記憶エリア10に記憶せしめる。この場合も、第2記憶エリア10が時系列t0[1]〜t0[n]に分割されている時には最後に時点設定されたエリアが対象になる。また、第1記憶エリアへのレコード追加の場合には、第1記憶エリアにt0データが存在しないので、第2記憶エリアには、その旨を表す空t0データ(後述の図12のデータ部72なし)を書き込む。その後、t0データ記憶手段242は最新データ記憶手段241に制御を戻す。
Figure 8 is a detailed flowchart of t 0 data storage means 242 which operates in response to the update request of the latest data. The t 0
図9は、t0データの参照要求に対応して動作するt0データ検索手段232のフローチャートである。UAP4からt0データの参照要求212があると、t0データ検索手段232は、まず、第2記憶エリア読み出し制御手段252を呼び出し(ステップ2321)、DB8の第2記憶エリア10をアクセスせしめて、該当データがあるかを判定する(ステップ2322)。第2記憶エリア10に該当データがあれば、それが求めるt0データである。t0データ検索手段232は、該第2記憶エリア10から読み出されたt0データをUAP4に渡し、制御をUAP4に戻す。なお、第2記憶エリア10が時系列t0[1]〜t0[n]に分割されていて、t0[1]より順に時点設定がされている場合には、時点t0[i]を指定する参照要求に対応して、該当データをt0[i]→t0[i+1]→・・・t0[n]の順で検索し、最初に見つかったところで検索を終了する。
FIG. 9 is a flowchart of the t 0 data search means 232 that operates in response to a t 0 data reference request. If there is t 0 data reference request 212 from UAP4, t 0 data retrieval means 232, first, the second storage area read
第2記憶エリア10に目的のt0データがない場合、t0データ検索手段232は、第1記憶エリア読み出し制御手段251を呼び出し(ステップ2323)、DB8の第1記憶エリア10をアクセスせしめる。即ち、第1記憶エリア10に該当データがあれば、それが求めるt0データである。そこで、t0データ検索手段232は、該第1記憶エリア9から読み出されたデータをt0データとして得て、制御をUAP4に戻す。
If there is no target t 0 data in the second storage area 10, the t 0 data search means 232 calls the first storage area read control means 251 (step 2323) to access the first storage area 10 of the
図10は、tnデータの参照要求に対応して動作するtnデータ記憶手段233のフローチャートである。UAP4からtnデータの参照要求213があると、tnデータ検索手段233は、まず、第3記憶エリア読み出し制御手段253を呼び出し(ステップ2331)、DB8の第3記憶エリア11をアクセスせしめて、該当tnデータがあるかを判定する(ステップ2332)。第3記憶エリア11に該当データがあれば、それが求めるtnデータである。tnデータ検索手段233は、該第3記憶エリア11から読み出されたtnデータをUAP4に渡し、UAP4に制御を戻す。なお、第3記憶エリア11が時系列tn[1]〜tn[n]に分割されていて、1より順にnまで設定されている場合、tn[1],tn[2]・・・tn[n−1]は参照だけが行われるが、tn[n]は参照と更新が行われるエリアとなる。今、tn[i+1]を指定した参照要求を受け付けたとすると、tn[i]→tn[i−1]→・・・tn[2]→tn[1]の順で該当データを検索し、最初に見つかったところで検索を終了する。最新のtnデータの要求であれば、tn[n]のエリアから検索をはじめる。
FIG. 10 is a flowchart of the t n data storage means 233 that operates in response to a t n data reference request. When a reference request 213 of t n data from UAP4, t n data retrieval means 233, first, a third storage area read control means 253 calls (step 2331), and caused to access the third storage area 11 of the DB8, determining whether there is a corresponding t n data (step 2332). If there is corresponding data in the third storage area 11, a t n data it obtains. The t n data search means 233 passes the t n data read from the third storage area 11 to the
第3記憶エリア11に目的のtnデータがない場合、tnデータ検索手段233はt0データ検索手段232を呼び出し(ステップ2333)、図9で説明した如く、第2記憶エリア10または更に第1記憶エリア9をアクセスせしめる。即ち、第2または第1記憶エリアに該当するt0データがあれば、それが求めるtnデータである。tnデータ検索手段233は該tnデータをUAP4に渡し、UAP4に制御を戻す。
When there is no target t n data in the third storage area 11, the t n data search means 233 calls the t 0 data search means 232 (step 2333), and as described in FIG. 1 The storage area 9 is accessed. That is, if there is t 0 data corresponding to the second or first storage area, it is the t n data to be obtained. The t n data search means 233 passes the t n data to the
図11は、tnデータの更新要求に対応して動作するtnデータ記憶手段243のフローチャートである。UAP4からtnデータの更新要求222があると、tnデータ記憶手段243は、第3記憶エリア書き込み制御手段263を呼び出し(ステップ2431)、DB8の第3記憶エリア11に目的のtnデータを記憶せしめる。なお、第3記憶エリア11が時系列tn[1]〜tn[n]に分割されていて、1より順にnまで設定されている場合、tn[1],tn[2]・・・tn[n−1]は参照だけが行われるが、tn[n]は参照と更新が行われるエリアとなる。したがって、tnデータはtn[n]のエリアに書き込まれる。
FIG. 11 is a flowchart of the t n
以下に、図3の(2)、(3)の例について、図6乃至図11のフローチャートを用いてDBアクセス制御部5の動作を説明する。
The operation of the DB
DB作成時点31の作成36によって、レコードAは既に第1記憶エリア9に記憶されているとする。更新37のレコードBは、時点t0の設定前であるため、最新データ記憶手段241によって直ちに第1記憶エリア書き込み制御手段261に渡され、第1記憶エリア9に記憶される。即ち、第1記憶エリア9のデータはAからBに更新される。
It is assumed that the record A is already stored in the first storage area 9 by the
時点t0の設定32以降は、参照要求および更新要求に対してDBアクセス制御部の動作は次のようになる。最新データの参照要求に対しては、最新データ検索手段231によって第1記憶エリア読み出し制御手段251が動作し、第1記憶エリア9からレコードBを得る(図6:ステップ2311)。更新38では、レコードCの更新要求に対して、最新データ記憶手段241によってt0データ記憶手段242が呼び出される(図7:ステップ2412)。t0データ記憶手段242は、第2記憶エリア読み出し制御手段252を呼び出すが、第2記憶エリア10に更新前データが記憶されていない通知を該第2記憶エリア読み出し制御手段252より受けて(図8:ステップ2421,2422)、引き続いて第1記憶エリア読み出し制御手段251を呼び出し、更新前データであるレコードBを該第1記憶エリア読み出し制御手段251から受け取って(図8:ステップ2423)、第2記憶エリア書き込み制御手段262に渡す(図8:ステップ2424)。これにより、第2記憶エリア10にレコードBがt0データとして記憶される。一方、更新後のデータであるレコードCは、最新データ記憶手段241によって第1記憶エリア書き込み制御手段261に渡され(図7:ステップ2413)、第1記憶エリア9には、レコードCが更新データとして記憶される。
After the setting 32 at time t 0 , the operation of the DB access control unit is as follows for the reference request and the update request. In response to the latest data reference request, the first storage area read control means 251 operates by the latest data search means 231 to obtain the record B from the first storage area 9 (FIG. 6: step 2311). Updating 38 for update request record C, t 0 data storage means 242 with the latest data storage means 241 is invoked (FIG. 7: Step 2412). The t 0
次に、時点tnの設定34があり、tnデータの参照要求が発生したとする。該tnデータの参照要求に対して、tnデータ検索手段233は、最初に第3記憶エリア読み出し制御手段253を呼び出すが、第3記憶エリア11に該当データが記憶されていない通知を該第3記憶エリア読み出し制御手段253から受取り(図10:ステップ2331,2332)、次にt0データ検索手段232を呼び出す(図10:ステップ2333)。t0データ検索手段232は、第2記憶エリア読み出し制御手段252を呼び出し、その結果、第2記憶エリア10にt0データとして記憶されているレコードBを該第2記憶エリア読み出し制御手段252から受け取り(図9:ステップ2321,2322(Yes))、これをtnデータ検索手段233に渡す。こうして、レコードBを得る。その後、tnデータの更新39が発生すると、当該更新要求のレコードDは、tnデータ記憶手段243が呼び出した第3記憶エリア書き込み制御手段263に渡され(図11:ステップ2431)、第3記憶エリア11に記憶される。
Next, it is assumed that there is a setting 34 of the time point t n and a reference request for t n data is generated. To a reference request of the t n data, t n data retrieval means 233, first is calling the third storage area read control unit 253, said notifications corresponding data in the third storage area 11 is not stored 3 receives from the storage area read control means 253 (FIG. 10: step 2331,2332), then calls the t 0 data retrieval means 232 (FIG. 10: step 2333). The t 0 data retrieval unit 232 calls the second storage area read
続いて、tnデータの参照および更新391が発生したとする。まず、tnデータの参照要求に対して、tnデータ検索手段233は、第3記憶エリア読み出し制御手段253を呼び出し、第3記憶エリア11に該当データのレコードDが記憶されていることを該第3記憶エリア読み出し制御手段253から受け取る(図10:ステップ2331,2332(Yes))。この場合、第3記憶エリア11の読み出しだけで、目的のレコードDを得る。その後、更新391の更新要求のレコードEは、tnデータ記憶手段243が呼び出した第3記憶エリア書き込み制御手段263に渡され(図11:ステップ2431)、第3記憶エリア11に記憶される。この結果、第3記憶エリア11にはEがDに置き換わって記憶され、また、第1および第2記憶エリア9,10には、それぞれC、Bが記憶されたままとなる。 Then, the reference and update 391 t n data occurs. First, the request for reference t n data, t n data retrieval means 233 calls the third storage area read control unit 253, the that the record D of the corresponding data is stored in the third memory area 11 Received from the third storage area read control means 253 (FIG. 10: Steps 2331, 2332 (Yes)). In this case, the target record D is obtained only by reading the third storage area 11. Thereafter, the update request record E of the update 391 is transferred to the third storage area write control means 263 called by the t n data storage means 243 (FIG. 11: step 2431) and stored in the third storage area 11. As a result, E is replaced with D in the third storage area 11, and C and B remain stored in the first and second storage areas 9 and 10, respectively.
最後に、最新データの更新381では、最新データ記憶手段241はt0データ記憶手段242を呼び出し(図7:ステップ2412)、t0データ記憶手段242は、第2記憶エリア読み出し制御手段252を呼び出し、第2記憶エリア10に更新前データが記憶されている旨の通知を受けるため(図8:ステップ2421,2422(Yes))、第2記憶エリア書き込み制御手段262の呼び出しをバイパスする。この点が先の更新38の動作と異なる。その後、最新データ記憶手段241は第1記憶エリア書き込み制御手段261を呼び出す(図7:ステップ2413)。結果として、第1記憶エリア9には今回の更新要求のレコードFが記憶され、第2記憶エリア10にはレコードBが記憶されたままとなる。〈第2および第3記憶エリアのデータ形式〉
第1記憶エリア9は、一般に知られている階層モデル、ネットワークモデル、あるいはリレーショナルモデルのDBに適用できる。そのデータの格納形式は、従来のDBのデータ形式そのもので実現できる。しかし、第2および第3記憶エリア10,11については、更新系のレコードアクセスに対して時系列のエリア管理をすべきことから、第1記憶エリア9とは異なるデータ形式が必要となる。すなわち、レコードの追加・削除に関する記録である。
Finally, in the
The first storage area 9 can be applied to a generally known hierarchical model, network model, or relational model DB. The data storage format can be realized by the conventional DB data format itself. However, for the second and third storage areas 10 and 11, time-series area management should be performed for update-type record access, and therefore a data format different from that of the first storage area 9 is required. That is, it is a record relating to addition / deletion of records.
具体的な一例として、図12に第2および第3記憶エリア10,11のデータ形式を示す。これは、ヘッダ部71をフラグフィールド711、キー長フィールド712、レコード長フィールド713およびキーフィールド714で構成し、データ部72をレコードフィールド721だけで構成する。フラグフィールド711にはアクセスの種別として更新フラグ・追加フラグ・削除フラグを設定する。キー長フィールド712はキーフィールド714のサイズを表わし、レコード長フィールド713はレコードフィールド721のサイズを表わす。第1記憶エリアへのレコード追加に対しては、第2記憶エリアへはレコード長フィールドの値がゼロ、すなわちデータ部なしの情報をt0データとして記憶する。図8のt0データの記憶でも説明したように、ステップ2423において第1記憶エリアに該当データがないレコード追加の場合でもステップ2424のt0データ記憶が必要であり、データ部なしのt0データを書き出す。また、t0データのレコード削除に対しては、やはり、レコード長フィールドの値がゼロの情報をtnデータとして記憶する。図11のステップ2431でデータ部なしのtnデータを書き出すことになる。
As a specific example, FIG. 12 shows data formats of the second and third storage areas 10 and 11. In this case, the header portion 71 is composed of a flag field 711, a
このように、第2記憶エリアのt0データおよび第3記憶エリアのtnデータはキーフィールド714によって第1記憶エリアのデータと論理的に関連付けされている。
Thus, the t 0 data in the second storage area and the t n data in the third storage area are logically associated with the data in the first storage area by the
なお、レコードのアクセス性能についても、各手段相互の連携によって向上させることができる。これには、バッファリング手法、あるいは連想による並列実行制御の手法が考えられる。また、第2あるい第3記憶エリアについては、必要に応じてヘッダ部71のキーでの索引を持つ手法がある。また、第2や第3記憶エリアの場合、時系列にn分割しているならば連続する分割エリアを併合することで検索効率(同様にスペース格納効率も)を高めることができる。 Note that the access performance of the record can also be improved by mutual cooperation of each means. This may be a buffering technique or a parallel execution control technique based on association. For the second or third storage area, there is a method of having an index with the key of the header section 71 as necessary. Further, in the case of the second and third storage areas, if n divisions are made in time series, search efficiency (similarly space storage efficiency) can be improved by merging consecutive division areas.
以上説明したように、データベース管理システムでは、DBを複数の記憶エリアで構成して各目的のデータを一元管理するので、従来のように別ファイルにコピーして、重複したデータを持つ必要がない。このため、データの管理が容易になる。さらに、データの重複がないことから、DBの格納スペース効率がよい、DBのコピーに要する時間が節約になる等の効果がある。一方、システムの業務・運用面では、過去の複数の時点のDBの内容を後にまとめて参照できることから、統計処理やバックアップ処理が容易となる。また、DBへの連続的なアクセスを保証しながら、過去のある時点を基点とする更新処理が複数の記憶エリアで多重化できることから、オンライン環境でのUAP開発(テスト作業等)でもDBのスペース量やリロード(再作成)回数を削除でき、効率良くDBを利用できる。 As described above, in the database management system, the DB is composed of a plurality of storage areas and centrally manages the data for each purpose. Therefore, it is not necessary to copy to another file and have duplicate data as in the conventional case. . This facilitates data management. Furthermore, since there is no duplication of data, the storage space efficiency of the DB is good, and the time required for DB copy is saved. On the other hand, on the business / operation side of the system, the contents of the DB at a plurality of past points in time can be collectively referred to later, which facilitates statistical processing and backup processing. In addition, since update processing based on a certain point in the past can be multiplexed in a plurality of storage areas while guaranteeing continuous access to the DB, the DB space can also be used for UAP development (test work, etc.) in an online environment. The amount and the number of reloads (re-creation) can be deleted, and the DB can be used efficiently.
1 中央処理装置(CPU)
2 オペレーティングシステム(OS)
3 トランザクシヨン処理モニタ(TPモニタ)
4 ユーザアプリケーションプログラム(UAP)
5 データベースアクセス制御部
8 データベース(DB)
9 第1記憶エリア
10 第2記憶エリア
11 第3記憶エリア
1 Central processing unit (CPU)
2 Operating system (OS)
3 Transaction processing monitor (TP monitor)
4 User application program (UAP)
5 Database
9 First memory area 10 Second memory area 11 Third memory area
Claims (1)
前記データベースを、オンラインシステムの下で動作する通常のUAPの処理ルート(以下、通常処理ルートと称す)による現時点での最新データを記憶する第1記憶エリアと、前記通常処理ルートの過去のある時点(以下、t0時点と称す)でのデータ(以下、t0データと称す)を記憶する第2記憶エリアと、前記t0データを元に、新たなUAPを実行する処理ルート(以下、別処理ルートと称す)による更新後のデータ(以下、tnデータと称す)を記憶する第3記憶エリアとで構成することを特徴とするオンラインデータベース管理システム。 A database for storing data, and a database access control unit (hereinafter referred to as a DB access control unit) for referring to and updating data in the database in response to a request from an application (hereinafter referred to as a UAP) operating under an online system. In an online database management system comprising:
A first storage area for storing the latest data at the present time by a normal UAP processing route (hereinafter referred to as a normal processing route) operating under an online system, and a past point in time of the normal processing route. A second storage area for storing data (hereinafter referred to as t0 data) (hereinafter referred to as t0 time), and a processing route (hereinafter referred to as a separate processing route) for executing a new UAP based on the t0 data. An online database management system comprising a third storage area for storing updated data (hereinafter referred to as tn data).
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007158157A JP2007242061A (en) | 2007-06-15 | 2007-06-15 | Data processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007158157A JP2007242061A (en) | 2007-06-15 | 2007-06-15 | Data processing method and device |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2002168035A Division JP2003076593A (en) | 2002-06-10 | 2002-06-10 | Database management method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2007242061A true JP2007242061A (en) | 2007-09-20 |
Family
ID=38587465
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007158157A Pending JP2007242061A (en) | 2007-06-15 | 2007-06-15 | Data processing method and device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2007242061A (en) |
-
2007
- 2007-06-15 JP JP2007158157A patent/JP2007242061A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4620457B2 (en) | Multiple simultaneously active file systems | |
US20060047926A1 (en) | Managing multiple snapshot copies of data | |
CN106980665B (en) | Data dictionary implementation method and device and data dictionary management system | |
CN109063192B (en) | Working method of high-performance mass file storage system | |
JP2007241486A (en) | Memory system | |
KR100405745B1 (en) | Data management system and method using a plurality of data operation modules, and computer usable medium | |
JPWO2007099636A1 (en) | File system migration method, file system migration program, and file system migration apparatus | |
US7194486B2 (en) | Method and system for data processing with data replication for the same | |
CN108304144B (en) | Data writing-in and reading method and system, and data reading-writing system | |
EP2402861A1 (en) | Storage system | |
CN117473117A (en) | Video cyclic storage method, system and computer | |
JP2006031608A (en) | Computer, storage system, file management method which computer performs, and program | |
CN113419897A (en) | File processing method and device, electronic equipment and storage medium thereof | |
US7451279B2 (en) | Storage system comprising a shared memory to access exclusively managed data | |
JP2001344139A (en) | Database management device | |
US9063656B2 (en) | System and methods for digest-based storage | |
JP2007242061A (en) | Data processing method and device | |
JP3497053B2 (en) | Processing method in online database management system and online database management system | |
US6625614B1 (en) | Implementation for efficient access of extended attribute data | |
JP5868766B2 (en) | Plant data storage device, plant data storage method, and plant data storage program | |
CN113032408A (en) | Data processing method, system and equipment | |
CN108614838B (en) | User group index processing method, device and system | |
JP2003076593A (en) | Database management method and system | |
CN111831231B (en) | Partition merging and partition splitting method and device | |
JP3559571B2 (en) | Data processing device and data processing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20070712 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20070712 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20070828 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20071026 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20071120 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20080118 |
|
A911 | Transfer to examiner for re-examination before appeal (zenchi) |
Free format text: JAPANESE INTERMEDIATE CODE: A911 Effective date: 20080131 |
|
A912 | Re-examination (zenchi) completed and case transferred to appeal board |
Free format text: JAPANESE INTERMEDIATE CODE: A912 Effective date: 20080229 |