JP2003208323A - Method, system and program for executing batch job - Google Patents

Method, system and program for executing batch job

Info

Publication number
JP2003208323A
JP2003208323A JP2002004047A JP2002004047A JP2003208323A JP 2003208323 A JP2003208323 A JP 2003208323A JP 2002004047 A JP2002004047 A JP 2002004047A JP 2002004047 A JP2002004047 A JP 2002004047A JP 2003208323 A JP2003208323 A JP 2003208323A
Authority
JP
Japan
Prior art keywords
job
microbatch
execution
batch
information
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
JP2002004047A
Other languages
Japanese (ja)
Inventor
Akinori Ono
晃範 小野
Norifumi Nishikawa
記史 西川
Yuichi Yagawa
雄一 矢川
Yasuharu Nanba
康晴 難波
Shoichi Minami
章一 南
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP2002004047A priority Critical patent/JP2003208323A/en
Publication of JP2003208323A publication Critical patent/JP2003208323A/en
Pending legal-status Critical Current

Links

Abstract

<P>PROBLEM TO BE SOLVED: To reduce a load to be applied to a system when many micro batch jobs are simultaneously executed by managing executing states and execution routes of the respective micro batch jobs, to enhance parallelism when micro batch jobs are executed and to shorten intervals to arrival of the last job in the system where many micro batch jobs are simultaneously executed. <P>SOLUTION: Parallel execution of many jobs in short time is enabled by controlling execution of the micro batch jobs generated by a micro batch job generation part by a micro batch job controller and further reducing the load to be applied to the system by the micro batch job by providing a buffer in the case of execution. <P>COPYRIGHT: (C)2003,JPO

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、複数のバッチジョ
ブを組み合わせて処理を実行するコンピューターシステ
ム、及び、そのバッチジョブの実行及びスケジュールを
管理するシステムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a computer system for executing a process by combining a plurality of batch jobs, and a system for managing the execution and schedule of the batch jobs.

【0002】[0002]

【従来の技術】コンピュータシステム上においてある出
力結果を得るために、複数の処理とまとまった時間を要
する場合、複数のバッチジョブを組み合わせてスケジュ
ールし、システム上で実行するのが一般的である。これ
は、バッチジョブが複数の処理内容の異なったプログラ
ムを一定の順序で定型的に実行することが可能である為
である。複数のバッチジョブのスケジュール方法につい
ては、特開平6−59913号公報で示された方法があ
る。
2. Description of the Related Art When a plurality of processes and a certain amount of time are required to obtain a certain output result on a computer system, it is common to schedule a plurality of batch jobs in combination and execute them on the system. This is because the batch job can routinely execute a plurality of programs having different processing contents in a fixed order. As a scheduling method for a plurality of batch jobs, there is a method disclosed in Japanese Patent Laid-Open No. 6-59913.

【0003】この方法では、あらかじめバッチジョブス
ケジューラに複数のバッチジョブをその実行条件、実行
時間と共に入力しておくだけで、自動的に当該時間に実
行すべきバッチジョブを抽出しその実行順序を考慮した
バッチジョブを起動することが出来る。
In this method, a plurality of batch jobs are input to the batch job scheduler together with their execution conditions and execution times in advance, and the batch jobs to be executed at the times are automatically extracted and their execution order is considered. You can start the batch job you created.

【0004】[0004]

【発明が解決しようとする課題】バッチジョブを利用す
るコンピュータシステムの一例として、基幹系データベ
ース内のデータを使用して、分析業務等を行なう場合、
データウェアハウス(DWH)及びデータマート(DM)を持つ
システムがあげられる。この時、分析業務を行なうユー
ザの要求に応じて高速にデータを検索可能にする為に、
システムに比較的余裕のある夜間等に、基幹系DBに格納
されたある期間に発生したデータを一括して変換、集計
してDWH、DMに格納する為のバッチジョブを実行する方
法がとられている。システムに比較的余裕のある夜間等
に実行する理由は、通常バッチジョブは、コンピュータ
システムの資源を多く使用する、処理時間が長い等の問
題がある為である。
As an example of a computer system using a batch job, when performing analysis work etc. using data in a backbone system database,
A system with a data warehouse (DWH) and a data mart (DM) can be mentioned. At this time, in order to be able to search data at high speed in response to the request of the user who conducts analysis work,
A method is used to execute batch jobs to convert the data stored in the backbone DB that occurred during a certain period in a batch at a time when the system has a relatively large amount of time, to store the data collectively in DWH and DM. ing. The reason why the batch job is executed at night when the system has a relatively large margin is that a batch job usually uses a lot of computer system resources and has a long processing time.

【0005】しかし、ユーザがより鮮度の高いデータを
検索したい場合は、システムに比較的余裕のある夜間等
ではなく、システムが基幹系業務等に通常運用されてい
る日中などに、基幹系DBのデータをDWH、DMに反映させ
る必要がある。この時、最新のデータを出来るだけ早く
ユーザが使用可能にする為に、ある短い一定時間毎に発
生したデータを対象とした多数のバッチジョブを起動さ
せ、短時間に何度も基幹系DBのデータをDWH、DMに反映
させる方法が考えられる。このような場合、起動済みで
同時実行中のバッチジョブの進行状況を管理し、システ
ム内を同時実行させるバッチジョブを調整する必要があ
る。
However, when the user wants to retrieve more fresh data, the core DB is not used at night when the system has a relatively large margin, but during the day when the system is normally operated for core business. It is necessary to reflect the above data in DWH and DM. At this time, in order to make the latest data available to the user as soon as possible, a large number of batch jobs targeting the data generated at a certain short fixed time are started, and the backbone DB of the basic system is repeatedly executed in a short time. A possible method is to reflect the data in DWH and DM. In such a case, it is necessary to manage the progress of batch jobs that have been started and are being executed concurrently, and adjust batch jobs that are to be executed concurrently in the system.

【0006】例えば、バッチジョブを並列実行する事に
よる使用するシステム資源の競合による性能の劣化や、
後から発生したデータによるジョブが、最初に発生した
データによるジョブを追い抜く事によるデータの不整合
等を防止する必要がある。上記の従来技術では、あらか
じめユーザが指定した実行時間、先行バッチジョブの終
了状況によってバッチジョブを決定する。
For example, performance degradation due to competition of system resources used by executing batch jobs in parallel,
It is necessary to prevent the data inconsistency and the like caused by the job generated by the data generated later overtaking the job generated by the data generated first. In the above conventional technique, a batch job is determined according to the execution time designated by the user in advance and the ending status of the preceding batch job.

【0007】例えば、バッチジョブBは、バッチジョブ
Aが終了しないと実行できない等といった条件によって
バッチジョブ実行を制御する方法である。しかし、この
方法では先行バッチジョブの終了状況のみでなく、実行
中のバッチジョブ、そのバッチジョブが使用しているシ
ステム資源を考慮した最適なバッチジョブの選択は実行
出来ない。
For example, the batch job B is a method of controlling the execution of the batch job under the condition that the batch job A cannot be executed until the batch job A is completed. However, with this method, it is not possible to select the optimum batch job in consideration of not only the end status of the preceding batch job but also the batch job being executed and the system resource used by the batch job.

【0008】本発明によれば、ユーザが指定した条件
で、比較的少ないデータを対象とした複数のバッチジョ
ブを並列起動させた場合に、これらの条件をみたした最
適なバッチジョブの実行管理が可能になる。
According to the present invention, when a plurality of batch jobs targeting a relatively small amount of data are started in parallel under conditions specified by the user, optimum batch job execution management satisfying these conditions is performed. It will be possible.

【0009】この例で示したように、ユーザが指定した
条件で、一般的なバッチジョブに比べて処理対象のデー
タ量が比較的少なく、短時間で終了するジョブを本明細
書ではマイクロバッチジョブと呼ぶ。
As shown in this example, in the present specification, a micro batch job is a job that has a relatively small amount of data to be processed and is completed in a short time under the condition specified by the user, as compared with a general batch job. Call.

【0010】本発明の目的は、多数のマイクロバッチジ
ョブが同時に実行されているシステムにおいて、各マイ
クロバッチジョブの実行状況及び実行経路を管理するこ
とで、多数のマイクロバッチジョブが同時に実行される
場合のシステムに与える負荷を減らし、マイクロバッチ
ジョブ実行時の並列性を高め、最終ジョブの到着間隔を
短縮させることである。
An object of the present invention is to manage a large number of microbatch jobs simultaneously in a system in which a large number of microbatch jobs are simultaneously executed by managing the execution status and execution path of each microbatch job. Is to reduce the load on the system, improve parallelism when executing micro batch jobs, and shorten the arrival interval of final jobs.

【0011】[0011]

【課題を解決するための手段】ユーザから入力されたマ
イクロバッチジョブの実行条件を用いて、マイクロバッ
チジョブ実行管理に必要なテーブルとジョブ実行時バッ
ファを生成するマイクロバッチジョブ生成部、及び、生
成されたテーブルとシステム内のマイクロバッチジョブ
実行情報を管理して実行すべきマイクロバッチジョブを
決定するマイクロバッチジョブコントローラを設ける事
によって達成する。
A microbatch job generation unit that generates a table and a job execution time buffer required for microbatch job execution management by using a microbatch job execution condition input by a user. This is achieved by providing a microbatch job controller that manages the created table and the microbatch job execution information in the system to determine the microbatch job to be executed.

【0012】[0012]

【発明の実施の形態】以下、図1〜図14を用いて本発
明の実施の形態について説明する。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below with reference to FIGS.

【0013】図1は、本発明の実施の形態であるマイク
ロバッチジョブコントローラ101とマイクロバッチジ
ョブ生成部102、マイクロバッチジョブ103の関係
を示した概念図である。
FIG. 1 is a conceptual diagram showing the relationship among a microbatch job controller 101, a microbatch job generator 102, and a microbatch job 103 according to an embodiment of the present invention.

【0014】ここで、マイクロバッチジョブとは、ユー
ザが指定する一定の時間間隔やデータ件数等の条件によ
って日次未満の間隔で起動されるバッチジョブ、又はそ
のバッチジョブの結果を使用するバッチジョブのことで
ある。これらの条件の設定方法は後述する。
Here, the micro-batch job is a batch job that is started at intervals less than daily depending on conditions such as a fixed time interval or the number of data items specified by the user, or a batch job that uses the result of the batch job. That is. The method of setting these conditions will be described later.

【0015】ユーザはマイクロバッチジョブ入力部10
4を通して、マイクロバッチジョブの実行条件を入力す
る。実行条件については後述する。マイクロバッチジョ
ブ生成部102は、この情報を元にマイクロバッチジョ
ブの実行経路を管理するジョブ経路管理テーブル10
5、複数のマイクロバッチジョブの同時実行の可否を管
理する同時実行ジョブ管理テーブル106、新規マイク
ロバッチジョブの起動条件を管理するジョブ起動条件テ
ーブル107を生成する。
The user operates the microbatch job input unit 10
The execution conditions of the microbatch job are input through 4. The execution conditions will be described later. The microbatch job generation unit 102 manages the execution path of the microbatch job based on this information, and the job path management table 10
5, a concurrent execution job management table 106 that manages the possibility of simultaneous execution of a plurality of microbatch jobs, and a job activation condition table 107 that manages the activation conditions of a new microbatch job.

【0016】各マイクロバッチジョブの実行条件、実行
内容は、ジョブ実行条件テーブル111に格納される。
又、実行するマイクロバッチジョブによって、ジョブ実
行時バッファ110を生成し、マイクロバッチジョブの
出力先として使用する。
The execution conditions and execution contents of each microbatch job are stored in the job execution condition table 111.
In addition, the job execution time buffer 110 is generated by the micro batch job to be executed, and is used as the output destination of the micro batch job.

