JP2003263353A - Fault occurrence cause analytical device, fault occurrence cause analytical method, and fault occurrence cause analytical program - Google Patents

Fault occurrence cause analytical device, fault occurrence cause analytical method, and fault occurrence cause analytical program

Info

Publication number
JP2003263353A
JP2003263353A JP2002064167A JP2002064167A JP2003263353A JP 2003263353 A JP2003263353 A JP 2003263353A JP 2002064167 A JP2002064167 A JP 2002064167A JP 2002064167 A JP2002064167 A JP 2002064167A JP 2003263353 A JP2003263353 A JP 2003263353A
Authority
JP
Japan
Prior art keywords
log
record
failure
access log
file
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
JP2002064167A
Other languages
Japanese (ja)
Inventor
Kenji Yoshida
顕治 吉田
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 Information Systems Ltd
Original Assignee
Hitachi Information Systems 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 Information Systems Ltd filed Critical Hitachi Information Systems Ltd
Priority to JP2002064167A priority Critical patent/JP2003263353A/en
Publication of JP2003263353A publication Critical patent/JP2003263353A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Debugging And Monitoring (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a fault occurrence cause analytical device, an analytical method and an analytical program capable of analyzing efficiently the fault occurrence cause. <P>SOLUTION: A processing device 11 has an access log recording part 11a for recording the content of an SQL sentence transmitted to a database management system program in an access log file 14 together with transmission source client information at the start time and the normal finish time of processing by the transmitted SQL sentence, an access log retrieval processing part 11b for retrieving and acquiring a log record having a strong possibility of a fault occurrence cause from the access log file 14, and a fault log record recording part 11c for recording the retrieved log record in a fault log record file 15. <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 an apparatus for analyzing a cause of a failure, which identifies a process related to the failure by analyzing an access log from a client to the database when a failure occurs in the database. , Analysis method and analysis program.

【0002】[0002]

【従来の技術】従来では、データベースに発生した障害
の原因を調査する場合、データベース管理システムの持
つ標準のログファイル及びオペレーティングシステム
(以下、OSという)の持つログファイルについての調
査がまず最初に行われ、ここで得られた調査結果を分析
することによって、データベース上で起こっている障害
の内容を把握していた。また、障害の発生原因を分析す
るための従来技術には、データベース管理システム上で
処理されていた機能のSQL文が原因となって障害が発
生した場合に、その処理されていた機能のSQL文をロ
グ上に出力する機能を有するものもあり、従来において
もデータベース管理システムの標準ログファイル及びO
Sのログファイルにより障害の発生原因を分析すること
は可能であった。
2. Description of the Related Art Conventionally, when investigating the cause of a failure occurring in a database, a standard log file of a database management system and a log file of an operating system (hereinafter referred to as OS) are first investigated. By analyzing the survey results obtained here, I was able to understand the nature of the failure occurring in the database. Further, in the conventional technique for analyzing the cause of the failure, when the failure occurs due to the SQL statement of the function processed in the database management system, the SQL statement of the function being processed is generated. Some have the function to output to the log. Conventionally, the standard log file of the database management system and O
It was possible to analyze the cause of failure by using the S log file.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、データ
ベース管理システムのハングアップ等によりデータベー
ス管理システムがログに記録できない状態になってしま
った場合には、上記のような従来技術では、その障害の
発生原因となった処理をログファイルより特定すること
が非常に困難であった。
However, when the database management system is in a state in which it cannot be recorded in the log due to a hang-up of the database management system, etc. It was very difficult to identify the process that became the above from the log file.

【0004】そこで本発明の目的は、データベース管理
システムで障害が発生した際、特に障害の発生に関連し
た情報をログファイル上に出力できない状態になった場
合においても、その障害発生時に処理中であった機能の
SQL文を特定し、その結果に基づいて障害発生の原因
を効率良く分析可能な障害発生原因分析装置,分析方法
及び分析プログラムを提供することにある。
Therefore, an object of the present invention is to perform processing when a failure occurs in the database management system, especially when the information related to the failure cannot be output to the log file. An object of the present invention is to provide a failure occurrence cause analysis apparatus, an analysis method, and an analysis program capable of identifying a SQL statement having a certain function and efficiently analyzing the cause of the failure occurrence based on the result.

【0005】[0005]

【課題を解決するための手段】前記目的を達成するため
に、本発明の障害発生原因分析装置は、処理装置と、デ
ータベース管理システムプログラムを格納するプログラ
ム格納部と、前記データベース管理システムプログラム
により管理されるデータベースと、前記処理装置により
ログ管理が行われるアクセスログファイルと、障害発生
原因である可能性の高いログレコードを格納するための
障害ログレコードファイルとを備え、前記処理装置が、
データベース管理システムプログラムに対して送信され
たSQL文の内容を、前記送信されたSQL文による処
理の開始時及び正常終了時に送信元クライアント情報と
共に前記アクセスログファイルに記録するアクセスログ
記録部と、前記アクセスログファイルから障害発生原因
である可能性の高いログレコードを検索,取得するアク
セスログ検索処理部と、検索されたログレコードを前記
障害ログレコードファイルに記録する障害ログレコード
記録部とを有している。
In order to achieve the above-mentioned object, a failure occurrence cause analysis apparatus of the present invention includes a processing device, a program storage section for storing a database management system program, and management by the database management system program. A database, an access log file for which log management is performed by the processing device, and a failure log record file for storing a log record that is likely to be the cause of failure, and the processing device
An access log recording unit for recording the content of the SQL statement transmitted to the database management system program in the access log file together with the sender client information at the start and normal end of the processing by the transmitted SQL statement; The access log file includes an access log search processing unit that searches and acquires a log record having a high possibility of causing a failure, and a failure log record recording unit that records the searched log record in the failure log record file. ing.

【0006】また、本発明の障害発生原因分析装置にお
ける前記アクセスログ検索処理部は、アクセスログファ
イル内からアクセスログの「状態」項目に“開始”と記
録されているレコードを検索した後、このレコードの
「開始時刻」,「クライアントプロセスID」及び「S
QL文」項目に記録される内容と同じ内容が記録され且
つ「状態」項目に“終了”と記録されていないレコード
を、アクセスログファイル内から検索して当該レコード
を障害発生原因である可能性の高いログレコードとして
取得するものである。
In addition, the access log search processing unit in the failure cause analysis apparatus of the present invention searches for a record in which "start" is recorded in the "state" item of the access log from the access log file, and then, “Start time”, “Client process ID” and “S” in the record
It is possible that the record that has the same content as that recorded in the "QL sentence" item and that is not recorded as "End" in the "Status" item is searched for in the access log file and that the record is the cause of failure. Is obtained as a high log record.

【0007】また、本発明の障害発生原因分析方法は、
アクセスログファイル内からアクセスログの「状態」項
目に“開始”と記録されているレコードを検索し、該当
レコードを取得する第一工程と、第一工程にて取得した
レコードの「開始時刻」,「クライアントプロセスI
D」及び「SQL文」項目に記録される内容と同じ内容
が記録され且つ「状態」項目に“終了”と記録されてい
ないレコードを、アクセスログファイル内から検索して
当該レコードを障害発生原因である可能性の高いログレ
コードとして取得する第二工程と、第二工程にて取得し
たログレコードを障害ログレコードファイルに格納する
第三工程と、を有している。
The method of analyzing the cause of failure according to the present invention is
From the access log file, search for the record in which "Start" is recorded in the "Status" item of the access log and retrieve the corresponding record, and the "start time" of the record obtained in the first process, "Client process I
Search the records in the access log file for the records that have the same contents as those recorded in the "D" and "SQL sentence" items and do not record "End" in the "Status" item, and find the cause of the failure. And a third step of storing the log record acquired in the second step in the failure log record file.

【0008】また、本発明の障害発生原因分析プログラ
ムは、送信されたSQL文による処理の開始時及び正常
終了時に、そのSQL文の内容を、送信元クライアント
情報と共にアクセスログファイルに記録するアクセスロ
グ記録機能と、アクセスログファイルから障害発生原因
である可能性の高いログレコードを検索,取得するアク
セスログ検索処理機能と、検索されたログレコードを障
害ログレコードファイルに記録する障害ログレコード記
録機能とをコンピュータに実現させるものである。
Also, the failure cause analysis program of the present invention records the contents of the SQL statement in the access log file together with the sender client information at the start and normal end of the processing by the sent SQL statement. A recording function, an access log search processing function that searches and acquires a log record that has a high possibility of causing a failure from the access log file, and a failure log record recording function that records the searched log record in the failure log record file. Is realized by a computer.

【0009】[0009]

【発明の実施の形態】以下、本発明の一実施形態におけ
る障害発生原因の分析装置について、図1を参照して説
明する。図1は、本発明の一実施形態におけるサーバと
しての障害発生原因分析装置の構成を示すブロック図で
ある。
BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, an apparatus for analyzing a cause of failure in one embodiment of the present invention will be described with reference to FIG. FIG. 1 is a block diagram showing the configuration of a failure occurrence cause analysis device as a server according to an embodiment of the present invention.

【0010】<障害発生原因分析装置の構成>図1にお
いて、サーバコンピュータ(障害発生原因分析装置)1
0とクライアントコンピュータ20,21とはインター
ネット等のネットワーク30を介して接続されている。
前記サーバコンピュータ10には、各種処理動作を行う
処理装置11と、データベース管理システムプログラム
を格納するプログラム格納部12と、前記データベース
管理システムプログラムにより管理されるデータベース
13と、前記処理装置11によりログ管理が行われるア
クセスログファイル14と、後述の如く障害発生原因で
ある可能性の高いログレコードを格納するための障害ロ
グレコードファイル15と、が備えられている。尚、本
実施形態では二台のクライアントコンピュータ20,2
1が接続されているが、この台数は二台に限定されるも
のではない。
<Configuration of Failure Cause Analysis Device> In FIG. 1, a server computer (failure cause analysis device) 1
0 and the client computers 20 and 21 are connected via a network 30 such as the Internet.
The server computer 10 includes a processing device 11 that performs various processing operations, a program storage unit 12 that stores a database management system program, a database 13 that is managed by the database management system program, and log management by the processing device 11. The access log file 14 for performing the above is provided, and the failure log record file 15 for storing the log record which is highly likely to be the cause of the failure as described later. In this embodiment, the two client computers 20, 2
Although one is connected, this number is not limited to two.

【0011】また前記処理装置11には、クライアント
コンピュータ20,21からデータベース管理システム
プログラムに対して送信されたSQL文の内容を、前記
送信されたSQL文による処理の開始時及び正常終了時
に送信元のクライアントプロセスID等の送信元クライ
アント情報と共にアクセスログファイル14に記録する
アクセスログ記録部11aと、アクセスログファイル1
4から障害発生原因である可能性の高いログレコードを
検索,取得するアクセスログ検索処理部11bと、検索
されたログレコードを障害ログレコードファイル15に
記録する障害ログレコード記録部11cと、が備えられ
ている。
In the processing device 11, the contents of the SQL statement transmitted from the client computers 20 and 21 to the database management system program are transmitted to the processing source 11 at the start and the normal end of the processing by the transmitted SQL statement. Access log recording unit 11a for recording in the access log file 14 together with the transmission source client information such as the client process ID, and the access log file 1
4, an access log search processing unit 11b that searches for and acquires a log record that has a high possibility of causing a failure, and a failure log record recording unit 11c that records the searched log record in the failure log record file 15. Has been.

【0012】<アクセスログの記録フォーマット>ま
た、上記構成を有する本実施形態のサーバコンピュータ
10において、前記アクセスログファイル14に記録さ
れるアクセスログの記録フォーマットを図2を参照して
説明する。図2はアクセスログファイル14に格納され
るアクセスログの記録フォーマットの一例を示す図であ
る。
<Access Log Recording Format> The recording format of the access log recorded in the access log file 14 in the server computer 10 of the present embodiment having the above configuration will be described with reference to FIG. FIG. 2 is a diagram showing an example of a recording format of an access log stored in the access log file 14.

【0013】図2に示すアクセスログの記録フォーマッ
トは、「状態」,「開始時刻」,「終了時刻」,「クラ
イアントプロセスID」,「SQL文」の各項目を有し
ている。以下、各項目について説明する。「状態」項目
は、該当するログレコードがSQL文の機能の実行前の
ものか、あるいは実行後のものかを示す項目であり、こ
の項目には、実行前であれば“開始”,実行後であれば
“終了”が記録される。また、「開始時刻」項目には該
当するSQL文の処理を開始した(SQL文を受け取っ
た)時刻が記録され、「終了時刻」項目にはSQL文の
処理を正常に終了した時刻が記録される。更に、「クラ
イアントプロセスID」項目には、該当するSQL文の
処理を実行するクライアントプロセスに付与されたプロ
セスIDが記録され、「SQL文」項目にはSQL文の
内容が記録される。
The recording format of the access log shown in FIG. 2 has items of "state", "start time", "end time", "client process ID", and "SQL sentence". Each item will be described below. The "state" item is an item indicating whether the corresponding log record is before or after the execution of the SQL statement function. This item includes "start" and "after" if the function is before execution. If so, “end” is recorded. In addition, the time when the processing of the corresponding SQL statement is started (the SQL statement is received) is recorded in the “start time” item, and the time when the processing of the SQL statement is normally ended is recorded in the “end time” item. It Further, the “client process ID” item records the process ID given to the client process that executes the process of the corresponding SQL statement, and the “SQL statement” item records the content of the SQL statement.

【0014】<通常時の処理動作>上記のような構成の
障害発生原因分析装置をサーバコンピュータ10とした
クライアントサーバシステムにおいて、通常時の障害発
生原因分析装置10による処理動作は、以下のように行
われている。
<Processing Operation in Normal Time> In the client-server system in which the failure cause analysis device having the above-described configuration is used as the server computer 10, the processing operation by the failure cause analysis device 10 in normal time is as follows. Has been done.

【0015】通常時のサーバコンピュータ10では、ク
ライアントコンピュータ20,21からSQL文が送信
されると、その送信されたSQL文による処理の開始時
及び正常終了時に、送信元のクライアントプロセスID
等の送信元クライアント情報と共にそのSQL文の内容
を、処理装置11内のアクセスログ記録部11aが随時
アクセスログファイル14に記録している。
When the SQL statement is transmitted from the client computers 20 and 21 to the server computer 10 in the normal state, the client process ID of the transmission source at the start and the normal end of the processing by the transmitted SQL statement.
The access log recording unit 11a in the processing device 11 records the contents of the SQL sentence together with the transmission source client information such as “4.

【0016】<障害発生時における本装置による処理動
作>次に、データベース管理システムで障害が発生した
際における本実施形態の障害発生原因分析装置10によ
る処理動作について、図3を参照して説明する。図3
は、図2のような構成のアクセスログを解析する手順を
示したフローチャートである。
<Processing Operation by the Present Device When a Failure Occurs> Next, the processing operation by the failure occurrence cause analysis apparatus 10 of the present embodiment when a failure occurs in the database management system will be described with reference to FIG. . Figure 3
3 is a flowchart showing a procedure for analyzing an access log having the configuration shown in FIG.

【0017】まず処理装置内のアクセスログ検索処理部
11bが、アクセスログファイル14内からアクセスロ
グの「状態」項目に“開始”と記録されているレコード
を検索する(ステップ101)。この検索の結果、該当
するレコードがアクセスログファイル内に存在しない場
合には本処理動作は終了し、該当するレコードが存在し
た場合には、その該当レコードをアクセスログファイル
14から取得する(ステップ102,103)。次に、
ステップ101にて取得したレコードの「開始時刻」,
「クライアントプロセスID」及び「SQL文」項目に
記録される内容と同じ内容が記録され且つ「状態」項目
に“終了”と記録されているレコードを、ステップ10
1と同様に、アクセスログ検索処理部11bがアクセス
ログファイル14内から検索する(ステップ104)。
First, the access log search processing unit 11b in the processing device searches the access log file 14 for a record in which "start" is recorded in the "state" item of the access log (step 101). As a result of this search, if the applicable record does not exist in the access log file, this processing operation ends, and if the applicable record exists, the applicable record is acquired from the access log file 14 (step 102). , 103). next,
“Start time” of the record acquired in step 101,
A record in which the same contents as those recorded in the “client process ID” and “SQL sentence” items are recorded and “end” is recorded in the “state” item is set to the step 10
Similar to 1, the access log search processor 11b searches the access log file 14 (step 104).

