0% found this document useful (0 votes)
81 views4 pages

Aim:-To Study About JDBC ODBC Bridge

The document discusses different types of JDBC drivers, including the JDBC-ODBC bridge driver. The JDBC-ODBC bridge driver translates JDBC method calls to ODBC function calls, allowing access to databases without a native JDBC driver. However, it has performance issues and is no longer supported. Native-API and network protocol drivers have better performance but require additional software. Thin drivers have the best performance as they directly convert JDBC calls to the database protocol without other software.

Uploaded by

shailendra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
81 views4 pages

Aim:-To Study About JDBC ODBC Bridge

The document discusses different types of JDBC drivers, including the JDBC-ODBC bridge driver. The JDBC-ODBC bridge driver translates JDBC method calls to ODBC function calls, allowing access to databases without a native JDBC driver. However, it has performance issues and is no longer supported. Native-API and network protocol drivers have better performance but require additional software. Thin drivers have the best performance as they directly convert JDBC calls to the database protocol without other software.

Uploaded by

shailendra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Aim:-To study about JDBC ODBC Bridge.

A JDBC-ODBC bridge consists of a JDBC driver which employs an ODBC driver to connect to a target database. This driver
translates JDBC method calls into ODBC function calls. Programmers usually use such a bridge when a given database lacks
a JDBC driver, but is accessible through an ODBC driver.
JDBC Driver is a software component that enables java application to interact with the database. There are 4 types of JDBC
drivers:
1. JDBC-ODBC bridge driver
2. Native-API driver (partially java driver)
3. Network Protocol driver (fully java driver)
4. Thin driver (fully java driver)

1) JDBC-ODBC bridge driver


The JDBC-ODBC bridge driver uses ODBC driver to connect to the database. The JDBC-ODBC bridge driver converts JDBC method
the ODBC function calls. This is now discouraged because of thin driver.

In Java 8, the JDBC-ODBC Bridge has been removed.

Oracle does not support the JDBC-ODBC Bridge from Java 8. Oracle recommends that you use JDBC drivers provided by the
vendor of your database instead of the JDBC-ODBC Bridge.

Advantages:
o easy to use.
o can be easily connected to any database.

Disadvantages:
o Performance degraded because JDBC method call is converted into the ODBC function calls.
o The ODBC driver needs to be installed on the client machine.

2. Native API Driver :-


The Native API driver uses the client-side libraries of the database. The driver converts JDBC method calls into native calls of
the database API. It is not written entirely in java.

Advantage:
o performance upgraded than JDBC-ODBC bridge driver.

Disadvantage:
o The Native driver needs to be installed on the each client machine.
o The Vendor client library needs to be installed on client machine

3) Network Protocol driver

The Network Protocol driver uses middleware (application server) that converts JDBC calls directly or indirectly into the
vendor-specific database protocol. It is fully written in java.
Advantage:
o No client side library is required because of application server that can perform many tasks like auditing, load
balancing, logging etc.

Disadvantages:
o Network support is required on client machine.
o Requires database-specific coding to be done in the middle tier.
o Maintenance of Network Protocol driver becomes costly because it requires database-specific coding to be done
in the middle tier.

4) Thin driver
The thin driver converts JDBC calls directly into the vendor-specific database protocol. That is why it is known as thin driver.
It is fully written in Java language.

Advantage:
o Better performance than all other drivers.
o No software is required at client side or server side.

Disadvantage:

o Drivers depend on the Database


 Difference between ODBC and JDBC
ODBC JDBC

ODBC Stands for Open Database Connectivity. JDBC Stands for java database connectivity.

Introduced by Microsoft in 1992. Introduced by SUN Micro Systems in 1997.

We can use ODBC for any language like C,C++,Java etc. We can use JDBC only for Java languages.

We can choose ODBC only windows platform. We can Use JDBC in any platform.

Mostly ODBC Driver developed in native languages like C,C++. JDBC Stands for java database connectivity.

For Java applications it is not recommended to use ODBC For Java application it is highly recommended to
because performance will be down due to internal conversion use JDBC because there we no performance &
and applications will become platform Dependent. platform dependent problem.

ODBC is procedural. JDBC is object oriented.

You might also like