EM CLIを使用したAutonomous Databaseの検出
Oracle Enterprise Managerコマンドライン・インタフェース(EM CLI)動詞のadd_cloud_db_target
を使用すると、Oracle Enterprise ManagerでAutonomous Databaseを検出できます。
書式
emcli add_cloud_db_target
-target_name="target_name"
-target_type="target_type"
-agent_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"]
オプション
-target_name
: Autonomous Databaseターゲットの名前。-target_type
: Autonomous Databaseのタイプ。Autonomous Data Warehouseデータベースのターゲット・タイプ値は、oracle_cloud_adw
です。Autonomous Transaction Processingデータベースのターゲット・タイプ値は、oracle_cloud_atp
です。-agent_host
: Autonomous Databaseを検出するために使用するエージェントがインストールおよび実行されているホスト。-zip_file_location
: Oracle Cloud Infrastructureクライアント資格証明(ウォレット).zip
ファイルの場所。この.zip
ファイルの場所は、OMSホストからアクセスできる必要があります。-credentials
: モニタリング・ユーザー資格証明。adbsnmp
ユーザー・アカウントの使用をお薦めします。ユーザー・アカウントについてを参照してください。-wallet_password
: OCIクライアント資格証明ウォレットのダウンロード時に、Oracle Cloud Infrastructureコンソールで設定したウォレット・パスワード。-service_name
: Autonomous Databaseの事前定義済データベース・サービス名。low
データベース・サービスは、デフォルト値であり、モニタリング・タスクと管理タスクを実行します。このlow
データベース・サービスの使用をお薦めします。Oracle Enterprise Managerでは、Autonomous Database-専用にTLSプロトコルを使用することでTCPとTCPSの両方をサポートします。また、Autonomous Database-サーバーレスにTLSプロトコルを使用することでTCPSのみをサポートします。Autonomous Database-専用のデフォルト・プロトコルはTCPです。
データベース・サービス名の詳細は、検出するAutonomous DatabaseのドキュメントのAutonomous Databaseの事前定義済データベース・サービス名を参照してください。
-is_dedicated
: Autonomous Database (専用)の場合はTrue
、Autonomous Database (サーバーレス)の場合はFalse
です。このパラメータに値が指定されていない場合は、Autonomous Database-サーバーレスにデフォルト設定されます。-standby_agent_host
: バックアップ・エージェントがインストールされているホストです。プライマリ・エージェントが停止またはクラッシュした場合は、バックアップ・エージェントがターゲットを監視します。これはオプションのパラメータです。
例
emcli add_cloud_db_target
-target_name="ATPD1"
-target_type="oracle_cloud_atp"
-agent_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"