【0018】検索の結果、該当するレコードが存在する
場合には、処理装置11において、取得レコードに関す
る処理は正常に終了したものであって障害の発生原因と
なってはいないと判断され、再度ステップ101からの
処理動作が順次行われる。また該当レコードが存在しな
い場合には、「状態」項目に“開始”と記録されたログ
レコードに対応する“終了”のログレコードが存在しな
いことから、処理装置11において、取得レコードに関
する処理は処理中に異常終了したものであると判断され
る。つまり、この取得レコードに関する処理は障害に関
連したもの、換言すると、障害の発生原因である可能性
の高い処理であると判断されるため、障害ログレコード
記録部11cが、このログレコードをアクセスログファ
イル14とは別個の障害ログレコードファイル15に格
納する(ステップ105,106)。
As a result of the search, if the corresponding record exists, it is judged in the processing device 11 that the process related to the acquired record has been completed normally and is not the cause of the failure, and the step is restarted. The processing operations from 101 are sequentially performed. If there is no corresponding record, there is no “end” log record corresponding to the “start” log record recorded in the “state” item. It is judged to have abnormally ended. That is, since the process related to the acquired record is determined to be the process related to the fault, in other words, the process that is likely to be the cause of the fault, the fault log record recording unit 11c outputs the log record to the access log. The error log record file 15 is stored separately from the file 14 (steps 105 and 106).

