Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Oracle OCI JDBC Driver Not Recommended for Multiprocessor Mac

RE: Oracle OCI JDBC Driver Not Recommended for Multiprocessor Mac

From: Richard Ji <richard.ji_at_mobilespring.com>
Date: Thu, 03 Apr 2003 08:43:53 -0800
Message-ID: <F001.00579782.20030403084353@fatcity.com>


The performance of JDBC OCI vs Thin really depends on what you are trying to do. Thin driver can perform better
than OCI and in some situations doesn't. Also there are limitations in Thin driver such as you can't return
a PL/SQL table using Thin driver, you can't do TAF etc.  

Richard Ji

-----Original Message-----
Sent: Wednesday, April 02, 2003 12:14 PM To: Multiple recipients of list ORACLE-L

I've gone to using the thin driver exclusively, as (counter-intuitively, I know) it performs better than the OCI driver. Plus it's easier to port...

-----Original Message-----
Sent: Wednesday, April 02, 2003 7:29 AM
To: Multiple recipients of list ORACLE-L

Sun's FAQ on java hotspot VM performance ( http://java.sun.com/docs/hotspot/PerformanceFAQ.html) <http://java.sun.com/docs/hotspot/PerformanceFAQ.html)> includes this interesting question:  

BM_24My application uses a database and doesn't seem to scale well. What could be going on?

Oracle provides two types of database drivers: a type-2 driver, called the OCI (Oracle Call Interface) driver that utilizes native code, and a type-4 pure Java driver called the thin driver. In single processor environments, the thin driver works somewhat better than the OCI driver because of the JNI overhead associated with the OCI driver. On multi-processor configuations, synchronization points within Solaris used by the OCI driver become big bottlenecks and prevent scaling. We recommend using the thin driver in all cases. <http://java.sun.com/docs/hotspot/PerformanceFAQ.html>  

Is this actually the case? Does anyone have more information on this?  

Thanks,  

Rick Stephenson

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to which they are addressed. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, forwarding or otherwise distributing or taking any action in reliance on the contents of this information is strictly prohibited.

--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: Richard Ji
  INET: richard.ji_at_mobilespring.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Thu Apr 03 2003 - 10:43:53 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US