JDBC Driver for Tableau CRM Analytics

Build 22.0.8479

接続の確立

JDBC データソースの作成

Java アプリケーションから接続するJDBC データソースを作成できます。CData JDBC Driver for Tableau CRM Analytics に基づくJDBC データソースの作成は、3つの基本ステップで構成されます。

  • ドライバーのJAR ファイルをクラスパスに追加します。JAR ファイルはインストールディレクトリの[lib]サブフォルダ内にあります。.lic ファイルはJAR ファイルと同じフォルダ内に配置される必要があることに注意してください。
  • ドライバークラスを入力します。次に例を示します。
    cdata.jdbc.tableaucrm.TableauCRMDriver
  • JDBC URL を入力します。次に例を示します。
    jdbc:tableaucrm:InitiateOAuth=GETANDREFRESH;OAuthClientId=MyConsumerKey;OAuthClientSecret=MyConsumerSecret;CallbackURL=http://localhost:portNumber
    
    or
    
    jdbc:cdata:tableaucrm:InitiateOAuth=GETANDREFRESH;OAuthClientId=MyConsumerKey;OAuthClientSecret=MyConsumerSecret;CallbackURL=http://localhost:portNumber

    上記の2つ目の形式は、同じURL 形式を使用しているドライバー間でアプリケーションに競合がある場合は、CData ドライバーを使用していることを確認するために常に使用できます。URL は "jdbc:tableaucrm:" または"jdbc:cdata:tableaucrm:" のいずれかから始まり、任意の接続プロパティの名前と値のペアをセミコロン区切りで入力します。

Tableau CRM はOAuth 2 認証標準を利用しています。Tableau CRM にアプリケーションを登録し、OAuthClientId およびOAuthClientSecret を取得する必要があります。 Tableau CRM への接続 の認証ガイドを参照してください。 Tableau CRM への接続 の認証ガイドを参照してください。

OAuthJWT Certificates

Set the AuthScheme to OAuthJWT.

OAuthJWT

To obtain the OAuthJWT consumer key:

  1. Log in to Salesforce.com.
  2. From Setup, enter Apps in the Quick Find box and then click the link to create an app. In the Connected Apps section of the resulting page, click New.
  3. Enter a name to be displayed to users when they log in to grant permissions to your app, along with a contact Email address.
  4. Click Enable OAuth Settings and enter a value in the Callback URL box. Set this value only to create the Connected App as it is required. It will not actually be needed for this type of authentication. The Callback URL is in the format:
    http://localhost:8019/src/oauthCallback.rst
  5. Enable Use digital signatures.
  6. Upload your certificate.
  7. Select the scope of permissions that your app should request from the user.
  8. Click your app name to open a page with information about your app. The OAuth consumer key is displayed.

After creating your OAuth Application, set the following connection properties:

  • AuthScheme: Set to OAuthJWT.
  • InitiateOAuth: Set to GETANDREFRESH.
  • OAuthJWTCert: Set this to the JWT Certificate store.
  • OAuthJWTPassword: Set this to the Password of the JWT Certificate store.
  • OAuthJWTIssuer: Set this to the OAuth Client ID.
  • OAuthJWTCertType: Set this to the type of the certificate store specified by OAuthJWTCert.

Note: This flow never issues a refresh token.

Copyright (c) 2023 CData Software, Inc. - All rights reserved.
Build 22.0.8479