JPH04175865A - Data base state monitor system - Google Patents

Data base state monitor system

Info

Publication number
JPH04175865A
JPH04175865A JP2302163A JP30216390A JPH04175865A JP H04175865 A JPH04175865 A JP H04175865A JP 2302163 A JP2302163 A JP 2302163A JP 30216390 A JP30216390 A JP 30216390A JP H04175865 A JPH04175865 A JP H04175865A
Authority
JP
Japan
Prior art keywords
monitoring
database
information
monitoring information
monitor
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
JP2302163A
Other languages
Japanese (ja)
Inventor
Isao Kamoi
鴨井 功
Masanobu Oota
太田 征信
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.)
KOBE NIPPON DENKI SOFTWARE KK
NEC Corp
NEC Software Kobe Ltd
Original Assignee
KOBE NIPPON DENKI SOFTWARE KK
NEC Corp
NEC Software Kobe 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 KOBE NIPPON DENKI SOFTWARE KK, NEC Corp, NEC Software Kobe Ltd filed Critical KOBE NIPPON DENKI SOFTWARE KK
Priority to JP2302163A priority Critical patent/JPH04175865A/en
Publication of JPH04175865A publication Critical patent/JPH04175865A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To minimize the gathered data volume by limiting monitor object items and displaying only information exceeding a preliminarily set and indicated reference at the time of issue of an editing and display request of gathered information. CONSTITUTION:When a preliminarily determined event occurs, a monitor information gathering means 30 is called from a data base management system 20 with a monitor item number and data as the parameter and gathers information only with respect to monitor object items registered in a data base directory 2 by a monitor information indicating means 10 and outputs a monitor information gathering file 3. A monitor information display means 40 is started by the request from a user and edits and displays only information satisfying the display reference of monitor object items registered in the data base directory 2 by the monitor information indicating means 10. Thus, the gathered data volume is minimized.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はデータベース状態監視方式に関し、特に複数の
利用者によって同時に使用されているデータベースの設
計の見直しや性能低下要因の摘出を目的にアクセス状態
の情報を収集するデータベース状態監視方式に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a database status monitoring method, and in particular, the access status is This invention relates to a database status monitoring method for collecting information on the database.

〔発明の概要〕[Summary of the invention]

本発明はデータベースの利用状況を監視出来るように、
予め収集する情報とその加工方法とを5えることによっ
て、利用者からの要求時に、いつでも有益な利用状況だ
けを正確に表示できる手段を提供する。
The present invention enables monitoring of the usage status of the database.
To provide a means for accurately displaying only useful usage status at any time upon request from a user by determining information to be collected in advance and its processing method.

〔従来の技術〕[Conventional technology]

従来のデータベース状態監視方式では、データベースの
利用状況は−・般に動的な情報と静的な情報とで表され
でいる。動的な情報の収集は、データベースアクセスの
実行時に行われ、ジョブやタスクの終1′時に、実行レ
ボ−1・や統計情報収集ファ5イルの形態で一括し、て
出力さオlている。また、静的な情報の収集は、データ
ベースをその都度読み直すことによって行われ、要求さ
才でた情報か編集して出力されている。
In conventional database status monitoring methods, the usage status of a database is generally represented by dynamic information and static information. Dynamic information collection is performed when database access is executed, and is output all at once in the form of an execution file or statistical information collection file at the end of a job or task. . In addition, static information is collected by rereading the database each time, and the required information is edited and output.

〔発明が解決し、ようとする課題〕[Problem that the invention attempts to solve]

データベースの利用状況を示す情報を集める1述した従
来のブ′−タベース状態監視方式は、動的な情報収集で
は、データベースアクセスが実行される度に行われるた
めに、情報量が膨大になるたけでなく、その情報を使う
必要性が発生したときに、膨大な出力の山の中から捜す
ことになるために、必要な情報を捜す為の時間がかかる
という欠点を有している3、また、静的な情報の収集で
は、収集が要求される度にデータベースの再検索が実行
されるために、収集出力までに時間がかかるという欠点
を有している。
Collecting Information Indicating Database Usage Status 1 In the conventional butterbase status monitoring method described above, dynamic information collection is performed every time a database access is executed, so the amount of information becomes enormous. However, when the need to use that information arises, it has to be searched from a huge pile of output, so it has the disadvantage that it takes time to search for the necessary information3. Static information collection has the disadvantage that it takes time to output the collection because the database is searched again each time collection is requested.

