ステージング・サーバーから実動サーバーへの商品アドバイザー・データのマイグレーション
ステージング・サーバーから実動サーバーへ商品アドバイザー・データをマイグレーションするには、次のようにします。
- エクスポートしたいカテゴリーのメタフォーをステージング・サーバー上に作成します。 詳細については、コマンド・ユーティリティーを使ったメタフォーの作成を参照してください。
- 下記手順で、メタフォーをエクスポートする。



WebSphere Commerce Server のコマンド行で、以下のディレクトリーに変更します。
drive:\WebSphere\CommerceServer\bin
drive:\Program
Files\WebSphere\CommerceServer\bin
/usr/WebSphere/CommerceServer/bin

/opt/WebSphere/CommerceServer/bin
- コマンド行から次のように入力する。
XMLExport instance_configuration_filename
store_id output_filename
XMLExport_aix.sh instance_configuration_filename
store_id output_filename
XMLExport_sol.sh instance_configuration_filename
store_id output_filename
XMLExport.sh instance_configuration_filename store_id
output_filename
EXPWCSPA CONF(instance_configuration_filename)
XML(output_filename)
STOREID(store_id) HOST(host_name)
PORT(WAS_port)
ここで:
- instance_configuration_filename はこのインスタンス (instance_name.xml) のための WebSphere Commerce 構成ファイルへの絶対パスで、次のようなものです。
drive:\WebSphere\CommerceServer\instances\instance_name\xml\instance_name.xml
drive:\Program
Files\WebSphere\CommerceServer\instances\instance_name\xml\instance_name.xml
/usr/WebSphere/CommerceServer/instances/instance_name/xml/instance_name.xml

/opt/WebSphere/CommerceServer/instances/instance_name/xml/instance_name.xml
/QIBM/UserData/WebCommerce/instances/instance_name/xml/instance_name.xml
- input_filename は、このコマンドの実行に先立って作成した XML ファイルへの絶対パスです。
- log_file は、このコマンドからのログ・メッセージのターゲット・ファイルへの絶対パスです。
host_name は、商品アドバイザーを実行しているインスタンスの完全修飾ホスト名です。
WAS_port は、WebSphere Application Server のポート番号です。 これはオプション・パラメーターです。 デフォルトは 900 です。
- outputfile を実動サーバー上のある場所に移動する。
- 実動サーバー上に 1 つまたは複数の検索スペースを作成する。



実動サーバー上のコマンド・プロンプトで、現行ディレクトリーを以下に変更する。
drive:\WebSphere\CommerceServer\bin
drive:\Program
Files\WebSphere\CommerceServer\bin
/usr/WebSphere/CommerceServer/bin

/opt/WebSphere/CommerceServer/bin
- 下記手順で、メタフォーを作成、更新、または削除するためにメタフォーをインポートする。
コマンド行から次のように入力する。
PABatchXML.cmd input_filename instance_configuration_filename
PABatchXML.sh input_filename instance_configuration_filename

PABatchXML.sh input_filename
instance_configuration_filename
IMPWCSPA CONF(instance_configuration_filename)
XML(input_filename)
LOG(log_file) HOST(host_name)
PORT(WAS_port) DEBUG(debug_value)
ここで:
- input_filename は XML 入力ファイルの絶対パスおよび名前です。
- instance_configuration_filename はこのインスタンス (instance_name.xml) のための WebSphere Commerce 構成ファイルへの絶対パスで、次のようなものです。
drive:\WebSphere\CommerceServer\instances\instance_name\xml\instance_name.xml
drive:\Program
Files\WebSphere\CommerceServer\instances\instance_name\xml\instance_name.xml
/usr/WebSphere/CommerceServer/instances/instance_name/xml/instance_name.xml

/opt/WebSphere/CommerceServer/instances/instance_name/xml/instance_name.xml
/QIBM/UserData/WebCommerce/instances/instance_name/xml/instance_name.xml
log_file は、このコマンドからのログ・メッセージのターゲット・ファイルへの絶対パスです。
host_name は、商品アドバイザーを実行しているインスタンスの完全修飾ホスト名です。
WAS_port は、WebSphere Application Server のポート番号です。 これはオプション・パラメーターです。 デフォルトは 900 です。
debug_value は、
*YES または *NO のいずれかで、デバッグ・メッセージをどこに表示するかを示すものです。 *YES はデバッグ・メッセージを画面およびログ・ファイルに表示します。 *NO はメッセージをログ・ファイルのみに表示します。 これはオプション・パラメーターです。 デフォルトは *NO です。