JDBC Package and Driver Class
JDBC Package
Download the dws_8.x.x_jdbc_driver.zip package from the management console.
- 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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot