|
Sponsored Links
Resources
Enterprise Java Research Library
Get Java white papers, product information, case studies and webcasts
|
Performance and scalability
Performance and scalability
Performance and scalability
|
Messages: 9
Messages: 9
Messages: 9
Printer friendly
Printer friendly
Printer friendly
Post reply
Post reply
Post reply
XML
XML
XML
|
 |
Oracle Thin Driver Vs. OCI Driver
Hi,
We are developing a web application using Weblogic 5.1
App Server and Oracle 8*i database. At present , we are using Oracle Thin Driver for our database connection. Oracle Thin drivers were chosen instead of OCI drivers as they were supposed to be providing better performance.
However, I feel that Thin driver, being pure Java Type 4 driver, will have lesser performance potential when compared to the native Oracle OCI drivers from Oracle or Weblogic (Weblogic OCI or JDBC Kona) .
I would very much appreciate if you could let me know of your thoughts on this subject. Also, it will be great if you could provide some references to such performance comparisons regarding Oracle Drivers.
Thanks,
Sunil
|
|
Message #15405
Post reply
Post reply
Post reply
Go to top
Go to top
Go to top
|
 |
Oracle Thin Driver Vs. OCI Driver
In my experience from many different clients, you are MUCH better off using the thin driver. The issue is the OCI driver isnt thread safe and you will find that 1) this causes the driver to be slower then the thin driver and 2) this makes the OCI driver alot less stable.
Your first choice was right, stick with the thin driver.
Dave Wolf
Internet Applications Division
Sybase
|
|
Message #15656
Post reply
Post reply
Post reply
Go to top
Go to top
Go to top
|
 |
Oracle Thin Driver Vs. OCI Driver
But there's a fail-over issue, that OCI driver can preserve a state of it's clients, where as the thin driver cannot.
|
|
Message #15716
Post reply
Post reply
Post reply
Go to top
Go to top
Go to top
|
 |
Oracle Thin Driver Vs. OCI Driver
Hi Dave,
Thanks for your response. I have heard that Thin drivers have problems when they are used in a clustered application server environment with multi-threaded programs using database connections.
Also, any idea where I can find some documentation on performance comparisons between the two.
Thanks,
Sunil
|
|
Message #15948
Post reply
Post reply
Post reply
Go to top
Go to top
Go to top
|
 |
Oracle Thin Driver Vs. OCI Driver
That's interesting - my experience with the 8.1.5 drivers was the opposite. I never noticed any bugs in either driver but did come to the conclusion that the OCI driver was 20-30% faster than the thin on Solaris 2.5.
This was on the production machines for living.com (now deceased) - with several thousand users hitting the site at a given time via Dynamo 4.5.
I guess YMMV.
Mike
|
|
Message #16062
Post reply
Post reply
Post reply
Go to top
Go to top
Go to top
|
 |
Oracle Thin Driver Vs. OCI Driver
Another issue with partially native drivers is that they're usually more difficult to install (you don't just add a .jar file to your lib directory or classpath and change your JDBC connect string).
They also tie you to one deployment platform. Worth keeping in mind ...
Regards,
Ben Flaumenhaft
Principal, Sidelight Consulting
http://www.sidelight.com
|
|
Message #16071
Post reply
Post reply
Post reply
Go to top
Go to top
Go to top
|
 |
Oracle Thin Driver Vs. OCI Driver
Hi,
I am using Solaris 2.8 Oracle 8.1.7 JDK 1.3.1 and I found that Thin performs better at higher Transaction rates compared to OCI and uses less CPU. But Oracle processes uses more CPU to handle these requests. Also, its much easier to configure that the OCI driver. I have reverse experience with earlier versions of oracle and solaris.
Thanks,
-Ramesh
Sun Microsystems.
|
|
 |
Hot threads
Hot threads
Hot threads
|
More hot threads
More hot threads
More hot threads
|
 |
Brian Goetz continues to lift the lid and peak into the inner workings of Java in Java Urban Performance Legends. In this article he exposes the fallacy behind some of the more common performance myths found in the annals of the JVM.
(93 comments,
last posted
February 06, 2009)
Bruce Tate, author of Better, Faster Lighter Java and Bitter EJB has come out with a new book called Beyond Java. Bruce has an epiphany about the future of software development. Does it include Java?
(770 comments,
last posted
September 23, 2009)
Looks like today AJAX concept have several interpretations. We can distinguish different approaches of AJAX integration. Can they co-exist within the same application? Can we talk about layered AJAX integration?
(68 comments,
last posted
May 08, 2008)
Artima has published a short article describing the Design-Time API for JavaBeans, which was recently approved as JSR 273. This API promises to bring VB-like ease to Java development, but may face a cultural bias among Java developers who tend to think more in terms of class libraries than components.
(225 comments,
last posted
November 19, 2009)
There is plenty of speculation today regarding a potential buyout of Sun Microsystems by Scott McNealy and Silver Lake Partners. How would privatization of Sun affect Java?
(16 comments,
last posted
May 15, 2009)
More hot threads »
|
|