AF
HomeTagSubmit NotesAsk AnythingLoginSubscribe Us
AF
1. Feel Free to ask and submit anything on Anyforum.in and get satisfactory answer
2. Registration is not compulsory, you can directly login via google or facebook
3. Our Experts are looking for yours ?.



corejava-jdbc: Explain the Type2 and Type3 drivers with examples?

give the sample example for type2 & type3 drivers in jdbc. using oracle database.

corejava x 351
jdbc x 32
Posted On : 2016-09-06 07:26:47.0
profile MOHAMMAD SALEEM BASHA - anyforum.in MOHAMMAD SALEEM BASHA
266150
up-rate
3
down-rate

Answers


Type-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:
-------------------------------------
performance upgraded than JDBC-ODBC bridge driver.

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


Type-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:
---------------------------------------
No client side library is required because of application server that can perform many tasks like auditing, load balancing, logging etc.

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

Type-4: 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.

Posted On : 2016-09-06 14:24:34
Satisfied : 1 Yes  0 No
profile Rishi Kumar - anyforum.in Rishi Kumar
523187021414
Reply This Thread
up-rate
3
down-rate



Post Answer
Please Login First to Post Answer: Login login with facebook - anyforum.in