> ## 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

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" siteName={siteName} />

## Prerequisite

{siteNameShort} requires the db2jcc.jar driver to connect to your DB2 database. If you have not done so already, you can download the JDBC 4.0 driver from the <a href="https://www.ibm.com/support/pages/db2-jdbc-driver-versions-and-downloads" target="_blank" rel="noopener noreferrer">DB2 JDBC Driver Versions and Downloads web page</a>.

Copy the JDBC driver into the `libs` directory.

* **Microsoft Windows:** `C:\ProgramData\CData\sync\libs`
* **UNIX or Mac OS X:** `~/cdata/sync/libs`

## DB2 コネクタを追加

<CommonDatasourceAddConnector datasource="DB2" title="DB2" destination={true} siteNameShort={siteNameShort} />

## DB2 への認証

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

* **Server:** Enter the address or host name of the DB2 server. The default server is **localhost**.
* **Port:** Enter the port on which your DB2 server is listening. The default port is **50000**.
* **Database:** Enter the name of your DB2 database.
* **User:** Enter the username that you use to authenticate to the DB2 database.
* **Password:** Enter the password that you use to authenticate to the DB2 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.
