> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sync.cdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# DB2 for i (Native)

export const CommonDatasourceAddConnector = ({datasource = "the data source", title = "the connector", destination = false, siteNameShort = "Sync"}) => {
  return <>
      <p>
        {siteNameShort} で{datasource} のデータを使用できるようにするには、まず以下の手順でコネクタを追加する必要があります：
      </p>
      <ol>
        <li>{siteNameShort} のダッシュボードから<strong>接続</strong>ページを開きます。</li>
        <li><strong>接続を追加</strong>をクリックして<strong>コネクタを選択</strong>ページを開きます。</li>
        <li>
          <strong>{destination ? "同期先" : "データソース"}</strong>タブをクリックして
          <strong>{title}</strong> 行に移動します。
        </li>
        <li>
          行末にある<strong>接続を設定</strong>アイコンをクリックして、<strong>新しい接続</strong>ページを開きます。この操作により、{' '}
          <strong>接続を追加</strong>ダイアログボックスが開きます。
          <br />
          <strong>Note：</strong> <strong>接続を設定</strong>アイコンが表示されない場合は、<strong>コネクタをダウンロード</strong>アイコンをクリックして {title} コネクタをインストールしてください。
        </li>
        <li><strong>接続を追加</strong>ダイアログボックスに接続名を入力します。</li>
        <li><strong>追加</strong>をクリックして、コネクタの<strong>設定</strong>タブを開きます。</li>
      </ol>
      <p>
        新しいコネクタのインストールについての詳細は、{' '}
        <a href="../connections">接続</a>を参照してください。
      </p>
    </>;
};

export const CommonDatasourceIntroDestination = ({datasource = "the data source", siteName = "CData Sync"}) => {
  return <p>
      {siteName} アプリケーションから{datasource} コネクタを使用して、サポートされている任意のデータソースから同期先の{datasource} へデータを移動できます。これを行うには、コネクタを追加し、コネクタへの認証を行い、接続を完了する必要があります。
    </p>;
};

export const driverVersion = "M";

export const siteNameShort = "Sync";

export const siteName = "CData Sync";

<CommonDatasourceIntroDestination datasource="DB2 for i" siteName={siteName} />

<Note>This connector is available in {siteNameShort} Self-Hosted deployments only.</Note>

## Prerequisites

{siteNameShort} requires the jt400.jar driver (<a href="https://repo1.maven.org/maven2/net/sf/jt400/jt400-jdk9/11.1/jt400-jdk9-11.1.jar" target="_blank" rel="noopener noreferrer">download</a>) to connect to your DB2 for i database.

Before you create your connection, download and copy the driver to your `lib` directory, as follows:

* **Microsoft Windows:** `InstallationDirectory\lib`
* **UNIX or Mac OS X:** `InstallationDirectory/lib`

## DB2 for i コネクタを追加

<CommonDatasourceAddConnector datasource="DB2 for i" title="DB2 for i (Native)" destination={true} siteNameShort={siteNameShort} />

## DB2 for i への認証

After you add the connector, you need to set the required properties.

* **Server:** Enter the address or host name of the DB2 for i server. The default server is **localhost**.
* **Database:** Enter the name of your DB2 for i database.
* **Port:** Enter the port number for your server. The default port is **446**.
* **User:** Enter the username that you use to authenticate to the DB2 for i database.
* **Password:** Enter the password that you use to authenticate to the DB2 for i database.

## 接続を完了する

To complete your connection:

1. Define advanced connection settings on the **Advanced** tab. (In most cases, though, you should not need these settings.)
2. Click **Create & Test** to create your connection.
