JDBC Driver for Greenplum

Build 24.0.8963

接続の確立

JDBC データソースの作成

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

  • ドライバーのJAR ファイルをクラスパスに追加します。JAR ファイルはインストールディレクトリの[lib]サブフォルダ内にあります。.lic ファイルはJAR ファイルと同じフォルダ内に配置される必要があることに注意してください。
  • ドライバークラスを入力します。次に例を示します。
    cdata.jdbc.greenplum.GreenplumDriver
  • JDBC URL を入力します。次に例を示します。
    jdbc:greenplum:User=user;Password=admin;Database=dbname;Server=127.0.0.1;Port=5432
    
    or
    
    jdbc:cdata:greenplum:User=user;Password=admin;Database=dbname;Server=127.0.0.1;Port=5432

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

Connecting to Greenplum

To connect to Greenplum, set the Server, Port (the default port is 5432), and Database connection properties and set the User and Password you want to use to authenticate to the server. If the Database property is not specified, the 本製品 connects to the user's default database (it is the same name as the user).

Authenticating to Greenplum

The CData JDBC Driver for Greenplum supports the md5, password, Kerberos and SASL (particulary, SCRAM-SHA-256) authentication methods.

The specific authentication method is setup in the pg_hba.conf file on the Greenplum Server. You can find instructions about authentication setup on the Greenplum Server here. The md5, password and SASL authentication methods do not require additional setup by the CData JDBC Driver for Greenplum.

Kerberos

The Greenplum Server initiates authentication with the Kerberos Server when the CData JDBC Driver for Greenplum attempts a connection. You need to setup Kerberos on the Greenplum Server to activate this authentication method. After you have Kerberos authentication setup on the Greenplum Server, see Kerberos の使用 for details on how to authenticate with Kerberos by the 本製品.

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.8963