【0017】マイクロバッチジョブコントローラ101
は、マイクロバッチジョブの実行状況をジョブ実行状況
管理テーブル108に、実行する各マイクロバッチジョ
ブの情報を実行バッチ情報管理テーブル109に格納す
る。マイクロバッチジョブコントローラ101はこれら
のテーブル108、109とマイクロバッチジョブ生成
部102が作成したテーブル105、106、107、
111を使用し、システム内で実行するマイクロバッチ
ジョブ103を管理する。尚、上述の各テーブルは、ポ
インタで接続した情報やツリー構造のデータなど、テー
ブル以外のデータ構造でもよく、これらは、計算機でア
クセス可能な記録装置に格納してある情報である。
Microbatch job controller 101
Stores the execution status of the microbatch job in the job execution status management table 108 and the information of each microbatch job to be executed in the execution batch information management table 109. The microbatch job controller 101 uses the tables 108 and 109 and the tables 105, 106 and 107 created by the microbatch job generation unit 102,
111 is used to manage the microbatch job 103 executed in the system. Note that each of the above-mentioned tables may have a data structure other than the table, such as information connected by a pointer or tree-structured data, and these are information stored in a recording device accessible by a computer.

【0018】図2は、本発明を採用したシステムの構成
例である。マイクロバッチジョブコントローラ101、
マイクロバッチジョブ生成部102、ジョブ実行時バッ
ファ110はデータウェアハウスシステム201内に構
成される。ここで、101はマイクロバッチジョブを実
行するサーバに接続されていることが条件でありその場
所にはこだわらない。110はマイクロバッチジョブの
データ経路として使用可能な場所にあればよい。10
1、102、110等の各機能は、同一計算機にあって
もよいし、ネットワークを介してアクセス可能な記録媒
体に格納されていてもよい。
FIG. 2 shows an example of the configuration of a system adopting the present invention. Micro batch job controller 101,
The microbatch job generation unit 102 and the job execution buffer 110 are configured in the data warehouse system 201. Here, 101 is a condition that it is connected to a server that executes a microbatch job, and the location is not limited. It suffices that 110 is located in a place that can be used as a data path for a microbatch job. 10
Each function such as 1, 102, 110 may be in the same computer, or may be stored in a recording medium accessible via a network.

【0019】図2は、投入系クライアント202から、
データ投入プログラム203によって基幹システムサー
バ204に送られ、基幹系DB206に格納されたデー
タを、データ第1変換部208、データウェアハウス(D
WH)211、データ第2変換部213を通してデータ
マート(DM)216に格納する事で、情報系クライア
ント218のデータ検索プログラム219が分析業務に
必要なデータを検索可能にする、一般的なデータウェア
ハウスシステム201を示している。
FIG. 2 shows that the input client 202
The data sent to the core system server 204 by the data input program 203 and stored in the core DB 206 is converted into the data first conversion unit 208, the data warehouse (D
WH) 211 and the data second conversion unit 213 to store in the data mart (DM) 216, so that the data retrieval program 219 of the information system client 218 can retrieve the data necessary for the analysis work. A house system 201 is shown.

【0020】尚、データ投入プログラム203が稼動す
る計算機を投入系クライアントと図示し、データ検索プ
ログラムが稼動する計算機を情報系クライアントと図示
しているが、これら情報の入出力を行うクライアントプ
ログラムは別の計算機で稼動しても良いし、同一の計算
機で稼動しても良い。
Although the computer on which the data input program 203 operates is shown as the input client and the computer on which the data retrieval program operates is shown as the information client, the client program that inputs and outputs these information is different. This computer may be used, or the same computer may be used.

【0021】図2で示したようなシステムにおいては、
通常、システムに比較的余裕のある夜間等に、基幹系D
B206に格納されたある期間に発生したデータのデー
タ抽出をし、DWHに格納する為のデータ変換を行い、
変換したデータをDWH211に反映し、DWHからの
データ抽出をし、DM216に格納する為のデータ変換
や集計をし、その結果のデータをDM216への反映さ
せる処理を実行するバッチジョブを使用する方法がとら
れている。
In a system such as that shown in FIG.
Normally, the backbone system D is used at night when the system has a relatively large margin.
Data extraction of the data generated in a certain period stored in B206, data conversion for storing in DWH,
A method that uses a batch job that reflects the converted data in the DWH 211, extracts the data from the DWH, converts the data for storage in the DM 216, totalizes the data, and executes the processing of reflecting the resulting data in the DM 216. Has been taken.

【0022】マイクロバッチジョブコントローラ101
は、基幹システムサーバ204、データウェアハウスサ
ーバ209、データマートサーバ214の各計算機が接
続した計算機システムにおいて実行するマイクロバッチ
ジョブを管理する。
Microbatch job controller 101
Manages microbatch jobs executed in a computer system to which each computer of the core system server 204, the data warehouse server 209, and the data mart server 214 is connected.

【0023】次に、マイクロバッチジョブ生成部102
が、ジョブ経路管理テーブル105、同時実行ジョブ管
理テーブル106、ジョブ起動条件テーブル107、ジ
ョブ実行条件テーブル111及びジョブ実行時バッファ
110を生成する。これらのテーブルおよびバッファ
は、マイクロバッチジョブコントローラ101が、マイ
クロバッチジョブ実行時に使用する。
Next, the microbatch job generation unit 102
Generates a job path management table 105, a simultaneous execution job management table 106, a job activation condition table 107, a job execution condition table 111, and a job execution buffer 110. These tables and buffers are used by the microbatch job controller 101 when executing a microbatch job.

【0024】ユーザが入力する実行条件は、各マイクロ
バッチジョブの実行情報、マイクロバッチジョブの同時
実行条件、マイクロバッチジョブの起動条件である。ユ
ーザからの実行条件は、マイクロバッチジョブ入力部1
04が受付ける。これらの実行条件の詳細は次に示す。
The execution conditions input by the user are execution information of each microbatch job, simultaneous execution condition of the microbatch job, and start condition of the microbatch job. The execution condition from the user is the microbatch job input unit 1
04 accepts. Details of these execution conditions are shown below.

【0025】まず、ユーザが入力する各マイクロバッチ
ジョブの実行情報をマイクロバッチジョブ生成部102
が、ジョブ実行条件テーブル111に格納する方法を示
す。
First, the execution information of each microbatch job input by the user is obtained from the microbatch job generation unit 102.
Shows the method of storing in the job execution condition table 111.

【0026】図3は、ジョブ実行条件テーブル111の
一例である。図3では、図2で説明したあるバッチジョ
ブを、複数のマイクロバッチジョブとして格納した例を
しめす。
FIG. 3 shows an example of the job execution condition table 111. FIG. 3 shows an example in which the certain batch job described in FIG. 2 is stored as a plurality of micro batch jobs.

【0027】ジョブ実行条件テーブル111は、図2で
示したシステムにおいて実行されるマイクロバッチジョ
ブを、JOB1〜JOB6で表し、前記各マイクロバッ
チジョブと該マイクロバッチジョブが実行される場所の
情報等を対応づけた情報を表している。
The job execution condition table 111 represents the microbatch jobs executed in the system shown in FIG. 2 as JOB1 to JOB6, and the information of each microbatch job and the place where the microbatch job is executed, etc. It represents the associated information.

【0028】図3に示したジョブ実行条件テーブル11
1は、マイクロバッチジョブの実行順序を示す実行ジョ
ブ番号307、マイクロバッチジョブを実行する場所を
示すジョブ実行場所308、マイクロバッチジョブの実
行結果の反映先を示すジョブ結果反映先309、マイク
ロバッチジョブの実行内容を示すマイクロバッチジョブ
実行プログラム310、の各フィールドを持つ。マイク
ロバッチジョブ実行プログラム310のフィールドの情
報は、該フィールドに対応するマイクロバッチジョブを
実行するために必要なプログラムでも良いし、マイクロ
バッチジョブ実行プログラムが記述されたファイルへの
ポインタでも良い。
The job execution condition table 11 shown in FIG.
Reference numeral 1 denotes an execution job number 307 that indicates the execution order of the microbatch job, a job execution location 308 that indicates the location to execute the microbatch job, a job result reflection destination 309 that indicates the reflection destination of the execution result of the microbatch job, and a microbatch job. Each field of the microbatch job execution program 310 indicating the execution content of The information in the field of the microbatch job execution program 310 may be a program necessary to execute the microbatch job corresponding to the field, or may be a pointer to a file in which the microbatch job execution program is described.

【0029】ユーザは、各マイクロバッチジョブの実行
順に、実行ジョブ番号、ジョブ実行場所、ジョブ結果反
映先、マイクロバッチジョブ実行プログラムをマイクロ
バッチジョブ入力部104に入力する。マイクロバッチ
ジョブ生成部102は、これらの入力されたマイクロバ
ッチジョブの実行条件を、マイクロバッチジョブ実行条
件テーブル111に格納する。
The user inputs the execution job number, job execution location, job result reflection destination, and microbatch job execution program to the microbatch job input unit 104 in the order of execution of each microbatch job. The microbatch job generation unit 102 stores the input execution conditions of the microbatch job in the microbatch job execution condition table 111.

【0030】ここで、実行ジョブ番号がJOB1のマイ
クロバッチジョブは、本実施例において最初に実行され
るジョブであり、基幹システムサーバ204内のデータ
抽出部207で実行され、基幹系DB206からのデー
タ抽出を実行し、次処理JOB2にその結果を転送する
マイクロバッチジョブである。JOBの後に示された番
号はマイクロバッチジョブの実行順序を示している。
Here, the microbatch job whose execution job number is JOB1 is the first job to be executed in this embodiment, is executed by the data extraction unit 207 in the core system server 204, and is the data from the core system DB 206. This is a microbatch job that executes extraction and transfers the result to the next process JOB2. The numbers shown after JOB indicate the execution order of the microbatch jobs.

【0031】ユーザは、マイクロバッチジョブ入力部1
04より、ジョブ番号としてJOB1、ジョブ実行場所
として基幹システムサーバ、データ抽出部、ジョブ結果
反映先としてJOB2、マイクロバッチジョブ実行プロ
グラムにここで示した抽出処理を実行するプログラムを
示したファイルを指定する。この条件を入力したものを
311に示す。
The user operates the microbatch job input unit 1
From 04, JOB1 is specified as the job number, a core system server as the job execution location, a data extraction unit, JOB2 as the job result reflection destination, and a file that indicates the program that executes the extraction process shown here in the microbatch job execution program is specified. . The input of this condition is shown in 311.

【0032】JOB2は、データ第1変換部208上で
実行され、基幹系DB206のデータをDWH211に
格納する為のデータ変換を実行し、その結果をJOB3
へ転送するマイクロバッチジョブである。この実行条件
を上記JOB1と同様に入力した例を312に示す。同
様にJOB3は、データウェアハウスサーバ209内の
データ反映部210で実行され、JOB2で変換された
データをDWH211へのデータ反映を実行するマイク
ロバッチジョブである。この実行条件を上記JOB1と
同様に入力した例を313に示す。
JOB2 is executed on the data first conversion unit 208, executes data conversion for storing the data of the backbone DB 206 in the DWH 211, and outputs the result to JOB3.
It is a micro batch job to transfer to. An example in which this execution condition is input as in JOB1 is shown in 312. Similarly, JOB3 is a microbatch job that is executed by the data reflection unit 210 in the data warehouse server 209 and that reflects the data converted by JOB2 to the DWH211. An example in which this execution condition is input in the same manner as in JOB1 is shown in 313.

【0033】JOB4は、データウェアハウスサーバ2
09内のデータ抽出部212で実行され、DWH211
からのデータ抽出を実行し、その結果をJOB5へ転送
するマイクロバッチジョブである。この実行条件を上記
JOB1と同様に入力した例を314に示す。
JOB4 is the data warehouse server 2
09 is executed by the data extraction unit 212 in the DWH 211.
It is a microbatch job that executes data extraction from the job and transfers the result to JOB5. An example in which this execution condition is input as in JOB1 is shown in 314.