〔課題を解決するための手段〕[Means to solve the problem]

本発明のデータベース杖態監視力式は、データベースの
利用状況を動的に表示するデータベース状態監視方式に
おいて、監視対象項1−1およびその監視基準を記述し
たデータベース監視パラメータを入力してデータベース
デイレクトりに登録する監視情報上、]<手段と、デー
タベースアクセスの実行中に前記監視情報指示手段によ
り登録された監視対象項I」に該当する事象が発生した
場合にデータベース管理システムから呼び出されてその
事象の発生を監視情報収集ファイルに記録する監視情報
収集手段と、利用者からの表示要求コマンドか入力され
た時に前記監視情報収集手段で収集された監視情報に前
記監視情報指示手段により登録された監視基準で指示さ
れた加工を行ってその監視基準に合致するかどうかのチ
ェックを行うことにより合致したものについてデータベ
ース利用状況レポートに表示する監視情報表)J<手段
を備えて構成されている。
The database status monitoring power formula of the present invention is a database status monitoring method that dynamically displays the usage status of a database. In the monitoring information to be registered by a monitoring information collecting means for recording the occurrence of an event in a monitoring information collecting file; and a monitoring information instructing means that registers the occurrence of an event in the monitoring information collected by the monitoring information collecting means when a display request command is input from the user. A monitoring information table (J< means) for displaying in a database usage status report those items that match the monitoring criteria by performing the processing instructed by the monitoring criteria and checking whether or not they match the monitoring criteria.

〔実施例〕〔Example〕

以下、本発明の実施例について図面を参照して説明する
Embodiments of the present invention will be described below with reference to the drawings.

第1図は本発明のデータベース状態監視方式の−・実施
例をンJ<すブロック図である。
FIG. 1 is a block diagram illustrating an embodiment of the database status monitoring system of the present invention.

第1図に示すように、本実施例は、データベース監視ハ
ラメータ1と、データベースディレクトリ2と、監視情
報収集ファイル3と、表示要求コマンド4と、データベ
ース利用状況レポート5と、監視情報指示手段10と、
データベース管理システム20と、監視情報収集手段3
0と、監視情報表示手段40とから構成されている。
As shown in FIG. 1, this embodiment includes a database monitoring harassment meter 1, a database directory 2, a monitoring information collection file 3, a display request command 4, a database usage status report 5, and a monitoring information instruction means 10. ,
Database management system 20 and monitoring information collection means 3
0, and monitoring information display means 40.

以下、本実施例の動作を監視情報登録処理、監視情報収
集処理、監視情報表示処理の順に分けて順次説明する。
The operation of this embodiment will be described below in the order of monitoring information registration processing, monitoring information collection processing, and monitoring information display processing.

工監視情報登録処理 監視情報指示手段10は、データベース管理システム2
0が発生させている事象の中から、監視情報収集手段3
0による情報収集の対象にする事象を選択した監視対象
項目と、収集された情報を監視情報表示手段40で表示
する場合の表示基準を定める監視基準とを記述したデー
タベース監視パラメータ1を入力し、データベースアイ
レフトリ2に監視対象項目と、表示対象基準との登録を
行う。
The engineering monitoring information registration process monitoring information instruction means 10 includes a database management system 2.
From among the events caused by 0, monitoring information collection means 3
Input the database monitoring parameter 1 that describes the monitoring target item that selects the event to be the target of information collection by 0, and the monitoring criteria that determines the display criteria when displaying the collected information on the monitoring information display means 40, The items to be monitored and the criteria for display are registered in the database Eye Leftry 2.

