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

CData Sync アプリケーションからDB2 コネクタを使用して、サポートされている任意のデータソースから同期先のDB2 へデータを移動できます。これを行うには、コネクタを追加し、コネクタへの認証を行い、接続を完了する必要があります。

## Prerequisite

Sync 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 [DB2 JDBC Driver Versions and Downloads web page](https://www.ibm.com/support/pages/db2-jdbc-driver-versions-and-downloads).

Copy the JDBC driver into the `libs` directory.

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

## DB2 コネクタを追加

Sync でDB2 のデータを使用できるようにするには、まず以下の手順でコネクタを追加する必要があります：

<ol>
  <li>Sync のダッシュボードから**接続**ページを開きます。</li>
  <li>**接続を追加**をクリックして**コネクタを選択**ページを開きます。</li>
  <li>**同期先**タブをクリックして
  **DB2** 行に移動します。</li>

  <li>
    行末にある**接続を設定**アイコンをクリックして、**新しい接続**ページを開きます。この操作により、
    **接続を追加**ダイアログボックスが開きます。

    **Note：** **接続を設定**アイコンが表示されない場合は、**コネクタをダウンロード**アイコンをクリックして DB2 コネクタをインストールしてください。
  </li>

  <li>**接続を追加**ダイアログボックスに接続名を入力します。</li>
  <li>**追加**をクリックして、コネクタの**設定**タブを開きます。</li>
</ol>

新しいコネクタのインストールについての詳細は、
[接続](https://docs.sync.cdata.com/26.4/ja/connections/connections.md)を参照してください。

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


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.