Do pure java jdbc drivers (Type 4 ) call native database API functions such as OCI and DB2/CLI?
If not do databases expose custom API for Java programs?
For example reading this intro to OCI here http://www.oracle.com/technetwork/database/features/oci/index.html
They do not mention thin jdbc driver as being one of the interfaces that use OCI.
Do pure java jdbc drivers (Type 4 ) call native database API functions such
Share
The Oracle “thin” driver (Type 4) talks directly to the Oracle database server without any layer in between. It does not even need any Oracle client installation which would provide the OCI API.
Oracle’s driver can use OCI for certain features (mainly TAF – Transparent Application Failover), but the JDBC URL will look differently then. If that is used, it is no longer a Type 4 driver and requires an Oracle client install (OCI) to be available.
I don’t know about the DB2 driver.