JDBC vs OCCI? Oracle.
1 posts in topic
Flat View  Flat View

Posted By:   Ahm_Bay
Posted On:   Tuesday, April 20, 2004 01:35 AM

Which one works faster with OracleDB?
In my computer JDBC with OracleDriver works quite faster than C++ connecting via OCI.
Is it always so?

Re: JDBC vs OCCI? Oracle.

Posted By:   Christopher_Koenigsberg  
Posted On:   Tuesday, April 20, 2004 11:27 AM

I would think it would be the other way around, that the "native code" e.g. type 2 (OCI) driver would execute faster in general, than pure Java (type 4/"thin") code would.

But maybe there are other factors involved.

For instance, maybe the OCI code is linked with a different DNS resolver library than the one used by the Java JVM, and maybe that DNS resolver is mis-configured, so it takes a long time to resolve the hostname of the server, having to wait for some timeout from some bogus DNS server or something like that? etc.

About | Sitemap | Contact