第2図は本実施例のデータベース監視パラメータ1の一
例を示す図である。
FIG. 2 is a diagram showing an example of database monitoring parameters 1 of this embodiment.

第2図を参照すると、TYPEパラメータ201で、監
視対象項目の指定を行っている。この例ではファイル当
たりのページWRITE回数(監視項目番号2)と、ト
ランザクション当たりのページWRITE回数(監視項
目番号4)と、テーブル参照回数(監視項目番号5)と
、ファイル当たりのオーバフロ回数(監視項目番号8)
と、デッドロック発生回数(監視項目番号10)の収集
を指示し、RPTパラメータ202で、監視情報の表示
要求が出された場合に、ページWRITEについては1
00回を越えたファイル及び10回を越えたトランザク
ションについてのみ出力することを、テーブル参照回数
については20回を越えた場合に出力することを、オー
バフロについては無条件に出力することを、1ノドロン
ク回数については10回以」−発ヰしていた場合に出力
することを記述している。
Referring to FIG. 2, the TYPE parameter 201 specifies the item to be monitored. In this example, the number of page WRITEs per file (monitoring item number 2), the number of page WRITEs per transaction (monitoring item number 4), the number of table references (monitoring item number 5), and the number of overflows per file (monitoring item number 4). Number 8)
, instructs to collect the number of deadlock occurrences (monitoring item number 10), and when a request to display monitoring information is issued in the RPT parameter 202, 1 is set for page WRITE.
1noDronk specifies that files that have exceeded 00 times and transactions that have exceeded 10 times will be output only, table references will be output when the number of table references exceeds 20 times, and overflows will be output unconditionally. Regarding the number of times, it is written that it will be output if it is fired 10 times or more.

第3図は本実施例の監視情報指/J<’J”段10の処
理の流れの一例を4くずフローチャートである。
FIG. 3 is a four-piece flowchart showing an example of the processing flow of the monitoring information index/J<'J" stage 10 of this embodiment.

第3図を参照すると、監視情報指示す段10は、データ
ベース監視パラメータ1を入力(ステップ301)L、
パラメータの終了を確認する(ステップ302)と、監
視対象項目テーブルをデータベースディレクトリ2に出
力しくステップ308)処理を終了する。
Referring to FIG. 3, the monitoring information instructing stage 10 inputs database monitoring parameter 1 (step 301) L;
When the end of the parameters is confirmed (step 302), the monitoring target item table is output to the database directory 2, and the process ends (step 308).

パラメータが入力された場合には、監視対象項目を記述
したTYPEパラメータであるか(ステップ303) 
、TYPEパラメータで指ノJくされた監視対象項目の
表示基準を記述しまたRPTパラメータであるか(ステ
ップ304)を判定する。
If a parameter is input, check whether it is a TYPE parameter that describes the item to be monitored (step 303).
, describes the display criteria of the monitored item specified by the TYPE parameter, and determines whether it is an RPT parameter (step 304).

TYPEパラメータが入力されると、TYPEパラメー
タから監視項目番号を入手しくステ、ツブ309)、メ
モリ上に監視対象項目テーブルを作成して(ステップ3
10)、再度データベース監視パラメータの入力に制御
を渡す。、 RPTパラメータか入力されると、メモリ上に監視対象
項目テーブルか作成済みであるかと・うかをチェックし
くステップ305)、未作成であ−3た場合には、エラ
ーを返し、(ステ・ツブ311)処理を終了する。作成
済=fjてあった場合には、RPTパラメータから表示
基準値を入手しくステップ30B)、監視対象項目テー
ブルの対応した領域に設定しくステップ307)、1回
に入力された全ての監視対象項目テーブルに表示基準値
の設定を完了させてから次のデータベース監視パラメー
タの入力を要求する。
When the TYPE parameter is input, a monitoring item number is obtained from the TYPE parameter (Step 309), and a monitoring target item table is created in memory (Step 3).
10) Transfer control to the database monitoring parameter input again. , When the RPT parameter is input, it checks whether the monitored item table has been created in the memory (step 305). If it has not been created yet, an error is returned and the process returns (step 305). 311) End the process. If created = fj, obtain the display reference value from the RPT parameter (Step 30B), set it in the corresponding area of the monitoring target item table (Step 307), and all monitoring target items input at one time. After completing the setting of display standard values in the table, it requests input of the next database monitoring parameter.