【0019】以上のようにステップ106までの処理動
作が終了した後、再度ステップ101からの処理動作を
実行し、アクセスログファイル14内の全ログレコード
に対して1レコードずつ処理を繰り返し行っていく。こ
のようにして、アクセスログファイル14から処理中に
異常終了した処理のログレコードのみを取り出して特定
することができ、この取り出したログレコードに基づい
て容易に障害発生の原因を分析することが可能となる。
具体的には、例えば図2のようなアクセスログについて
本発明の障害発生原因分析装置10で解析処理を行った
場合、ステップ104からステップ106までの処理動
作によって、図2中の上から2番目のログレコードのみ
が障害ログレコードファイル15に格納される。これに
より本実施形態では、2番目のログレコードが異常終了
した処理のログレコードであり、このログレコードに関
する処理が障害発生の原因であると特定することができ
る。また、複数のログレコードが障害ログレコードファ
イル15に格納される場合でも、障害発生の原因となる
処理に関するログレコードが絞り込まれるため、障害発
生原因の分析作業が効率良く行えることとなる。
After the processing operation up to step 106 is completed as described above, the processing operation from step 101 is executed again, and the processing is repeated for every log record in the access log file 14 one record at a time. . In this way, only the log record of the process that has abnormally ended during the process can be extracted and specified from the access log file 14, and the cause of the failure can be easily analyzed based on the extracted log record. Becomes
Specifically, for example, when the failure occurrence cause analysis apparatus 10 of the present invention performs an analysis process on an access log as shown in FIG. 2, it is the second from the top in FIG. Only the log record of is stored in the failure log record file 15. As a result, in the present embodiment, the second log record is the log record of the abnormally terminated process, and the process related to this log record can be specified as the cause of the failure. Further, even when a plurality of log records are stored in the failure log record file 15, the log records related to the processing that causes the failure occurrence are narrowed down, so that the failure cause analysis work can be performed efficiently.

