> ## 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 からデータを取得してサポートされている任意の同期先に移動できます。これを行うには、コネクタを追加し、コネクタへの認証を行い、接続を完了する必要があります。

## 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 への認証

コネクタを追加したら、必要なプロパティを設定します。

* **Server:** Enter the address or host name of the DB2 server.
* **Port:** Enter the port on which your DB2 server is listening. The default port is **50000**.
* **Database:** Enter the name of your DB2 database.

CData Sync supports authenticating to DB2 in several ways. Select your authentication method below to proceed to the relevant section that contains the authentication details.

* [**USRIDPWD**](#user-id-and-password)
* [**EUSRIDPWD**](#encrypted-user-id-and-password)
* [**IBM Identity and Access Management Authentication**](#ibm-identity-and-access-management-authentication)
* [**KERBEROS**](#kerberos)

### User Id and Password

To connect with user credentials, specify the following settings:

* **Auth Scheme:** Select **USRIDPWD**.
* **User:** Enter the username that you use to authenticate to your DB2 account.
* **Password:** Enter the password that you use to authenticate to your DB2 account.

### Encrypted User Id and Password

To connect with encrypted user credentials, specify the following settings:

* **Auth Scheme:** Select **EUSRIDPWD**.
* **User:** Enter the username that you use to authenticate to your DB2 account.
* **Password:** Enter the password that you use to authenticate to your DB2 account.

### IBM Identity and Access Management Authentication

To connect with IBM Identity and Access Management credentials, specify the following settings:

* **Auth Scheme:** Select **IBMIAMAuth**.
* **User:** Enter the username that you use to authenticate to your DB2 account.
* **Password:** Enter the password that you use to authenticate to your DB2 account.

### Kerberos

To connect with Kerberos, specify the following settings:

* **Auth Scheme:** Select **KERBEROS**.
* **Password:** Enter the password that you use to authenticate to your DB2 account.
* **Kerberos KDC:** Enter the host name or IP address of your Kerberos Key Distribution Center (KDC) machine.
* **Kerberos SPN:** Enter the service principal name (SPN) for the Kerberos domain controller.
* **Kerberos User:** Enter the principal name for the Kerberos Domain Controller. The name should be in the form ***Host*/*User*@*Realm***.
* (Optional) **Kerberos Keytab File:** Enter the full file path to your Kerberos keytab file.

## 接続を完了する

To complete your connection:

1. For **Use SSL**, select whether you want to enable Secure Sockets Layer (SSL). By default, the **Enable** checkbox is not selected.

<ol start="2"><li>**Advanced** タブで詳細な接続設定を定義します。（ただし、ほとんどの場合、これらの設定は不要です。）</li>
<li>**作成およびテスト**をクリックして接続を作成します。</li></ol>


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