第4図は第2図で示したデータベース監視パラメータに
対応する監視対象項目テーブルの一例を示す図である。
FIG. 4 is a diagram showing an example of a monitoring target item table corresponding to the database monitoring parameters shown in FIG. 2.

第2図を参照すると、監視対象項目デープルは、監視項
[1番号を表ず番号フィー・ルドと、その監視項目の表
示基準値を表す基準値フィールドとから構成されており
、各々(2,100)、(4,10)、(5,20)、
(8,0)、(10,10)の値が設定されている。
Referring to FIG. 2, the monitoring target item table is composed of a monitoring item [1 number field, which does not represent the number, and a reference value field, which represents the display reference value of the monitoring item, and each field (2, 2, 100), (4,10), (5,20),
Values of (8, 0) and (10, 10) are set.

■監視情報収集処理 監視情報収集り段30は、利用者からの要求に従ってデ
ータベースの検索と更新処理とを実行するデータベース
管理システム20から、−pめ定y)られた事象が発生
した時に、監視項目番号とデータとをパラメータとして
呼び出され、監視情報指示手段10によってデータベー
スディレクトリ2に登録されている監視対象項目につい
てのみの情報収集を行い、監視情報収集ファイル3に出
力する。
■Monitoring information collection process The monitoring information collecting stage 30 monitors when a specified event occurs from the database management system 20 that executes database search and update processing according to user requests. It is called with the item number and data as parameters, and the monitoring information instruction means 10 collects information only about the monitoring target items registered in the database directory 2 and outputs it to the monitoring information collection file 3.

第5図は本実施例の監視情報収集手段30の処理の流れ
の一例を示すフローチャートである。
FIG. 5 is a flowchart showing an example of the processing flow of the monitoring information collection means 30 of this embodiment.

第5図を参照すると1.監視情報収集手段30は、先ず
、データベースディレクトリ2に登録されている監視対
象項目についての情報がメモリ上に展開されているかど
うかをチェックしくステップ501. ) 、展開され
ていなかった場合には、データベースディレクトリ2か
ら監視対象項目テーブルを読み込む(ステップ502)
。次に、データベース管理システノ、20から渡された
緊1視項[]番号が監視対象項目デープルに登録されて
いるかどうかをチェックしくステップ503 ) 、登
録されていない監視項[,1番号であった場合には収集
処理を行わずに制御をデータベース管理シスT)、20
に戻す。登録されている監視項目番号であった場合には
、データベース管理システム20から渡された入力デー
タに、乱視対象項目毎に予め定められた編集を行って(
ステップ504)、監視情報収集ファイル3に出力し、
て(ステップ505)制御をデータベース管理システム
20に戻す3、■監視情報表示処理 監視情報表示手段40は、利用者からの要求によって起
動され、監視情報指示す段10によってデータベースデ
ィレクトリ2に登録されている監視対象項目の表示基準
を満たす情報のみを編集して表示する。
Referring to Figure 5, 1. The monitoring information collecting means 30 first checks whether information about the monitoring target items registered in the database directory 2 is expanded in the memory in step 501. ), if it has not been expanded, reads the monitoring target item table from database directory 2 (step 502).
. Next, check whether the critical item [] number passed from the database management system 20 is registered in the monitoring target item table (step 503), and the unregistered monitoring item [, 1 number] is checked. In some cases, the database management system controls the collection process without performing the collection process (T), 20
Return to If it is a registered monitoring item number, the input data passed from the database management system 20 is edited in a predetermined manner for each astigmatism target item (
Step 504), output to the monitoring information collection file 3,
(Step 505) Control is returned to the database management system 20 3. ■Monitoring information display processing The monitoring information display means 40 is activated in response to a request from the user, and is registered in the database directory 2 by the monitoring information indicating stage 10. Edit and display only the information that meets the display criteria for the monitored items.

