Microsoft SQL Server データストアへのファイルのアップロード

次の手順を使用して、前の手順で作成したデータストア データベースに既存のデータ ファイルをアップロードします。

  1. Open an Enterprise Developer コマンド プロンプト.
    注: On Windows, if you have used ODBCS data sources, the command prompt must be the same bitism as the data sources that you intend to use.
  2. Set the MFDBFH_CONFIG environment variable to locate the database configuration file that contains a reference to the data source:
    set MFDBFH_CONFIG=<location-and-name-of-file>

    If you do not set this variable, the file is assumed to be located in the current directory.

    注: The MFDBFH_SCRIPT_DIR environment variable is also required to point to the stored procedures used to interact with a datastore; however, this variable is implicitly set already when using an Enterprise Developer コマンド プロンプト.
  3. Add a data file to the datastore:
    dbfhdeploy data add <filename> URL/<file-ref>[?folder=<folder-name>]

    If <folder-name> does not already exist, it is created.

  4. To test that the data file is now in the datastore, you can produce a listing of files and folders in the database using dbfhdeploy:
    dbfhdeploy list URL[?folder=<folder-name>]

    A list of files is displayed.

    注: If you do not specify a folder name, only files and folders at the base level of the datastore are displayed.

データストアにトランザクション ファイルがある場合は、そのデータストアをポイントするようにエンタープライズ サーバー リージョン内の XA リソースも構成する必要があります。「XA リソースの作成」を参照してください。トランザクション ファイルがない場合は、その手順をスキップし、データストア内のファイルを使用するように CICS またはバッチ (JCL) アプリケーションを構成する手順に進んでください。さらに、リソース ロックをエンタープライズ サーバー リージョンで管理する場合は、リージョン データベースおよびリージョン間データベースを構成します。