XA リソースの作成

エンタープライズ サーバー リージョンには、トランザクション ファイルが 1 つ以上含まれているデータストアごとに 1 つの XA リソースが必要になります。データストアを含むデータベースを他の COBOL アプリケーションでも使用する場合は、追加の XA リソースが必要です。この場合の対処方法の詳細については、「複数の XAR の使用」を参照してください。

  1. In the table of servers on the Home page of Enterprise Server Administration, click Edit to the left in the row for the enterprise server region that references the transactional data file.
  2. Click the XA Resources tab.
  3. Specify the following XAR details:
    Option Description
    ID Unique ID for the XAR
    Name Unique name for the XAR
    Module Specify the location of the RM switch module executable file (.dll on Windows or .so on UNIX platforms). This is database specific: esmssql.dll/.so for MSSQL and Azure SQL, ESPGSQLXA.dll/.so for PostgreSQL, and ESDB2XA.dll/.so for Db2. Refer to Building RM Switch Modules for more information.
    Open string DSN=<datastore-dsn>

    where <datastore-dsn> is the ODBC data source name of the datastore you are configuring.

    注: These are only the mandatory options required, with the addition of USRPASS=userid.password if you are using a PostgreSQL database. You can also specify further options as required, as detailed in To Define an XA Resource (XAR) for an Enterprise Server Region.
  4. Select Enabled.
  5. Click OK.

    The XA resource should be effectively immediately.

準備ができたら、データストア内のファイルを使用するように CICS またはバッチ (JCL) アプリケーションを構成する手順に進むことができます。