第6図は本実施例の監視情報表示手段40の処理の流れ
の一例を示すフローチャートである。
FIG. 6 is a flowchart showing an example of the processing flow of the monitoring information display means 40 of this embodiment.

第6図を参照すると、監視情報表示手段40は、先す、
データベースデイし・クトリ2に登録されている監視対
象項目についての情報がメモリlに展開されているかと
うかをチ□ツクし、(ステップ601) 、展開さ才2
ていなかった場合には、データベースデイし・クトリ2
から監視対象項1−1テーブルを読み込んでメモリ七に
展開Aる(ステップ602)。次に、監視情報収集ファ
イル3を入力しくステップ603)、各監視項[1:1
1位に予め定めらねた集計処理を社って、監視項目加]
ファイルを作成する(ステップ604,605)。その
後に、古度監視項11加丁ファイルを読み込み(ステッ
プ606)、監視対象項目テーブルに指示されている表
示基準を満足するものだけを選択しくステップ607,
808)、監視項目中位に編集してデータベース状態表
示レポートを出力する(ステップ609)。
Referring to FIG. 6, the monitoring information display means 40 first:
Check whether the information about the monitoring target items registered in the database directory 2 is expanded to the memory 1 (step 601), and the information about the monitored items registered in the database directory 2 is expanded.
If not, the database directory 2
The monitoring target item 1-1 table is read from the table and expanded into the memory 7 (step 602). Next, input the monitoring information collection file 3 (Step 603), and input each monitoring item [1:1
Add a predetermined aggregation process to the first place and add monitoring items]
A file is created (steps 604, 605). After that, the oldness monitoring item 11 editing file is read (step 606), and only those that satisfy the display criteria specified in the monitoring target item table are selected (step 607).
808), edit the monitoring items to medium level and output a database status display report (step 609).

〔発明の効果〕〔Effect of the invention〕

以J−説明したように1本発明のデータベース状態監視
方式は、監視対象項目を限定することによって、収集す
る情報の量を低減すると共に、それらの編集表示要求が
出された峙に、予め設定して指示された基準を越えたも
ののみを表ン〕〈できるので、データベースの状況を的
確に把握Aるために収集するデータ量を最小に抑えるこ
とかできるという効果及び収集されたデータの解析で扱
うデータ量を最小に抑えることかできるという効果をも
している。
As explained below, the database status monitoring method of the present invention reduces the amount of information to be collected by limiting the items to be monitored, and also allows the database status monitoring method to reduce the amount of information to be collected by limiting the items to be monitored. Only those items that exceed the specified standards can be displayed. This has the effect of minimizing the amount of data collected in order to accurately understand the database situation, and the analysis of the collected data. It also has the effect of minimizing the amount of data handled.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明のデータベース状態監視方式の一実施例
を示すブロック図、第2図は本実施例のデータベース監
視パラメータ】の−・例を示す図、第3図は本実施例の
監視情報指示手段10の処理の流れの一例を示すフロー
チャート、第4図は第2図で示したデータベース監視パ
ラメータに対応する監視対象項目テーブルの一例を示す
図、第5図は本実施例の監視情報収集手段30の処理の
流れの−・例を示すフローチャート、第6図は本実施例
の監視情報表示手段40の処理の流れの一例を示すフロ
ーチャートである。 1・・・データベース監視パラメータ、2・・・データ
ベースディレクトリ1.3・・・監視情報収集ファイル
、4・・・表示要求コマンド、5・・・データベース利
用状況し・ポート、10・・・監視情報指示手段、20
・・・データベース管理システl1.30・・・監視情
報収集手段、40・・・監視情報表示手段。
FIG. 1 is a block diagram showing an embodiment of the database status monitoring method of the present invention, FIG. 2 is a diagram showing examples of database monitoring parameters of this embodiment, and FIG. 3 is a block diagram showing monitoring information of this embodiment. A flowchart showing an example of the processing flow of the instruction means 10, FIG. 4 is a diagram showing an example of a monitoring target item table corresponding to the database monitoring parameters shown in FIG. 2, and FIG. A flowchart showing an example of the processing flow of the means 30. FIG. 6 is a flowchart showing an example of the processing flow of the monitoring information display means 40 of this embodiment. 1...Database monitoring parameters, 2...Database directory 1.3...Monitoring information collection file, 4...Display request command, 5...Database usage status/port, 10...Monitoring information instruction means, 20
...Database management system l1.30...Monitoring information collection means, 40...Monitoring information display means.