【0034】JOB5は、データ第2変換部213上で
実行され、DWH211のデータをDM216に格納す
る為のデータ変換、集計等を実行し、その結果をJOB
6へ転送するマイクロバッチジョブである。この実行条
件を上記JOB1と同様に入力した例を315に示す。
JOB5 is executed on the second data conversion unit 213, executes data conversion for storing the data of DWH211 in DM216, totalization, etc., and outputs the result to JOB.
This is a microbatch job to be transferred to No. 6. An example in which this execution condition is input as in JOB1 is shown in 315.

【0035】JOB6はデータマートサーバ214内の
データ反映部215で実行され、JOB5で変換された
データをDM216へのデータ反映を実行するマイクロ
バッチジョブである。この実行条件を上記JOB1と同
様に入力した例を316に示す。
JOB6 is a microbatch job which is executed by the data reflection unit 215 in the data mart server 214 and reflects the data converted by JOB5 in the DM 216. An example in which this execution condition is input as in JOB1 is shown in 316.

【0036】本実施例では、上記で示したとおり、マイ
クロバッチジョブはこの実行順通りに一つずつ実行する
例を示したが、例えばJOB1の終了を契機にJOB
2、JOB3を同時実行できる等、一つのジョブ終了を
契機に複数のジョブが実行できるケース、JOB1、J
OB2の二つのジョブが終了しないとJOB3が実行で
きないといった複数のジョブ終了を契機に一つのジョブ
が実行できるケースがある。例えば、前者のケースで
は、JOB1のジョブ結果反映先309にJOB2,J
OB3と登録する。後者のケースでは、JOB1のジョ
ブ結果反映先309にJOB3−1、JOB3−2とい
うように、ジョブ番号の後ろに枝番号をふって、登録し
ても良い。
In the present embodiment, as described above, the microbatch jobs are executed one by one in the order of execution. However, for example, when JOB1 ends, JOB is triggered.
2. Jobs that can execute multiple jobs at the end of one job, such as simultaneous execution of JOB3, JOB1, J
There is a case in which one job can be executed upon completion of a plurality of jobs such that JOB3 cannot be executed unless two jobs of OB2 are completed. For example, in the former case, the job result reflection destination 309 of JOB1 is set to JOB2, J
Register with OB3. In the latter case, the job result reflection destination 309 of JOB1 may be registered by adding a branch number after the job number, such as JOB3-1 and JOB3-2.

【0037】尚、これは一例であり、マイクロバッチジ
ョブを示す識別子と、マイクロバッチジョブを実行する
プログラム又は計算機を示す情報と、マイクロバッチジ
ョブの実行結果を格納する場所を示す情報とを対応づけ
た情報を含むものをジョブ実行条件として格納しておい
ても良い。
Note that this is an example, and an identifier indicating a microbatch job, information indicating a program or a computer for executing the microbatch job, and information indicating a place for storing the execution result of the microbatch job are associated with each other. It is also possible to store, as the job execution condition, information including the above information.

【0038】次に、ユーザが入力するマイクロバッチジ
ョブの同時実行条件をマイクロバッチジョブ生成部10
2が同時実行ジョブ管理テーブル106に格納する方法
を示す。
Next, the conditions for simultaneous execution of the microbatch jobs input by the user are determined by the microbatch job generation unit 10.
2 shows a method of storing in the concurrent execution job management table 106.

【0039】図4は、同時実行ジョブ管理テーブル10
6の一例であり、実行ジョブ番号702と、その実行ジ
ョブ番号のマイクロバッチジョブを実行する時に、同時
実行が出来ない実行ジョブ番号を示す同時実行不可ジョ
ブ番号703のフィールドを持つ。
FIG. 4 shows the concurrent job management table 10
6 has an execution job number 702 and a concurrent execution impossible job number 703 field indicating an execution job number that cannot be simultaneously executed when the microbatch job having the execution job number is executed.

【0040】ユーザが指定した、同時実行できないマイ
クロバッチジョブの情報を、マイクロバッチジョブ生成
部102が、同時実行ジョブ管理テーブル106に登録
する。
The microbatch job generation unit 102 registers, in the simultaneous execution job management table 106, the information of the microbatch job which is designated by the user and cannot be executed simultaneously.

【0041】例えば、本実施で使用するシステムで、複
数のマイクロバッチジョブを同時に実行する場合を例に
あげると、DWHに対してデータの書き込みを行うJO
B3と、DWHからデータの読み出しや抽出を行うJO
B4とを処理する排他制御が頻繁に行われるため、デー
タウェアハウスサーバ209に負荷がかかり、データ反
映、データ抽出の性能に影響がでることが考えられる。
又、多数のマイクロバッチジョブを連続処理することに
より、DWHへのデータ反映、データ抽出処理に要する
時間が長くなり、保守のタイミングを無くすという問題
も考えられる。
For example, in the system used in this embodiment, when a plurality of microbatch jobs are simultaneously executed, for example, a JO that writes data to the DWH
JO that reads and extracts data from B3 and DWH
Since exclusive control for processing B4 is frequently performed, a load is placed on the data warehouse server 209, which may affect the performance of data reflection and data extraction.
Further, by continuously processing a large number of microbatch jobs, the time required for the data reflection to the DWH and the data extraction processing becomes long, and there is also a problem that the timing of maintenance is eliminated.

【0042】このため、本実施例では、DWH211
に、データ反映マイクロバッチジョブであるJOB3と
データ抽出マイクロバッチジョブであるJOB4が同時
に実行されないように、ジョブ実行番号JOB3実行時
の同時実行不可ジョブ番号JOB4、ジョブ実行番号J
OB4実行時の同時実行不可ジョブ番号JOB3を指定
する。
Therefore, in this embodiment, the DWH211
In order to prevent the data reflection microbatch job JOB3 and the data extraction microbatch job JOB4 from being executed at the same time, the job execution number JOB3 cannot be executed concurrently, the job number JOB4 and the job execution number J
Specifies a job number JOB3 that cannot be executed concurrently when executing OB4.

【0043】次に、ユーザが入力するマイクロバッチジ
ョブの起動条件を、マイクロバッチジョブ生成部102
が、ジョブ起動条件テーブル107に格納する方法を示
す。
Next, the microbatch job generation unit 102 sets the microbatch job start conditions input by the user.
Shows the method of storing in the job activation condition table 107.

【0044】図5はジョブ起動条件テーブル107の一
例である。ユーザは、マイクロバッチジョブ入力部10
4より、マイクロバッチ起動条件を入力する。ユーザか
ら入力された情報を、マイクロバッチジョブ生成部10
2が、ジョブ起動条件テーブル107に格納する。
FIG. 5 shows an example of the job activation condition table 107. The user operates the microbatch job input unit 10
From 4, input the microbatch activation conditions. The information input by the user is stored in the microbatch job generation unit 10
2 is stored in the job activation condition table 107.

【0045】ジョブ起動条件テーブル107は、マイク
ロバッチジョブの起動条件の種類を示す、ジョブ起動条
件種類804、マイクロバッチジョブの起動条件を示
す、起動条件805、該マイクロバッチジョブの起動条
件種類の適用を開始する時間、開始時間806、適用を
終了する時間、終了時間807の各フィールドを持つ。
The job activation condition table 107 shows the types of activation conditions of the microbatch job, the job activation condition type 804, the activation conditions of the microbatch job 805, the application of the activation condition types of the microbatch job. Has fields for a start time, a start time 806, an application end time, and an end time 807.

【0046】802のエントリに対応する各フィールド
には、最初のマイクロバッチジョブであるJOB1の処
理対象のデータの発生件数に対して何件毎にこのマイク
ロバッチジョブを起動するのか決定する、データ件数起
動条件を格納する。
In each field corresponding to the entry of 802, the number of data items for determining the number of data items to be processed by JOB1 which is the first microbatch job, is determined. Stores the start condition.

【0047】起動条件は、最初のマイクロバッチジョブ
であるJOB1の処理対象のデータの発生件数に対して
何件毎にこのマイクロバッチジョブを起動するのか決定
する、データ件数起動条件802と、一定時間おきにこ
のマイクロバッチジョブを起動する時間条件803とを
入力する。又、ユーザはこれら条件によってのマイクロ
バッチジョブ起動を開始する時間、開始時間805及び
マイクロバッチジョブ起動を終了する時間、終了時間8
06を入力する。
The start condition is a data number start condition 802 for determining the number of times the micro batch job is to be started with respect to the number of occurrences of data to be processed by JOB1 which is the first micro batch job, and a fixed time. Every time, a time condition 803 for starting this microbatch job is input. In addition, the user needs to start the microbatch job activation, start time 805, end time of the microbatch job activation, and end time 8 according to these conditions.
Enter 06.

【0048】このようにユーザから入力されて、ジョブ
起動条件テーブルに格納された情報は、マイクロバッチ
ジョブコントローラ101のジョブ実行管理部114で
用いるが、この処理については図11で説明する。
The information input by the user in this way and stored in the job activation condition table is used by the job execution management unit 114 of the microbatch job controller 101. This processing will be described with reference to FIG.

【0049】図6は、ジョブ経路管理テーブル105の
一例であり、マイクロバッチジョブの組み合わせを通番
で示した実行ジョブ群番号502、その組み合わせの中
で最初に実行するジョブを示したジョブ実行起点50
3、このジョブ群のマイクロバッチジョブを示す実行ジ
ョブ種類504、マイクロバッチジョブ結果を実際に反
映するジョブ結果反映箇所505をフィールドとして持
つ。
FIG. 6 is an example of the job path management table 105. The execution job group number 502 is a serial number of a combination of microbatch jobs, and the job execution starting point 50 is the job to be executed first in the combination.
3. Fields include an execution job type 504 that indicates a microbatch job of this job group, and a job result reflection part 505 that actually reflects the microbatch job result.

【0050】図7は、ユーザがマイクロバッチジョブ入
力部104を通して入力した情報に基づいて、マイクロ
バッチジョブ生成部102が、ジョブ経路管理テーブル
105とジョブ実行時バッファ110を生成するフロー
を示している。
FIG. 7 shows a flow in which the microbatch job generation unit 102 generates the job route management table 105 and the job execution buffer 110 based on the information input by the user through the microbatch job input unit 104. .

【0051】ここでは、図3で示したジョブ実行条件テ
ーブル111の一例の内容を入力する例を示す。
Here, an example of inputting the contents of an example of the job execution condition table 111 shown in FIG. 3 is shown.

【0052】ユーザがマイクロバッチジョブ入力部10
4より入力する、先に示したマイクロバッチジョブ実行
条件よりマイクロバッチジョブ実行条件テーブル111
を生成する(401)。次に、連続で実行できるマイク
ロバッチジョブの組み合わせを、ジョブ経路管理テーブ
ル105に登録する(402)。この時、連続で実行で
きるマイクロバッチジョブとは、マイクロバッチジョブ
によって出力されるデータの反映先が、別のマイクロバ
ッチジョブであるものである。
The user inputs the microbatch job input section 10
4, the microbatch job execution condition table 111 is input according to the above-described microbatch job execution conditions.
Is generated (401). Next, a combination of micro batch jobs that can be continuously executed is registered in the job path management table 105 (402). At this time, the microbatch job that can be continuously executed is that the output destination of the data output by the microbatch job is another microbatch job.

【0053】例えば、図3で示したジョブ実行条件テー
ブル111では、JOB1の反映先がJOB2であるの
で、JOB1,JOB2が連続で実行できると判断し、
マイクロバッチジョブの組み合わせとしてJOB1、J
OB2を作成する。ここで、ジョブ結果反映先が二つの
ジョブである場合はジョブ結果反映個所に、その二つの
ジョブも同時に実行できる。例えば、JOB1の結果反
映先がJOB2、JOB3であれば、(JOB1,JO
B2)、(JOB1、JOB3)、(JOB1、JOB
2、JOB3)が同時実行できるジョブの組み合わせと
なる。又、複数のジョブ結果反映先が一つのジョブであ
る場合は、反映元の複数のジョブは必ず組み合わせて実
行する。
For example, in the job execution condition table 111 shown in FIG. 3, since the reflection destination of JOB1 is JOB2, it is determined that JOB1 and JOB2 can be continuously executed,
JOB1, J as a combination of micro batch jobs
Create OB2. Here, when the job result reflection destination is two jobs, the two jobs can be executed simultaneously at the job result reflection position. For example, if the result reflection destinations of JOB1 are JOB2 and JOB3, (JOB1, JOB
B2), (JOB1, JOB3), (JOB1, JOB
2, JOB3) is a combination of jobs that can be executed simultaneously. When a plurality of job result reflection destinations are one job, a plurality of reflection source jobs are always executed in combination.

