PostgreSQL


PostgreSQL


前提条件

CData IP をホワイトリストに登録

PostgreSQL への接続を確立するには、CData のIP 経由でPostgreSQL へのアクセスを許可する必要があります。PostgreSQL をファイアウォールの内側でホスティングする場合は、これらのIP アドレスをファイアウォールの許可リストに登録する必要があります。

  • 範囲:52.224.0.16052.224.0.175

  • CIDR 表記:52.224.0.160/28

PostgreSQL が一般にアクセス可能であることを確認

パブリックフェイシングIP / ドメインを指定して、このデータソースに接続します。次のプライベートIP の範囲は機能しません。

  • 10.0.0.0 to 10.255.255.255

  • 172.16.0.0 to 172.31.255.255

  • 192.168.0.0 to 192.168.255.255

  • 127.0.0.1 (aka ‘localhost’)

セットアップガイド

以下の手順で、PostgreSQL をCData Connect アカウントに接続します。

  1. CData Connect のダッシュボードからConnections ページを開きます。

  2. 右上の+ Add Connection をクリックします。

  3. 検索フィールドに PostgreSQL と入力し、データソース名をクリックします。

  4. 新しいコネクションのBasic Settings タブで、コネクション名を入力するかデフォルトの名前をそのまま使用します。

  5. In the Server field, enter PostgreSQL サーバーのホスト名またはIP アドレス.

  6. Select the Authentication method, then proceed to the relevant section and follow those instructions.

Authentication Methods

Password

  1. In the User field, enter 認証用のPostgreSQL ユーザー名.

  2. Enter ユーザーパスワード in the Password field.

  3. (Optional) Enter the name of the PostgreSQL Database. If none is entered, the user’s default database is used.

  4. (Optional) Specify PostgreSQL サーバーに接続するためのポート in the Port field. This is set to 5432 by default.

  5. PostgreSQL で、CData Connect 静的IP アドレスを接続のホワイトリストに追加します。

  6. CData Connect Add PostgreSQL Connection ページ上部の、Save & Test をクリックします。

    • 接続テストに成功すると、接続が作成されたことを示すメッセージが表示されます。

    • 接続テストに失敗した場合は、入力したログイン情報に余分なスペースや文字がないかを確認してください。そして、もう一度試してください。

AzureAD

  1. In the User field, enter 認証用のPostgreSQL ユーザー名.

  2. Enter the Azure Tenant Id to connect to.

  3. (Optional) Enter the name of the PostgreSQL Database. If none is entered, the user’s default database is used.

  4. (Optional) Specify PostgreSQL サーバーに接続するためのポート in the Port field. This is set to 5432 by default.

  5. OAuth でセキュアに接続するには、Sign in をクリックします。これにより、PostgreSQL のサインインページが新しいタブで開かれます。

  6. PostgreSQL アカウントにログインし、リクエストされた権限を設定します(該当する場合)。

  7. PostgreSQL で、CData Connect 静的IP アドレスを接続のホワイトリストに追加します。

  8. CData Connect Add PostgreSQL Connection ページ上部の、Save & Test をクリックします。

    • 接続テストに成功すると、接続が作成されたことを示すメッセージが表示されます。

    • 接続テストに失敗した場合は、入力したログイン情報に余分なスペースや文字がないかを確認してください。そして、もう一度試してください。

AzurePassword

  1. In the User field, enter 認証用のPostgreSQL ユーザー名.

  2. Enter ユーザーパスワード in the Password field.

  3. Enter the Azure Tenant Id to connect to.

  4. (Optional) Enter the name of the PostgreSQL Database. If none is entered, the user’s default database is used.

  5. (Optional) Specify PostgreSQL サーバーに接続するためのポート in the Port field. This is set to 5432 by default.

  6. PostgreSQL で、CData Connect 静的IP アドレスを接続のホワイトリストに追加します。

  7. CData Connect Add PostgreSQL Connection ページ上部の、Save & Test をクリックします。

    • 接続テストに成功すると、接続が作成されたことを示すメッセージが表示されます。

    • 接続テストに失敗した場合は、入力したログイン情報に余分なスペースや文字がないかを確認してください。そして、もう一度試してください。

AWSIAMRoles

  1. In the User field, enter 認証用のPostgreSQL ユーザー名.

  2. Enter the AWS Access Key associated with the AWS root account.

  3. Enter the AWS Secret Key associated with the AWS root account.

  4. Enter the AWS Role ARN for the authenticating User Id.

  5. (Optional) Enter the AWS External Id only if emulating a different role.

  6. (Optional) Enter the name of the PostgreSQL Database. If none is entered, the user’s default database is used.

  7. (Optional) Specify PostgreSQL サーバーに接続するためのポート in the Port field. This is set to 5432 by default.

  8. PostgreSQL で、CData Connect 静的IP アドレスを接続のホワイトリストに追加します。

  9. CData Connect Add PostgreSQL Connection ページ上部の、Save & Test をクリックします。

    • 接続テストに成功すると、接続が作成されたことを示すメッセージが表示されます。

    • 接続テストに失敗した場合は、入力したログイン情報に余分なスペースや文字がないかを確認してください。そして、もう一度試してください。

詳細について

CData Connect とPostgreSQL の連携の詳細動作については、こちらのページを参照してください。