OCI & thin drivers

I am using Oracle8i and I find two drivers are available for usage in JDBC applications: OCI8 and thin
What is the distinction between OCI and thin dirvers?
To which type of dirver does these two belong to?
When should I use which dirver?
A detailed explation would be appreciated.
Thanks in Advance.
RP

The OCI driver requires an Oracle client install on the same machine while the thin driver does not. If you cannot install additional files on the client computer (such as using an applet) you have to use the thin diver.
The OCI driver is slightly faster since a portion of it is written in C. It also supports things such as Oracle object types and PL/SQL tables while the thin driver does not.

Similar Messages

  • Difference between Thin Drivers and Thick Drivers

    hi all,
    can any one tell me the difference between Thin Drivers and Thick Drivers.
    regards
    ravi

    OCI is Oracle Call Interface. That's the lowest-level client API Oracle offers and the API that every thick client application eventually uses. For example, a C++ application using ADO would use the OLE DB driver which is itself written in OCI.
    From a deployment standpoint, the major difference is that the thin driver can be deployed to any machine that has Java installed. The OCI driver can only be deployed to machines that have the Oracle client installed.
    From a performance & functionality standpoint, there are features that only the OCI driver provides. Depending on the application, the OCI driver may also be faster.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • 8.1.6 (Thin) drivers with J2EE???

    Hello all,
    I am trying to use the 8.1.6 THIN drivers as an XA datasource in J2EE. Has anyone else made this work? I keep getting a ClassCastException thrown while starting the J2EE server. It DOES work if I create an older NON-XA datasource, so I know that my connection and URL are valid.
    Any help/examples would be immensely helpful.
    Thanks in advance,
    Randy

    all jdbc oci drivers require the matching client install on the same platform.
    (i.e. The 817 JDBC oci driver requires the RDBMS 817 client install, etc.)

  • Problems writing from BLOB to File with Thin-drivers

    I'm having problems when I'm trying to put a blob to a file
    using jdbc-thin drivers(8.1.5).
    It works perfectly well with the oci-drivers but not with thin.
    When I execute the same code with the thin-drivers I get:
    Error: java.io.IOException: ORA-21560: argument 2 is null,
    invalid, or out of range
    ORA-06512: at "SYS.DBMS_LOB", line 640
    ORA-06512: at line 1
    Please help me...
    /Stefan Fgersten
    lob_loc = ((OracleResultSet)rset).getBLOB(1);
    in = lob_loc.getBinaryStream();
    FileOutputStream file =
    new FileOutputStream("d:/dir/picture.jpg");
    int c;
    while ((c = in.read()) != -1)
    file.write(c);
    file.close();
    in.close();
    null

    Has anyone managed to find a solution (other than switching drivers) for this? I too am using the 8.1.5 thin driver on an 8.1.5 database and receive the same error. Please help!!
    Nkem
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Stefan Fgersten ([email protected]):
    I'm having problems when I'm trying to put a blob to a file
    using jdbc-thin drivers(8.1.5).
    It works perfectly well with the oci-drivers but not with thin.
    When I execute the same code with the thin-drivers I get:
    Error: java.io.IOException: ORA-21560: argument 2 is null,
    invalid, or out of range
    ORA-06512: at "SYS.DBMS_LOB", line 640
    ORA-06512: at line 1
    Please help me...
    /Stefan Fgersten
    lob_loc = ((OracleResultSet)rset).getBLOB(1);
    in = lob_loc.getBinaryStream();
    FileOutputStream file =
    new FileOutputStream("d:/dir/picture.jpg");
    int c;
    while ((c = in.read()) != -1)
    file.write(c);
    file.close();
    in.close();<HR></BLOCKQUOTE>
    null

  • How to configure oracle thin drivers for SUN APPLICATION SERVER

    hi all,
    I am working with EJB with oracle as back-end. I wants to know how to configure oracle thin drivers for the SUN APPLICATION SERVER. Please explain me breifly.
    Advanced thanks to all the replies.
    with regards,
    /kumaraswamy.n

    Kumaraswamy,
    Did you try searching the Internet? Here are the results of my Internet search:
    http://tinyurl.com/zo4gk
    And one of the first hits in the list was this:
    Deploying to a Sun Java System Application Server
    Good Luck,
    Avi.

  • JDBC thin drivers for oracle 8.0.5 for linux

    I want to use Java SDK 1.2.2 and need the oracle thin drivers.
    I have trouble with the 816 thin drivers connecting to the 8.0.5
    server.
    when using statement.executeQuery(..... I get the following
    Exception.
    Exception error: java.sql.SQLException: ORA-03120: two-task
    conversion routine:integer overflow
    I think my solution is to upgrade to a 8.1.6 server or use the
    java 1.1.6 driver on the JDK1.1.6
    I tried downoading the 8.1.5 enterprise server but this fails to
    complete.
    Can someone help me to this version on CDROM or to the JDBC thin
    driver for the 8.0.5 server?
    null

    You must include "classes12.zip" instead of "classes111.zip".
    Since "classes111.zip" is required only for Java 1
    and "classes12.zip" is required for Java 2 which means from J2SE 1.2 on forward.
    In adition you might need to inlcude "nls_charset12.zip" as well. Try it first without and if it is not working include it as well.
    The required files can you get from the OTN.
    This should help
    Roger

  • JDBC Thin Drivers

    Hi,
    I have downloaded Oracle thin drivers for jdk1.2.2 from oracle's site. But when i tried to hit the Database with it iam getting "Network Adapter error". I ahd given the url correctly. I checked up the application by running on the system where oracle is installed and it is running perfectly but when i access the database by installing thin drivers on some other machine and testing it, iam not able to connect to database. Iam getting Network adapter error and i also checked up with the network people and the assured me that there are no network problems as i am able to oracle server by pinging and thru telnet also. Any help will be greatly appreciated and Thanx in Advance.

    Marcelo,
    You can download JDBC 2.0 - friendly drivers from Openlink
    Software (http://www.openlinksw.com). Our latest 3.2 versions
    that support JDK 1.2 can be found at
    ftp://ftp.openlinksw.com/pre-3.2/index.html
    ... if you scroll to the NT / 95 section at the bottom of the
    page, you'll find the "opljdbc2.jar" in the list.
    Best regards,
    Stephen
    Marcelo Malagutti (guest) wrote:
    : Hello.
    : I3d like to know when will be released the JDBC thin drivers
    for
    : Oracle 8.0.4, compatible with the JDK 1.2. I need it to use
    the
    : new Java BLOB features of the JDK 1.2. Thanks.
    null

  • JDBC-Thin-Drivers on different Platforms

    Hello,
    Is there a difference between the JDBC thin drivers for Win NT and IBM AIX when using the same driver version (8.1.7) ?
    thanks in advance
    Joachim Helf

    the jdbc thin driver spec requires platform indepenedence.
    so you should not have a problem.
    if you do have a problem, then oracle support wants to hear about it.
    in that case, log a tar with your local oracle support center.

  • JDBC thin drivers for 8.0.4 and JDK 1.2

    Hello.
    I3d like to know when will be released the JDBC thin drivers for
    Oracle 8.0.4, compatible with the JDK 1.2. I need it to use the
    new Java BLOB features of the JDK 1.2. Thanks.
    null

    Marcelo,
    You can download JDBC 2.0 - friendly drivers from Openlink
    Software (http://www.openlinksw.com). Our latest 3.2 versions
    that support JDK 1.2 can be found at
    ftp://ftp.openlinksw.com/pre-3.2/index.html
    ... if you scroll to the NT / 95 section at the bottom of the
    page, you'll find the "opljdbc2.jar" in the list.
    Best regards,
    Stephen
    Marcelo Malagutti (guest) wrote:
    : Hello.
    : I3d like to know when will be released the JDBC thin drivers
    for
    : Oracle 8.0.4, compatible with the JDK 1.2. I need it to use
    the
    : new Java BLOB features of the JDK 1.2. Thanks.
    null

  • JDBC Thin Drivers and Tom Cat Compatibility Error

    I tried to use thin drivers in JDK 1.4 and Oracle 9i. The Oracle 9i has got a jar file named classes12.jar.
    i usually compile my .java files with the command:
    javac -classpath D:\oracle\jdbc\lib\classes12.jar <nameOfFile.java>
    the same is run in the console by the command
    java -classpath D:\oracle\jdbc\classes12.jar; <nameOfClassFile>
    I am giving the entire code that I want to compile and run below.
    The problem thing I am facing is ..... When even I try to start TOMCAT v5.0 I have to close the TSNListener of Oracle 9i and let the Oracle database only running. But when I request for a execution of a servlet that uses the class file, it gives an error. Telling ClassNotFound. If I add up the classes12.jar file in the classpath then tom cat does not run properly.
    So may anyone help me out of the situation of how to use the thin drivers, compile and run servlets and jsp's in TomCat v5.0.
    If not the solution of my above problem, then I want to know how can I use the Thin Drivers and implement a MVC architechture using TOMCAT and JDK1.5 and JRE1.5

    Where did you add the classes12.jar file reference in Tomcat?
    You need not add it to classpath. Just drop the jar file into the path":
    <TomCatInstallDir>\common\lib
    Tomcat loads all Jars inside this folder and then uses it for Runtime. It does not look at your machine's Classpath attribute

  • JDK1.3 and Oracle thin drivers

    I see that the latest version of the thin drivers (Oracle8i 8.1.6.0.1) are "validated" for jdk1.2.x use.
    Now that jdk1.3 is out for both Solaris and Windows, can I assume that the drivers will function properly with jdk1.3? or will Oracle release new drivers for jdk1.3?
    /Magnus

    I have found that the 1.3 jdk (I am using the RC for linux) works very well with the jdbc thin driver. The performance is exceptional using the hotspot server vm.
    slag

  • Jdbc thin drivers for windows 95

    Where can I find jdbc thin drivers for windows 95 for Personal Oracle 8.0. Thanks for the help.
    AP

    The thin driver is for the most part OS and RDBMS independant so any of them should work. The problem is more likely to be that you do NOT have a TCP/IP listener running on Personal Oracle (it doesn't have a listener at all by default).

  • JDBC 2 thin drivers

    Hi.
    On Jun 08 I3ve asked you about JDBC 2 thin drivers for Oracle.
    I3ve been told that by the end of the month (June, I understod)
    the 8.1.6 thin driver would be released. I3m already using Oracle
    8.1.5. What I want to know is:
    1) When will actually be released the new drivers ?
    2) Will it be necessary to upgrade the server ?
    3) Is there any Tech Track I should sign to receive updated
    information about thin drivers ?
    Thank you for your answer.
    null

    Marcelo,
    You can download JDBC 2.0 - friendly drivers from Openlink
    Software (http://www.openlinksw.com). Our latest 3.2 versions
    that support JDK 1.2 can be found at
    ftp://ftp.openlinksw.com/pre-3.2/index.html
    ... if you scroll to the NT / 95 section at the bottom of the
    page, you'll find the "opljdbc2.jar" in the list.
    Best regards,
    Stephen
    Marcelo Malagutti (guest) wrote:
    : Hello.
    : I3d like to know when will be released the JDBC thin drivers
    for
    : Oracle 8.0.4, compatible with the JDK 1.2. I need it to use
    the
    : new Java BLOB features of the JDK 1.2. Thanks.
    null

  • Large Long values not supported by thin drivers?

    Hi, the documentation says that the data
    access for LONG type through the SERVER SIDE THIN driver is limited to 32k. I installed the classes12_01.zip on my class
    path to use the thin driver, however, I
    couldn't even insert a column larger than
    16K. How do we differentiate server side
    thin driver from thin drivers inside the
    URLs? They all seem to be the same. Is there
    a type 4 driver that support LONG values biger than, say, 1M bytes?
    thanks,
    -dongqi
    null

    Hello Ulf,
    You have some excellent suggestions.  We are aware of the difficulty in locating unsupported functions in a built application.  The difficulty in reporting an appropriate error message is that these are only errors in a built application.  The rest of the time, the MathScript node should run without error.  The problem is getting information to MathScript when an application is building.  We are working on this and will take your suggestions into account for a future release.
    Grant M.
    Staff Software Engineer | LabVIEW MathScript | National Instruments

  • Thin drivers for 1.2.2 for Linux?

    Are there any thin drivers around for Linux for Java 1.2.2? The 8.1.6 install does not put classes12.zip in $ORACLE_HOME/jdbc/lib

    Thin driver is a pure 100 % java implementation and hence should be
    platform independent. So, download
    the solaris version from OTN site

Maybe you are looking for