Claims (1)

【特許請求の範囲】[Claims]  データベースの利用状況を動的に表示するデータベー
ス状態監視方式において、監視対象項目およびその監視
基準を記述したデータベース監視パラメータを入力して
データベースディレクトリに登録する監視情報指示手段
と、データベースアクセスの実行中に前記監視情報指示
手段により登録された監視対象項目に該当する事象が発
生した場合にデータベース管理システムから呼び出され
てその事象の発生を監視情報収集ファイルに記録する監
視情報収集手段と、利用者からの表示要求コマンドが入
力された時に前記監視情報収集手段で収集された監視情
報に前記監視情報指示手段により登録された監視基準で
指示された加工を行ってその監視基準に合致するかどう
かのチェックを行うことにより合致したものについてデ
ータベース利用状況レポートに表示する監視情報表示手
段を備えることを特徴とするデータベース状態監視方式
In a database status monitoring method that dynamically displays the usage status of a database, there is a monitoring information instruction means that inputs database monitoring parameters that describe the monitored items and their monitoring criteria and registers them in the database directory, and a monitoring information collection means that is called from a database management system when an event corresponding to a monitoring target item registered by the monitoring information instruction means occurs and records the occurrence of the event in a monitoring information collection file; When the display request command is input, the monitoring information collected by the monitoring information collecting means is processed as instructed by the monitoring standard registered by the monitoring information instructing means, and it is checked whether or not it matches the monitoring standard. 1. A database status monitoring method characterized by comprising a monitoring information display means for displaying on a database usage status report information that is found to be consistent.
JP2302163A 1990-11-07 1990-11-07 Data base state monitor system Pending JPH04175865A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2302163A JPH04175865A (en) 1990-11-07 1990-11-07 Data base state monitor system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2302163A JPH04175865A (en) 1990-11-07 1990-11-07 Data base state monitor system

Publications (1)

Publication Number Publication Date
JPH04175865A true JPH04175865A (en) 1992-06-23

Family

ID=17905682

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2302163A Pending JPH04175865A (en) 1990-11-07 1990-11-07 Data base state monitor system

Country Status (1)

Country Link
JP (1) JPH04175865A (en)

Similar Documents

Publication Publication Date Title
US8010499B2 (en) Database staging area read-through or forced flush with dirty notification
US6389430B1 (en) Real-time database object statistics collection
DE10000124A1 (en) Transmission and indexing of data transmitted between unit uses identification code
JPH04175865A (en) Data base state monitor system
US5170479A (en) File block managing system using next record header position data and delete history data from block header and record headers to locate requested record block
JPS62131349A (en) Data base processing system
JP3392960B2 (en) Information processing device
JPH0340043A (en) Data base generation managing system
JPH02151944A (en) Data processor
JP2675088B2 (en) Information collection method
JPH08249049A (en) Monitoring device
JPH0744426A (en) File management method for file system
JP2509972B2 (en) Environment setting method
JP2973975B2 (en) Discrete event simulation device, recording method of event sequence, and storage medium storing control program
JP2612063B2 (en) How to display mask layout data
JPH02242447A (en) Memory dump collecting system
JPH0484233A (en) Recording system for program operation conditions
JPS6211746B2 (en)
JPH04102022A (en) Processing apparatus of history data
JPH05274190A (en) Work station operating information analyzing system
JPS6339054A (en) Controlling system for file extension
JPH1097562A (en) Design support system
JPS63269224A (en) Data base access system
JPH02109147A (en) Memory dump collection system
JPH03105534A (en) File control method