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

You can use the DB2 connector from the CData Sync application to capture data
from DB2 and move it to any supported destination. To do so, you need to add
the connector, authenticate to the connector, and complete your connection.

## Add the DB2 Connector

To enable Sync to use data from DB2, you first must add the
connector, as follows:

<ol>
  <li>Open the **Connections** page of the Sync dashboard.</li>
  <li>Click **Add Connection** to open the **Select Connectors** page.</li>
  <li>Click the **Sources** tab and locate
  the **DB2** row.</li>

  <li>
    Click the **Configure Connection** icon at the end of that row to open
    the **New Connection** page. This action opens the
    **Add Connection** dialog.

    **Note:** If the **Configure Connection** icon is not
    available, click the **Download Connector** icon to install
    the DB2 connector.
  </li>

  <li>Enter a name for your connection in the **Add Connection** dialog.</li>
  <li>Click **Add** to open the **Settings** tab for your connector.</li>
</ol>

For more information about installing new connectors, see
[Connections](https://docs.sync.cdata.com/26.4/en/connections/connections.md).

## Authenticate to DB2

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

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

## Complete Your Connection

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>Define advanced connection settings on the **Advanced** tab. (In most cases, though, you should not need these settings.)</li>
<li>Click **Create & Test** to create your connection.</li></ol>


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