エージェントのインストール
WhaTapデータベースモニタリングサービスを使用するための基本的なインストール方法について説明します。
プロジェクト作成
エージェントをインストールする前にプロジェクトを作成してください。
-
WhaTapモニタリングサービスにログインしてください。
-
左側のサイドメニューで プロジェクト全体 > + Project ボタンをクリックします。
-
商品選択 画面でインストールする製品を選択します。
-
以下の項目を入力または選択します。
-
プロジェクト名:プロジェクト名を入力します。
-
データサーバーリージョン:データサーバーの設置されているリージョンを選択します。リージョンとは、クラウドサービスを提供するデータセンターの集合体です。選択したリージョンにユーザーデータが保存されます。
-
プロジェクトタイムゾーン:アラートおよびレポート生成時の基準となる時刻を設定します。
-
通知言語の設定:アラート通知メッセージの言語を設定します。(韓国語、英語に対応)
-
プロジェクトグループ:複数のプロジェクトをグループとしてまとめて管理できます。所属するグループがある場合は選択してください。
-
プロジェクト説明:プロジェクトに関する補足説明や詳細情報を入力します。
-
-
すべての設定が完了したら、プロジェクトを作成する ボタンをクリックします。
組織を選択してプロジェクトを追加する場合は、組織下位のグループを必須に 設定する必要があります。
グループに関する詳細は、次のドキュメントを参照してください。
構成図の確認
Oracle Proモニタリングのためにデータベースサーバーにエージェントをインストールする構成です。

