You can specify the JDBC drivers needed to connect to a database. The driver must be available on your CLASSPATH. If it is not, your database will not be accessible.
- Choose Parasoft> Preferences to open the Preferences panel.
- Select Available JDBC Drivers on the left.
- Add the required drivers to the classpath.
Common JDBC Drivers
The following JDBC drivers are commonly used to connect databases.
Oracle
Download | http://www.oracle.com/us/downloads/index.html |
---|---|
Driver class | oracle.jdbc.driver.OracleDriver |
JDBC URL |
Example:
|
MySQL
Download | http://dev.mysql.com/downloads/connector/j/ |
---|---|
Driver class | com.mysql.jdbc.Driver |
JDBC URL | jdbc: mysql://<host>:<port>/<dbName> |
Windows System DSN
Download | This driver is included with Java (Java 7 only) |
---|---|
Driver class | sun.jdbc.odbc.JdbcOdbcDriver |
JDBC URL | j Where |
Windows System DSNless
Download | This driver is included with Java (Java 7 only) |
---|---|
Driver class | sun.jdbc.odbc.JdbcOdbcDriver |
JDBC URL |
Where For example, if you have a MS Access database file that is named |
SQLServer
Download | https://docs.microsoft.com/en-us/sql/connect/jdbc/download-microsoft-jdbc-driver-for-sql-server |
---|---|
Driver class | com.microsoft.sqlserver.jdbc.SQLServerDriver |
JDBC URL |
Older drivers may have different settings. |
Sybase
Download | Downloads are no longer available |
---|---|
Driver class | com.sybase.jdbc2.jdbc.SybConnectionPoolDataSource |
JDBC URL | jdbc:sybase:Tds:host:port/dbName |
DB2
Download | http://www-01.ibm.com/support/docview.wss?uid=swg21363866 Additional IBM license files may be added. Depending on the target DB2 host, additional |
---|---|
Driver class | com.ibm.db2.jcc.DB2Driver Use the universal pure Java driver found under [DB 2 install dir]/java |
JDBC URL | jdbc:db2://host:port/dbName |
Apache Cassandra
Download | https://www.progress.com/jdbc/apache-cassandra See the documentation for additional details: https://documentation.progress.com/output/DataDirect/jdbccassandrahelp/ |
---|---|
Driver calss | com.ddtek.jdbc.cassandra.CassandraDriver |
JDBC URL | jdbc:datadirect:cassandra://server:port;KeyspaceName=keyspace |