Thick vs. Thin JDBC Driver

Hi!
I was just wondering where to find some info about
the advantages / disadvantages of the Thick and Thin JDBC drivers, please, and some bachground about those drivers (what is the differnence etc).
In particular I would like to know whether Thick drivers are errorprone and mix up the contents of threads. Is this so according to your experience?
I would also like to know which one is the recommended driver to use if speed is an issue...
We use Oracle 8.1.7.4.0 and Websphere Application Server 4.04
Thanks a lot!
Cheers,
Steffen

Hi Steffen,
Check these links. I hope they provide you the information required.
http://st-doc.us.oracle.com/9.0/9202/java.920/a96654/overvw.htm#1000908
http://otn.oracle.com/tech/java/sqlj_jdbc/htdocs/factsht.htm
Regards,
Anupama

Similar Messages

  • URGENT!Can I user a THIN jdbc driver to access a CLOB field from oracle 8.0.5 DB?

    URGENT!Can I user a THIN jdbc driver to access a CLOB field from oracle 8.0.5 DB?

    I think you'd need to contact Oracle support to get access to older versions of the driver.
    Since 8.0.5 isn't supported any longer, however, is it possible for you to update your Oracle client to one of the supported releases-- 8.1.7 or 9i?
    Justin

  • Can weblogic server 5.1 version work with Oracle 9.2.0 thin JDBC driver?

    we have an applicaiton using weblogic 5.1 and Oracle database 8.1.6. Is that possible
    to upgrade databse version to Oracle 9i without weblogic upgrade? If yes, what
    JDBC driver should be used? Oracle 9.2.0 thin JDBC driver or weblogic jDriver?
    Is there any known issue with the JDBC driver under that architecture?
    Please help.

    Lei Zeng wrote:
    we have an applicaiton using weblogic 5.1 and Oracle database 8.1.6. Is that possible
    to upgrade databse version to Oracle 9i without weblogic upgrade? If yes, what
    JDBC driver should be used? Oracle 9.2.0 thin JDBC driver or weblogic jDriver?
    Is there any known issue with the JDBC driver under that architecture?
    Please help.Hi. Any weblogic server can be used with any JDBC driver. Just upgrade the
    JDBC driver to the latest/best one for Oracle9i, and make sure it's the first
    thing in the server's weblogic.classpath (not the java.classpath). I recommend the
    thin driver. Because it's all java, it is much more reliable. There is no known
    issue with standard JDBC with that or any other driver. Some non-standard Oracle
    calls which arer available from Oracle's driver classes are available through
    weblogic, and some are not.
    Joe Weinstein

  • Spy for oracle thin jdbc driver

    Does anyone know a good spy utility to intercept the
    query going to the database thru oracle thin jdbc driver?

    If you can post the code, I would be happy to look at. I'm not aware of any 'trapping' mechanism for JDBC, although there may be one. Are you confident that you are 'waiting' on the execute of the SQL? It's very unusual for nothing to happen. In most cases, I would expect a long running query, or that you are getting, but not catching an Exception. Code would help if that's possible...

  • Thin JDBC Driver is missing some rows from resultset

    Hi All
    I am faced with a peculiar problem.
    When I fire a SQL query using Toad, I get correct results but firing the same query using JDBC Driver - ojdbc14.jar (ORacle 11g R1) - we are getting lesser number of records.
    Our SQL pulls around 300k of records and buckets them based on some column value into different chunks. We use NTILE function and it shows right results in TOAD.
    Using same sql with JDBC, We are losing 100 rows per bucket.
    Any ideas?
    SQL is
    SELECT
    T.CTLG_ITM_ID as catalogItemIds,
    T.INV_STAT_TYP_ID,
    T.OORD_DT,
    T.LST_UPDT_DTTM,
    T.CTLG_ITM_SELL_TYP_ID,
    P.OORD_IND,
    C.BKORD_ELIG,
    NTILE(300) over (ORDER BY T.CTLG_ITM_ID) AS bucketId
    FROM
    INV_STAT_ROLLUP_T T,
    PRD_T P,
    CTLG_T C,
    CTLG_TREE_PATH_T TP
    WHERE
    T.CTLG_ITM_ID = TP.CTLG_ITM_ID AND
    TP.PAR_CTLG_ITM_ID = P.CTLG_ITM_ID AND
    C.BRD_CD = '10'
    As per toad, each bucket should get us 1038 records but Thin JDBC Driver is fetching us only 898 records.
    Any idea why this discrepancy?
    Thanks
    Saroj

    rozdev29 wrote:
    When I fire a SQL query using Toad, I get correct results but firing the same query using JDBC Driver - ojdbc14.jar (ORacle 11g R1)Seeing the downloads page:
    http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-111060-084321.html
    There IS no ojdbc14.jar for Oracle 11g. The minimum is Java 5. So correct me if I'm wrong, but you seem to be using a very old driver here. I would try a newer one if I were you.

  • Oracle thin JDBC driver BUG-2285052, how to solve it ?

    Hi, use ResultSet.getString to get a nchar type String from databaase, it will return the proper value.
    eg, a 254 size column , it will return more char as needed !!
    please check next from jdbc readme file. anyone can give me a temp solution ?
    BUG-2285052 (since 9.2.0.1)
    Extra space and null characters are returned by ResultSet.getString() and Scrollable ResultSet getString() for NCHAR column when the database national character set is UTF8. This behavior occurs only with JDBC THIN driver.

    Dear Michael,
    thx I found a lot of useful properties via the links you provided, but not those in question.
    michael_obrien wrote:
    For timeouts, you may need to use a hint directly on the entity though
    http://wiki.eclipse.org/Using_EclipseLink_JPA_Extensions_(ELUG)#How_to_Use_EclipseLink_JPA_Query_Hints
    http://wiki.eclipse.org/Using_EclipseLink_JPA_Extensions_(ELUG)#Timeout
    I think this refers to "Statement.setQueryTimeout".
    The properties I'm looking for focus on the connection and the network beneath.
    Are there other undocumented ;) possibilities?
    Kind Regards,
    daniela

  • Installing JDBC Thin 8i Driver

    Hello.
    I am having difficulty understanding what is necessary to install the classes111.zip
    file that I downloaded from technet.oracle.com. The readme file talks only about
    using the Oracle installer to get the job done. Correct me if I am wrong here, but
    classes111.zip is not a .prd file nor does such a file exist in the zip file.
    Sorry if this is an ignorant question and I just haven't done this sort of thing before
    now.
    Thank you for any help.
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by David Hane ([email protected]):
    Hello.
    hi there,
    I had the same problem. Try downloading
    Oracle 8.1.5 thin JDBC driver
    That has classes111.zip to be set in classpath
    The one u tried may have been Oracle 8.1.6, Thin driver
    karthik
    I am having difficulty understanding what is necessary to install the classes111.zip
    file that I downloaded from technet.oracle.com. The readme file talks only about
    using the Oracle installer to get the job done. Correct me if I am wrong here, but
    classes111.zip is not a .prd file nor does such a file exist in the zip file.
    Sorry if this is an ignorant question and I just haven't done this sort of thing before
    now.
    Thank you for any help. <HR></BLOCKQUOTE>
    null

  • A BUG in the KPRB JDBC driver

    Hi community,
    the problem I would like to present here seems to be a BUG in the KPRB (server-side) JDBC driver. To be precise, I am going to outline the platform I found the problem occurs (I haven't made any tests with the others yet). These are Oracle 8.1.6-8.1.7.4 databases.
    What I am trying to do is to write a Java Stored Procedure and return a nested table from it. Nothing easier than that!? The important aspect is I cannot (shouldn't) hardcode schema name in the call to the oracle.sql.ArrayDescriptor.createDescriptor() method since the Stored Procedure and the accompanied nested table (SQL) type can be loaded into arbitrary schema. Thus, my code looks like:
    Connection con = DriverManager.getConnection("jdbc:default:connection:");
    ArrayDescriptor arrDesc = ArrayDescriptor.createDescriptor("NESTED_TABLE_TYPE_NAME",con);
    You can note, NESTED_TABLE_TYPE_NAME is the nested table type I create in the same schema the Stored Procedure is loaded. What wrong with it? Actually, it works perfectly fine if You call the Stored Procedure being logged as the owner of the Procedure. The problem occurs if You grant the execute rights to other users and try to call it being logged as one of them. What happens is Oracle doesn't find the nested table type and throws an exception.
    Does it mean such behavior implies a BUG? Oracle reference states that if either the PL/SQL wrapper for the Java Stored Procedure or the class itself are marked as having DEFINER privileges the call proceeds in the schema of the definer, not the caller. Actually, I tried to declare the PL/SQL wrapper as well as the class having DEFINER privileges and none of them succeded.
    Then I made some investigations, and found in the Thin JDBC driver the ArrayDescriptor.createDescriptor method uses the oracle.sql.SQLName class, which in turn calls the oracle.jdbc.driver.OracleConnection.getUserName() method to obtain the missing schema name, and the latter performs select:
    SELECT USER FROM DUAL
    Obviously, the above returns current user, and not the current schema in the case DEFINER privileges were applied. I understand, the Thin JDBC driver is different from the KPRB driver but!!! I also monitor Library Cache (through v$sql dynamical view) while calling the Stored Procedure and what I see is very interesting ;-) The number of executions for the "SELECT USER FROM DUAL" statement increases!!!
    That is why I claim the above behavior is a BUG of the KPRB driver.
    Regards,
    Roman Zahorbenski

    Hi Avi,
    Because you didn't grant access permission to other users on the NESTED_TABLE_TYPE_NAME (maybe?)Of course, I remember to grant (EXECUTE) privilege on the nested table type to other users. The reason are not synonyms also, for Oracle doesn't allow to access these types through synonyms, unfortunately.
    And the applications can be tons ;-), I use it to implement regular expression functionality in the databases prior to 9i.
    Regards,
    Roman

  • Is it a bug for Oracle JDBC driver?

    Hi,
    I use the thin JDBC driver to connect my server, and try to obtain the meta data for the query data set. However, every time I issue 'getMetaData()' to get meta data, the following error is reported:
    java.lang.NumberFormatException: For input string: "4294967295"
         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
         at java.lang.Integer.parseInt(Integer.java:480)
         at java.lang.Integer.parseInt(Integer.java:518)
         at oracle.jdbc.driver.OracleResultSetMetaData.getPrecision(OracleResultSetMetaData.java:381)
         at genentity.GenEntityForm.getTableMetaData(GenEntityForm.java:445)
         at genentity.GenEntityForm.jButton2_actionPerformed(GenEntityForm.java:336)
    and the program coding for this error is as follows:
    sql = "SELECT * FROM " + tableName;
    ps = conn.prepareStatement(sql);
    rs = ps.executeQuery();
    rsmd = rs.getMetaData(); <-- Error occurs in here.
    Does anyone get an idea for this? Please help.
    Thanks in advance,
    Athens Yan.

    Hi,
    If u have applied the patch then there shud be no problem...try applying the patch again.

  • What are the benefits to using the OCI JDBC driver?

    I understand that the Thin JDBC driver is geared toward Applets since it is all Java and relatively small for download. If I am running servlets is there any compelling reason for me to use the OCI driver? I would think my application would be more portable if I stuck with the Thin driver even on the server side. This would allow me to easily move my servlet application to UNIX from NT, Java Web Server to IIS, IIS to Apache... So, does anyone know what one would gain by maintaining the Oracle Client software on the server and using the OCI driver?
    Thanks in advance.

    It's not a separate account. It's simply an additional address on your existing account and you can use it or not use it at your own convenience. Your @me.com address will be unaffected.

  • "Stuck" in JDBC driver 10.2.0.1

    Environment: Aix 5.1, WebSphere 5.1.1.6, Oracle thin JDBC Driver 10.2.0.1, against Oracle 9i DB Server
    Serveral times a week, we have a huge spike in the number of JDBC connections in webshpere. Typically we see a maximum of 30 concurrent JDBC connections, when we spike we hit 120 connections in 1 second.
    The spike seems artificial, one minute we are chugging along and the next bam we have hit 120 connections. When we get the spike
    the application is not able to recover and the JVM must be restarted. Looking at the javacore, I see that almost all threads are "stuck" in the JDBC driver at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java(Compiled Code)).
    Talking to the DBA, there is no activity on the Oracle server during the spike time. These two points seem to lead us
    to the JDBC driver itself.
    Has anyone else experienced an issue such as this?
    3XMTHREADINFO "Servlet.Engine.Transports : 47255" (TID:0x307CA760, sys_thread_t:0x49B2FC20, state:CW, native ID:0x8448) prio=5
    4XESTACKTRACE at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java(Compiled Code))
    4XESTACKTRACE at com.ibm.ws.rsadapter.jdbc.WSJdbcPreparedStatement.pmiExecuteQuery(WSJdbcPreparedStatement.java(Compiled Code))
    4XESTACKTRACE at com.ibm.ws.rsadapter.jdbc.WSJdbcPreparedStatement.executeQuery(WSJdbcPreparedStatement.java(Compiled Code))
    4XESTACKTRACE at cache.DBCache.get(DBCache.java(Compiled Code))

    Hi,
    I'd looks like the application hangs (OraclePreparedStatement.Execute Query) for some reason, as a result, more connections are allocated until the JVM crashes.
    I'd investigate why the application would hang and file a service request.
    Kuassi - blog http://db360.blogspot.com/
    ------ book http://www.amazon.com/gp/product/1555583296/

  • Spatial data through JDBC driver

    Hi,
    I have a spatial table which has polygon, linestring and points stored in the geometry column. Is there any API available to know whether the stored data is ploygon/point/linestring. I am using thin JDBC driver to connect to Oracle. Also are there APIs available to get the coordiniates, offset etc from polygon. Please let me know if there are any tutorials/examples available for working with spatial data and JDBC driver.
    Smitha

    Hi,
    You could use Oracle Spatial Java Class Library, available at: http://www.oracle.com/technology/software/products/spatial/index.html
    It is quite easy to use it.
    Regards,
    Andrejus

  • Problem with Sun Java Creator JDBC driver .....

    Hi:
    I am new to Java Studio Creator. I am using Oracle Enterprise Edition 8.0.5.0 database to get data from. Through Servers Navigator->Data Sources, I define a new datasource using default JSC JDBC driver for Oracle. However, when I try to test the connection I get the following error.
    [sunm][Oracle JDBC Driver] Internal Error: Net8 Protocol Error
    Can someone tell me what is going on here? By the way I also have Netbeans 4.0 IDE which works fine with the same database.
    -Victor bagga

    I was using the following database URL.
    jdbc:sun:oracle://autoserv.cqtel.com:1521;SID=autosvdb
    The SID is valid because I can use other JDBC drivers such as Oracle's thin driver which uses the Database URL
    jdbc:oracle:thin:@autoserv.cqtel.com:1521:autosvdb
    and it works. However, I can not use the Oracle thin JDBC driver with Sun Java Creator as it seems to be incompatible. Using this driver I can successfully define a datasource and veiw all the data and make all kind of queries through the Server Navigator window but when I try to drop a database table on to a Data Table in my project, nothing happens. If I try to Edit the query on the rowset, the GUI window does not show any Column names and display names.
    By the way, I also have an Oracle 9.x database which works just fine with Java Ctreator Studio. I really like Java Creator as I find it very productive but not being able to make it work with Oracle 8.0.5.0 takes the fun out of it.

  • Translator.zip and Classes111.zip for Thin-JDBC

    In Jdeveloper 2.0,
    Translator.zip
    and classes111.zip for Thin-JDBC Doesn't exist.
    Why?
    null

    David,
    It depends on which version of the Thin-JDBC driver you want to
    use.
    For 8.1.4:
    aurora\lib\classes111.zip
    For 8.0.5:
    jdbc\lib\oci8\classes111.zip
    For 7.3.x:
    jdbc\lib\oci7\classes111.zip
    Even though the directories say 'oci', the classes111.zip files
    contain both OCI and thin drivers.
    I'm not sure what the translator.zip file is that you're trying
    to locate. This isn't mentioned in the JDBC doc.
    -L
    David DUPONT (guest) wrote:
    : In Jdeveloper 2.0,
    : Translator.zip
    : and classes111.zip for Thin-JDBC Doesn't exist.
    : Why?
    null

  • Thin jdbc at runtime

    I sucessfully designed and ran an applet that used thin jdbc driver with Ibm VisualAge for java. But this applet refused to execute the retrieval method in a browser(netscape4.7).
    I am working with jdk1.1.7B,oracle7.3.4 and
    classes111.zip
    Funny enough,everything goes well when I used jdbc-odbc driver(but I don't like this for deployment purpose)
    Somebody should pls assist;
    what do i need to do?
    How Do I make the thin jdbc driver available. at runtime. Thanks.
    segun([email protected])

    I have the EXACT same problem... I can't seem to get anywhere with it either.
    I've noticed a few such posts on the forum, but unforunately there have been no replies.
    If anyone out there knows a workaround, please let us know!
    Joe

Maybe you are looking for

  • Help with blending options

    I can't seem to find blending options for layers anywhere in Elements 3.0. . . I'm trying to follow this guide: http://www.pixeldigest.com/contentbox001.html It says to right-click the layer and choose Blending options. But I don't see that anywhere?

  • Find files in folder doesn't work

    To make my photo galleries, I use CS5, because this is the last version that can use modified galleries that I was able to since CS3.  My modified pages have links to other pages on my web site, while the ones that now come with Photoshop are dead en

  • About stock transfer

    Hello friends what is one step and two step in stock transfers in real time sceanario In stock transfer process from plant to plant under same company code.... normally me21n...vl10b....vl02n...vf01...j1iin.... normally i know 1 step means it updates

  • HT1695 My phone sttruggles to connect to wifi & if it does connect it loses connection after a few moments

    My phone sttruggles to connect to wifi & if it does connect it loses connection after a few moments, This has happened a few months ago and i had a replacement phone sent a couple of weeks later it happened to my husbands i phone 4s and now 4 months

  • Multiple error messages while trying to instal cs5 from CD

    Hello! I have tried to chat with an expert about this 3 times and can never connect with anyone. Hopefully someone here will respond! I have the CS5 design standard disc set. I had some trouble installing Adobe Acrobat, but was finally successful. Ho