ファイアウォールの設定は必須であり、すべてのデータは暗号化されて送信されます。 WhaTap収集サーバーとの通信には6600ポートを使用します。
アカウント生成
データベースモニタリングをするために必要な権限を持つアカウントを作成します。root(admin) アカウントでログインしてアカウントを作成してください。
-
一般的な場合
SQLcreate user {DB_User} identified by {DB_Password};
grant create session to {DB_User};
grant select any dictionary to {DB_User}; -
マルチテナントDB(Oracle 12c以降)で基本モニタリングを使用する場合:
c##アカウント作成SQLcreate user c##{DB_User} identified by "{DB_Password}";
grant create session to c##{DB_User};
grant select any dictionary to c##{DB_User};
alter user c##{DB_User} set container_data = ALL container = CURRENT; -
kill sessionを使用する場合
SQLgrant alter system to {DB_User}
-
ヒドゥンパラメータを照会する場合
SQLcreate view sys.whatap_vw_ksppi as select * from sys.x$ksppi;
grant select on sys.whatap_vw_ksppi to {DB_User};
create synonym {DB_User}.whatap_vw_ksppi for sys.whatap_vw_ksppi;
create view sys.whatap_vw_ksppcv as select * from sys.x$ksppcv;
grant select on sys.whatap_vw_ksppcv to {DB_User};
create synonym {DB_User}.whatap_vw_ksppcv for sys.whatap_vw_ksppcv;
権限による対応機能を確認する
基本権限外の権限は、ユーザーの環境によって付与する必要はありません。ただし、一部の機能が動作しないことがあります。
| Privilege | Command (Single DB) | Command (Multitenant DB) | Feature | Description |
|---|---|---|---|---|
| 基本権限 | grant create session to whatap; | grant create session to c##whatap; | 접속 | - |
grant select any dictionary to whatap; | grant select any dictionary to c##whatap; | インスタンスモニタリング / マルチインスタンス / SQL統計 | 個別権限の付与時、次の表の内容を参照 | |
| - | alter user c##whatap set container_data = ALL container = CURRENT; | マルチテナントDBを使用する場合(12C以降) pdb照会のための必須権限である | ||
| セッション中止 | grant alter system to whatap; | grant alter system to c##whatap container=all; | アクティブセッション > セッション中止 | - |
| ヒドゥンパラメータの照会 | create view sys.whatap_vw_ksppi as select * from sys.x$ksppi;grant select on sys.whatap_vw_ksppi to DB_User;create synonym DB_User.whatap_vw_ksppi for sys.whatap_vw_ksppi; | パラメータ照会メニューにヒドゥンパラメータの内容を含む | ヒドゥンパラメータを照会するには、別のビュー/シノニムの生成および権限付与が必要 | |
create view sys.whatap_vw_ksppcv as select * from sys.x$ksppcv;grant select on sys.whatap_vw_ksppcv to DB_User;create synonym DB_User.whatap_vw_ksppcv for sys.whatap_vw_ksppcv; | ||||
select any dictionaryの代わりに、次の権限を個別に付与しても構いません。
| Privilege | Command (Single DB) | Command (Multitenant DB) |
|---|---|---|
| アクティブセッション / ロックツリー / メトリクス情報 | grant select on v_$sqlarea to whatap; | grant select on v_$sqlarea to c##whatap; |
grant select on v_$transaction to whatap; | grant select on v_$transaction to c##whatap; | |
grant select on v_$instance to whatap; | grant select on v_$instance to c##whatap; | |
grant select on v_$sysstat to whatap; | grant select on v_$sysstat to c##whatap; | |
grant select on v_$lock to whatap; | grant select on v_$lock to c##whatap; | |
grant select on v_$sesstat to whatap; | grant select on v_$sesstat to c##whatap; | |
grant select on v_$event_name to whatap; | grant select on v_$event_name to c##whatap; | |
grant select on v_$session to whatap; | grant select on v_$session to c##whatap; | |
grant select on v_$sql to whatap; | grant select on v_$sql to c##whatap; | |
grant select on v_$process to whatap; | grant select on v_$process to c##whatap; | |
grant select on v_$statname to whatap; | grant select on v_$statname to c##whatap; | |
grant select on v_$system_event to whatap; | grant select on v_$system_event to c##whatap; | |
grant select on v_$osstat to whatap; | grant select on v_$osstat to c##whatap; | |
grant select on v_$px_session to whatap; | grant select on v_$px_session to c##whatap; | |
grant select on v_$sga to whatap; | grant select on v_$sga to c##whatap; | |
| - | grant select on v_$con_sysstat to c##whatap; | |
| パラメータ情報 | grant select on v_$parameter to whatap; | grant select on v_$parameter to c##whatap; |
| Wait情報/Event情報 | grant select on v_$event_name to whatap; | grant select on v_$event_name to c##whatap; |
grant select on v_$system_event to whatap | grant select on v_$con_system_event to c##whatap; | |
grant select on v_$system_wait_class to whatap; | grant select on v_$system_wait_class to c##whatap; | |
| - | grant select on v_$con_system_wait_class to c##whatap; | |
| Tablespace情報 | grant select on dba_data_files to whatap; | grant select on cdb_data_files to c##whatap; |
grant select on dba_free_space to whatap; | grant select on cdb_free_space to c##whatap; | |
grant select on dba_temp_files to whatap; | grant select on v_$sort_segment to c##whatap; | |
grant select on v_$temp_extent_pool to whatap; | grant select on v_$tempfile to c##whatap; | |
grant select on v_$containers to whatap; (12c以上) | grant select on v_$containers to c##whatap; |
-
既に存在するアカウントを使用する場合は、DBユーザーファイルの作成に進みます。権限がない場合は、モニタリングを開始できません。
-
コード例で
whatapは、DBユーザーアカウント名です。ユーザーが利用するユーザーアカウント名に変更してください。
- コード例の
DB_Passwordには、ユーザーパスワードを入力します。
アクセスキーの確認
アクセスキーは、WhaTapサービスを有効にするための固有IDです。
インストール手順セクションでプロジェクトアクセスキーの発行ボタンをクリックします。 アクセスキーを自動的に発行した後、次のステップを進みます。
プロジェクトを作成すると、自動的にエージェントインストールページに移動します。 エージェントインストールページが移動しない場合は、画面左側のメニューから管理 > エージェントインストールを選択します。