Types of JDBC drivers

25 December 2007

There are 4 different types of JDBC drivers that can be used in Java database applications. Which driver to use, depens on the requirements and available resources. I will briefly talk about each driver.

Type 1 is JDBC-OBC bridge driver. It is pure Java and is include in java.sql.*. The client needs ODBC driver manager and ODBC driver for data source. It is ideal in situations, when ODBC driver is available for the database and is already installed on the client machine.

Type 2 is Native code driver. It implements native JDBC interfaces using language functions in the DBMS product’s API. Type 2 drivers need platform specific library, so client and server both may run on same host. Type 2 drivers offer better performance than Type 1 drivers.

Type 3 drivers are pure Java drivers and they use middleware network protocol. They need DBMS server to implement the standard protocol to be middleware specific. The advantage is that there is no nee for any vendor database library to be present on client machines. Interesting thing is, there is no JDBC standard network protocol yet.

Type 4 drivers are pure Java drivers and they use vendor specific network protocol. These use DBMS specific network protocol (Oracle SQL Net, etc).

For the beginners, Type 1 drivers are suitable. Users simply have to make a DSN and start interacting with the database.

del.icio.us:Types of JDBC drivers  digg:Types of JDBC drivers  spurl:Types of JDBC drivers  wists:Types of JDBC drivers  simpy:Types of JDBC drivers  newsvine:Types of JDBC drivers  blinklist:Types of JDBC drivers  furl:Types of JDBC drivers  reddit:Types of JDBC drivers  fark:Types of JDBC drivers  blogmarks:Types of JDBC drivers  Y!:Types of JDBC drivers  smarking:Types of JDBC drivers  magnolia:Types of JDBC drivers  segnalo:Types of JDBC drivers  gifttagging:Types of JDBC drivers

Top Of Page | Trackback

If you found this page useful, consider linking to it. Simply copy and paste the code below into your web site.

It will look like this: Types of JDBC drivers

Leave a Reply