【0020】<他実施形態>また、上記実施形態では、
障害発生時に処理中であった機能のSQL文を特定し、
障害発生の原因を分析可能な障害発生原因分析装置10
及び該装置10による障害発生原因分析手順について説
明したが、この障害発生原因の分析動作を容易にする手
段としては、上記の障害発生原因分析装置10に限った
ことではなく、本発明の処理動作を行うプログラムを作
成し、サーバコンピュータ10における処理装置11
に、このプログラムに基づいて処理動作を実行させるよ
うにしてもよい。
<Other Embodiments> In the above embodiment,
Identify the SQL statement of the function that was being processed when the failure occurred,
Failure cause analysis device 10 capable of analyzing the cause of failure
The failure cause analysis procedure by the apparatus 10 has been described, but the means for facilitating the failure cause analysis operation is not limited to the failure cause analysis apparatus 10 described above, but the processing operation of the present invention. And a processing device 11 in the server computer 10
Alternatively, the processing operation may be executed based on this program.

【0021】具体的には、クライアントコンピュータ2
0,21から送信されたSQL文による処理の開始時及
び正常終了時に、そのSQL文の内容を、送信元のクラ
イアントプロセスID等の送信元クライアント情報と共
にアクセスログファイル14に記録するアクセスログ記
録機能と、アクセスログファイル14から障害発生原因
である可能性の高いログレコードを検索,取得するアク
セスログ検索処理機能と、検索されたログレコードを障
害ログレコードファイル15に記録する障害ログレコー
ド記録機能と、を処理装置に実現させるプログラムをプ
ログラム格納部12に格納し、このプログラムに基づい
て処理装置11が本発明の処理動作を行うようにサーバ
コンピュータ10を構成することで、上記実施形態の如
く、アクセスログファイル14から処理中に異常終了し
た処理のログレコードのみを取り出して特定することが
でき、この取り出したログレコードに基づいて容易に障
害発生の原因を分析することが可能となる。
Specifically, the client computer 2
An access log recording function that records the contents of the SQL statement in the access log file 14 together with the sender client information such as the client process ID of the sender at the start and normal end of the processing by the SQL statement sent from 0, 21. And an access log search processing function of searching and acquiring a log record having a high possibility of a failure occurrence from the access log file 14, and a failure log record recording function of recording the searched log record in the failure log record file 15. By storing a program that causes the processing apparatus to realize the processing apparatus in the program storage unit 12 and configuring the server computer 10 so that the processing apparatus 11 performs the processing operation of the present invention based on the program, as in the above-described embodiment. A log record of the processing that terminated abnormally during processing from the access log file 14. Can be identified removed Only in, it becomes possible to easily analyze the cause of the failure based on the retrieved log record.

