DB2

Version 26.2.9623


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.

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 のデータを使用できるようにするには、まず以下の手順でコネクタを追加する必要があります。

  1. Sync のダッシュボードから接続ページを開きます。

  2. 接続を追加をクリックしてコネクタを選択ページを開きます。

  3. 同期先タブをクリックしてDB2 行に移動します。

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

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

  5. 接続を追加ダイアログボックスに接続名を入力します。

  6. 追加をクリックして、コネクタの設定タブを開きます。

新しいコネクタのインストールについての詳細は、接続を参照してください。

DB2 への認証

コネクタを追加したら、必須プロパティを設定する必要があります。

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

Complete Your Connection

To complete your connection:

  1. 高度な設定タブで接続の高度な設定を定義します。(ただし、ほとんどの場合これらの設定は必要ありません。)

  2. 作成およびテストをクリックして接続を作成します。