Sunteți pe pagina 1din 3

DatabasesAndDrivers - NetBeans Wiki http://wiki.netbeans.

org/DatabasesAndDrivers

DatabasesAndDrivers

Contents
1 Tested Drivers

1.1 Java DB driver for the JavaDB database

1.2 Oracle driver for the Oracle 10.x database

1.3 Oracle driver for the Oracle 11.x database

1.4 PostgreSQL driver for the PostgreSQL database

1.5 MySQL drivers for the MySQL database

2 Other Drivers

2.1 Microsoft driver for the SQL Server database

2.2 IBM driver for the DB2 database

2.3 jTDS driver for the SQL Server database

2.4 DataDirect drivers for the Oracle, SQL Server, DB2 and Sybase databases

Tested Drivers
NetBeans 6.0 has been tested with the following databases and drivers. (see supported target servers (http://wiki.netbeans.org
/wiki/view/DatabasesAndApplicationServers) for web applications)

Java DB driver for the JavaDB database


Bundled with Glassfish or Java 6
Driver Location Also available from http://db.apache.org/derby/releases
/release-10.3.1.4.cgi
Driver Versions Derby 10.3.1.4
Network: derbyclient.jar
Driver JAR File
Embedded: derby.jar
Driver Network: org.apache.derby.jdbc.ClientDriver
Classnames Embedded: org.apache.derby.jdbc.EmbeddedDriver
URL Format Example URL jdbc:derby://localhost:1527
-
(Network) (Network) /sample

Oracle driver for the Oracle 10.x database


Oracle Database 10g Release 2 JDBC Drivers
Driver
(http://www.oracle.com/technology/software/tech/java/sqlj_jdbc
Location
/htdocs/jdbc_10201.html)
Driver
Oracle Database 10g Release 2 (10.2.0.3)
Versions
Driver JAR
ojdbc14.jar
File
Driver
oracle.jdbc.driver.OracleDriver
Classnames
Example
URL Formats - jdbc:oracle:thin:@localhost:1521:ora9i
URL

1 of 3 2/5/2010 10:45 AM
DatabasesAndDrivers - NetBeans Wiki http://wiki.netbeans.org/DatabasesAndDrivers

Oracle driver for the Oracle 11.x database


Oracle Database 11g Release JDBC Drivers
Driver
(http://www.oracle.com/technology/software/tech/java
Location
/sqlj_jdbc/htdocs/jdbc_111060.html)
Driver
Oracle Database 11g Release (11.1.0.6.0)
Versions
Driver JAR
ojdbc5.jar (JDK 1.5), ojdbc6.jar (JDK 1.6)
File
Driver
oracle.jdbc.driver.OracleDriver
Classnames
Example
URL Formats - jdbc:oracle:thin:@localhost:1521:ora11i
URL

PostgreSQL driver for the PostgreSQL database


Bundled with NetBeans 6.0
Driver Location
Also available from http://jdbc.postgresql.org/download.html
Driver Version 8.2 Build 506
Driver JAR File postgresql-8.2-506.jdbc3.jar
Driver Classname org.postgresql.Driver

URL Format jdbc:postgresql://<host>:<port>/<database>

Example URL jdbc:postgresql://jbrave-pc1.sfbay.sun.com:5432/postgres

MySQL drivers for the MySQL database


Bundled with NetBeans 6.0
Driver
Also available from http://dev.mysql.com/downloads/connector
Location
/j/5.0.html
Driver Version MySQL Connector/J 5.0.7
Driver JAR Files mysql-connector-java-5.0.7-bin.jar
Driver
com.mysql.jdbc.Driver
Classname
Example jdbc:mysql://localhost:3306
URL Formats -
URL /sample

Other Drivers
The following drivers and databases have not been formally tested, but should work based on experience.

Microsoft driver for the SQL Server database


" Microsoft SQL Server 2005 JDBC Driver 1.1
Driver (http://www.microsoft.com/downloads
Location /details.aspx?FamilyId=6D483869-816A-
44CB-9787-A866235EFC7C&displaylang=en)
Driver Microsoft SQL Server 2005 JDBC Driver 1.1
Version sqljdbc_1.1.1501.101_enu.tar.gz
Driver JAR
sqljdbc.jar
File
Driver
com.microsoft.sqlserver.jdbc.SQLServerDriver
Classname
URL Example jdbc:sqlserver://localhost:1433;databaseName=travel;
-
Format URL selectMethod=cursor

2 of 3 2/5/2010 10:45 AM
DatabasesAndDrivers - NetBeans Wiki http://wiki.netbeans.org/DatabasesAndDrivers

IBM driver for the DB2 database


DB2 Personal Developer's Edition: Redistributable JDBC Type 4
Driver Location
Driver (requires registration)
Redistributable DB2 JDBC Type 4 driver v8 fixpack 13
Driver Version
db2_jdbc_t4_fp13.zip
Driver JAR Files Type 4 db2jcc.jar, Type 2 jcc_license_cu.jar
Driver
com.ibm.db2.jcc.DB2Driver
Classname
URL Format Example jdbc:db2://localhost:50002
-
(Type 4) URL /sample

Note: The IBM drivers support both Type 2 (native) and Type 4 (pure Java). To force the drivers to run in Type 4, add a property:
driverType = 4 when connecting to the database. Note2: To execute application, copy db2jcct2.dll or similar to the application server
classpath. For Glassfish that would be $GLASSFISH_INSTALL_DIR\domains\domain1\lib

jTDS driver for the SQL Server database


Driver jTDS (http://sourceforge.net/project
Location /showfiles.php?group_id=33291)
Driver Version jTDS 1.2.1 jtds-1.2.1-dist.zip
Driver JAR File jtds-1.2.1.jar
Driver
net.sourceforge.jtds.jdbc.Driver
Classname
Example jdbc:jtds:sqlserver://rave-
URL Format -
URL cheetah.sfbay.sun.com:1433/travel

DataDirect drivers for the Oracle, SQL Server, DB2 and Sybase databases
DataDirect Connect for JDBC, Release 3.6
Driver Service Pack1
Location (http://www.datadirect.com/downloads
/registration/connect_jdbc/index.ssp)
Driver DataDirect Connect for JDBC - 3.6
Versions DataDirect Connect for JDBC - 3.6.07
base.jar
util.jar
spy.jar
Driver .jar resource.jar
Files oracle.jar
sybase.jar
sqlserver.jar
informix.jar
com.ddtek.jdbc.oracle.OracleDriver
Driver com.ddtek.jdbc.sqlserver.SQLServerDriver
Classnames com.ddtek.jdbc.db2.DB2Driver
com.ddtek.jdbc.sybase.SybaseDriver
jdbc:datadirect:oracle://localhost;SID=ora9i
URL Example jdbc:datadirect:sqlserver://localhost:1433;DatabaseName=travel;
-
Formats URLs SelectMethod=cursor
jdbc:datadirect:db2://localhost:50002;databaseName=sample
Retrieved from "http://wiki.netbeans.org/DatabasesAndDrivers"

3 of 3 2/5/2010 10:45 AM

S-ar putea să vă placă și