JDBC Drivers: Server Machine Client Machine Jdbc-Odbc Bridge Driver
JDBC Drivers: Server Machine Client Machine Jdbc-Odbc Bridge Driver
JDBC Drivers: Server Machine Client Machine Jdbc-Odbc Bridge Driver
CLIENT MACHINE
SERVER MACHINE
JDBC-ODBC BRIDGE
DRIVER
ODBC DRIVER
DATABASE
SERVER
VENDER DB LIBRARY
CLIENT MACHINE
SERVER MACHINE
TYPE 2 DRIVER
ADVANTAGES:
Better performance than Type I driver as ODBC layer is completely eliminated and it uses
native API which is database specific.
OS independency is achieved i.e. Type 2 drivers available for all platform of java.
Client side maintenance is slightly reduced.
DISADVANTAGES:
Type 3 driver is known as Net Protocol All Java (Pure Java) Driver.
Type 3 driver translates JDBC method calls into a network server understandable protocol
call.
That network server (middleware server) internally uses Type1 or Type 2 driver to
communicate with the DBMS
CLIENT MACHINE
NET
PROTOCOL
PURE JAVA
SERVER MACHINE
MIDDLE
WARE
SERVER
DRIVER
TYPE 3 DRIVER
ADVANTAGES:
DATABASE
SERVER
DISADVANTAGES:
Type 4 JDBC driver is also known as Native Protocol All Java Driver.
It translates JDBC method calls into DBMS specific protocol calls so that client applications
can communicate directly with the database setver. For example oracle thin driver
translates JDBC method calls into SQL *NET protocol calls.
TYPE 4 drivers are completely implemented in java to achieve platform independence and
eliminate deployment administration issues. Hence it is most suitable for the web.
ADVANTAGES:
DISADVAANTAGES:
With type 4 driver the user needs a different driver for each database. For example to communicate
with oracle server we need oracle driver and to communicate Sybase server we need Sybase driver.
CLIENT MACHINE
SERVER MACHINE
NATIVE
PROTOCOL PURE
JAVA DRIVER
DATABASE
SERVER
TYPE 4 DRIVER