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

Similar Messages

  • 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

    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 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).

  • 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

  • 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 driver and Oracle 8.1.6

    Hi,
    I have installed Oracle 8.1.6 on Windows NT 4.0 with service pack 4 and using Oracle JDBC thin driver driver (classes111.zip). My application is multithreaded, but each thread maintains its own connection (and own set of Statements). Things are okay in single threaded mode, but in multi threaded mode, I get weird errors!
    1. My resultsets are SCROLL_SENTITIVE and UPDATABLE
    2. Sometimes, while updating a row, "No current row" SQLException is thrown, although a row exists that satisfies my select criteria
    3. I am also calling executeUpdate() for inserting new rows and such rows are not seen by successive resultsets!
    Appreciate any hints! Thanks!

    Try this isntead.
    java -classpath d:\jdbc\classes12.zip;. jdbccheckup
    an error occured:
    Exception in thread "main" java.lang.NoClassDefFoundError:jdbccheckup
    Why??????

  • Jdbc thin driver and bulk binding slow insertion performance

    Hello All,
    We have a third party application reporting slow insertion performance, while I traced the session and found out most of elapsed time for one insert execution is sql*net more data from client, it appears bulk binding is being used here because one execution has 200 rows inserted. I am wondering whether this has something to do with their jdbc thin driver(10.1.0.2 version) and our database version 9205. Do you have any similar experience on this, what other possible directions should I explore?
    here is the trace report from 10046 event, I hide table name for privacy reason.
    Besides, I tested bulk binding in PL/SQL to insert 200 rows in one execution, no problem at all. Network folks confirm that network should not be an issue as well, ping time from app server to db server is sub milisecond and they are in the same data center.
    INSERT INTO ...
    values
    (:1, :2, :3, :4, :5, :6, :7, :8, :9, :10, :11, :12, :13, :14, :15, :16, :17,
    :18, :19, :20, :21, :22, :23, :24, :25, :26, :27, :28, :29, :30, :31, :32,
    :33, :34, :35, :36, :37, :38, :39, :40, :41, :42, :43, :44, :45)
    call count cpu elapsed disk query current rows
    Parse 1 0.00 0.00 0 0 0 0
    Execute 1 0.02 14.29 1 94 2565 200
    Fetch 0 0.00 0.00 0 0 0 0
    total 2 0.02 14.29 1 94 2565 200
    Misses in library cache during parse: 1
    Optimizer goal: CHOOSE
    Parsing user id: 25
    Elapsed times include waiting on following events:
    Event waited on Times Max. Wait Total Waited
    ---------------------------------------- Waited ---------- ------------
    SQL*Net more data from client 28 6.38 14.19
    db file sequential read 1 0.02 0.02
    SQL*Net message to client 1 0.00 0.00
    SQL*Net message from client 1 0.00 0.00
    ********************************************************************************

    I have exactly the same problem, I tried to find out what is going on, changed several JDBC Drivers on AIX, but no hope, I also have ran the process on my laptop which produced a better and faster performance.
    Therefore I made a special solution ( not practical) by creating flat files and defining the data as an external table, the oracle will read the data in those files as they were data inside a table, this gave me very fast insertion into the database, but still I am looking for an answer for your question here. Using Oracle on AIX machine is a normal business process followed by a lot of companies and there must be a solution for this.

  • JDBC Thin Client and Oracle Long Datatype

    I am using Wepshere 4.0.2 , JDBC 2.0 (thin driver) and oracle 9i.
    I have a procedure which takes Oracle Long Datatype as its parameter.
    I use following code to execute procedure.
    String dataforsql="AAA000000003 123123 07/01/200301/01/2003";
    byte[] bytes = dataforsql.getBytes();
    InputStream is = new ByteArrayInputStream(bytes);
    cstmt=conn.prepareCall("call nscw.CPPF_SAVEPDCRAWTABLE2(?,?,?)");
    cstmt.setAsciiStream (1, is,bytes.length);
    The above code works perfectly for data upto 4000 bytes. Once the data crosses the 4000 mark.
    i get a procedure error
    ORA-01460: unimplemented or unreasonable conversion requested

    cstmt.setAsciiStream (1, is,bytes.length);Oracle's support for CLOB (and BLOB) columns using set{Ascii,Binary}Stream() generally s*cks. You'll have to read Oracle's own JDBC manual (you can read it online at http://technet.oracle.com) for whatever sequence they recommend.
    E.g. for insertion and updation of CLOBS, you're supposed to use an oracle-specific function (EMPTY_CLOB()) as the value in the INSERT/UPDATE statement, and then do a SELECT, getClob(), and use Clob APIs to update the actual column value. At least officially. Or you have to use some Oracle-specific APIs in oracle.sql.Connection and oracle.sql.CLOB.

  • Oracle JDBC Thin Driver and Firewall Problem

    Hi!
    We have Oracle 8.1.5 and Websphere App Server. There is a
    firewall between the two. A servlet creates a connection pool
    (not that of Wesphere's). The frontend is JSP/HTML (no applets).
    The servlet uses the Oracle JDBC Thin Driver for DB Connections.
    The problem is - Once the connection is freed, the connection
    pool is not being able to retrieve it and hence it created
    another one, thus reaching the max. # of connections and the
    system hangs. Restarting the DB service flushes the connection
    and the application starts running again...
    There was a similar problem discussed in this forums long ago. I
    have not yet tried mentioning the firwall port and IP in the
    connection string. But apart from that, is there any other
    setting I need to do (on firewall or for the connectionstring)
    to deal with this problem?
    Someone had suggested to punch a hole in the firewall for the DB
    port - but we can not really do that in the current scenario...
    I would appreciate if anyone could share their experience
    regarding how they resolved this issue.
    Thanks in advance,
    Vijaya.

    One more question -
    Can we use Oracle JDBC OCI driver? We do not have any appletes...
    Does it have firewall issues too? Is there any other driver that
    we can use?
    Thanks,
    Vijaya.

  • JDBC Thin driver and Oracle names server

    Hi
    Any managed to get the Thin driver to user the Names Server aliases, ie I want to connect to service xxx like
    jdbc:oracle:thin:@xxxx and not specify instance and port as the DB is running in a multiple machine cluster and can be switched to a different machine...
    With OCI driver I have managed on NT but having problem with OCI/Linux and Beta 10g...
    Tks
    Andre

    I don't have much experience with OCI from JDBC, but should work like any other kind of connection via SQL*Net. I.e. I would check if connection can be made using SQLPlus, check environment variables (ORACLE_HOME etc.) of 9iAS instance, check version of JDBC classes and their readme.txt. There are also some settings in sqlnet.ora file which might affect this (like default domain - try to use full name of alias - OCRL.WORLD or whatever alias you have there). You may also want to switch tracing for SQLNet and/or listener on (it's not easy to find in doc how to do it, though) to check if there is at least some traffic between klient and server...
    Myrra

  • JDBC Thin-Driver and Oracle Stored Procedure

    I've got a Oracle stored procedure which returns a Oracle record.
    How can I retrieve the record in java using the JDBC Thin-Driver ?
    Record:
    TYPE messagerec IS RECORD
    (log_level VARCHAR(2), timestamp VARCHAR2(19), text VARCHAR2(200));

    Using PL/SQL BOOLEAN, RECORD Types, and TABLE Types:
    Oracle SQLJ and JDBC do not support calling arguments or return values of the
    PL/SQL BOOLEAN type or RECORD types. Also, when using the Thin driver, they
    do not support calling arguments or return values of PL/SQL TABLE types (known
    as indexed-by tables). TABLE types are supported for the OCI driver.
    Check the following guide,
    http://otn.oracle.com/tech/java/sqlj_jdbc/pdf/a96655.pdf

  • How to use thin drivers and classes111.zip?

    I'm using jdk1.2 and making connection with Oracle8 database using an applet. I resolved the issue
    of security by using the policytool. But now I want to know how can I use the Thin Driver to connect with the database?
    the code which I had written is :-
    import java.sql.*;
    try{
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:cbcpeter","scott","tiger");
    st=con.createStatement();     
    }catch(Exception e){System.out.println(e);}
    and it gives the following error "Class oracle.jdbc.driver.OracleDriver not found"
    So please tell me where to place the classes111.zip or classes12.zip and how to use them?
    I had tried with the jdbcodbc driver, but it gives me the error "Cannot load Resource File sqresus.dll"
    thanx in advance!

    well, i had the same problem some months ago, the READ ME OF HOW TO INSTALL IN THE ORACLE SITE IT IS INCORRECT!!! i cant remember it right, but the directory pertaining to the read me file is WRONG! im 100% sure because when i changed the directory to its correct path it WORKED!!! so u have to use common sense...
    also, if u r using tomcat 4.0.x try adding the location og the classes111.zip in the catalina.bat, coz when u run tomcat, it overrides the classpaths, etc that has been set in the autoexec.bat...
    also, dont unzip the file...
    i hope this helps... i had my code in another computer so i can post it here...

  • Using JDBC thin drivers against 9.2 DB ?

    Is anyone doing this? How? Which JDK? Which drivers?
    I would really like to uses JDBC 2.0 (classes12.zip) - but this hangs on the very first getConnect() or Driver.connect()
    Mike

    Thanks for the response.
    I understand what you are saying...
    that readers don't block writers in Oracle (the same is true in SQL Server 2000).
    However, I don't see how my test case is working correctly with Oracle (the exact same code acting as I'm thinking it should with SQL Server, but I still think it is acting incorrectly with Oracle).
    I have transaction A do this:
    update <table> set <column2>=<value> where <column1>='1'
    then I use Thread.sleep() to make that program hang around for a few minutes.
    Meanwhile I sneak off and start another program which begins transaction B. I have transaction B do this:
    select * from <table> where <column1>='1'
    and the read works immediately (no blocking... just as you have said) however, transaction A is still sleeping, it has not called commit() or rollback() yet.
    So what if transaction A were to call rollback(), the value read by transaction B would be incorrect wouldn't it ?
    Both A and B use setAutoCommit(false) to start their transactions, and then call setTransactionIsolation(Connection.TRANSACTION_READ_COMMITTED).
    Isn't that supposed to guarantee that a reader can only read what is committed ?
    And if a row is in "flux"... in the process of having one or more values changed, then the database cannot say what the value will be ?
    I can almost see what you are saying.
    In letting the reader have what it wants without making it wait, I suppose it could be said that Oracle is holding true to the "only let committed data be read"
    So if that's it, then what if I want the blocking ?
    I want an entire row to be locked until whoever it in the middle of updating, adding, or removing it has finished.
    Do you know if that can be done with Oracle ? And how ?
    Thanks again for helping me.

Maybe you are looking for

  • Error during activation a message mapping

    Hi, I get this error during activation a message mapping: source code has an syntax error: D:/usr/sap/XI3/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Mapf1f9db20a78a11dac004000f1ff80130/source/com/sap/xi/tf/_Source2Target_.java:2: packag

  • My Windows XP machine does not recognize my iPod Touch

    Hello, I just bought a second-hand iPod Touch (4-gen, 32GB). My Windows XP laptop is giving no indication that anything is attached to it at all. The "found new hardware" wizard does not open. The little icon that allows you to eject safely before de

  • How do i install App Store? i have 1.1.4 version.

    title says it all. please help me! thanks.

  • Selecting data on basis of string from ms access using database toolkit

    i want to read data from ms access in labview using database toolkit,but the problem is that i want to enter/select pipetype and other fields must be filled from the database with respect to pipe type intead of indexing(1,2,3,....)..kindly tell me ho

  • Using Solaris 10 on VMWARE WORKSTATION 5.5BETA

    HI . Can anyone help me? I have got the Solaris CD's and need to install all of them in VMWARE but after the booting of Solaris 10(Experimental) it give s an error of the CD ROM. I wanna install Solaris on my laptop SONY VGN-A195HP with WINDOWS XP PR