Updated on 2025-08-25 GMT+08:00

JDBC Package and Driver Class

JDBC Package

Download the dws_8.x.x_jdbc_driver.zip package from the management console.

After extraction, there are two JDBC driver JAR files:
  • gsjdbc4.jar: A driver package compatible with PostgreSQL. Its class name and structure are identical to the PostgreSQL driver. Applications previously running on PostgreSQL can be directly migrated to the current system.
  • gsjdbc200.jar: Use this driver package if a single JVM process requires simultaneous access to PostgreSQL and DataArts Fabric SQL. Its main class name is com.huawei.gauss200.jdbc.Driver (replacing org.postgresql with com.huawei.gauss200.jdbc).

Driver Class

Before creating a database connection, you must load the database driver class org.postgresql.Driver (from gsjdbc4.jar) or com.huawei.gauss200.jdbc.Driver (from gsjdbc200.jar).

Since DataArts Fabric SQL maintains compatibility with PostgreSQL in JDBC usage, using both JDBC drivers within the same process may result in class name conflicts.