【0022】[0022]

【発明の効果】以上説明したように、本発明によれば、
データベース管理システムがハングアップ状態になるよ
うな障害に陥ったとしても、障害発生時に処理中であっ
たログレコードのSQL文を特定することができ、障害
発生原因の分析を効率良く進めることが可能となる。
As described above, according to the present invention,
Even if the database management system falls into a hang-up state, it is possible to identify the SQL statement of the log record that was being processed when the fault occurred, and to efficiently analyze the cause of the fault. Becomes

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

【図1】本発明の一実施形態におけるサーバとしての障
害発生原因分析装置の構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a failure occurrence cause analysis device as a server according to an embodiment of the present invention.

【図2】本発明におけるアクセスログ格納部に格納され
るアクセスログの記録フォーマットの一例を示す図であ
る。
FIG. 2 is a diagram showing an example of a recording format of an access log stored in an access log storage unit according to the present invention.

【図3】本発明におけるアクセスログを解析する手順を
説明するためのフローチャートである。
FIG. 3 is a flowchart for explaining a procedure for analyzing an access log according to the present invention.

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

10…サーバコンピュータ(障害発生原因分析装置)、
11…処理装置、11a…アクセスログ記録部、11b
…アクセスログ検索処理部、11c…障害ログレコード
記録部、12…プログラム格納部、13…データベー
ス、14…アクセスログファイル、15…障害ログレコ
ードファイル、20,21…クライアントコンピュー
タ、30…ネットワーク。
10 ... Server computer (failure cause analysis device),
11 ... Processor, 11a ... Access log recording unit, 11b
Access log search processing unit, 11c ... Fault log record recording unit, 12 ... Program storage unit, 13 ... Database, 14 ... Access log file, 15 ... Fault log record file, 20, 21 ... Client computer, 30 ... Network.

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 処理装置と、データベース管理システム
プログラムを格納するプログラム格納部と、前記データ
ベース管理システムプログラムにより管理されるデータ
ベースと、前記処理装置によりログ管理が行われるアク
セスログファイルと、障害発生原因である可能性の高い
ログレコードを格納するための障害ログレコードファイ
ルと、を備え、 前記処理装置は、 データベース管理システムプログラムに対して送信され
たSQL文の内容を、前記送信されたSQL文による処
理の開始時及び正常終了時に送信元の情報と共に前記ア
クセスログファイルに記録するアクセスログ記録部と、 前記アクセスログファイルから障害発生原因である可能
性の高いログレコードを検索,取得するアクセスログ検
索処理部と、 検索されたログレコードを前記障害ログレコードファイ
ルに記録する障害ログレコード記録部と、 を有することを特徴とする障害発生原因分析装置。
1. A processing device, a program storage section for storing a database management system program, a database managed by the database management system program, an access log file for log management by the processing device, and a cause of failure occurrence. And a failure log record file for storing a log record that is likely to be, wherein the processing device uses the contents of the SQL statement transmitted to the database management system program according to the transmitted SQL statement. An access log recording unit that records in the access log file together with sender information at the start and normal end of the process, and an access log search that retrieves and acquires a log record that is likely to cause a failure from the access log file Processing part and retrieved log record The failure cause analysis apparatus characterized by comprising: a failure log records recording unit for recording the fault log record file, a.
【請求項2】 前記アクセスログ検索処理部は、アクセ
スログファイル内からアクセスログの「状態」項目に
“開始”と記録されているレコードを検索した後、この
レコードの「開始時刻」,「クライアントプロセスI
D」及び「SQL文」項目に記録される内容と同じ内容
が記録され且つ「状態」項目に“終了”と記録されてい
ないレコードを、アクセスログファイル内から検索して
当該レコードを障害発生原因である可能性の高いログレ
コードとして取得することを特徴とする請求項1に記載
の障害発生原因分析装置。
2. The access log search processing unit searches the access log file for a record in which "start" is recorded in the "status" item of the access log, and then, the "start time" and "client" of this record are searched. Process I
Search the records in the access log file for the records that have the same contents as those recorded in the "D" and "SQL sentence" items and do not record "End" in the "Status" item, and find the cause of the failure. The failure cause analysis apparatus according to claim 1, wherein the failure occurrence cause analysis apparatus acquires the log record as a log record having a high possibility.
【請求項3】 アクセスログファイル内からアクセスロ
グの「状態」項目に“開始”と記録されているレコード
を検索し、該当レコードを取得する第一工程と、 第一工程にて取得したレコードの「開始時刻」,「クラ
イアントプロセスID」及び「SQL文」項目に記録さ
れる内容と同じ内容が記録され且つ「状態」項目に“終
了”と記録されていないレコードを、アクセスログファ
イル内から検索して当該レコードを障害発生原因である
可能性の高いログレコードとして取得する第二工程と、 第二工程にて取得したログレコードを障害ログレコード
ファイルに格納する第三工程と、 を有することを特徴とする障害発生原因分析方法。
3. A first step of searching for a record in which “start” is recorded in the “status” item of the access log from the access log file and acquiring the corresponding record, and a record of the record acquired in the first step. Search the access log file for a record in which the same contents as those recorded in the "start time", "client process ID", and "SQL sentence" items are recorded and "end" is not recorded in the "status" item. Then, it has a second step of acquiring the relevant record as a log record that is highly likely to be the cause of the failure and a third step of storing the log record acquired in the second step in the failure log record file. Characteristic failure cause analysis method.
【請求項4】 送信されたSQL文による処理の開始時
及び正常終了時に、そのSQL文の内容を、送信元の情
報と共にアクセスログファイルに記録するアクセスログ
記録機能と、 アクセスログファイルから障害発生原因である可能性の
高いログレコードを検索,取得するアクセスログ検索処
理機能と、 検索されたログレコードを障害ログレコードファイルに
記録する障害ログレコード記録機能と、 をコンピュータに実現させることを特徴とする障害発生
原因分析プログラム。
4. An access log recording function for recording the contents of the SQL statement in an access log file together with the information of the sender at the start and normal end of processing by the sent SQL statement, and a failure occurs from the access log file. The feature is that the computer implements an access log search processing function that searches and acquires log records that are likely to be the cause and a failure log record recording function that records the searched log records in a failure log record file. Failure cause analysis program.
JP2002064167A 2002-03-08 2002-03-08 Fault occurrence cause analytical device, fault occurrence cause analytical method, and fault occurrence cause analytical program Pending JP2003263353A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002064167A JP2003263353A (en) 2002-03-08 2002-03-08 Fault occurrence cause analytical device, fault occurrence cause analytical method, and fault occurrence cause analytical program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002064167A JP2003263353A (en) 2002-03-08 2002-03-08 Fault occurrence cause analytical device, fault occurrence cause analytical method, and fault occurrence cause analytical program