【0054】ただし、反映元ジョブ、反映先ジョブは組
み合わせない。例えば、JOB1の結果反映先がJOB
3−1、JOB2の結果反映先がJOB3−2として登
録されている場合は、必ずJOB1、JOB2を含む組
み合わせを作成する。JOB1とJOB2が分かれる組
み合わせは作らず、JOB1、JOB2終了後にJOB
3が実行するようにする。このとき、JOB1、JOB
2、JOB3の組み合わせは作らない。402で作成し
たマイクロバッチジョブの組み合わせを、ジョブ経路管
理テーブル105に登録する(403)。登録する情報
は、実行ジョブ群番号、ジョブ実行起点、実行ジョブ種
類である。
However, the reflection source job and the reflection destination job are not combined. For example, the result reflection destination of JOB1 is JOB
When the result reflection destination of 3-1 and JOB2 is registered as JOB3-2, a combination including JOB1 and JOB2 is always created. Do not make a combination that separates JOB1 and JOB2.
Let 3 run. At this time, JOB1, JOB
No combination of 2 and JOB3 is made. The combination of microbatch jobs created in 402 is registered in the job path management table 105 (403). The information to be registered is the execution job group number, the job execution starting point, and the execution job type.

【0055】次に、ジョブ経路管理テーブル105内の
全ての実行ジョブ群について、実行ジョブ種類内におけ
る最終ジョブ結果の反映先を、ジョブ実行条件テーブル
111より取得し、ジョブ結果反映個所として登録する
(404)。ここで生成されるジョブ経路管理テーブル
105の一例が図6である。この時、反映先が次ジョブ
である場合は、JOB2実行時バッファ等のように、次
ジョブの実行時バッファとして登録する。
Next, for all the execution job groups in the job path management table 105, the reflection destination of the final job result in the execution job type is acquired from the job execution condition table 111 and registered as the job result reflection position ( 404). FIG. 6 shows an example of the job route management table 105 generated here. At this time, if the reflection destination is the next job, it is registered as the runtime buffer of the next job, such as the JOB2 runtime buffer.

【0056】次に、マイクロバッチジョブを実行する時
に、不必要な実行ジョブ群があるか否かを画面に表示し
てユーザに問合せ、ユーザから不必要なジョブの入力の
指定があれば、そのマイクロバッチジョブ群を削除す
る。尚、ユーザから不要なジョブの指定を受付けるので
はなく、予め計算機の中に、どのような条件でジョブ群
を選択又は削除するかという、ジョブ群の選択基準を格
納しておいても良い。
Next, when executing a microbatch job, an inquiry is made to the user by displaying on the screen whether or not there is an unnecessary execution job group. Delete the micro batch job group. Instead of accepting an unnecessary job designation from the user, the selection criteria of the job group, such as the conditions under which the job group is selected or deleted, may be stored in advance in the computer.

【0057】例えば、後述するマイクロバッチジョブ実
行方法において、全てのマイクロバッチジョブ時間が同
じと想定される場合、各マイクロバッチジョブは組み合
わせず、一つずつ実行した場合の方が並列性が上がる
為、JOBを組み合わせているマイクロバッチジョブを
削除する(405)。
For example, in the microbatch job execution method described later, when it is assumed that all microbatch jobs have the same time, the parallelism is improved when the microbatch jobs are not combined and executed one by one. , A micro batch job that combines JOBs is deleted (405).

【0058】図8に、405の処理で、不必要な実行ジ
ョブ群を削除し、ジョブ経路管理テーブル105を更新
した一例を示す。
FIG. 8 shows an example of deleting unnecessary execution job groups and updating the job path management table 105 in the processing of 405.

【0059】最後に、ジョブ経路管理テーブル105内
のジョブ結果反映先が実行時バッファとなっているもの
全てについて、その反映先が存在するサーバなどに、ジ
ョブ起動条件テーブル107のデータ起動条件によって
対象とされるデータを格納可能な容量を持ったジョブ実
行時バッファ110を生成する(406)。
Finally, for all the job result reflection destinations in the job path management table 105 that are the execution time buffers, the data activation conditions in the job activation condition table 107 are applied to the server or the like where the reflection destination exists. The job execution time buffer 110 having a capacity capable of storing the data is generated (406).

【0060】以上が、ユーザがマイクロバッチジョブ入
力部104に入力したマイクロバッチジョブ実行条件か
ら、マイクロバッチジョブ生成部102が、マイクロバ
ッチジョブコントローラ101がマイクロバッチジョブ
実行に必要な情報である、ジョブ経路管理テーブル10
5、同時実行ジョブ管理テーブル106、ジョブ起動条
件テーブル107、ジョブ実行時バッファ110、ジョ
ブ実行条件テーブル111を生成する方法である。
Based on the microbatch job execution conditions input by the user to the microbatch job input section 104, the microbatch job generation section 102 is the information necessary for the microbatch job controller 101 to execute the microbatch job. Route management table 10
5, the concurrent execution job management table 106, the job activation condition table 107, the job execution time buffer 110, and the job execution condition table 111 are generated.

【0061】次に、マイクロバッチジョブコントローラ
101により、図2で示したシステム内のマイクロバッ
チジョブを実行させる方法を示す。最初にマイクロバッ
チジョブコントローラ101が、マイクロバッチジョブ
実行を管理する為に生成するジョブ実行状況管理テーブ
ル108と実行ジョブ情報管理テーブル109を説明す
る。
Next, a method for executing the microbatch job in the system shown in FIG. 2 by the microbatch job controller 101 will be described. First, the job execution status management table 108 and the execution job information management table 109 generated by the microbatch job controller 101 for managing the execution of the microbatch job will be described.

【0062】図9にジョブ実行状況管理テーブル108
の一例について、マイクロバッチジョブ実行時のテーブ
ル内容(該マイクロバッチジョブで処理対象となるジョ
ブデータ)の遷移状況を示す。尚、図9の(1)(2)
…(6)の順に画面にテーブルの情報を表示させること
で、各マイクロバッチジョブにおけるデータの処理状況
がユーザにとってわかりやすくすることも可能である。
FIG. 9 shows the job execution status management table 108.
For example, the transition status of the table contents (job data to be processed by the microbatch job) during execution of the microbatch job is shown. In addition, (1) and (2) of FIG.
By displaying the table information on the screen in the order of (6), it is possible to make the data processing status of each microbatch job easy for the user to understand.

【0063】図9(1)は、現在実行可能なマイクロバ
ッチジョブを示す待機ジョブ1202、システム内で現
在実行されているマイクロバッチジョブを示す、現在状
況1203の要素を持つ。最初に実行するマイクロバッ
チジョブをテーブルの左端の行に示し、それ以降左から
順に実行するマイクロバッチジョブを示し、最後のマイ
クロバッチジョブを最も右の行に示す。図9(1)で
は、最初に実行するJOB1(1204)を示し、以下
JOB2(1205)、JOB3(1206)、JOB
4(1207)、JOB5(1208)、最後に実行す
るJOB6(1209)のように実行順序にしたがって
示している。
FIG. 9A has elements of a standby job 1202 indicating a currently executable microbatch job and a current status 1203 indicating a microbatch job currently being executed in the system. The first microbatch job to be executed is shown in the leftmost row of the table, the microbatch jobs to be executed sequentially from the left are shown thereafter, and the last microbatch job is shown in the rightmost row. In FIG. 9A, JOB1 (1204) to be executed first is shown, and JOB2 (1205), JOB3 (1206), and JOB are shown below.
4 (1207), JOB5 (1208), and finally JOB6 (1209) are shown in the order of execution.

【0064】ここで、テーブルの各セルには後述する新
規ジョブ生成ステップ112により起動するマイクロバ
ッチジョブの実行対象データのジョブデータ番号が格納
される。このジョブデータ番号は、最初に実行されるマ
イクロバッチジョブ(本実施例ではJOB1)が起動さ
れた時に実行対象となるデータのジョブデータ番号をJ
D1とし、次に起動されたマイクロバッチジョブの実行
対象データをJD2とするように、通番で表す。
Here, in each cell of the table, the job data number of the execution target data of the microbatch job activated by the new job generation step 112 described later is stored. This job data number is the job data number of the data to be executed when the first microbatch job (JOB1 in this embodiment) to be executed is activated.
It is represented by a serial number such that it is D1 and the execution target data of the microbatch job that is started next is JD2.

【0065】尚、図9の(1)〜(6)の状態遷移につ
いての詳細は、図13で説明する。
Details of the state transitions (1) to (6) in FIG. 9 will be described with reference to FIG.

【0066】次に、図10(1)〜(6)に実行ジョブ
情報管理テーブル109の一例のマイクロバッチジョブ
実行時のテーブル内容の遷移を示す。図10(1)にお
いて、新規ジョブ生成ステップ112によって生成され
る新規マイクロバッチジョブ入力対象のジョブデータ番
号1302、一番最初に実行されるマイクロバッチジョ
ブが使用するデータが最後に更新された時間を示すデー
タ最終更新時間1303、このデータが現在格納されて
いる場所を示す、データ場所1304のフィールドを持
つ。
Next, FIGS. 10 (1) to 10 (6) show transitions of table contents during execution of a microbatch job, which is an example of the execution job information management table 109. In FIG. 10 (1), the job data number 1302 of the new microbatch job input target generated by the new job generation step 112 and the time when the data used by the microbatch job executed first is last updated. It has a data last update time 1303, and a data location 1304 field that indicates where this data is currently stored.

【0067】図10(1)は、ジョブデータ番号JD1
の実行対象のデータの格納場所は基幹DBであり、その
データは基幹DBで10:40に最終更新されたデータ
であることを示している。以下、図10(2)〜(6)
についても同様である。
FIG. 10A shows the job data number JD1.
The storage location of the data to be executed is the backbone DB, and the data is the data that was last updated at 10:40 in the backbone DB. Hereinafter, FIGS. 10 (2) to (6)
Is also the same.

【0068】尚、図9および図10に示したテーブルの
情報の登録処理については図11で説明する。また、図
9および図10の各テーブルの情報が、どのように変化
するのかについては図13で説明する。
The process of registering the information in the tables shown in FIGS. 9 and 10 will be described with reference to FIG. How the information in each table in FIGS. 9 and 10 changes will be described with reference to FIG.

【0069】図11に、マイクロバッチジョブコントロ
ーラ101の新規ジョブ生成部112の処理フローを示
す。
FIG. 11 shows a processing flow of the new job generation unit 112 of the microbatch job controller 101.

【0070】最初に、マイクロバッチジョブコントロー
ラ101は、基幹系DBのデータ抽出部207から、現
在抽出可能な新規データ件数を取得する。新規データ件
数は、例えば、基幹系DB206のトランザクションロ
グ等から取得する事が可能である。
First, the microbatch job controller 101 acquires the number of new data items that can be currently extracted from the data extraction unit 207 of the backbone DB. The number of new data items can be acquired from, for example, the transaction log of the backbone DB 206.

【0071】901において、新規データ件数が、ジョ
ブ起動条件テーブル107のデータ件数条件の起動条件
を満たすか判定する。満たさない場合は、902におい
て、現在の時刻がジョブ起動条件テーブル107の時間
条件の起動条件を満たすか判定する。どちらか一方でも
満たす場合は903の処理を実行し、満たさない場合は
満たすまで901、902の処理を続ける。尚、901
のデータ件数条件は、図5の802のエントリに格納し
てあり、902の時間条件については図5の803のエ
ントリに格納してある。
At 901, it is determined whether the new data number satisfies the activation condition of the data number condition of the job activation condition table 107. If not satisfied, in 902, it is determined whether the current time satisfies the start condition of the time condition of the job start condition table 107. If either one is satisfied, the process of 903 is executed, and if not satisfied, the processes of 901 and 902 are continued until they are satisfied. Incidentally, 901
5 is stored in the entry 802 in FIG. 5, and the time condition 902 is stored in the entry 803 in FIG.

