この章では、次の項でConnectorフレームワーク・インタフェースの使用方法について説明します。
Connectorフレームワークの概要
一般的な制限事項
前提条件
Connectorフレームワークのインストール
Connectorフレームワークのアンインストール
Webサービス・クライアント・スタブの生成
Connectorインタフェース
getModelインタフェース
setModelインタフェース
エラー・ケースの処理
Enterprise Manager Connectorフレームワークは、Enterprise Managerを拡張して、Enterprise Managerとその他の汎用または専用の管理フレームワーク・システムとの間の双方向通信を可能にします。Connectorフレームワークを介することで、Enterprise Managerは、他の管理システムとの間で、それらのシステムの専門領域を使用してアラートやイベント、パフォーマンス情報、根本原因分析などを交換できます。また、Connectorフレームワークを介すると、特定の専門分野を持つ他の管理システムに管理操作を委任することもできます。
Oracle Enterprise Manager 10g Grid Control Connectorフレームワーク10.2.0.4にはWebサービス・インタフェースがあり、これを使用してコネクタにリクエストを送信して、次のタスクを実行できます。
Connectorフレームワークのこのリリースには、次の一般的な制限事項が適用されます。
CFSおよびASMの記憶域タイプのみが現在サポートされています。
ディスク・グループは現在1つのみが許可されています。このため、RACを手動でインストールする場合は、flash_recovery
を無効にする必要があります。
Connectorフレームワークは、Enterprise Manager資格証明ユーザー名、Oracle Clusterware/RAC集計ターゲット名およびノード・ターゲット名で英語のみをサポートしています。
Connectorフレームワークを介してEnterprise Managerに統合されたシステムでは、ソフトウェア・ライブラリ・イメージを使用してRACデータベースを作成してから、RACにノードが追加できるようになります。
Enterprise Managerでは、現在、Connectorフレームワークに関する状況依存ヘルプを提供していません。この機能は今後サポートされる予定です。
クラスタ内では、すべてのホストに対するオペレーティング・システム資格証明が同じである必要があります。
ノードを削除した後は、他のノードを追加する前にまず削除したノードを元に戻す必要があります。
RACの最初のノード(RACの作成ジョブで指定されたもの)は、コネクタを介して削除できません。
Linuxプラットフォームの場合、ターゲット・マシン上でジョブを実行するユーザーは、oinstallグループに属している必要があります。
Windowsプラットフォームの場合:
rac_database
集計ターゲット名とデータベース・インスタンス名は大文字にする必要があります。
ノードの削除ジョブについては、oms_delete_all_targets
プロパティをtrueに設定する必要があります。
CFS記憶域を備えたLinuxプラットフォームの場合、rac_database
集計ターゲット名は大文字にする必要があります。
注意: 既知の問題に対するパッチおよび対処方法については、『Oracle Enterprise Manager Connectorフレームワーク・リリース・ノート』を参照してください。 |
Connectorフレームワークの前提条件として、次のことを確認する必要があります。
システム要件を満たしているかどうか。
emcliが設定されているかどうか。
Windows Agentに権限が割り当てられているかどうか。
イメージが準備されていてアクティブになっているかどうか。
さらに、セキュリティのため、HTTPSを使用してOMSが設定されているかどうか。
次の項では、これらの前提条件に準拠させる方法について説明しています。環境の設定に関する参考ドキュメントは、「関連ドキュメント」の項を参照してください。
Connectorフレームワークには、次のシステム要件があります。
Oracle Enterprise Manager Management Serverリリース10.2.0.2
Oracle Enterprise Manager Management Agentリリース10.2.0.2
Oracle Databaseリリース10.2.0.2
Connectorフレームワークを正しく機能させるには、emcliを次のように実行して設定する必要があります。
$ORACLE_HOME/bin/emcli setup -url=<OMS URL> -username=<sysman>
Windows OMSの場合は、リクエスト・モデルのoms_username
としてログインして、前述のコマンドを使用してemcliを設定します。
エージェントを実行するユーザーには権限が必要です。次に、Windows Server 2003でユーザーまたはグループに対して権限を設定する手順の例を示します。
「スタート」メニューから、「すべてのプログラム」→「管理ツール」→「ローカル セキュリティ ポリシー」と選択します。「ローカル セキュリティ設定」ウィンドウが表示されます。
左側のペインの「ローカル ポリシー」をダブルクリックして、その下の「ユーザー権利の割り当て」をクリックします。
右側ペインのリストの、ユーザーに割り当てるポリシー上でマウスの右ボタンをクリックし、「プロパティ」を選択します。
「ユーザーまたはグループの追加...」ボタンをクリックします。「ユーザーまたはグループの選択」ダイアログ・ボックスが表示されます。
ユーザー名またはグループ名を指定して、「OK」をクリックします。
次の項では、特定のプラットフォームの権限について説明します。
RACプロビジョニング操作(特にRACの作成)を正しく機能させるには、ソフトウェア・ライブラリ・イメージを準備してアクティブにする必要があります。次の手順は、この方法について説明しています。
Enterprise Managerエージェントは、ターゲット・サーバー上に配置されている必要があります。このリリースでは、次の方法のうち1つを使用して、ターゲット・コンピュータにエージェントをインストールする必要があります。
クラスタウェアをOCRおよび投票ディスクとともにインストールします。
データベース・インストール中にソフトウェアのみのインストール・オプションを選択します。
リリース10.2.0.2と、Oracle Bug#4437727用のオプションのデータベース・パッチを適用します。
DBCAを起動して、「テンプレートの管理」を選択します。
データベース・テンプレートを次のように作成します。
「フラッシュ・リカバリ領域の指定」の選択を解除して、「IFILE」を選択します。
記憶域セクションには何も指定する必要はありません。
手順4でEnterprise Managerのプロビジョニング機能を使用する前に、Enterprise Managerコンピュータにディレクトリを作成して、Enterprise Managerにソフトウェア・ライブラリ・パスを設定します。
Enterprise Managerから「デプロイ」タブを選択します。
「プロビジョニング」タブを選択します。
「管理」タブを選択します。
「ソフトウェア・ライブラリ構成」セクションで「追加」をクリックします。次のように入力できます。
/home/oracle/swlibs
プロビジョニング機能を使用して、このノードからOracle ClusterwareおよびOracle Databaseのイメージを作成します。
Enterprise Managerから「デプロイ」タブを選択します。
「プロビジョニング」タブを選択します。
「コンポーネントの作成」をクリックします。コンポーネントの作成ウィザードが表示されて、5つの手順が示されます。
Oracle Clusterwareのイメージから除外するファイルは*.log、*.err、*.out、*.trcで、Oracle Databaseのイメージから除外するファイルは*.log、*.dbf、sqlnet.ora、tnsnames.ora、listener.ora、およびoratabです。
次のようにイメージをアクティブにします。
Enterprise Managerから「デプロイ」タブを選択します。
「プロビジョニング」タブを選択します。
「コンポーネント」タブからイメージを選択し、「アクティブにする」をクリックしてイメージをアクティブにします。アクティブにするイメージごとにこの手順を繰り返します。
ConnectorフレームワークをOMSホームにインストールします。次の手順に示す$ORACLE_HOME
は、OMSホームを指します。
Connectorフレームワークをダウンロードしてインストールするには、次の手順を実行します。
OTNからConnectorフレームワークのインストール・ファイルをダウンロードします。「Downloads」をクリックし、「Enterprise Manager」をクリックします。
次のように実行してOMSを停止します。
$ORACLE_HOME/opmn/bin/opmnctl stopall
次のコマンドを実行して、Oracle Universal Installer(OUI)を起動します。
LinuxまたはUNIXの場合:
$ORACLE_HOME/oui/bin/runInstaller
Windowsの場合:
$ORACLE_HOME¥oui¥bin¥setup
OUIのプロンプトに従って、次のインストール・ソース・ディレクトリでproducts.xml
を見つけます。
connectors/framework/10.2.0.2/1.0/source/Disk1/stage
OUI画面の指示に従います。
次のいずれかのURLから、Enterprise Manager Webコンソールにアクセスします。
http://server:port/em/connector/ManagementService
https://server:port/em/connector/ManagementService
ConnectorフレームワークはOMSホームにインストールされています。次の手順に示す$ORACLE_HOME
は、OMSホームを指します。Connectorフレームワークをアンインストールするには、次の手順を実行します。
次のように実行してOMSを停止します。
$ORACLE_HOME/opmn/bin/opmnctl stopall
次のコマンドを実行して、Oracle Universal Installer(OUI)を起動します。
LinuxまたはUNIXの場合:
$ORACLE_HOME/oui/bin/runInstaller
Windowsの場合:
$ORACLE_HOME¥oui¥bin¥setup
「製品の削除...」をクリックし、OMSホーム下のリストを開き、アンインストールするコネクタの下にあるリストを開きます。
アンインストールするコネクタとその下にある「Connector Framework 10.2.0.4」を選択して、「削除...」ボタンをクリックします。
確認に対し「はい」をクリックして確定した後、OUIを終了します。
$ORACLE_HOME/j2ee/OC4J_EM/applications/em/em/WEB-INF/web.xml
から、例1-1のセクションを手動で削除します。
例1-1 Management Service Interface for Connector Frameworkのコード
<description>Management Service Interface for Connector Framework</description> <servlet> <servlet-name>ManagementService</servlet-name> <servlet-class>oracle.j2ee.ws.StatelessJavaRpcWebService</servlet-class> <init-param> <param-name>class-name</param-name> <param-value>oracle.sysman.connector.base.mgmtsvc. ManagementServiceImpl</param-value> </init-param> <init-param> <param-name>interface-name</param-name> <param-value>oracle.sysman.connector.base.mgmtsvc. IManagementService</param-value> </init-param> </servlet> <servlet-mapping> <servlet-name>ManagementService</servlet-name> <url-pattern>/connector/ManagementService</url-pattern> </servlet-mapping> <session-config> <session-timeout>35</session-timeout> </session-config> <mime-mapping> <extension>html</extension> <mime-type>text/html</mime-type> </mime-mapping> <mime-mapping> <extension>txt</extension> <mime-type>text/plain</mime-type> </mime-mapping>
次のように実行してOMSを起動します。
$ORACLE_HOME/opmn/bin/opmnctl startall
Connectorフレームワークが公開するWebサービスを介してEnterprise Managerに各システムを統合する場合は、次のサイトから取得できるWSDLファイルから、スタブ・クライアントを生成できます。
http://server:port/em/connector/ManagementService?wsdl
Connectorフレームワークは、リクエストおよびレスポンス用のモデルを使用します。リクエスト・モデルは、問合せまたはシステムの要求される状態を記述するものです。レスポンス・モデルは、問合せに関連する情報またはシステムの現在の状態を記述するものです。
Connectorフレームワークは、Webサービスを介して次のインタフェースを公開します。
次の項では、これらのモデルで使用される概念および構文構成について説明しています。
モデルおよび集計のターゲット・タイプが、Connectorフレームワーク統合用に提供されています。表1-1に、モデル・ターゲット・タイプとそれぞれの説明を示します。
プロパティ要素は、名前と値のペアです。プロパティを設定するには、例1-2で示すように値を挿入します。
プロパティを問い合せるには、例1-3で示すように、xsi:nil="true"
を設定します。
プロパティ"host"が、レスポンス・モデルでは<Property/>
要素ではなく<Host/>
要素として返されることに注意してください。プロパティの問合せの詳細は、第5章「参照表」を参照してください。
Enterprise Managerリポジトリにあるターゲットのリストと、集計ターゲットのメンバーを取得できます。例1-4に、Enterprise Managerリポジトリにあるターゲットのリストを問い合せる方法を示します。
<EMModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/sysman/connector/msi EMModel.xsd" xmlns="http://xmlns.oracle.com/sysman/connector/msi"> <RequestHeader> <RequestID>Test ID</RequestID> <Source>Test Source</Source> <Destination>Oracle</Destination> </RequestHeader> <Credential> <Name>sysman</Name> <Password>sysman</Password> </Credential> <Target> <Name>*</Name> <Type>*</Type> <Host>*</Host> </Target> </EMModel>
例1-5に、集計ターゲットのメンバーを問い合せる方法を示します。
<EMModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/sysman/connector/msi EMModel.xsd" xmlns="http://xmlns.oracle.com/sysman/connector/msi"> <RequestHeader> <RequestID>Test ID</RequestID> <Source>Test Source</Source> <Destination>Oracle</Destination> </RequestHeader> <Credential> <Name>sysman</Name> <Password>sysman</Password> </Credential> <AggregateTarget> <Name>rac</Name> <Type>rac_database</Type> <Target> <Name>*</Name> <Type>*</Type> <Host>*</Host> </Target> </AggregateTarget> </EMModel>
例1-6に、すべてのリクエスト・モデルおよびレスポンス・モデルに適用されるEMModel.xsd
スキーマを示します。
例1-6 EMModel.xsdリクエストおよびレスポンス・モデル・スキーマ
<?xml version="1.0" encoding="UTF-8" ?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://xmlns.oracle.com/sysman/connector/base/msi" elementFormDefault="qualified"> <xsd:simpleType name="Name"> <xsd:restriction base="xsd:string"/> </xsd:simpleType> <xsd:simpleType name="Type"> <xsd:restriction base="xsd:string"/> </xsd:simpleType> <xsd:simpleType name="TargetType"> <xsd:restriction base="xsd:string"/> </xsd:simpleType> <xsd:simpleType name="AggregateTargetType"> <xsd:restriction base="xsd:string"> <xsd:enumeration value="cluster"/> <xsd:enumeration value="rac_database"/> </xsd:restriction> </xsd:simpleType> <xsd:simpleType name="Host"> <xsd:restriction base="xsd:string"/> </xsd:simpleType> <xsd:simpleType name="Username"> <xsd:restriction base="xsd:string"/> </xsd:simpleType> <xsd:simpleType name="Password"> <xsd:restriction base="xsd:string"/> </xsd:simpleType> <xsd:simpleType name="Value"> <xsd:restriction base="xsd:string"/> </xsd:simpleType> <xsd:simpleType name="RequestID"> <xsd:restriction base="xsd:string"/> </xsd:simpleType> <xsd:complexType name="Credential"> <xsd:sequence> <xsd:element name="Name" type="Username"/> <xsd:element name="Password" type="Password"/> </xsd:sequence>
</xsd:complexType> <xsd:complexType name="Threshold"> <xsd:sequence> <xsd:element name="ColumnName" type="xsd:string"/> <xsd:element name="Operator" type="xsd:string"/> <xsd:element name="WarningValue" type="Value" minOccurs="0"/> <xsd:element name="CriticalValue" type="Value" minOccurs="0"/> <xsd:element name="Response" type="xsd:string" minOccurs="0"/> <xsd:element name="Occurrences" type="xsd:int"/> </xsd:sequence> </xsd:complexType> <xsd:complexType name="Metric"> <xsd:sequence> <xsd:element name="Name" type="Name"/><!-- for example, ECM or regular. --> <xsd:element name="Type" type="Type"/> <xsd:element name="Threshold" type="Threshold" minOccurs="0" maxOccurs="unbounded"/> </xsd:sequence> </xsd:complexType> <xsd:complexType name="Property"> <xsd:sequence> <xsd:element name="Name" type="Name"/> <xsd:element name="Value" type="Value" nillable="true"/> </xsd:sequence> </xsd:complexType> <xsd:complexType name="ComplexProperty"> <xsd:sequence> <xsd:element name="Type" type="Type"/> <xsd:element name="Property" type="Property" maxOccurs="unbounded"/> </xsd:sequence> </xsd:complexType> <xsd:complexType name="RequestHeader"> <xsd:sequence> <xsd:element name="RequestID" type="RequestID"/> <xsd:element name="Source" type="Name"/> <xsd:element name="Destination" type="Name"/> <xsd:element name="RequestProperty" type="ComplexProperty" minOccurs="0"/> </xsd:sequence> </xsd:complexType>
<xsd:complexType name="StorageType"> <xsd:sequence> <xsd:element name="Type"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:enumeration value="CFS"/> <xsd:enumeration value="ASM"/> <xsd:enumeration value="RAW"/> </xsd:restriction> </xsd:simpleType> </xsd:element> <xsd:element name="Property" type="Property" maxOccurs="unbounded"/> </xsd:sequence> </xsd:complexType> <xsd:complexType name="Job"> <xsd:sequence> <xsd:element name="JobId" type="xsd:string"/> <xsd:element name="Target" type="Target" maxOccurs="unbounded" minOccurs="0"/> <xsd:element name="JobStatus" type="xsd:int" nillable="true" minOccurs="0"/> <xsd:element name="Property" type="Property" minOccurs="0" maxOccurs="unbounded"/> <xsd:element name="Parameter" type="Property" minOccurs="0" maxOccurs="unbounded"/> </xsd:sequence> </xsd:complexType> <xsd:complexType name="Target"> <xsd:sequence> <xsd:element name="Name" type="Name"/> <xsd:element name="Type" type="TargetType"/> <xsd:element name="Host" type="Host" minOccurs="0"/> <xsd:element name="Storage" type="StorageType" minOccurs="0"/> <xsd:element name="Credential" type="Credential" minOccurs="0"/> <xsd:element name="Property" type="Property" minOccurs="0" maxOccurs="unbounded"/> <xsd:element name="ComplexProperty" type="ComplexProperty" maxOccurs="unbounded" minOccurs="0"/> <xsd:element name="Metric" type="Metric" minOccurs="0" maxOccurs="unbounded"/> </xsd:sequence>
</xsd:complexType> <xsd:complexType name="AggregateTarget"> <xsd:sequence> <xsd:element name="Name" type="Name"/> <xsd:element name="Type" type="AggregateTargetType"/><!-- for Aggregate target, the host is not required. --> <xsd:element name="Host" type="Host" minOccurs="0"/> <xsd:element name="Storage" type="StorageType" minOccurs="0"/> <xsd:element name="Credential" type="Credential" minOccurs="0"/> <xsd:element name="Target" type="Target" minOccurs="1" maxOccurs="unbounded"/> <xsd:element name="Property" type="Property" minOccurs="0" maxOccurs="unbounded"/> <xsd:element name="ComplexProperty" type="ComplexProperty" maxOccurs="unbounded" minOccurs="0"/> <xsd:element name="Metric" minOccurs="0" maxOccurs="unbounded"/> </xsd:sequence> </xsd:complexType> <xsd:element name="EMModel"> <xsd:annotation> <xsd:documentation>EM Model in integration. </xsd:documentation> </xsd:annotation> <xsd:complexType> <xsd:sequence minOccurs="1"> <xsd:element name="RequestHeader" type="RequestHeader"/> <xsd:element name="Credential" minOccurs="1" type="Credential"/> <xsd:element name="Job" type="Job" minOccurs="0" maxOccurs="unbounded"/> <xsd:element name="AggregateTarget" minOccurs="0" maxOccurs="unbounded" type="AggregateTarget"/> <xsd:element name="Target" minOccurs="0" maxOccurs="unbounded" type="Target"/> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:schema>
この問合せモデルでは、コネクタはリクエストに従って空のプロパティに値を埋め、埋込み済のXMLを返します。1回のリクエストで複数のプロパティを問い合せることができます。
例1-7に、ジョブ・ターゲットのJobStatus
プロパティを問い合せる方法を示します。リリース10.2.0.4では、どのプロパティが要求されたかに関係なく、JobStatus
およびOutput
の各プロパティが返されます。
<?xml version="1.0" encoding="UTF-8" ?> <EMModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.oracle.com/sysman/connector/base/msi"> <RequestHeader> <RequestID>JOBSTATUSQUERY0123456789</RequestID> <Source>JP</Source> <Destination>Oracle</Destination> </RequestHeader> <Credential> <Name>sysman</Name> <Password>welcome1</Password> </Credential> <Job> <JobId>1294ADF5443F9B67E0408EDB0B497568</JobId> <Property> <Name>JobStatus</Name> <Value xsi:nil="true" /> </Property> <!-- <Property> <Name>output</Name> <Value xsi:nil="true"></Value> </Property> --> </Job> </EMModel>
例1-8に、リクエストを送信してデータベース・ターゲット・プロパティを問い合せる方法を示します。
例1-8 データベース・ターゲット・プロパティの問合せ(リクエスト)
<?xml version='1.0' encoding='UTF-8'?> <EMModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.oracle.com/sysman/connector/base/msi"> <RequestHeader> <RequestID>DBQUERY0123456789</RequestID> <Source>source</Source> <Destination>Oracle</Destination> </RequestHeader> <Credential> <Name>sysman</Name> <Password>welcome1</Password> </Credential> <Target> <Name>rac33_rac331</Name> <Type>oracle_database</Type> <!--general properties--> <Property> <Name>status</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>monitoring agent</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>host</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>homepage</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>version</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>oracle home</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>critical alerts</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>warning alerts</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>critical policy violations</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>warning policy violations</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>compliance score</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>last load time</Name> <Value xsi:nil="true"> </Value> </Property> <!--db properties--> <Property> <Name>instance name</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>listener</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>is archiving</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>is flashback logging</Name> <Value xsi:nil="true"> </Value> </Property> </Target> </EMModel>
次のターゲット問合せ用コードは、ターゲット・タイプが異なる点以外は、データベース・ターゲットの問合せ(例1-8)に似ています。適切なターゲット・タイプについては、表1-1および表1-2を参照してください。
例1-9に、データベース・ターゲット・プロパティを問い合せたときに受け取るレスポンスを示します。
例1-9 データベース・ターゲット・プロパティの問合せ(レスポンス)
<?xml version = '1.0' encoding = 'UTF-8'?> <ns0:EMModel xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns0="http://xmlns.oracle.com/sysman/connector/base/msi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <ns0:RequestHeader> <ns0:RequestID>DBQUERY0123456789</ns0:RequestID> <ns0:Source>Oracle</ns0:Source> <ns0:Destination>source</ns0:Destination> </ns0:RequestHeader> <ns0:Credential> <ns0:Name>*</ns0:Name> <ns0:Password>*</ns0:Password> </ns0:Credential> <ns0:Target> <ns0:Name>rac33_rac331</ns0:Name> <ns0:Type>oracle_database</ns0:Type> <ns0:Host>bjx33</ns0:Host> <ns0:Property> <ns0:Name>is archiving</ns0:Name> <ns0:Value>0</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>monitoring agent</ns0:Name> <ns0:Value>https://bjx33:3872/emd/main/</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>critical alerts</ns0:Name> <ns0:Value>0</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>critical policy violations</ns0:Name> <ns0:Value>1</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>homepage</ns0:Name> <ns0:Value>/em/console/database/instance/sitemap?type= oracle_database&target=rac33_rac331&event=doLoad</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>last load time</ns0:Name> <ns0:Value>1153085627000</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>compliance score</ns0:Name> <ns0:Value>0.9580851063829787</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>warning policy violations</ns0:Name> <ns0:Value>9</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>status</ns0:Name> <ns0:Value>1</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>is flashback logging</ns0:Name> <ns0:Value>0</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>instance name</ns0:Name> <ns0:Value>rac331</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>version</ns0:Name> <ns0:Value>10.2.0.1.0</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>warning alerts</ns0:Name> <ns0:Value>1</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>oracle home</ns0:Name> <ns0:Value>/home/oracle/oracle/product/10.2.0/db_1</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>listener</ns0:Name> <ns0:Value>LISTENER_BJX33_bjx33</ns0:Value> </ns0:Property> </ns0:Target> </ns0:EMModel>
例1-10に、リクエストを送信してリスナー・プロパティを問い合せる方法を示します。
<?xml version='1.0' encoding='UTF-8'?> <EMModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.oracle.com/sysman/connector/base/msi"> <RequestHeader> <RequestID>DBQUERY0123456789</RequestID> <Source>source</Source> <Destination>Oracle</Destination> </RequestHeader> <Credential> <Name>sysman</Name> <Password>welcome1</Password> </Credential> <Target> <Name>LISTENER_BJX33_bjx33</Name> <Type>oracle_listener</Type> <!--general properties--> <Property> <Name>status</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>monitoring agent</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>homepage</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>oracle home</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>critical alerts</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>warning alerts</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>critical policy violations</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>warning policy violations</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>compliance score</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>last load time</Name> <Value xsi:nil="true"> </Value> </Property> <!--listener properties--> <Property> <Name>alias</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>net address</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>listener.ora location</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>start time</Name> <Value xsi:nil="true"> </Value> </Property> </Target> </EMModel>
例1-11に、リスナー・プロパティを問い合せたときに受け取るレスポンスを示します。
<?xml version = '1.0' encoding = 'UTF-8'?> <ns0:EMModel xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns0="http://xmlns.oracle.com/sysman/connector/base/msi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <ns0:RequestHeader> <ns0:RequestID>DBQUERY0123456789</ns0:RequestID> <ns0:Source>Oracle</ns0:Source> <ns0:Destination>source</ns0:Destination> </ns0:RequestHeader> <ns0:Credential> <ns0:Name>*</ns0:Name> <ns0:Password>*</ns0:Password> </ns0:Credential> <ns0:Target> <ns0:Name>LISTENER_BJX33_bjx33</ns0:Name> <ns0:Type>oracle_listener</ns0:Type> <ns0:Host>bjx33</ns0:Host> <ns0:Property> <ns0:Name>monitoring agent</ns0:Name> <ns0:Value>https://bjx33:3872/emd/main/</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>critical alerts</ns0:Name> <ns0:Value>0</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>start time</ns0:Name> <ns0:Value>16-JUL-2006 23:18:20</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>critical policy violations</ns0:Name> <ns0:Value>2</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>homepage</ns0:Name> <ns0:Value>/em/console/net/lsnr/home?type= oracle_listener&target=LISTENER_BJX33_bjx33</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>last load time</ns0:Name> <ns0:Value>1153086286000</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>compliance score</ns0:Name> <ns0:Value>0.9367741935483871</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>warning policy violations</ns0:Name> <ns0:Value>2</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>status</ns0:Name> <ns0:Value>1</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>alias</ns0:Name> <ns0:Value>LISTENER_BJX33</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>net address</ns0:Name> <ns0:Value>(ADDRESS=(PROTOCOL=TCP) (HOST=219.142.73.17)(PORT=1521))</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>warning alerts</ns0:Name> <ns0:Value>0</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>oracle home</ns0:Name> <ns0:Value>/home/oracle/oracle/product/10.2.0/db_1</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>listener.ora location</ns0:Name> <ns0:Value>/home/oracle/oracle/product/ 10.2.0/db_1/network/admin</ns0:Value> </ns0:Property> </ns0:Target> </ns0:EMModel>
例1-12に、リクエストを送信してホスト・プロパティを問い合せる方法を示します。
<?xml version='1.0' encoding='UTF-8'?> <EMModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.oracle.com/sysman/connector/base/msi"> <RequestHeader> <RequestID>DBQUERY0123456789</RequestID> <Source>source</Source> <Destination>Oracle</Destination> </RequestHeader> <Credential> <Name>sysman</Name> <Password>welcome1</Password> </Credential> <Target> <Name>cdcjp19.cn.oracle.com</Name> <Type>host</Type> <!--general properties--> <Property> <Name>status</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>monitoring agent</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>homepage</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>version</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>critical alerts</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>warning alerts</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>critical policy violations</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>warning policy violations</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>compliance score</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>last load time</Name> <Value xsi:nil="true"> </Value> </Property> <!--host properties--> <Property> <Name>cluster</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>cpu utilization</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>memory utilization</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>total io rate</Name> <Value xsi:nil="true"> </Value> </Property> </Target> </EMModel>
例1-13に、ホスト・プロパティを問い合せたときに受け取るレスポンスを示します。
<?xml version = '1.0' encoding = 'UTF-8'?> <ns0:EMModel xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns0="http://xmlns.oracle.com/sysman/connector/base/msi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <ns0:RequestHeader> <ns0:RequestID>DBQUERY0123456789</ns0:RequestID> <ns0:Source>Oracle</ns0:Source> <ns0:Destination>source</ns0:Destination> </ns0:RequestHeader> <ns0:Credential> <ns0:Name>*</ns0:Name> <ns0:Password>*</ns0:Password> </ns0:Credential> <ns0:Target> <ns0:Name>cdcjp19.cn.oracle.com</ns0:Name> <ns0:Type>host</ns0:Type> <ns0:Host>cdcjp19.cn.oracle.com</ns0:Host> <ns0:Property> <ns0:Name>monitoring agent</ns0:Name> <ns0:Value>https://cdcjp19.cn.oracle.com:3872/emd/main/</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>critical alerts</ns0:Name> <ns0:Value>0</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>critical policy violations</ns0:Name> <ns0:Value>5</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>homepage</ns0:Name> <ns0:Value>/em/console/monitoring/hostOverview$type=host$target= cdcjp19.cn.oracle.com</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>last load time</ns0:Name> <ns0:Value>1153125579000</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>compliance score</ns0:Name> <ns0:Value>0.755</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>total io rate</ns0:Name> <ns0:Value>29.72</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>warning policy violations</ns0:Name> <ns0:Value>2</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>status</ns0:Name> <ns0:Value>1</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>version</ns0:Name> <ns0:Value>Red Hat Enterprise Linux AS release 4 (Nahant Update 3) </ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>memory utilization</ns0:Name> <ns0:Value>0.9767</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>warning alerts</ns0:Name> <ns0:Value>4</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>cpu utilization</ns0:Name> <ns0:Value>0.0161</ns0:Value> </ns0:Property> </ns0:Target> </ns0:EMModel>
例1-14に、リクエストを送信してエージェント・プロパティを問い合せる方法を示します。
<?xml version='1.0' encoding='UTF-8'?> <EMModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.oracle.com/sysman/connector/base/msi"> <RequestHeader> <RequestID>DBQUERY0123456789</RequestID> <Source>source</Source> <Destination>Oracle</Destination> </RequestHeader> <Credential> <Name>sysman</Name> <Password>welcome1</Password> </Credential> <Target> <Name>bjx33:3872</Name> <Type>oracle_emd</Type> <!--general properties--> <Property> <Name>status</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>monitoring agent</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>host</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>homepage</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>version</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>oracle home</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>critical alerts</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>warning alerts</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>critical policy violations</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>warning policy violations</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>last load time</Name> <Value xsi:nil="true"> </Value> </Property> <!--agent properties--> <Property> <Name>management service</Name> <Value xsi:nil="true"> </Value> </Property> </Target> </EMModel>
例1-15に、エージェント・プロパティを問い合せたときに受け取るレスポンスを示します。
<?xml version = '1.0' encoding = 'UTF-8'?> <ns0:EMModel xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns0="http://xmlns.oracle.com/sysman/connector/base/msi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <ns0:RequestHeader> <ns0:RequestID>DBQUERY0123456789</ns0:RequestID> <ns0:Source>Oracle</ns0:Source> <ns0:Destination>source</ns0:Destination> </ns0:RequestHeader> <ns0:Credential> <ns0:Name>*</ns0:Name> <ns0:Password>*</ns0:Password> </ns0:Credential> <ns0:Target> <ns0:Name>bjx33:3872</ns0:Name> <ns0:Type>oracle_emd</ns0:Type> <ns0:Host>bjx33</ns0:Host> <ns0:Property> <ns0:Name>monitoring agent</ns0:Name> <ns0:Value>https://bjx33:3872/emd/main/</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>management service</ns0:Name> <ns0:Value>cdcjp19.cn.oracle.com:1159</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>warning alerts</ns0:Name> <ns0:Value>0</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>critical alerts</ns0:Name> <ns0:Value>1</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>last load time</ns0:Name> <ns0:Value>1153084611000</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>homepage</ns0:Name> <ns0:Value>/em/console/admin/rep/emdConfig/emdTargetsMain$type= oracle*_emd$target=bjx33_3A3872</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>critical policy violations</ns0:Name> <ns0:Value>0</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>oracle home</ns0:Name> <ns0:Value>/home/oracle/OracleHomes/agent10g</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>status</ns0:Name> <ns0:Value>1</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>warning policy violations</ns0:Name> <ns0:Value>0</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>version</ns0:Name> <ns0:Value>10.2.0.1.0</ns0:Value> </ns0:Property> </ns0:Target> </ns0:EMModel>
例1-16に、リクエストを送信してEnterprise Managerリポジトリのプロパティを問い合せる方法を示します。
例1-16 Enterprise Managerリポジトリのプロパティの問合せ(リクエスト)
<?xml version='1.0' encoding='UTF-8'?> <EMModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.oracle.com/sysman/connector/base/msi"> <RequestHeader> <RequestID>DBQUERY0123456789</RequestID> <Source>source</Source> <Destination>Oracle</Destination> </RequestHeader> <Credential> <Name>sysman</Name> <Password>welcome1</Password> </Credential> <Target> <Name>Management Services and Repository</Name> <Type>oracle_emrep</Type> <!--general properties--> <Property> <Name>status</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>monitoring agent</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>host</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>homepage</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>critical alerts</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>warning alerts</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>critical policy violations</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>warning policy violations</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>last load time</Name> <Value xsi:nil="true"> </Value> </Property> <!--em properties--> <Property> <Name>agent count</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>target count</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>administrator count</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>session count</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>database</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>tablespace</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>oms</Name> <Value xsi:nil="true"> </Value> </Property> </Target> </EMModel>
例1-17に、Enterprise Managerリポジトリのプロパティを問い合せたときに受け取るレスポンスを示します。
例1-17 Enterprise Managerリポジトリのプロパティの問合せ(レスポンス)
<?xml version = '1.0' encoding = 'UTF-8'?> <ns0:EMModel xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns0="http://xmlns.oracle.com/sysman/connector/base/msi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <ns0:RequestHeader> <ns0:RequestID>DBQUERY0123456789</ns0:RequestID> <ns0:Source>Oracle</ns0:Source> <ns0:Destination>source</ns0:Destination> </ns0:RequestHeader> <ns0:Credential> <ns0:Name>*</ns0:Name> <ns0:Password>*</ns0:Password> </ns0:Credential> <ns0:Target> <ns0:Name>Management Services and Repository</ns0:Name> <ns0:Type>oracle_emrep</ns0:Type> <ns0:Host>cdcjp19.cn.oracle.com</ns0:Host> <ns0:Property> <ns0:Name>target count</ns0:Name> <ns0:Value>31</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>agent count</ns0:Name> <ns0:Value>4</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>monitoring agent</ns0:Name> <ns0:Value>https://cdcjp19.cn.oracle.com:3872/emd/main/</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>administrator count</ns0:Name> <ns0:Value>4</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>session count</ns0:Name> <ns0:Value>15</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>critical alerts</ns0:Name> <ns0:Value>0</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>critical policy violations</ns0:Name> <ns0:Value>0</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>homepage</ns0:Name> <ns0:Value>/em/console/health/healthHome$type=oracle*_emrep$target= Management_20Services_20and_20Repository</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>last load time</ns0:Name> <ns0:Value>1153109200000</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>warning policy violations</ns0:Name> <ns0:Value>0</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>status</ns0:Name> <ns0:Value>1</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>tablespace</ns0:Name> <ns0:Value>MGMT_ECM_DEPOT_TS</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>tablespace</ns0:Name> <ns0:Value>MGMT_TABLESPACE</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>warning alerts</ns0:Name> <ns0:Value>0</ns0:Value> </ns0:Property> <ns0:ComplexProperty> <ns0:Type>oms</ns0:Type> <ns0:Property> <ns0:Name>files pending load</ns0:Name> <ns0:Value>0</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>oldest load file</ns0:Name> <ns0:Value>0</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>load directory</ns0:Name> <ns0:Value>/home/oracle/OracleHomes/oms10g/sysman/recv</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>status</ns0:Name> <ns0:Value>1</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>name</ns0:Name> <ns0:Value>cdcjp19.cn.oracle.com:4889_Management_Service</ns0:Value> </ns0:Property> </ns0:ComplexProperty> <ns0:ComplexProperty> <ns0:Type>database</ns0:Type> <ns0:Property> <ns0:Name>type</ns0:Name> <ns0:Value>oracle_database</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>name</ns0:Name> <ns0:Value>emrep.cn.oracle.com</ns0:Value> </ns0:Property> </ns0:ComplexProperty> </ns0:Target> </ns0:EMModel>
例1-18に、リクエストを送信してRACプロパティを問い合せる方法を示します。
<?xml version='1.0' encoding='UTF-8'?> <EMModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.oracle.com/sysman/connector/base/msi"> <RequestHeader> <RequestID>CLUSTERDBQUERY0123456789</RequestID> <Source>source</Source> <Destination>Oracle</Destination> </RequestHeader> <Credential> <Name>sysman</Name> <Password>welcome1</Password> </Credential> <Target> <Name>rac33</Name> <Type>rac_database</Type> <!--general properties--> <Property> <Name>status</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>monitoring agent</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>host</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>homepage</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>version</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>oracle home</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>critical alerts</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>warning alerts</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>critical policy violations</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>warning policy violations</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>compliance score</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>last load time</Name> <Value xsi:nil="true"> </Value> </Property> <!--cluster database properties--> <Property> <Name>cluster</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>database name</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>is archiving</Name> <Value xsi:nil="true"> </Value> </Property> </Target> </EMModel>
例1-19に、RACプロパティを問い合せたときに受け取るレスポンスを示します。
<?xml version = '1.0' encoding = 'UTF-8'?> <ns0:EMModel xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns0="http://xmlns.oracle.com/sysman/connector/base/msi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <ns0:RequestHeader> <ns0:RequestID>CLUSTERDBQUERY0123456789</ns0:RequestID> <ns0:Source>Oracle</ns0:Source> <ns0:Destination>source</ns0:Destination> </ns0:RequestHeader> <ns0:Credential> <ns0:Name>*</ns0:Name> <ns0:Password>*</ns0:Password> </ns0:Credential> <ns0:Target> <ns0:Name>rac33</ns0:Name> <ns0:Type>rac_database</ns0:Type> <ns0:Host>bjx33</ns0:Host> <ns0:Property> <ns0:Name>is archiving</ns0:Name> <ns0:Value>0</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>monitoring agent</ns0:Name> <ns0:Value>https://bjx33:3872/emd/main/</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>database name</ns0:Name> <ns0:Value>rac33</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>critical alerts</ns0:Name> <ns0:Value>0</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>critical policy violations</ns0:Name> <ns0:Value>9</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>homepage</ns0:Name> <ns0:Value>/em/console/rac/racSitemap?event=doLoad& type=rac_database&target=rac33</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>last load time</ns0:Name> <ns0:Value>1153084601000</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>compliance score</ns0:Name> <ns0:Value>0.8763636363636365</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>warning policy violations</ns0:Name> <ns0:Value>2</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>status</ns0:Name> <ns0:Value>1</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>cluster</ns0:Name> <ns0:Value>crs33</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>version</ns0:Name> <ns0:Value>10.2.0.1.0</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>warning alerts</ns0:Name> <ns0:Value>0</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>oracle home</ns0:Name> <ns0:Value>/home/oracle/oracle/product/10.2.0/db_1</ns0:Value> </ns0:Property> </ns0:Target> </ns0:EMModel>
例1-20に、リクエストを送信してOracle Clusterwareプロパティを問い合せる方法を示します。
例1-20 Oracle Clusterwareプロパティの問合せ(リクエスト)
<?xml version='1.0' encoding='UTF-8'?> <EMModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.oracle.com/sysman/connector/base/msi"> <RequestHeader> <RequestID>CLUSTERQUERY0123456789</RequestID> <Source>source</Source> <Destination>Oracle</Destination> </RequestHeader> <Credential> <Name>sysman</Name> <Password>welcome1</Password> </Credential> <Target> <Name>crs33</Name> <Type>cluster</Type> <!--general properties--> <Property> <Name>status</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>monitoring agent</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>homepage</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>version</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>oracle home</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>critical alerts</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>warning alerts</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>critical policy violations</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>warning policy violations</Name> <Value xsi:nil="true"> </Value> </Property> <Property> <Name>last load time</Name> <Value xsi:nil="true"> </Value> </Property> <!--cluster properties--> <Property> <Name>cluster database</Name> <Value xsi:nil="true"> </Value> </Property> </Target> </EMModel>
例1-21に、Oracle Clusterwareプロパティを問い合せたときに受け取るレスポンスを示します。
例1-21 Oracle Clusterwareプロパティの問合せ(レスポンス)
<?xml version = '1.0' encoding = 'UTF-8'?> <ns0:EMModel xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns0="http://xmlns.oracle.com/sysman/connector/base/msi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <ns0:RequestHeader> <ns0:RequestID>CLUSTERQUERY0123456789</ns0:RequestID> <ns0:Source>Oracle</ns0:Source> <ns0:Destination>source</ns0:Destination> </ns0:RequestHeader> <ns0:Credential> <ns0:Name>*</ns0:Name> <ns0:Password>*</ns0:Password> </ns0:Credential> <ns0:Target> <ns0:Name>crs33</ns0:Name> <ns0:Type>cluster</ns0:Type> <ns0:Host>bjx33</ns0:Host> <ns0:Property> <ns0:Name>monitoring agent</ns0:Name> <ns0:Value>https://bjx33:3872/emd/main/</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>cluster database</ns0:Name> <ns0:Value>rac33</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>warning alerts</ns0:Name> <ns0:Value>6</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>critical alerts</ns0:Name> <ns0:Value>0</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>last load time</ns0:Name> <ns0:Value>1153084469000</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>homepage</ns0:Name> <ns0:Value>/em/console/rac/cluster/racClusterSitemap?event= doLoad&type=cluster&target=crs33</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>critical policy violations</ns0:Name> <ns0:Value>0</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>oracle home</ns0:Name> <ns0:Value>/home/oracle/oracle/product/10.2.0/crs</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>status</ns0:Name> <ns0:Value>1</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>warning policy violations</ns0:Name> <ns0:Value>0</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>version</ns0:Name> <ns0:Value>2.1</ns0:Value> </ns0:Property> </ns0:Target> </ns0:EMModel>
このプロビジョニング・モデルでは、コネクタは、リクエスト・モデルに記述されている状態とシステムの現在の状態とを比較して、必要な処理を決定します。リクエストが有効な場合、操作は非同期で行われます。ジョブIDはすぐにリクエスト元に返されます。リクエスト元はこのジョブIDを使用して、ジョブの状態を後で問い合せることができます。
setModel
APIは、次のプロビジョニング操作をサポートします。
RACの作成
既存のRACへのノードの追加
既存のRACからのノードの削除
setModel
ジョブがWindows OMSで正常に実行されるようにするには、Oracleagent10gAgent
サービスの「ログオン」プロパティを、「ローカル システム アカウント」から、リクエスト・モデルに指定されているoms_username
およびoms_password
に変更する必要があります。たとえば、Windows Server 2003で「ログオン」プロパティを変更するには、次の手順を実行します。
「スタート」メニューから、「すべてのプログラム」→「管理ツール」→「サービス」と選択します。
サービスのリストの「Oracleagent10gAgent」上でマウスの右ボタンをクリックして、「プロパティ」を選択します。
「ログオン」タブを選択し、「このアカウント」を選択します。
setModel
リクエスト・モデルに指定するoms_username
およびoms_password
を入力し、「OK」をクリックします。
サービスのリストの「Oracleagent10gAgent」上でマウスの右ボタンをクリックして、「停止」をクリックします。
サービスのリストの「Oracleagent10gAgent」上でマウスの右ボタンをクリックして、「開始」をクリックします。
例1-22および例1-23では、次のパラメータを使用して1つのノードのRACを作成するリクエストをコネクタに送信する方法を示します。
Enterprise Managerホスト・ターゲット名: bjx33.cn.oracle.com
1つのノードのRAC名: RAC33
クラスタ名: CRS33
インスタンス名: RAC33_RAC331
記憶域タイプ: ASM
言語: 日本語
注意: Enterprise ManagerのRACインスタンスのデフォルト・ターゲット名は、<rac_name>_<rac_instance_name> です。例1-22および例1-23では、Enterprise Managerターゲット名はRAC33_RAC331 です。Connectorフレームワークは、このデフォルトのネーミング規則を使用します。リクエストでは必ず正しいターゲット名を渡してください。 |
例1-22 1つのノードのRACの作成(ASM記憶域を備えたLinuxプラットフォーム)
<?xml version = '1.0' encoding = 'UTF-8'?> <EMModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.oracle.com/sysman/connector/base/msi"> <RequestHeader> <RequestID>INITIALCREATION1234567890</RequestID> <Source>Oracle</Source> <Destination>Oracle</Destination> <RequestProperty> <Type>Singleton</Type> <Property> <Name>Platform</Name> <Value>Linux</Value> </Property> </RequestProperty> </RequestHeader> <Credential> <Name>sysman</Name> <Password>welcome1</Password> </Credential> <AggregateTarget> <Name>CRS33</Name> <Type>cluster</Type> <Target> <Name>bjx33.cn.oracle.com</Name> <Type>host</Type> <Host>bjx33.cn.oracle.com</Host> <Credential> <Name>oracle</Name> <Password>welcome1</Password> </Credential> <Property> <Name>CRS_HOME</Name> <Value>/home/oracle/oracle/product/10.2.0/crs</Value> </Property> <Property> <Name>ORACLE_HOME_NAME</Name> <Value>OraCrs10g_home</Value> </Property> <Property> <Name>publicNode</Name> <Value>bjx33</Value> </Property> <Property> <Name>privateNode</Name> <Value>bjx33-priv</Value> </Property> <Property> <Name>vipNode</Name> <Value>bjx33-vip</Value> </Property> </Target> <Property> <Name>softwareImageName</Name> <Value>crs33</Value> </Property> <Property> <Name>s_ocrpartitionlocation</Name> <Value>/dev/raw/raw6</Value> </Property> <Property> <Name>s_votingdisklocation</Name> <Value>/dev/raw/raw11</Value> </Property> </AggregateTarget> <AggregateTarget> <Name>RAC33</Name> <Type>rac_database</Type> <Storage> <Type>ASM</Type> <Property> <Name>diskGroupName</Name> <Value>DATA33</Value> </Property> <Property> <Name>diskList</Name> <Value>/dev/raw/raw2</Value> </Property> <Property> <Name>redundancy</Name> <Value>external</Value> </Property> <Property> <Name>asmPassword</Name> <Value>welcome1</Value> </Property> </Storage> <Target> <Name>RAC33_RAC331</Name> <Type>oracle_database</Type> <Host>bjx33.cn.oracle.com</Host> <Credential> <Name>oracle</Name> <Password>welcome1</Password> </Credential> <Property> <Name>ORACLE_HOME</Name> <Value>/home/oracle/oracle/product/10.2.0/db_1</Value> </Property> <Property> <Name>ORACLE_HOME_NAME</Name> <Value>OraDb10g_home1</Value> </Property> <Property> <Name>db_username</Name> <Value>sys</Value> </Property> <Property> <Name>db_password</Name> <Value>welcome1</Value> </Property> <Property> <Name>oms_username</Name> <Value>oracle</Value> </Property> <Property> <Name>oms_password</Name> <Value>welcome1</Value> </Property> </Target> <Property> <Name>templateName</Name> <Value>General_Purpose.dbc</Value> </Property> <Property> <Name>gdbName</Name> <Value>RAC33</Value> </Property> <Property> <Name>sid</Name> <Value>RAC33</Value> </Property> <Property> <Name>characterSet</Name> <Value>JA16EUC</Value> </Property> <Property> <Name>nationalCharacterSet</Name> <Value>AL16UTF16</Value> </Property> <Property> <Name>initParams</Name> <Value>nls_territory=japan,nls_language=japanese</Value> </Property> <Property> <Name>softwareImageName</Name> <Value>db33</Value> </Property> </AggregateTarget> </EMModel>
例1-23に示すWindowsプラットフォームのジョブでは、RACの作成ジョブの実行時にターゲット・コンピュータにC:¥temp
ディレクトリが存在しない場合はコネクタがこれを作成することに注意してください。
例1-23 1つのノードのRACの作成(CFS記憶域を備えたWindowsプラットフォーム)
<?xml version = '1.0' encoding = 'UTF-8'?> <EMModel xmlns="http://xmlns.oracle.com/sysman/connector/base/msi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/sysman/connector/base/msi/EMModel.xsd"> <RequestHeader> <RequestID>RACCreation</RequestID> <Source>ORACLE</Source> <Destination>Oracle</Destination> <RequestProperty> <Type>Singleton</Type> <Property> <Name>Platform</Name> <Value>Windows</Value> </Property> </RequestProperty> </RequestHeader> <Credential> <Name>sysman</Name> <Password>welcome1</Password> </Credential> <AggregateTarget> <Name>CRS33</Name> <Type>cluster</Type> <Target> <Name>bjx33.cn.oracle.com</Name> <Type>host</Type> <Host>bjx33.cn.oracle.com</Host> <Credential> <Name>oracle</Name> <Password>welcome1</Password> </Credential> <Property> <Name>CRS_HOME</Name> <Value>D:\oracle\product\10.2.0\crs</Value> </Property> <Property> <Name>ORACLE_HOME_NAME</Name> <Value>OraCrs10g_home</Value> </Property> <Property> <Name>publicNode</Name> <Value>bjx33</Value> </Property> <Property> <Name>privateNode</Name> <Value>bjx33-priv</Value> </Property> <Property> <Name>vipNode</Name> <Value>bjx33-vip</Value> </Property> </Target> <Property> <Name>softwareImageName</Name> <Value>cfs10202</Value> </Property> <Property> <Name>RESPONSEFILE_VERSION</Name> <Value>2.2.1.0.0</Value> </Property> <Property> <Name>sl_OHPartitionsAndSpace_valueFromDlg</Name> <Value>{"1","1","10000","1","I:","3"}</Value> </Property> <Property> <Name>ret_PrivIntrList</Name> <Value>{"Public:219.142.73.0:1","Interconnect:10.0.0.0:2"}</Value> </Property> </AggregateTarget> <AggregateTarget> <Name>RAC33</Name> <Type>rac_database</Type> <Storage> <Type>CFS</Type> <Property> <Name>datafileDestination</Name> <Value>I:</Value> </Property> </Storage> <Target> <Name>RAC33_RAC331</Name> <Type>oracle_database</Type> <Host>bjx33.cn.oracle.com</Host> <Credential> <Name>oracle</Name> <Password>welcome1</Password> </Credential> <Property> <Name>ORACLE_HOME</Name> <Value>D:\oracle\product\10.2.0\db_1</Value> </Property> <Property> <Name>ORACLE_HOME_NAME</Name> <Value>OraDb10g_home1</Value> </Property> <Property> <Name>db_username</Name> <Value>sys</Value> </Property> <Property> <Name>db_password</Name> <Value>welcome1</Value> </Property> <Property> <Name>oms_username</Name> <Value>oracle</Value> </Property> <Property> <Name>oms_password</Name> <Value>welcome1</Value> </Property> </Target> <Property> <Name>templateName</Name> <Value>cfs10202.dbc</Value> </Property> <Property> <Name>gdbName</Name> <Value>RAC16</Value> </Property> <Property> <Name>sid</Name> <Value>RAC16</Value> </Property> <Property> <Name>characterSet</Name> <Value>JA16EUC</Value> </Property> <Property> <Name>nationalCharacterSet</Name> <Value>AL16UTF16</Value> </Property> <Property> <Name>initParams</Name> <Value>nls_territory=japan,nls_language=japanese</Value> </Property> <Property> <Name>softwareImageName</Name> <Value>cfsdb10202</Value> </Property> </AggregateTarget> </EMModel>
例1-24では、レスポンス・モデルに、このリクエストに対するジョブIDが含まれています。
例1-24 CreateRACレスポンス・モデル内のジョブID
<EMModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.oracle.com/sysman/connector/base/msi"> <RequestHeader> <RequestID>INITIALCREATION1234567890</RequestID> <Source>JP</Source> <Destination>Oracle</Destination> </RequestHeader> <Credential> <Name>*</Name> <Password>*</Password> </Credential> <Job> <JobId>12320443534534534543</JobId> <JobStatus>2</JobStatus> </Job> </EMModel>
注意: ジョブは、複数回実行できます。実行のステータスおよび出力を問い合せるには、ジョブIDと実行IDの両方が必要です。このリリースでは、Connectorフレームワークは常に1回かぎりのジョブを発行するため、ジョブIDのみで、ジョブのステータスおよび出力を問い合せることができます。ほとんどの場合、ジョブIDは実行IDと同じです。 |
例1-25および例1-26は、例1-22および例1-23の1つのノードのRAC(RAC33)を基に、別のホストを追加することによって作成されます。例1-25および例1-26では、次のパラメータを使用して2つのノードのRACを作成するリクエストをコネクタに送信する方法を示します。
Enterprise Managerホスト・ターゲット名: bjx32.cn.oracle.com
インスタンス名: RAC33_RAC332
ノードの追加ジョブでは、クラスタ<AggregateTarget>
に指定されているs_ocrpartitionlocation
およびs_votingdisklocation
の各プロパティの値を、使用されていない場合でも指定する必要があります。これらは、RACの作成ジョブと同じ値に設定できます。
<Storage>
は、記憶域タイプがASMの場合、ノードの追加ジョブに必要です。これは、他の記憶域タイプには必要ありません。記憶域タイプがASMの場合は、ノードの追加ジョブのリクエスト・モデルに、asmPassword
プロパティのみが必要です。
例1-25 既存のRACへのノードの追加(ASM記憶域を備えたLinuxプラットフォーム)
<?xml version='1.0' encoding='UTF-8'?> <EMModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.oracle.com/sysman/connector/base/msi"> <RequestHeader> <RequestID>ADDNODE1234567890</RequestID> <Source>JP</Source> <Destination>Oracle</Destination> <RequestProperty> <Type>Singleton</Type> <Property> <Name>Platform</Name> <Value>Linux</Value> </Property> </RequestProperty> </RequestHeader> <Credential> <Name>sysman</Name> <Password>welcome1</Password> </Credential> <AggregateTarget> <Name>CRS33</Name> <Type>cluster</Type> <Target> <Name>bjx33.cn.oracle.com</Name> <Type>host</Type> <Host>bjx33.cn.oracle.com</Host> <Credential> <Name>oracle</Name> <Password>welcome1</Password> </Credential> <Property> <Name>CRS_HOME</Name> <Value>/home/oracle/oracle/product/10.2.0/crs</Value> </Property> <Property> <Name>publicNode</Name> <Value>bjx33</Value> </Property> </Target> <Target> <Name>bjx32.cn.oracle.com</Name> <Type>host</Type> <Host>bjx32.cn.oracle.com</Host> <Credential> <Name>oracle</Name> <Password>welcome1</Password> </Credential> <Property> <Name>CRS_HOME</Name> <Value>/home/oracle/oracle/product/10.2.0/crs</Value> </Property> <Property> <Name>ORACLE_HOME_NAME</Name> <Value>OraCrs10g_home</Value> </Property> <Property> <Name>publicNode</Name> <Value>bjx32</Value> </Property> <Property> <Name>privateNode</Name> <Value>bjx32-priv</Value> </Property> <Property> <Name>vipNode</Name> <Value>bjx32-vip</Value> </Property> </Target> <Property> <Name>s_ocrpartitionlocation</Name> <Value>/dev/raw/raw6</Value> </Property> <Property> <Name>s_votingdisklocation</Name> <Value>/dev/raw/raw11</Value> </Property> </AggregateTarget> <AggregateTarget> <Name>RAC33</Name> <Type>rac_database</Type> <Storage> <Type>ASM</Type> <Property> <Name>asmPassword</Name> <Value>welcome1</Value> </Property> </Storage> <Target> <Name>RAC33_RAC331</Name> <Type>oracle_database</Type> <Host>bjx33.cn.oracle.com</Host> <Credential> <Name>oracle</Name> <Password>welcome1</Password> </Credential> <Property> <Name>ORACLE_HOME</Name> <Value>/home/oracle/oracle/product/10.2.0/db_1</Value> </Property> </Target> <Target> <Name>RAC33_RAC332</Name> <Type>oracle_database</Type> <Host>bjx32.cn.oracle.com</Host> <Credential> <Name>oracle</Name> <Password>welcome1</Password> </Credential> <Property> <Name>ORACLE_HOME</Name> <Value>/home/oracle/oracle/product/10.2.0/db_1</Value> </Property> <Property> <Name>ORACLE_HOME_NAME</Name> <Value>OraDb10g_home1</Value> </Property> <Property> <Name>db_username</Name> <Value>sys</Value> </Property> <Property> <Name>db_password</Name> <Value>welcome1</Value> </Property> <Property> <Name>oms_username</Name> <Value>oracle</Value> </Property> <Property> <Name>oms_password</Name> <Value>welcome1</Value> </Property> </Target> </AggregateTarget> </EMModel>
例1-26に示すWindowsプラットフォームのジョブでは、RACの作成ジョブの実行時にターゲット・コンピュータにC:¥temp
ディレクトリが存在しない場合はコネクタがこれを作成することに注意してください。
例1-26 既存のRACへのノードの追加(CFS記憶域を備えたWindowsプラットフォーム)
<?xml version = '1.0' encoding = 'UTF-8'?> <EMModel xmlns="http://xmlns.oracle.com/sysman/connector/base/msi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/sysman/connector/base/msi/EMModel.xsd"> <RequestHeader> <RequestID>RACAddNode</RequestID> <Source>Oracle</Source> <Destination>Oracle</Destination> <RequestProperty> <Type>Singleton</Type> <Property> <Name>Platform</Name> <Value>Windows</Value> </Property> </RequestProperty> </RequestHeader> <Credential> <Name>sysman</Name> <Password>welcome1</Password> </Credential> <AggregateTarget> <Name>CRS33</Name> <Type>cluster</Type> <Target> <Name>bjx33.cn.oracle.com</Name> <Type>host</Type> <Host>bjx33.cn.oracle.com</Host> <Credential> <Name>oracle</Name> <Password>welcome1</Password> </Credential> <Property> <Name>publicNode</Name> <Value>bjx33</Value> </Property> <Property> <Name>CRS_HOME</Name> <Value>d:\oracle\product\10.2.0\crs</Value> </Property> </Target> <Target> <Name>bjx32.cn.oracle.com</Name> <Type>host</Type> <Host>bjx32.cn.oracle.com</Host> <Credential> <Name>oracle</Name> <Password>welcome1</Password> </Credential> <Property> <Name>CRS_HOME</Name> <Value>d:\oracle\product\10.2.0\crs</Value> </Property> <Property> <Name>ORACLE_HOME_NAME</Name> <Value>OraCrs10g_home</Value> </Property> <Property> <Name>publicNode</Name> <Value>bjx32</Value> </Property> <Property> <Name>privateNode</Name> <Value>bjx32-priv</Value> </Property> <Property> <Name>vipNode</Name> <Value>bjx32-vip</Value> </Property> </Target> <Property> <Name>RESPONSEFILE_VERSION</Name> <Value>2.2.1.0.0</Value> </Property> <Property> <Name>sl_OHPartitionsAndSpace_valueFromDlg</Name> <Value>{"1","1","10000","1","I:","3"}</Value> </Property> <Property> <Name>ret_PrivIntrList</Name> <Value>{"Public:219.142.73.0:1","Interconnect:10.0.0.0:2"}</Value> </Property> </AggregateTarget> <AggregateTarget> <Name>RAC33</Name> <Type>rac_database</Type> <Target> <Name>RAC33_RAC331</Name> <Type>oracle_database</Type> <Host>bjx33.cn.oracle.com</Host> <Credential> <Name>oracle</Name> <Password>welcome1</Password> </Credential> <Property> <Name>ORACLE_HOME</Name> <Value>d:\oracle\product\10.2.0\db_1</Value> </Property> </Target> <Target> <Name>RAC33_RAC332</Name> <Type>oracle_database</Type> <Host>bjx32.cn.oracle.com</Host> <Credential> <Name>oracle</Name> <Password>welcome1</Password> </Credential> <Property> <Name>ORACLE_HOME</Name> <Value>d:\oracle\product\10.2.0\db_1</Value> </Property> <Property> <Name>ORACLE_HOME_NAME</Name> <Value>OraDb10g_home1</Value> </Property> <Property> <Name>db_username</Name> <Value>sys</Value> </Property> <Property> <Name>db_password</Name> <Value>welcome1</Value> </Property> <Property> <Name>oms_username</Name> <Value>oracle</Value> </Property> <Property> <Name>oms_password</Name> <Value>welcome1</Value> </Property> </Target> </AggregateTarget> </EMModel>
例1-27では、レスポンス・モデルに、このリクエストに対するジョブIDが含まれています。
例1-27 ExtentRACレスポンス・モデル内のジョブID
<EMModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.oracle.com/sysman/connector/base/msi"> <RequestHeader> <RequestID>ADDNODE1234567890</RequestID> <Source>JP</Source> <Destination>Oracle</Destination> </RequestHeader> <Credential> <Name>*</Name> <Password>*</Password> </Credential> <Job> <JobId>12320443534534534543</JobId> <JobStatus>2</JobStatus> </Job> </EMModel>
例1-28および例1-29では、例1-25および例1-26で追加された2番目のノードを削除するリクエストをコネクタに送信する方法を示します。
注意: アクセス不可能なノードを削除する場合、手順S3およびS5で初期化エラーが表示されます。これらのエラーはアクセス不可能なターゲットによって生じるものであり、無視できます。 |
例1-28 2つのノードのRACを1つのノードのRACにスケール変更する方法(ASM記憶域を備えたLinuxプラットフォーム)
<?xml version = '1.0' encoding = 'UTF-8'?> <EMModel xmlns="http://xmlns.oracle.com/sysman/connector/base/msi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/sysman/connector/base/msi/EMModel.xsd"> <RequestHeader> <RequestID>DeleteNode</RequestID> <Source>Oracle</Source> <Destination>Oracle</Destination> <RequestProperty> <Type>Singleton</Type> <Property> <Name>Platform</Name> <Value>Linux</Value> </Property> </RequestProperty> </RequestHeader> <Credential> <Name>sysman</Name> <Password>welcome1</Password> </Credential> <AggregateTarget> <Name>CRS33</Name> <Type>cluster</Type> <Target> <Name>bjx33.cn.oracle.com</Name> <Type>host</Type> <Host>bjx33.cn.oracle.com</Host> <Property> <Name>CRS_HOME</Name> <Value>/home/oracle/oracle/product/10.2.0/crs</Value> </Property> </Target> </AggregateTarget> <AggregateTarget> <Name>RAC33</Name> <Type>rac_database</Type> <Target> <Name>RAC33_RAC331</Name> <Type>oracle_database</Type> <Host>bjx33.cn.oracle.com</Host> <Credential> <Name>oracle</Name> <Password>welcome1</Password> </Credential> <Property> <Name>ORACLE_HOME</Name> <Value>/home/oracle/oracle/product/10.2.0/db_1</Value> </Property> <Property> <Name>db_username</Name> <Value>sys</Value> </Property> <Property> <Name>db_password</Name> <Value>welcome1</Value> </Property> <Property> <Name>oms_username</Name> <Value>oracle</Value> </Property> <Property> <Name>oms_password</Name> <Value>welcome1</Value> </Property> </Target> </AggregateTarget> </EMModel>
例1-29 2つのノードのRACから1つのノードのRACへのスケール変更(CFS記憶域を備えたWindowsプラットフォーム)
<?xml version = '1.0' encoding = 'UTF-8'?> <EMModel xmlns="http://xmlns.oracle.com/sysman/connector/base/msi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/sysman/connector/base/msi/EMModel.xsd"> <RequestHeader> <RequestID>DeleteNode</RequestID> <Source>Oracle</Source> <Destination>Oracle</Destination> <RequestProperty> <Type>Singleton</Type> <Property> <Name>Platform</Name> <Value>Windows</Value> </Property> </RequestProperty> </RequestHeader> <Credential> <Name>sysman</Name> <Password>welcome1</Password> </Credential> <AggregateTarget> <Name>CRS33</Name> <Type>cluster</Type> <Target> <Name>bjx33.cn.oracle.com</Name> <Type>host</Type> <Host>bjx33.cn.oracle.com</Host> <Property> <Name>CRS_HOME</Name> <Value>d:\oracle\product\10.2.0\crs</Value> </Property> </Target> </AggregateTarget> <AggregateTarget> <Name>RAC33</Name> <Type>rac_database</Type> <Target> <Name>RAC33_RAC331</Name> <Type>oracle_database</Type> <Host>bjx33.cn.oracle.com</Host> <Credential> <Name>oracle</Name> <Password>welcome1</Password> </Credential> <Property> <Name>ORACLE_HOME</Name> <Value>d:\oracle\product\10.2.0\db_1</Value> </Property> <Property> <Name>db_username</Name> <Value>sys</Value> </Property> <Property> <Name>db_password</Name> <Value>welcome1</Value> </Property> <Property> <Name>oms_username</Name> <Value>oracle</Value> </Property> <Property> <Name>oms_password</Name> <Value>welcome1</Value> </Property> </Target> <Property> <Name>oms_delete_all_targets</Name> <Value>true</Value> </Property> </AggregateTarget> </EMModel>
例1-30では、レスポンス・モデルに、このリクエストに対するジョブIDが含まれています。
<EMModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.oracle.com/sysman/connector/base/msi"> <RequestHeader> <RequestID>DELETENODE1234567890</RequestID> <Source>JP</Source> <Destination>Oracle</Destination> </RequestHeader> <Credential> <Name>*</Name> <Password>*</Password> </Credential> <Job> <JobId>12320443534534534543</JobId> <JobStatus>2</JobStatus> </Job> </EMModel>
リクエスト・モデルを発行した後でエラーが発生すると、レスポンス・モデルの<RequestHeader/>
にエラー・コードが返されます。エラーの原因とその修正方法については、第6章「エラー・メッセージおよびデバッグ」を参照してください。例1-31に、3つのノードのRACにノードの削除ジョブのリクエストを送信した場合に発生することを示します。エラー・コードCNTR - 0015が表示され、この処理がサポートされていず、1つのノードを削除する必要があることが示されます。
例1-31 3つのノードのRACから1つのノードのRACへのスケール変更の試行
<?xml version = '1.0' encoding = 'UTF-8'?> <EMModel xmlns="http://xmlns.oracle.com/sysman/connector/base/msi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/sysman/connector/base/msi/EMModel.xsd"> <RequestHeader> <RequestID>DeleteNode</RequestID> <Source>Oracle</Source> <Destination>Oracle</Destination> <RequestProperty> <Type>Singleton</Type> <Property> <Name>Platform</Name> <Value>Windows</Value> </Property> </RequestProperty> </RequestHeader> <Credential> <Name>sysman</Name> <Password>welcome1</Password> </Credential> <AggregateTarget> <Name>CRS33</Name> <Type>cluster</Type> <Target> <Name>bjx33.cn.oracle.com</Name> <Type>host</Type> <Host>bjx33.cn.oracle.com</Host> <Property> <Name>CRS_HOME</Name> <Value>d:\oracle\product\10.2.0\crs</Value> </Property> </Target> </AggregateTarget> <AggregateTarget> <Name>RAC33</Name> <Type>rac_database</Type> <Target> <Name>RAC33_RAC331</Name> <Type>oracle_database</Type> <Host>bjx33.cn.oracle.com</Host> <Credential> <Name>oracle</Name> <Password>welcome1</Password> </Credential> <Property> <Name>ORACLE_HOME</Name> <Value>d:\oracle\product\10.2.0\db_1</Value> </Property> <Property> <Name>db_username</Name> <Value>sys</Value> </Property> <Property> <Name>db_password</Name> <Value>welcome1</Value> </Property> <Property> <Name>oms_username</Name> <Value>oracle</Value> </Property> <Property> <Name>oms_password</Name> <Value>welcome1</Value> </Property> </Target> <Property> <Name>oms_delete_all_targets</Name> <Value>true</Value> </Property> </AggregateTarget> </EMModel>
例1-32は、例1-31のレスポンス・モデルです。
例1-32 3つのノードのRACから1つのノードのRACへのスケール変更のレスポンス・モデル
<?xml version = '1.0' encoding = 'UTF-8'?> <ns0:EMModel xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns0="http://xmlns.oracle.com/sysman/connector/base/msi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <ns0:RequestHeader> <ns0:RequestID>DeleteNode</ns0:RequestID> <ns0:Source>Oracle</ns0:Source> <ns0:Destination>Oracle</ns0:Destination> <ns0:RequestProperty> <ns0:Type>Error</ns0:Type> <ns0:Property> <ns0:Name>Message</ns0:Name> <ns0:Value>CNTR-0015</ns0:Value> </ns0:Property> </ns0:RequestProperty> </ns0:RequestHeader> <ns0:Credential> <ns0:Name>******</ns0:Name> <ns0:Password>******</ns0:Password> </ns0:Credential> <ns0:AggregateTarget> <ns0:Name>CRS33</ns0:Name> <ns0:Type>cluster</ns0:Type> <ns0:Target> <ns0:Name>bjx33.cn.oracle.com</ns0:Name> <ns0:Type>host</ns0:Type> <ns0:Host>bjx33.cn.oracle.com</ns0:Host> <ns0:Property> <ns0:Name>CRS_HOME</ns0:Name> <ns0:Value>d:\oracle\product\10.2.0\crs</ns0:Value> </ns0:Property> </ns0:Target> </ns0:AggregateTarget> <ns0:AggregateTarget> <ns0:Name>RAC33</ns0:Name> <ns0:Type>rac_database</ns0:Type> <ns0:Target> <ns0:Name>RAC33_RAC331</ns0:Name> <ns0:Type>oracle_database</ns0:Type> <ns0:Host>bjx33.cn.oracle.com</ns0:Host> <ns0:Credential> <ns0:Name>oracle</ns0:Name> <ns0:Password>welcome1</ns0:Password> </ns0:Credential> <ns0:Property> <ns0:Name>ORACLE_HOME</ns0:Name> <ns0:Value>d:\oracle\product\10.2.0\db_1</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>db_username</ns0:Name> <ns0:Value>sys</ ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>db_password</ns0:Name> <ns0:Value>welcome1</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>oms_username</ns0:Name> <ns0:Value>oracle</ns0:Value> </ns0:Property> <ns0:Property> <ns0:Name>oms_password</ns0:Name> <ns0:Value>welcome1</ns0:Value> </ns0:Property> </ns0:Target> </ns0:AggregateTarget> </ns0:EMModel>