Publications (1)

Publication Number Publication Date
JP2003263353A true JP2003263353A (en) 2003-09-19

Family

ID=29197087

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002064167A Pending JP2003263353A (en) 2002-03-08 2002-03-08 Fault occurrence cause analytical device, fault occurrence cause analytical method, and fault occurrence cause analytical program

Country Status (1)

Country Link
JP (1) JP2003263353A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010072937A (en) * 2008-09-18 2010-04-02 Fanuc Ltd Information processor equipped with abnormal end determination means
JP2011013792A (en) * 2009-06-30 2011-01-20 Fujitsu Ltd Device, method and program for control of database in program model inspection
JP2011164840A (en) * 2010-02-08 2011-08-25 Nec Corp Access management system, information processing apparatus, access management method, and program
JP2018532171A (en) * 2016-09-28 2018-11-01 平安科技(深▲せん▼)有限公司 SQL examination method, server and storage device
CN110719312A (en) * 2018-07-13 2020-01-21 日立环球生活方案株式会社 Action analysis display system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010072937A (en) * 2008-09-18 2010-04-02 Fanuc Ltd Information processor equipped with abnormal end determination means
JP2011013792A (en) * 2009-06-30 2011-01-20 Fujitsu Ltd Device, method and program for control of database in program model inspection
JP2011164840A (en) * 2010-02-08 2011-08-25 Nec Corp Access management system, information processing apparatus, access management method, and program
JP2018532171A (en) * 2016-09-28 2018-11-01 平安科技(深▲せん▼)有限公司 SQL examination method, server and storage device
CN110719312A (en) * 2018-07-13 2020-01-21 日立环球生活方案株式会社 Action analysis display system