【0072】903では、マイクロバッチジョブの対象
となるデータ、マイクロバッチジョブ対象データの情報
として通番で決められるジョブデータ番号を決定し、マ
イクロバッチジョブの対象となるデータ中の最終更新時
間と共に、実行ジョブ情報管理テーブル109に登録す
る。たとえば、図10(1)に示した実行ジョブ管理テ
ーブルのジョブデータ番号には「JD1」が格納され、
データ最終更新時間には「10:40」が格納される。
At 903, the job data number determined by a serial number as the information of the microbatch job target data and the information of the microbatch job target data is determined and executed together with the last update time of the data targeted by the microbatch job. It is registered in the job information management table 109. For example, “JD1” is stored in the job data number of the execution job management table shown in FIG.
"10:40" is stored in the data last update time.

【0073】本実施例では、最初のマイクロバッチジョ
ブの処理対象となるデータは、基幹系DB206にある
ので、この情報も実行ジョブ情報管理テーブル109に
登録する。たとえば、図3の311のエントリに示した
ように、本実施例で最初に実行するジョブ実行場所は基
幹システムサーバのデータ抽出部であるので、最初にマ
イクロバッチジョブの処理対象となるデータは基幹系D
Bの中に存在することがわかる。これに基づき、図10
(1)のデータ場所の情報として「基幹DB」を格納し
ている。
In this embodiment, since the data to be processed by the first microbatch job is in the backbone DB 206, this information is also registered in the execution job information management table 109. For example, as indicated by the entry 311 in FIG. 3, since the job execution place to be executed first in this embodiment is the data extraction unit of the core system server, the data to be processed by the microbatch job is the core. System D
It can be seen that it exists in B. Based on this, FIG.
A "backbone DB" is stored as information on the data location in (1).

【0074】904において、ジョブ実行状況管理テー
ブル108の待機ジョブ列の最初のジョブの行(図9
(1)ではJOB1の行)に、903で登録したジョブ
データ番号「JD1」を登録する。
At 904, the first job row in the waiting job column of the job execution status management table 108 (see FIG. 9).
In (1), the job data number “JD1” registered in 903 is registered in JOB1 line).

【0075】905において、ジョブ起動条件テーブル
の終了条件を満たすか確認し、満たす場合は新規ジョブ
生成処理を終了する。ここで生成されたジョブ実行状況
管理テーブル108の一例が図9(1)であり、実行ジ
ョブ情報管理テーブル109の一例が図10(1)であ
る。
At 905, it is confirmed whether or not the end condition of the job activation condition table is satisfied, and if it is satisfied, the new job generation process is ended. An example of the job execution status management table 108 generated here is shown in FIG. 9A, and an example of the executed job information management table 109 is shown in FIG. 10A.

【0076】図12において、マイクロバッチジョブコ
ントローラ101のジョブ起動管理部113の処理フロ
ーを示す。
FIG. 12 shows a processing flow of the job activation management section 113 of the microbatch job controller 101.

【0077】1001において、新規マイクロバッチジ
ョブが生成された、もしくは実行済みのマイクロバッチ
ジョブが終了した事を契機として、次処理1002に進
む。
In 1001, triggered by the fact that a new microbatch job has been generated or the already executed microbatch job has ended, the processing proceeds to the next processing 1002.

【0078】1002では、マイクロバッチジョブでの
処理対象のデータが、全てマイクロバッチジョブ(本実
施例ではJOB1〜JOB6)を終えたかどうか判定
し、終了した場合は、1004においてユーザアプリケ
ーションに、実行ジョブ情報管理テーブル109に格納
されているデータ最終更新時間を通知する。これにより
ユーザは現在反映されたデータの作成された時期を判定
できる。終了していない場合は、1003において、新
規ジョブで無い場合は、ジョブ実行状況管理テーブル1
08の待機ジョブ列の、次に実行するマイクロバッチジ
ョブの行にジョブデータ番号を登録する。
In 1002, it is determined whether or not all the data to be processed in the microbatch job have completed the microbatch jobs (JOB1 to JOB6 in this embodiment). The last update time of the data stored in the information management table 109 is notified. This allows the user to determine when the currently reflected data was created. If it is not finished, the job execution status management table 1 is shown in 1003 if it is not a new job.
The job data number is registered in the row of the microbatch job to be executed next in the queue job queue 08.

【0079】尚、どのデータがどこのマイクロバッチジ
ョブで処理を行っているかについては図9に示したよう
に、ジョブ実行状況管理テーブルの情報を参照すること
によって判定できる。また、データの最終更新時間につ
いては、図10に示したように、実行ジョブ情報管理テ
ーブルの情報を参照することによって判定できる。これ
らの情報を、ユーザが用いる計算機へ通知することによ
り、ユーザは各データの処理状況を把握することができ
る。
Which data is processed by which microbatch job can be determined by referring to the information in the job execution status management table, as shown in FIG. The final update time of the data can be determined by referring to the information in the execution job information management table, as shown in FIG. By notifying the computer used by the user of these pieces of information, the user can grasp the processing status of each data.

【0080】この時のジョブ実行状況管理1003もし
くは1004の処理終了後、ジョブ実行管理部114を
起動する。ジョブ実行管理部114の処理は、次に説明
する。
After the processing of the job execution status management 1003 or 1004 at this time, the job execution management unit 114 is activated. The processing of the job execution management unit 114 will be described next.

【0081】図13において、マイクロバッチジョブコ
ントローラ101の、ジョブ実行管理部114の処理フ
ロー示す。
FIG. 13 shows a processing flow of the job execution management unit 114 of the microbatch job controller 101.

【0082】ここでは、図11で示した新規ジョブ生成
ステップ112により、マイクロバッチコントローラ1
01がジョブデータ番号JD1、JD2で示した新規マ
イクロバッチジョブが一定の間隔でこの順番で起動した
とする。ここでは、図9で示したジョブ実行状況管理テ
ーブル108の登録内容の遷移の一例である図9(1)
〜図9(6)と、図10で示した実行ジョブ情報管理テ
ーブル109の登録内容の遷移の一例である図10
(1)〜図10(6)とを用いて説明する。
Here, the microbatch controller 1 executes the new job generation step 112 shown in FIG.
It is assumed that 01 starts the new microbatch jobs indicated by job data numbers JD1 and JD2 in this order at regular intervals. Here, FIG. 9A is an example of the transition of the registered contents of the job execution status management table 108 shown in FIG.
10 is an example of the transition of the registered contents of the execution job information management table 109 shown in FIG. 9 (6) and FIG.
This will be described with reference to (1) to FIG. 10 (6).

【0083】ここで、図9(1)と図10(1)、図9
(2)と図10(2)、図9(3)と図10(3)、図
9(4)と図10(4)、図9(5)と図10(5)、
図9(6)と図9(6)は同時間においてのジョブ実行
状況管理テーブル108の内容と、実行ジョブ情報管理
テーブル109の内容とを示している。
Here, FIG. 9 (1), FIG. 10 (1), and FIG.
(2) and FIG. 10 (2), FIG. 9 (3) and FIG. 10 (3), FIG. 9 (4) and FIG. 10 (4), FIG. 9 (5) and FIG. 10 (5),
9 (6) and 9 (6) show the contents of the job execution status management table 108 and the contents of the execution job information management table 109 at the same time.

【0084】図11で示した新規ジョブ生成部112の
処理により、JD1が図9(1)の待機ジョブ列の次実
行ジョブ行に登録され、図12で示したジョブ起動管理
部113の処理により、図13で示すジョブ実行管理部
114が起動されたとする。
By the processing of the new job generation unit 112 shown in FIG. 11, JD1 is registered in the next execution job row of the waiting job sequence of FIG. 9A, and by the processing of the job activation management unit 113 shown in FIG. It is assumed that the job execution management unit 114 shown in FIG. 13 is activated.

【0085】1101において、ジョブ実行状況管理テ
ーブル108の現在状況を確認する。図9(1)の現在
状況列にはジョブデータ番号が登録されていないので、
全てのマイクロバッチジョブが空いている事が確認でき
る。次に、1102、1103において、空きジョブで
ある待機ジョブのデータ番号を選択する。図9(1)で
はJD1のみでありJD1はJOB1行1204にある
のでJOB1を選択する。図9(1)では現実行マイク
ロバッチジョブはないので(1104)、1106で空
きマイクロバッチジョブとして、図9(1)から、JO
B1からJOB6(1204から1209)までを選択す
る。次に、1107において、ジョブ経路管理テーブル
105より実行するジョブが起点である実行ジョブ群を
選択する。
At 1101, the current status of the job execution status management table 108 is confirmed. Since the job data number is not registered in the current status column of FIG. 9 (1),
It can be confirmed that all micro batch jobs are available. Next, in 1102 and 1103, the data number of the standby job which is an empty job is selected. In FIG. 9A, there is only JD1 and JD1 is in JOB1 row 1204, so JOB1 is selected. In FIG. 9 (1), there is no currently executed microbatch job (1104).
Select B1 to JOB6 (1204 to 1209). Next, at 1107, an execution job group starting from the job to be executed is selected from the job path management table 105.

【0086】ここでは、図6に示すジョブ経路管理テー
ブルより、JOB1が起点である実行ジョブ群、MBJ
1、MBJ2、MBJ3を選択する。他の待機ジョブが
ないので(1108)、実行マイクロバッチジョブ数が
最大であるMBJ3を選択する(1109)。ここで、
現在状況列1203にMBJ3で実行するマイクロバッ
チジョブ、JOB1、JOB2、JOB3の行にジョブ
データ番号を登録し、実行ジョブ群MBJ3を起動し、
待機ジョブ列からJD1を消去する。この結果が、図9
(2)となる。この時、MBJ3で実行するJOBの実
行場所、ジョブ実行プログラムは、ジョブ実行条件取得
テーブル111より取得する。
Here, according to the job path management table shown in FIG. 6, the execution job group whose origin is JOB1 is MBJ.
Select 1, MBJ2, MBJ3. Since there are no other waiting jobs (1108), MBJ3 having the largest number of executed microbatch jobs is selected (1109). here,
In the current status column 1203, the job data numbers are registered in the rows of JOB1, JOB2, and JOB3, which are micro batch jobs to be executed by MBJ3, and the execution job group MBJ3 is activated.
Delete JD1 from the queue of waiting jobs. This result is shown in FIG.
It becomes (2). At this time, the execution location of the JOB executed by the MBJ3 and the job execution program are acquired from the job execution condition acquisition table 111.

【0087】実行対象のデータは、実行ジョブ情報管理
テーブル109より取得し、ジョブ結果反映箇所を更新
する。ここでは、図10(1)のデータ場所行1304
より基幹DBにあることを判別後、MBJ3の反映先を
図6で示すジョブ経路管理テーブルの、ジョブ結果反映
個所505より取得し、更新する。この場合はDWHを
取得しその結果を実行ジョブ情報管理テーブル106を
更新する(1112)。この結果が、図10(2)とな
る。
The data to be executed is acquired from the execution job information management table 109, and the job result reflection part is updated. Here, the data location line 1304 of FIG.
After determining that it is in the core DB, the reflection destination of the MBJ3 is acquired from the job result reflection portion 505 of the job route management table shown in FIG. 6 and updated. In this case, the DWH is acquired and the result is updated in the execution job information management table 106 (1112). The result is shown in FIG.

