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.