Similar Documents

Publication Publication Date Title
US8516309B1 (en) Method of debugging a software system
US8776027B2 (en) Extracting and collecting platform use data
US8126930B2 (en) Micro-bucket testing for page optimization
US7913233B2 (en) Performance analyzer
US20090204617A1 (en) Content acquisition system and method of implementation
US7627551B2 (en) Retrieving case-based reasoning information from archive records
CN111639101B (en) Method, device and system for correlating rule engine system of internet of things and storage medium
CN112257032B (en) Method and system for determining APP responsibility main body
JP2000181759A (en) Time sequential data retrieval system/method and recording medium storing its program
US20230040539A1 (en) Method and apparatus for parsing log data
JP2003263353A (en) Fault occurrence cause analytical device, fault occurrence cause analytical method, and fault occurrence cause analytical program
CN108549704B (en) Distributed streaming preprocessing method, device, equipment and readable medium for data packet
CN116226047A (en) Method and device for quickly reading MIR information of gzip compressed stdf file
CN113377719B (en) System abnormal shutdown time acquisition method and system
CN105653625B (en) Abnormal data analysis method and device
JP2018081403A (en) Incident management system, incident management method and computer program
JP5359109B2 (en) Keyword extraction program, keyword extraction method, and keyword extraction device
JP5444071B2 (en) Fault information collection system, method and program
JP2001159998A (en) Web contents cache system, its method and recording medium
JPH11306187A (en) Method and device for presenting retrieval result of document with category
JP3287307B2 (en) Structured document search system, structured document search method, and recording medium storing structured document search program
JP4212539B2 (en) File storage location information management system and method and program thereof
JP2001022613A (en) Method for retrieving log information in log file
JP2004362495A (en) Method for supporting of error log information analysis, executing system thereof, and processing program thereof
JP2007265307A (en) Log file analysis system, and program

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20031217

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070323

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070417

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20070814