【0088】次に、MBJ3がジョブデータJD1に対
するジョブを終了する前に、マイクロバッチジョブコン
トローラ101が、図11で示した新規ジョブ生成部1
12により新規マイクロバッチジョブが生成されたとす
る。
Next, before the MBJ3 finishes the job for the job data JD1, the microbatch job controller 101 causes the new job generation unit 1 shown in FIG.
It is assumed that 12 creates a new microbatch job.

【0089】このマイクロバッチジョブは二つ目のジョ
ブであるのでジョブデータ番号はJD2となる。この時
のマイクロバッチジョブが対象とするデータが基幹DB
で、時刻11:30に最終更新されたデータであるとす
ると、903において、ジョブデータ番号「JD2」、
データ最終更新時間「11:30」、データ場所「基幹
DB」を実行ジョブ情報管理テーブルに登録する。90
4において、JD2をジョブ実行状況管理テーブルに登
録する。この時のジョブ実行状況管理テーブルの内容を
図9(3)に、ジョブ情報管理テーブルの内容を図10
(3)に示す。
Since this microbatch job is the second job, the job data number is JD2. The data targeted by the microbatch job at this time is the backbone DB
Then, assuming that the data is finally updated at time 11:30, at 903, the job data number “JD2”,
The data last update time “11:30” and the data location “backbone DB” are registered in the execution job information management table. 90
In 4, the JD2 is registered in the job execution status management table. The contents of the job execution status management table at this time are shown in FIG. 9C, and the contents of the job information management table are shown in FIG.
It shows in (3).

【0090】図13で示すジョブ実行管理ステップ11
4では、図9(3)より空きマイクロバッチジョブはあ
るが(1101)、空きジョブと同じ待機マイクロバッ
チジョブが無い為(1102)、この処理を終了する。
つまり、図9(3)のテーブルの「現在状況」欄を参照
すると、JOB4からJOB6は現在状況の欄にジョブ
データが登録されてないため、JOB4からJOB6ま
では、「空きマイクロバッチジョブ」と判定でき、次
に、図9(3)のテーブルの「待機ジョブ」の欄のJO
B4からJOB6に対応する欄を参照すると、待機ジョ
ブの欄にジョブデータが登録されていないと判定し、処
理を終了する。
Job execution management step 11 shown in FIG.
In FIG. 4, although there is an empty microbatch job from (3) of FIG. 9 (1101), there is no same waiting microbatch job as the empty job (1102), so this processing ends.
That is, referring to the “current status” column of the table in FIG. 9C, since job data is not registered in the current status column for JOB4 to JOB6, JOB4 to JOB6 are “empty microbatch jobs”. It can be determined, and then, in the “waiting job” column of the table of FIG.
Referring to the columns corresponding to B4 to JOB6, it is determined that the job data is not registered in the column of the waiting job, and the process ends.

【0091】次に、MBJ3がジョブデータJD1に対
するマイクロバッチジョブを終了したとする。図12に
示したジョブ起動管理ステップ113の1003におい
て、ジョブ実行状況管理テーブルの一例である図9
(4)の待機ジョブ列のJOB4の行にJD1が登録さ
れる。新規ジョブは生成されていないので、この時の実
行ジョブ情報管理テーブルの内容である図10(4)は
図10(3)と変わらない。
Next, it is assumed that MBJ3 finishes the microbatch job for the job data JD1. 9 is an example of the job execution status management table in 1003 of the job activation management step 113 shown in FIG.
JD1 is registered in the JOB4 row of the stand-by job sequence of (4). Since no new job has been generated, the contents of the execution job information management table at this time, FIG. 10 (4), are the same as those in FIG. 10 (3).

【0092】ジョブ実行管理部114は、ジョブ実行状
況管理テーブル図9(4)に基づき、空きジョブがあり
(1101)、空きジョブと同じ待機ジョブJOB4、
JOB1が選択可能であることを判定する(110
2)。ここで、ジョブ最終終了地点に最も近いジョブは
JOB4であるので、JOB4を選択する(110
3)。次に現実行ジョブはないので(1104)、11
06で空きジョブとして、ジョブ実行状況管理テーブル
の一例である図9(4)の行から、JOB1からJOB
6(1205から1209)までを選択する。
Based on the job execution status management table of FIG. 9 (4), the job execution management unit 114 has an empty job (1101), and the same waiting job JOB4 as the empty job,
It is determined that JOB1 is selectable (110
2). Here, since the job closest to the job final end point is JOB4, JOB4 is selected (110).
3). Next, since there is no currently executing job (1104), 11
As a free job at 06, from the row of FIG. 9 (4) which is an example of the job execution status management table, JOB1 to JOB
6 (1205 to 1209) is selected.

【0093】次に、1107において、図6に示すジョ
ブ経路管理テーブルより、JOB4が起点である実行ジ
ョブ群、MBJ7、MBJ8、MBJ9を選択する。J
OB4と、その一つ前であるJOB3に待機ジョブがな
いので(1108)、実行ジョブ数が最大であるMBJ
9選択する。ここで、ジョブ実行状況管理テーブルの実
行ジョブ列にMBJ9で実行するマイクロバッチジョ
ブ、JOB4、JOB5、JOB6の行にジョブデータ
番号を登録し、実行ジョブ群MBJ9を起動し、待機ジ
ョブ列からJD1を消去する(1111)。これによ
り、ジョブ実行状況管理テーブルの内容は図9(5)に
なる。
Next, at 1107, the execution job group starting from JOB4, MBJ7, MBJ8, and MBJ9, is selected from the job path management table shown in FIG. J
Since there is no waiting job in OB4 and JOB3, which is one before it, (1108), MBJ that has the largest number of executed jobs
9 Select. Here, the job data number is registered in the row of the microbatch job to be executed by MBJ9, JOB4, JOB5, and JOB6 in the execution job column of the job execution status management table, the execution job group MBJ9 is activated, and JD1 is set from the standby job column. It is erased (1111). As a result, the contents of the job execution status management table become as shown in FIG. 9 (5).

【0094】この際、実行対象のデータは、実行ジョブ
情報管理テーブル図10(4)のデータ場所よりDWH
にあることを判別後、MBJ9の反映先を図6に示すジ
ョブ経路管理テーブルの、ジョブ結果反映個所505よ
り取得し、更新する(1112)。この場合はDMを取
得しその結果をデータ場所に更新する。これにより、実
行ジョブ情報管理テーブルの結果は図10(5)にな
る。
At this time, the data to be executed is DWH from the data location in the execution job information management table of FIG. 10 (4).
After determining that there is the above, the reflection destination of MBJ9 is acquired from the job result reflection portion 505 of the job route management table shown in FIG. 6 and updated (1112). In this case, the DM is acquired and the result is updated in the data location. As a result, the result of the execution job information management table is shown in FIG.

【0095】ここで、ジョブ実行状況管理テーブルの一
例である図9(5)に基づき、まだシステム内に空きマ
イクロバッチジョブがあることを判定し、空きマイクロ
バッチジョブと同じ待機マイクロバッチジョブJOB1
が選択可能であることを判定する(1102)。
Here, based on FIG. 9 (5), which is an example of the job execution status management table, it is determined that there is still an empty microbatch job in the system, and the same standby microbatch job JOB1 as the empty microbatch job is found.
Is selectable (1102).

【0096】1104において、図4に示す同時実行ジ
ョブ管理テーブル106から、空きジョブJOB3と現
在実行しているJOB4は実行できないので、JOB3
を空きマイクロバッチジョブから外し、空きマイクロバ
ッチジョブとしてJOB1、JOB2が残る(110
4)。この空きマイクロバッチジョブ、及び待機マイク
ロバッチジョブがないことから、図6に示すジョブ経路
管理テーブルよりMBJ2を選択する(1106、11
07、1108、1109)。
At 1104, the vacant job JOB3 and the job JOB4 currently being executed cannot be executed from the simultaneous execution job management table 106 shown in FIG.
Is removed from the empty microbatch job, and JOB1 and JOB2 remain as empty microbatch jobs (110
4). Since there are no empty microbatch jobs and standby microbatch jobs, MBJ2 is selected from the job path management table shown in FIG. 6 (1106, 11).
07, 1108, 1109).

【0097】次にMBJ2を起動し、上記で説明した方
法と同様にジョブ実行状況管理テーブル、ジョブ情報管
理テーブル、を更新する(1111、1112)。この
結果が、図9(6)、図10(6)となる。この時、M
BJ2の反映先は、実行時バッファ110を使用する事
により、データウェアハウスサーバ209に負荷を与え
ずに、JD1、JD2に対する最大数のジョブが同時に
並列実行できる。
Next, the MBJ2 is started, and the job execution status management table and the job information management table are updated in the same manner as the method described above (1111, 1112). The results are shown in FIGS. 9 (6) and 10 (6). At this time, M
By using the runtime buffer 110, the reflection destination of BJ2 can simultaneously execute the maximum number of jobs for JD1 and JD2 in parallel without imposing a load on the data warehouse server 209.

【0098】次に、図14に示すジョブ実行状況管理テ
ーブル108の一例である図14(1)のJOB3、J
OB4のように待機ジョブが連続している場合の実行方
法を示す。
Next, as an example of the job execution status management table 108 shown in FIG. 14, JOB3 and J in FIG.
An execution method when a waiting job is continuous like OB4 is shown.

【0099】この場合、JOB4は、図6に示すジョブ
経路管理テーブルよりMBJ7、MBJ8、MBJ9が
実行可能であるが(1107)、実行対象マイクロバッ
チジョブのすぐ前のマイクロバッチジョブに待機マイク
ロバッチジョブが存在しているので(1109)、実行
ジョブ数が一番少ないMBJ7を選択し(1110)、
実行する。このように後続に待機マイクロバッチジョブ
がある場合に実行するマイクロバッチジョブを制限しな
がら進めることで、システム全体のマイクロバッチジョ
ブ実行の並列性を高める。
In this case, JOB4 can execute MBJ7, MBJ8, and MBJ9 from the job route management table shown in FIG. 6 (1107), but the micro batch job immediately before the micro batch job to be executed is the waiting micro batch job. Exists (1109), select the MBJ7 with the smallest number of executed jobs (1110),
Run. In this way, the parallelism of the execution of the microbatch job of the entire system is enhanced by advancing while limiting the microbatch job to be executed when there is a waiting microbatch job subsequently.

【0100】この時、待機ジョブJOB3に対しては、
図4に示す同時実行ジョブ管理テーブル106からJO
B4が起動されている場合に実行できない為(110
4)、次待機ジョブがあるか判定するが(1105)、
無い為終了する。この時の、ジョブ実行状況管理テーブ
ル108の一例を図14(2)に示す。
At this time, for the waiting job JOB3,
From the concurrent job management table 106 shown in FIG.
Because it cannot be executed when B4 is activated (110
4), it is determined whether there is a next waiting job (1105),
It ends because there is no. FIG. 14B shows an example of the job execution status management table 108 at this time.

【0101】尚、上述の実施例においては、ネットワー
クを介して接続された計算機間において実施するものを
示したが、ある1台の計算機内で実行するバッチジョブ
に対して、上述の実施例を適用しても良い。
In the above-mentioned embodiment, the embodiment is described between the computers connected via the network. However, the embodiment described above is applied to a batch job executed in a certain computer. You may apply.

【0102】以上に示したように、システム内のマイク
ロバッチジョブを進めることにより、マイクロバッチジ
ョブ実行の並列性を高めて、最終マイクロバッチジョブ
の到着間隔を短縮することが可能である。
As described above, by advancing the microbatch jobs in the system, it is possible to improve the parallelism of the microbatch job execution and shorten the arrival interval of the final microbatch jobs.

