add_cloud_db_target
add_cloud_db_targetを使用すると、Oracle Enterprise ManagerでAutonomous Databaseを検出できます。
書式
emcli add_cloud_db_target -name="target_name" -type="target_type" -host="agent_host" -zip_file_location="cred_file_zip_location" -credentials="UserName:<db_username>;password:<db_password>;Role:<db_user_role>" -wallet_password="wallet_password" -service_name="tns_service_name" [-is_dedicated="is_dedicated"] [-standby_agent_host="standby_agent_host"] [ ] indicates that the parameter is optional
オプション
-
-name
Autonomous Databaseのターゲットの名前。
-
-type
Autonomous Databaseのタイプ。Autonomous Data Warehouseデータベースのターゲット・タイプ値は
oracle_cloud_adw
、Autonomous Transaction Processingデータベースの値はoracle_cloud_atp
です。 -
-host
Autonomous Databaseを検出するために使用するエージェントがインストールおよび実行されているホスト。
-
-zip_file_location
Oracle Cloud Infrastructureクライアント資格証明(ウォレット)の
.zip
ファイルの場所。この.zip
ファイルの場所は、OMSホストからアクセスできる必要があります。 -
-credentials
ユーザー資格証明を監視します。adbsnmpユーザー・アカウントの使用をお薦めします。ユーザー・アカウントについてを参照してください。
-
-wallet_password
OCIクライアント資格証明ウォレットのダウンロード時に、Oracle Cloud Infrastructure Consoleで設定されたウォレット・パスワード。
-
-service_name
Autonomous Databaseの事前定義済データベース・サービス名。
low
データベース・サービスは、デフォルト値であり、モニタリング・タスクと管理タスクを実行します。このlow
データベース・サービスの使用をお薦めします。データベース・サービス名の詳細は、検出するAutonomous Databaseのドキュメントの事前定義済データベース・サービス名に関する項を参照してください。
ノート:
Oracle Enterprise Managerでは、TLSプロトコルを使用するAutonomous Database (専用)についてはTCPとTCPSの両方をサポートし、TLSプロトコルを使用するAutonomous Database (共有)についてはTCPSのみをサポートします。Autonomous Database (専用)のデフォルトのプロトコルはTCPです。 -
-is_dedicated
Autonomous Database (専用)の場合はTrue
、Autonomous Database (共有)の場合はFalse
です。このパラメータに値が指定されていない場合は、Autonomous Database-共有にデフォルト設定されます。 -
-standby_agent_host
バックアップ・エージェントがインストールされるホスト。プライマリ・エージェントが停止またはクラッシュした場合、バックアップ・エージェントはターゲットを監視します。これはオプションのパラメータです。
例
この例では、タイプoracle_cloud_adw
の新しいクラウド・データベース・ターゲットを追加します。
emcli add_cloud_db_target -name="ATPD1" -type="oracle_cloud_atp" -host="myhostname.example.com" -zip_file_location="/u01/oracle/atpd/wallet_ATPD1.zip" -credentials="UserName:adbsnmp;password:password;Role:Normal" -wallet_password="password" -service_name="ATPD1_low" -is_dedicated="True" -standby_agent_host="standbyhostname.example.com"