D.6 chactl query diagnosis

chactl query diagnosisコマンドを使用して、問題と診断、および特定のクラスタ・ノードまたはOracle Real Application Clusters (Oracle RAC)データベースの問題に関して推奨される修正処理を戻します。

構文

chactl query diagnosis [-cluster|-db db_unique_name] [-start time -end time] [-htmlfile file_name][-help]

日時をYYYY-MM-DD HH24:MI:SSの形式で指定します。

前述の構文では、次の点を考慮する必要があります。

  • オプションを指定しない場合、chactl query diagnosisコマンドは監視対象のすべてのノードおよびデータベースの現在の状態を戻します。chactl query diagnosisコマンドは、診断識別子(Storage Bandwidth Saturationなど)を示して、ターゲットの一般的な状態(ABNORMALなど)をレポートします。これは、データベースまたはクラスタでのABNORMAL状態を迅速にチェックできる方法です。

  • ターゲット名の後に時間オプションを指定した場合、chactl query diagnosisコマンドは、その指定した時間間隔の条件に限定して、指定されたターゲットの状態を戻します。圧縮された時系列では、時間間隔(開始時刻と終了時刻)で発生した個々のインシデントに関して、原因の識別子をリストします。

  • 特定の時間間隔内でインシデントと原因が繰り返される場合、その問題は1回だけレポートされます。開始時刻はそのインシデントが最初に発生した開始時刻で、終了時刻はそのインシデントが特定の時間間隔内で最後に発生した終了時刻です。

  • –dbオプションをデータベース名なしで指定した場合、chactl query diagnosisコマンドはすべてのデータベースに関する診断情報を表示します。ただし、データベース名を指定した場合、chactl query diagnosisコマンドは、監視中のそのデータベースのすべてのインスタンスに関する診断情報を表示します。

  • –clusterオプションをホスト名なしで指定した場合、chactl query diagnosisコマンドはそのクラスタ内のすべてのホストに関する診断情報を表示します。

  • 時間間隔を指定しない場合、chactl query diagnosisコマンドはすべてのターゲットまたは指定されたターゲットに関する現在の問題のみを表示します。chactl query diagnosisコマンドは、頻度の統計を明示的に表示しません。ただし、過去24時間にターゲットで発生した正常イベントと異常イベントの数をカウントできます。

  • 指定された時間間隔内にインシデントが発生しなかった場合、chactl query diagnosisコマンドは、「Database/host is operating NORMALLY」「no incidents were found」などのテキスト・メッセージを戻します。

  • ターゲットの状態がNORMALである場合、コマンドはそれについてレポートしません。chactl query diagnosisコマンドは、指定された時間間隔においてABNORMAL状態となったターゲットのみをレポートします。

出力パラメータ:

  • インシデントの開始時刻

  • インシデントの終了時刻(デフォルトのデータベースやホストの場合のみ。非詳細出力)

  • ターゲット(データベース、ホストなど)

  • 問題

    説明: 問題の詳細な説明

    原因: 問題の根本原因および要因

  • 処理: 診断で示された異常な状態を修正する処理

レポート形式 診断情報は、コンポーネント別にグループ化され、圧縮時間または時系列順で表示されます。

特定の時間間隔におけるデータベースの診断情報を表示するには、次のようにします。

$ chactl query diagnosis -db oltpacdb -start "2016-02-01 02:52:50.0" -end "2016-02-01 03:19:15.0" 
2016-02-01 01:47:10.0  Database oltpacdb  DB Control File IO Performance (oltpacdb_1) [detected]
2016-02-01 01:47:10.0  Database oltpacdb  DB Control File IO Performance (oltpacdb_2) [detected]
2016-02-01 02:52:15.0  Database oltpacdb  DB CPU Utilization (oltpacdb_2) [detected]
2016-02-01 02:52:50.0  Database oltpacdb  DB CPU Utilization (oltpacdb_1) [detected]
2016-02-01 02:59:35.0  Database oltpacdb  DB Log File Switch (oltpacdb_1) [detected]
2016-02-01 02:59:45.0  Database oltpacdb  DB Log File Switch (oltpacdb_2) [detected]

Problem: DB Control File IO Performance
Description: CHA has detected that reads or writes to the control files are slower than expected.
Cause: The Cluster Health Advisor (CHA) detected that reads or writes to the control files were slow 
because of an increase in disk IO. 
The slow control file reads and writes may have an impact on checkpoint and Log Writer (LGWR) performance.
Action: Separate the control files from other database files and move them to faster disks or Solid State Devices.

Problem: DB CPU Utilization
Description: CHA detected larger than expected CPU utilization for this database.
Cause: The Cluster Health Advisor (CHA) detected an increase in database CPU utilization 
because of an increase in the database workload.
Action: Identify the CPU intensive queries by using the Automatic Diagnostic and Defect Manager (ADDM)
and follow the recommendations given there. Limit the number of CPU intensive queries
or relocate sessions to less busymachines. Add CPUs if the CPU capacity is insufficent to support the load 
without a performance degradation or effects on other databases.

Problem: DB Log File Switch
Description: CHA detected that database sessions are waiting longer than expected for log switch completions.
Cause: The Cluster Health Advisor (CHA) detected high contention during log switches 
because the redo log files were small and the redo logs switched frequently.
Action: Increase the size of the redo logs.

エラー・メッセージ

メッセージ: Target is operating normally

説明: ターゲットでインシデントは見つかりませんでした。

メッセージ: No data was found for active Target

説明: データは見つかりませんでしたが、問合せ時にターゲットは動作していたか、アクティブでした。

メッセージ: Target is not active or was not being monitored.

説明: ターゲットが問合せ時に監視されていなかったため、データは見つかりませんでした。