Jdbc drivers

378 views 19 slides Dec 06, 2021
Slide 1
Slide 1 of 19
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19

About This Presentation

This file is useful for Under Graduate students of India.


Slide Content

JDBC Drivers Presented by Saurabh Bhartiya

Agenda Introduction JDBC Drivers (JDBC Drivers with Diagrams) Types of JDBC Drivers 12/6/2021 PRESENTATION TITLE 2

Introduction JDBC or Java Database Connectivity is a specification from Sun microsystems that provides a standard abstraction(that is API or Protocol) for java applications to communicate with various databases. It provides the language with java database connectivity standard. It is used to write programs required to access databases. JDBC along with the database driver is capable of accessing databases and spreadsheets. The enterprise data stored in a relational database(RDB) can be accessed with the help of JDBC APIs. 12/6/2021 PRESENTATION TITLE 3

JDBC Drivers Diagrams, Advantages & Disadvantages

JDBC Drivers JDBC Driver is a software component that enables java application to interact with the database. There are 4 types of JDBC drivers: JDBC-ODBC bridge driver Native-API driver (partially java driver) Network Protocol driver (fully java driver) Thin driver (fully java driver)

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 calls into the ODBC function calls. This is now discouraged because of thin driver . 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.

JDBC-ODBC Bridge Driver Advantages: 1. easy to use. 2. can be easily connected to any database. Disadvantages: 1. Performance degraded because JDBC method call is converted into the ODBC function calls. 2. The ODBC driver needs to be installed on the client machine.

JDBC-ODBC Bridge Driver

Native-API driver (partially java 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.

Native-API driver (partially java driver) Advantage: Performance upgraded than JDBC-ODBC bridge driver. Disadvantage: 1. The Native driver needs to be installed on the each client machine. 2. The Vendor client library needs to be installed on client machine.

Native-API driver (partially java driver)

Network Protocol Driver (fully java 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.

Network Protocol Driver (fully java driver) Advantage: No client side library is required because of application server that can perform many tasks like auditing, load balancing, logging etc. Disadvantages: 1. Network support is required on client machine. 2. Requires database-specific coding to be done in the middle tier. 3. Maintenance of Network Protocol driver becomes costly because it requires database-specific coding to be done in the middle tier.

Network Protocol Driver (fully java driver)

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: 1. Better performance than all other drivers. 2. No software is required at client side or server side. Disadvantage: Drivers depend on the Database. 12/6/2021 PRESENTATION TITLE 17 Thin Driver

Meet our team Saurabh Bhartiya Chief IT Officer - AoE Debdip Mitra Chief Executive Officer Deborshee Bhattacharjee Chief Operation Officer Ajitesh Kr Sinha VP Marketing 12/6/2021 PRESENTATION TITLE 18

Thank you Saurabh Bhartiya​ [email protected] www.aoe.education