【0103】また、本実施例に示した、バッチジョブの
実行定義情報にもとづいて複数の計算機を実行させる制
御部(マイクロバッチジョブコントローラやマイクロバ
ッチジョブ生成部等の機能)を用いることで、バッチジ
ョブを複数のマイクロバッチジョブで定義したジョブ実
行条件から当該マイクロバッチジョブを示す識別子を記
憶部から読み出し、前記抽出したマイクロバッチジョブ
を示す識別子の組み合わせを複数生成し、記憶部から読
み出された同時実行ジョブ管理情報にもとづいて、生成
された前記識別子の組み合わせの中から、実行可能な組
み合わせを選択し、当該選択した組み合わせにもとづい
て、マイクロバッチジョブの実行を計算機に指示するこ
とにより、ある計算機でのジョブの実行又はネットワー
クで接続された複数の計算機間におけるジョブの実行を
スムーズに行うことができる。また、これにより、管理
者は、従来のバッチジョブよりもきめ細かくジョブの実
行状況や各ジョブで処理するデータの状況を把握するこ
とができる。
Further, by using the control section (functions such as a microbatch job controller and a microbatch job generation section) for executing a plurality of computers based on the execution definition information of the batch job shown in this embodiment, From the job execution conditions defined by a plurality of micro batch jobs, an identifier indicating the micro batch job is read from the storage unit, a plurality of combinations of the identifiers indicating the extracted micro batch jobs are generated, and read from the storage unit. By selecting an executable combination from the generated combinations of the identifiers based on the concurrently executed job management information and instructing the computer to execute the microbatch job based on the selected combination, Executing jobs on a computer or multiple computers connected via a network It is possible to perform the execution of the job smoothly between the computer. Further, this allows the administrator to grasp the execution status of the job and the status of the data processed by each job more finely than the conventional batch job.

【0104】また、本発明によれば、マイクロバッチジ
ョブ生成部が、ユーザが指定した条件に基づき、バッチ
ジョブをマイクロバッチジョブとして実行させ、マイク
ロバッチジョブコントローラが同時に複数のジョブを並
列実行可能にすることで、短時間でのジョブの多数実行
を可能になる。
Further, according to the present invention, the microbatch job generation unit causes the batch job to be executed as a microbatch job based on the condition designated by the user, and the microbatch job controller can execute a plurality of jobs simultaneously in parallel. By doing so, it becomes possible to execute many jobs in a short time.

【0105】これにより投入されたデータを、何段階か
加工して、情報系クライアントの分析業務等に使用する
ようなデータウェアハウスシステム等では、より鮮度の
高いデータを使用可能になる。
Thus, in a data warehouse system or the like in which the input data is processed in several steps and used for analysis work of the information system client, the data with higher freshness can be used.

【0106】又、実行時バッファを設ける事により、多
数のマイクロバッチジョブを同時実行する際のシステム
に与える負荷を減らしてジョブ実行が可能になる。
Further, by providing the run-time buffer, it is possible to reduce the load on the system when a large number of microbatch jobs are simultaneously executed and execute the jobs.

【0107】更に、マイクロバッチジョブコントローラ
が、マイクロバッチジョブが対象としているデータの最
終更新時間を情報系クライアント等のユーザーアプリケ
ーションに通知する事で、ユーザは、現在使用している
データがいつのものであるか判定可能になる。
Further, the microbatch job controller notifies the user application such as the information system client of the last update time of the data targeted by the microbatch job, so that the user can determine the current data being used. It becomes possible to judge whether there is any.

【0108】[0108]

【発明の効果】本発明によれば、マイクロバッチジョブ
生成部が指定された条件にもとづいて、ジョブを複数の
マイクロバッチジョブとして実行し、マイクロバッチジ
ョブコントローラが同時に複数のマイクロバッチジョブ
を並列実行可能にすることで、短時間でのジョブの多数
実行を可能になる。
According to the present invention, the microbatch job generation unit executes a job as a plurality of microbatch jobs based on the specified conditions, and the microbatch job controller simultaneously executes a plurality of microbatch jobs in parallel. By enabling it, it becomes possible to execute many jobs in a short time.

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

【図1】本発明の実施の形態の例を示した図である。FIG. 1 is a diagram showing an example of an embodiment of the present invention.

【図2】本発明を実施するシステムの構成例である。FIG. 2 is a configuration example of a system that implements the present invention.

【図3】ジョブ実行条件の一例を示した図である。FIG. 3 is a diagram showing an example of job execution conditions.

【図4】同時実行ジョブ管理テーブルの例である。FIG. 4 is an example of a concurrent execution job management table.

【図5】ジョブ起動条件テーブルの例である。FIG. 5 is an example of a job activation condition table.

【図6】ジョブ経路管理テーブルの例である。FIG. 6 is an example of a job route management table.

【図7】マイクロバッチ生成部の処理フローの例であ
る。
FIG. 7 is an example of a processing flow of a microbatch generation unit.

【図8】ジョブ経路管理テーブルの例である。FIG. 8 is an example of a job route management table.

【図9】ジョブ実行状況管理テーブルのマイクロバッチ
ジョブ実行時のテーブル内容の遷移の例である。
FIG. 9 is an example of transition of table contents when executing a microbatch job of the job execution status management table.

【図10】実行ジョブ情報管理テーブルのマイクロバッチ
ジョブ実行時のテーブル内容の遷移の例である。
FIG. 10 is an example of transition of table contents when executing a microbatch job of the execution job information management table.

【図11】新規ジョブ生成ステップの処理フローの例であ
る。
FIG. 11 is an example of a processing flow of a new job generation step.

【図12】ジョブ起動管理ステップの処理フローの例であ
る。
FIG. 12 is an example of a processing flow of a job activation management step.

【図13】ジョブ実行管理ステップの処理フローの例であ
る。
FIG. 13 is an example of a processing flow of a job execution management step.

【図14】ジョブ実行状況管理テーブルのマイクロバッチ
ジョブ実行時のテーブル内容の遷移の例である。
FIG. 14 is an example of transition of table contents when executing a microbatch job of the job execution status management table.

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

101…マイクロバッチジョブコントローラ 102…マイクロバッチジョブ生成部 103…マイクロバッチジョブ 104…バッチジョブ入力部 105…ジョブ経路管理テーブル 106…同時実行ジョブ管理テーブル 107…ジョブ起動条件テーブル 108…ジョブ実行状況管理テーブル 109…実行ジョブ情報管理テーブル 110…ジョブ実行時バッファ 111…ジョブ実行条件テーブル 112…新規ジョブ生成部 113…ジョブ起動管理部 114…ジョブ実行管理部 101 ... Micro batch job controller 102 ... Micro batch job generation unit 103 ... Micro batch job 104 ... Batch job input section 105 ... Job route management table 106 ... Concurrent job management table 107 ... Job start condition table 108 ... Job execution status management table 109 ... Execution job information management table 110 ... Job execution buffer 111 ... Job execution condition table 112 ... New job generation unit 113 ... Job start management unit 114 ... Job execution management unit

───────────────────────────────────────────────────── フロントページの続き (72)発明者 矢川 雄一 神奈川県川崎市麻生区王禅寺1099番地 株 式会社日立製作所システム開発研究所内 (72)発明者 難波 康晴 神奈川県川崎市麻生区王禅寺1099番地 株 式会社日立製作所システム開発研究所内 (72)発明者 南 章一 神奈川県川崎市幸区鹿島田890番地 株式 会社日立製作所金融システム事業部内 Fターム(参考) 5B085 BA01 5B098 AA10 GA03 GC09 GD02 GD14   ─────────────────────────────────────────────────── ─── Continued front page    (72) Inventor Yuichi Yagawa             1099 Ozenji, Aso-ku, Kawasaki City, Kanagawa Prefecture             Ceremony company Hitachi Systems Development Laboratory (72) Inventor Yasuharu Namba             1099 Ozenji, Aso-ku, Kawasaki City, Kanagawa Prefecture             Ceremony company Hitachi Systems Development Laboratory (72) Inventor Shoichi Minami             890 Kashimada, Sachi-ku, Kawasaki City, Kanagawa Stock             Hitachi, Ltd. Financial Systems Division F-term (reference) 5B085 BA01                 5B098 AA10 GA03 GC09 GD02 GD14

Claims (12)

