Help Center/ Data Warehouse Service/ Standard Data Warehouse (9.1.0.x)/ Using JDBC or ODBC for DWS Secondary Development/ JDBC-Based Development/ Loading a Driver
Updated on 2025-10-09 GMT+08:00
Loading a Driver
Load the database driver before creating a database connection.
You can load the driver in the following ways:
- Implicitly loading the driver before creating a connection in the code: Class.forName ("org.postgresql.Driver")
- Transferring a parameter during the JVM startup: java -Djdbc.drivers=org.postgresql.Driver jdbctest
- jdbctest is the name of a test application.
- If gsjdbc200.jar is used, change the driver class name to "com.huawei.gauss200.jdbc.Driver".
What is your overall rating for this page?
0
1
2
3
4
5
6
7
8
9
10
Very dissatisfiedVery satisfied
Thank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.