9.8.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 NORMALLYno 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.

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