【特許請求の範囲】[Claims] 【請求項1】バッチジョブの実行定義情報にもとづいて
複数の計算機を実行させる制御部におけるバッチジョブ
の実行方法であって、 前記制御部は、バッチジョブを複数のマイクロバッチジ
ョブで定義したジョブ実行条件から当該マイクロバッチ
ジョブを示す識別子を記憶部から読み出し、 前記抽出したマイクロバッチジョブを示す識別子の組み
合わせを複数生成し、 記憶部から読み出された同時実行ジョブ管理情報にもと
づいて、生成された前記識別子の組み合わせの中から、
実行可能な組み合わせを選択し、 当該選択した組み合わせにもとづいて、マイクロバッチ
ジョブの実行を計算機に指示することを特徴とするバッ
チジョブの実行方法。
1. A method of executing a batch job in a control unit for executing a plurality of computers based on execution definition information of the batch job, wherein the control unit executes the job by defining the batch job by a plurality of micro batch jobs. The identifier indicating the microbatch job is read from the storage unit from the condition, a plurality of combinations of the identifiers indicating the extracted microbatch jobs are generated, and the combination is generated based on the concurrent job management information read from the storage unit From the combination of the identifiers,
A method for executing a batch job, which comprises selecting an executable combination and instructing a computer to execute a microbatch job based on the selected combination.
【請求項2】前記ジョブ実行条件は、マイクロバッチジ
ョブを示す識別子と、マイクロバッチジョブを実行する
プログラムを示す情報又はマイクロバッチジョブを実行
する計算機を示す情報と、マイクロバッチジョブの実行
結果を格納する格納部を示す情報又はマイクロバッチジ
ョブの実行結果を用いるマイクロバッチジョブを示す識
別子とを対応づけた情報を含むことを特徴とする請求項
1記載のバッチジョブの実行方法。
2. The job execution condition stores an identifier indicating a microbatch job, information indicating a program for executing the microbatch job or information indicating a computer for executing the microbatch job, and an execution result of the microbatch job. 2. The method for executing a batch job according to claim 1, further comprising information in which the information indicating the storage unit to be stored or the identifier indicating the microbatch job using the execution result of the microbatch job is associated.
【請求項3】前記ジョブ起動条件は、少なくとも、ジョ
ブ起動条件の種別、ジョブ発生件数、ジョブ開始時刻、
ジョブ終了時刻のいずれかを含むことを特徴とする請求
項1記載のバッチジョブの実行方法。
3. The job activation condition includes at least the type of job activation condition, the number of job occurrences, the job start time,
2. The batch job execution method according to claim 1, further comprising any one of job end times.
【請求項4】前記同時実行ジョブ管理情報は、あるマイ
クロバッチジョブと同時に実行できないマイクロバッチ
ジョブを指定する情報を含むことを特徴とする請求項1
記載のバッチジョブの実行方法。
4. The concurrent job management information includes information designating a microbatch job that cannot be executed concurrently with a certain microbatch job.
How to execute the described batch job.
【請求項5】記録部を有する計算機におけるバッチジョ
ブの実行システムであって、前記計算機は、前記記録部
に格納された、あるバッチジョブを複数のマイクロバッ
チジョブとして指定するジョブ実行条件を読み出し、前
記読み出したジョブ実行条件に含まれるマイクロバッチ
ジョブを示す識別子を抽出し、前記抽出したマイクロバ
ッチジョブを示す識別子の組み合わせを作成し、前記記
録部に格納された同時実行ジョブ管理情報を読み出し、
前記読み出した同時実行ジョブ管理情報にもとづいて、
前記作成したマイクロバッチジョブを示す識別子の組み
合わせから、マイクロバッチジョブを示す識別子の組み
合わせを選択し、前記記録部に格納されたジョブ起動条
件を読み出し、前記選択したマイクロバッチジョブを示
す識別子の組み合わせと前記読み出したジョブ起動条件
とにもとづいて、マイクロバッチジョブを実行させる指
示を送信する処理部を有することを特徴とするバッチジ
ョブの実行システム。
5. A batch job execution system in a computer having a recording unit, wherein the computer reads out job execution conditions stored in the recording unit and designating a certain batch job as a plurality of microbatch jobs, An identifier indicating a microbatch job included in the read job execution condition is extracted, a combination of identifiers indicating the extracted microbatch job is created, and the concurrent execution job management information stored in the recording unit is read,
Based on the read concurrent execution job management information,
From the combination of identifiers indicating the created microbatch job, a combination of identifiers indicating a microbatch job is selected, the job starting condition stored in the recording unit is read, and a combination of identifiers indicating the selected microbatch job is selected. A batch job execution system comprising: a processing unit that transmits an instruction to execute a microbatch job based on the read job activation condition.
【請求項6】前記ジョブ実行条件は、マイクロバッチジ
ョブを示す識別子と、マイクロバッチジョブを実行する
プログラムを示す情報又はマイクロバッチジョブを実行
する計算機を示す情報と、マイクロバッチジョブの実行
結果を格納する格納部を示す情報又はマイクロバッチジ
ョブの実行結果を用いるマイクロバッチジョブを示す識
別子とを対応づけた情報を含むことを特徴とする請求項
5記載のバッチジョブの実行システム。
6. The job execution condition stores an identifier indicating a microbatch job, information indicating a program for executing the microbatch job or information indicating a computer for executing the microbatch job, and an execution result of the microbatch job. 6. The batch job execution system according to claim 5, wherein the batch job execution system includes information associating information indicating a storage unit or an identifier indicating a microbatch job that uses the execution result of the microbatch job.
【請求項7】前記ジョブ起動条件は、少なくとも、ジョ
ブ起動条件の種別、ジョブ発生件数、ジョブ開始時刻、
ジョブ終了時刻のいずれかを含むことを特徴とする請求
項5記載のバッチジョブの実行システム。
7. The job start condition includes at least the type of job start condition, the number of job occurrences, the job start time,
6. The batch job execution system according to claim 5, including any one of job end times.
【請求項8】前記同時実行ジョブ管理情報は、あるマイ
クロバッチジョブと同時に実行できないマイクロバッチ
ジョブを指定する情報を含むことを特徴とする請求項5
記載のバッチジョブの実行システム。
8. The concurrent job management information includes information designating a microbatch job that cannot be executed concurrently with a certain microbatch job.
Execution system of the described batch job.
【請求項9】前記選択したマイクロバッチジョブを示す
識別子の組み合わせと前記読み出したジョブ起動条件と
にもとづいて、マイクロバッチジョブを実行した場合
に、前記実行したマイクロバッチジョブの実行状況情報
を取得し、前記実行状況情報に基づいて、前記マイクロ
バッチジョブのスケジューリングを行なうことを特徴と
する請求項5記載のバッチジョブの実行システム。
9. When a microbatch job is executed based on a combination of identifiers indicating the selected microbatch job and the read job starting condition, execution status information of the executed microbatch job is acquired. 6. The batch job execution system according to claim 5, wherein the micro batch job is scheduled based on the execution status information.
【請求項10】前記選択したマイクロバッチジョブを示
す識別子の組み合わせと前記読み出したジョブ起動条件
とにもとづいて、マイクロバッチジョブを実行した場合
に、前記実行したマイクロバッチジョブが処理対象とす
るデータの更新時間情報を取得し、前記取得したデータ
の更新時間情報を通知することを特徴とする請求項5記
載のバッチジョブの実行システム。
10. When a microbatch job is executed based on a combination of identifiers indicating the selected microbatch job and the read job activation condition, the data to be processed by the executed microbatch job is stored. 6. The batch job execution system according to claim 5, wherein update time information is acquired and update time information of the acquired data is notified.
【請求項11】記録部を有する計算機におけるバッチジ
ョブの実行プログラムであって、前記プログラムは、前
記記録部に格納された、あるバッチジョブを複数のマイ
クロバッチジョブとして指定するジョブ実行条件を読み
出し、前記読み出したジョブ実行条件に含まれるマイク
ロバッチジョブを示す識別子を抽出し、前記抽出したマ
イクロバッチジョブを示す識別子の組み合わせを作成
し、前記記録部に格納された同時実行ジョブ管理情報を
読み出し、前記読み出した同時実行ジョブ管理情報にも
とづいて、前記作成したマイクロバッチジョブを示す識
別子の組み合わせから、マイクロバッチジョブを示す識
別子の組み合わせを選択し、前記選択したマイクロバッ
チジョブを示す識別子の組み合わせにもとづいて、マイ
クロバッチジョブを実行させることを特徴とするバッチ
ジョブの実行プログラム。
11. A program for executing a batch job in a computer having a recording unit, wherein the program reads job execution conditions stored in the recording unit, which specify a certain batch job as a plurality of microbatch jobs, An identifier indicating a microbatch job included in the read job execution condition is extracted, a combination of the identifiers indicating the extracted microbatch jobs is created, the concurrent execution job management information stored in the recording unit is read, and Based on the read concurrent execution job management information, a combination of identifiers indicating the micro batch job is selected from the combination of identifiers indicating the created micro batch job, and based on the combination of identifiers indicating the selected micro batch job. , Micro batch jobs Batch job execution program for causing the row.
【請求項12】記録部を有する計算機におけるバッチジ
ョブの実行プログラムであって、前記プログラムは、前
記記録部に格納された、あるバッチジョブを複数のマイ
クロバッチジョブとして指定するジョブ実行条件を読み
出し、前記読み出したジョブ実行条件に含まれるマイク
ロバッチジョブを示す識別子を抽出し、前記抽出したマ
イクロバッチジョブを示す識別子の組み合わせを作成
し、前記記録部に格納された同時実行ジョブ管理情報を
読み出し、前記読み出した同時実行ジョブ管理情報に含
まれる同時に実行しないマイクロバッチジョブを指定す
る情報にもとづいて、前記作成したマイクロバッチジョ
ブを示す識別子の組み合わせから、マイクロバッチジョ
ブを示す識別子の組み合わせを選択し、前記選択したマ
イクロバッチジョブを示す識別子の組み合わせにもとづ
いて、マイクロバッチジョブを実行させ、前記実行させ
たマイクロバッチジョブが処理したデータの識別子と前
記データの更新時間と前記データの格納場所を示す情報
とを対応づけた情報を取得し、前記取得した情報を通知
することを特徴とするバッチジョブの実行プログラム。
12. A program for executing a batch job in a computer having a recording unit, wherein the program reads job execution conditions stored in the recording unit and designating a certain batch job as a plurality of microbatch jobs, An identifier indicating a microbatch job included in the read job execution condition is extracted, a combination of the identifiers indicating the extracted microbatch jobs is created, the concurrent execution job management information stored in the recording unit is read, and Based on the information that specifies the microbatch jobs that are not executed at the same time and that is included in the read concurrent execution job management information, the combination of the identifiers indicating the microbatch jobs is selected from the combination of the identifiers indicating the created microbatch jobs, and Selected microbatch job A microbatch job is executed based on the combination of the identifiers shown, and information that associates the identifier of the data processed by the executed microbatch job with the update time of the data and the information indicating the storage location of the data is stored. An execution program for a batch job, which acquires and notifies the acquired information.
JP2002004047A 2002-01-11 2002-01-11 Method, system and program for executing batch job Pending JP2003208323A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002004047A JP2003208323A (en) 2002-01-11 2002-01-11 Method, system and program for executing batch job

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002004047A JP2003208323A (en) 2002-01-11 2002-01-11 Method, system and program for executing batch job

Publications (1)

Publication Number Publication Date
JP2003208323A true JP2003208323A (en) 2003-07-25

Family

ID=27643481

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002004047A Pending JP2003208323A (en) 2002-01-11 2002-01-11 Method, system and program for executing batch job

Country Status (1)

Country Link
JP (1) JP2003208323A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007133578A (en) * 2005-11-09 2007-05-31 Hitachi Software Eng Co Ltd Data processing system and data transmission system
WO2013066010A1 (en) * 2011-10-31 2013-05-10 에스케이씨앤씨 주식회사 Method for pre-loading in memory and method for parallel processing for high-volume batch processing
US8613001B2 (en) 2006-07-12 2013-12-17 Samsung Electronics Co., Ltd. Host device having merged plug-in function and method of generating merged plug-in
JP2019035996A (en) * 2017-08-10 2019-03-07 株式会社日立製作所 Distributed processing system, distributed processing method and distributed processing program
JP2019535056A (en) * 2016-09-15 2019-12-05 オラクル・インターナショナル・コーポレイション Complex event processing for microbatch streaming
US11394769B2 (en) 2017-03-17 2022-07-19 Oracle International Corporation Framework for the deployment of event-based applications
US11503107B2 (en) 2017-03-17 2022-11-15 Oracle International Corporation Integrating logic in micro batch based event processing systems
US11573965B2 (en) 2016-09-15 2023-02-07 Oracle International Corporation Data partitioning and parallelism in a distributed event processing system

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007133578A (en) * 2005-11-09 2007-05-31 Hitachi Software Eng Co Ltd Data processing system and data transmission system
JP4537307B2 (en) * 2005-11-09 2010-09-01 日立ソフトウエアエンジニアリング株式会社 Data transfer system
US8613001B2 (en) 2006-07-12 2013-12-17 Samsung Electronics Co., Ltd. Host device having merged plug-in function and method of generating merged plug-in
WO2013066010A1 (en) * 2011-10-31 2013-05-10 에스케이씨앤씨 주식회사 Method for pre-loading in memory and method for parallel processing for high-volume batch processing
JP2019535056A (en) * 2016-09-15 2019-12-05 オラクル・インターナショナル・コーポレイション Complex event processing for microbatch streaming
JP7005600B2 (en) 2016-09-15 2022-01-21 オラクル・インターナショナル・コーポレイション Complex event processing for microbatch streaming
US11573965B2 (en) 2016-09-15 2023-02-07 Oracle International Corporation Data partitioning and parallelism in a distributed event processing system
US11615088B2 (en) 2016-09-15 2023-03-28 Oracle International Corporation Complex event processing for micro-batch streaming
US11657056B2 (en) 2016-09-15 2023-05-23 Oracle International Corporation Data serialization in a distributed event processing system
US11394769B2 (en) 2017-03-17 2022-07-19 Oracle International Corporation Framework for the deployment of event-based applications
US11503107B2 (en) 2017-03-17 2022-11-15 Oracle International Corporation Integrating logic in micro batch based event processing systems
JP2019035996A (en) * 2017-08-10 2019-03-07 株式会社日立製作所 Distributed processing system, distributed processing method and distributed processing program

Similar Documents

Publication Publication Date Title
US10101991B2 (en) Managing a software-patch submission queue
US7827167B2 (en) Database management system and method including a query executor for generating multiple tasks
JP6223569B2 (en) Computer apparatus, method and apparatus for scheduling business flows
JP3636744B2 (en) Distributed system and method for creating automatic operation schedule of distributed system
JP2005115514A (en) Database search system, its search method, and program
JPH08287162A (en) Work flow system
JP2004192047A (en) Message processing device, message processing method, and message processing program
JP2003208323A (en) Method, system and program for executing batch job
JP5614318B2 (en) Scheduling program, method and apparatus
US6178464B1 (en) System and method for canceling a computer request
JP2007179100A (en) Job queue system and job management method, control program, and computer-readable recording medium
EP2256630B1 (en) Method and system to perform time consuming follow-up process
JP2004302630A (en) Message processing method, execution device therefor and processing program therefor
O'Mullane et al. Batch query system with interactive local storage for SDSS and the VO
JPH0855162A (en) Information processing system
JP2005107632A (en) Eai server, and program for eai server
JP5674850B2 (en) Database management system and method
JP2002157386A (en) Workflow management method, its device, its processing program and recording medium with its processing program stored
JP5283675B2 (en) Database management system and method
JP2003030389A (en) Workflow managing method, and its execution system and processing program
JPH05216844A (en) Method and apparatus for improved task distribution in multiprocessor data processing system
JP2010128823A (en) Job management system
JP2000259741A (en) Parallel seat reservation system
JP2847990B2 (en) Business process execution control system
JP3931883B2 (en) Job scheduling method, computer system, and job scheduling program