Oracle 9.2.0.8 JDBC Driver Java 1.5

Where can I find Oracle 9.2.0.8 JDBC Driver for use with Java 1.5 ?

Hello,
Can you provide a test case for such behaviour? And the versions of JDK used in those samples ....
It would be easier if we isolate java 1.5 issues from ojdbc issues.
Rick B.

Similar Messages

  • 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

  • Oracle 8.1.7.4 + JDBC Driver 10.2.0.3.0=invalid or unknown NLS parameter...

    I'm having an issue trying to update the jdbc driver from 10.1.0.2.0 to 10.2.0.3.0 to access an Oracle 8.1.7.4 instance. Using this code I'm getting the following exception, any ideas how to fix it?
    Thanks,
    Johann
    Connection c = null;
    try {
         Driver dr = new oracle.jdbc.OracleDriver();
         DriverManager.registerDriver(dr);
         Properties props = new Properties();
         props.put("user", "congiromsr");
         props.put("password", "the password");
         String url = "jdbc:oracle:thin:@cholguaco:1533:lobo";
         c = dr.connect(url, props);
         System.out.println("The driver is "
                   + c.getMetaData().getDriverVersion());
         System.out.println("The DBMS is "
                   + c.getMetaData().getDatabaseProductVersion());
    } catch (Exception e) {
         e.printStackTrace();
    } finally {
         try {
              c.close();
         } catch (Exception ignore) {
    java.sql.SQLException: ORA-00604: error occurred at recursive SQL level 1
    ORA-12705: invalid or unknown NLS parameter value specified
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:283)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:278)
         at oracle.jdbc.driver.T4CTTIoauthenticate.receiveOauth(T4CTTIoauthenticate.java:791)
         at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:362)
         at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:439)
         at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)
         at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
         at TestClass.main(TestClass.java:14)

    JDBC drivers set NLS parameters based on your locale settings. There are three based parameters: language, territory and character set. Maybe in your case JDBC driver 10.2.0.3.0 sets one of them with value that is not supported in Oracle Database 8.1.7.4. Character set is the first candidate for this. JDBC drivers use only Unicode character sets - there are a few new of them in Oracle Database 10g. 8 and 9 versions of JDBC drivers use UTF8 which is Unicode version 3.0 but in 10g is added Al32UTF8 which is Unicode version 4.0.

  • Doubts: Oracle 9i Client -J2SDK1.4 - JDBC Driver

    Hi eXperts,
    I have installed Oracle 9i(9.2.0.1) client in my machine. Along with the Oracle 9i client, there are two JREs (versions 1.3.1 and 1.1.8) also installed. After installing the oracle 9i client, the SYSTEM�s environment variable �PATH� is updated with the �bin� directory of both JRE (C:\Program Files\Oracle\jre\1.3.1\bin;
    C:\Program Files\Oracle\jre\1.1.8\bin;) and �bin� director of Oracle home (C:\oracle\ora92\bin;)
    Already I have installed J2SDK 1.4.1_02. I have set the USER�s environment variable �PATH� to �C:\j2sdk1.4.1_02\bin;�
    My problem is:
    1.     Before installing oracle 9i client, I was working with J2SDK v1.4.1. After installing, I could not able to invoke the J2SDK 1.4.1; instead I�m invoking JRE 1.3.1. I want work with latest version of J2SDK (that is J2SDK1.4.1, the one I installed) at the same time without disturbing the Oracle 9i clients JREs. Because, I want use the Oracle client for JDBC connection to the database.
    2.     I have installed J2SDK1.4.1, I want connect with oracle 9i database from JAVA using JDBC driver. That means JDBC driver supporting J2SDK1.4. (With ojdbc14.jar, not with classes12.jar,). But, currently I�m using �classes12.jar� to connect with database, because my program invokes JRE1.3, not J2SDK1.4.
    3.     And one more doubt is that why Oracle 9i client comes with two JREs. JRE 1.3.1 is having backward compatibility; it should support JRE 1.1.8 features too. Why two JREs?
    Hope that any of you can solve my doubts.
    Thank & Regards,
    Vijay

    Hi Viravan,
    Yes of course, JRE 1.1.8 doesn�t have the forward compatibility with JRE 1.3. I would like to hear the words from you to clear and assure myself with the doubt that what is the purpose of inclusion of JRE1.1.8 along with the oracle 9i client?. I�m assuming that this is because of to use JRE 1.1.8 compatible JDBC drivers. Is it right?
    Because,
    For JDK1.1 � classes111.zip
    For JDK1.2 and JDK1.3 � classes12.zip and
    For JDK1.4 � ojdbc14.jar
    If that is the case why they haven�t included the JRE1.4 along with Oracle 9i client, because they were provided the ojdbc14.jar.
    If any OTHER REASON is there, please let me know. I�m suspecting that there may be some other reasons for the inclusion of JRE1.1.8. Looking forward your reply�
    Thanks for your support.
    Vijay

  • ADF Bc third party JDBC Driver java.sql.SQLException: No suitable driver

    Hello all
    I am using JT400.jar file to connect to AS/400 data base in my JSF/ADF Application.
    We are using shared library for all non oracle jar files . and my application fails with error message
    ## Detail 0 ##
    java.sql.SQLException: No suitable driver
    During runtime. even though i am importing the required jar files from shared library settings in server.xml / application.xml
    When i don't have the entry in shared library for this jar file it will fail during deployment time it self, but with shared library link it works during deployment but fails during runtime
    it will work during runtime if i add my jar file to BC4J/lib folder. but team responsible for mintaining application server don't accept adding non oracle jar files to oracle installation folders
    i have also posted this in jdev forum
    Please Advise
    Thanks

    Thanks for reply
    i am using Sqlserver 2000 as back end
    import java.sql.*;
    import java.net.*;
    public class MysqlConnect{
         public static void main(String[] args) {
              System.out.println("MySQL Connect Example.");
              Connection conn = null;
    // String url = "jdbc:mysql:/localhost:3306/";
    String url = "jdbc:microsoft:sqlserver/GTEXC/";
    String dbName = "java";
    // String driver = "Sun.Jdbc.Odbc.JdbcOdbcdriver";
    String userName = "root";
              String password = "root";
              try {
    Driver d=(Driver)Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver").newInstance();
                   conn = DriverManager.getConnection(url+dbName,userName,password);
                   System.out.println("Connected to the database");
                   conn.close();
                   System.out.println("Disconnected from database");
              } catch (Exception e) {
                   e.printStackTrace();
    }

  • Servlets/ oracle jdbc driver

    i am trying to connect to my oracle database within a servlet. the driver i want to use is a oracle jdbc oci8 driver, but but unfortuntately i always get an unsatisfied link error (this only happens in servlets)
    the errormessage i get is:
    java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.path
    at org.apache.jserv.JServServletManager.load_init(JServServletManager.java:589)
    at org.apache.jserv.JServServletManager.loadServlet(JServServletManager.java:498)
    at org.apache.jserv.JServConnection.processRequest(JServConnection.java:269)
    at org.apache.jserv.JServConnection.run(JServConnection.java:188)
    at java.lang.Thread.run(Thread.java:484)
    can anyone help me?
    thx, laurenz
    null

    make sure your servlet engine platform has an oracle client installed matching the jdbc driver version being used.
    You must also properly configure your servlet engine to access the jdbc oci driver's executables.

  • New version of jdbc driver

    Hi JDBC Dev. Team,
    I heard a rumour recently that Oracle are going to employ programmers from Sun to rewrite the JDBC implementation - is this true?
    Also, when will the JDBC implementation be reduced to an acceptable size (<500Kb)?
    regards,
    Alexander
    null

    Pity that the rumour has no foundation. Thanks for the quick response though. I appreciate that.
    As for the size, well, from the very start Oracle has made mention of the fact that their JDBC driver was small enough to be downloaded by an applet (see original JDBC documentation which apparently hasn't been updated in lieu of the new MEGA sized JDBC driver).
    I, of course, want to use it with applets/applications as I am a firm believer that HTML interfaces are insufficient and that people will return to Java GUI's. Given that Java has a fantastic GUI API it is logical that people will want to make use of it in the future. I do, that's for sure. However, it is not an option to download a 1.7 Mb JDBC driver in an applet - it is really rather exhorbitant! Would be interesting to hear what ORacle themselves think of their JDBC driver.
    Anyway, I will either have to use RMI/CORBA or someone else's JDBC driver...
    thanks for your response,
    alexander

  • Beginner Has Problem With Loading JDBC Driver Using MySQL

    Hi, I am having problem with loading JDBC driver, and need your diagnotic help.
    1. I have installed MySQL (C:\mysql), created a databse (soup), and created a littel table (VIDEOS). I am able to see the table in the console:
    sql> select * from videos
    2. I have downloaded the latest version of Connector/J (mysql-connector-java-3.1.0-alpha.zip), and unzip the zip file into my C:\ directory.
    3. I copied the mysql-connector-java-3.1.0-alpha-bin.jar to the C:\j2sdk1.4.1_02\jre\lib\ext folder and it is in my CLASSPATH
    4. MySQL server is running
    C:\> C:\mysql\bin\mysqld-nt --standalone
    5. open another DOS window and use the database
    mysql>USE SOUP
    6. succesfully compiled a Java program (javac Test.java):
    import java.sql.* ;
    public class Test
    public static void main( String[] args )
    try
    Class.forName("org.gjt.mm.mysql.Driver").newInstance();
    try
    Connection con = DriverManager.getConnection( "jdbc:mysql://localhost:3306/soup" );
    try
    Statement statement = con.createStatement();
    ResultSet rs = statement.executeQuery("SELECT TITLE FROM VIDEOS");
    while ( rs.next() )
    System.out.println( rs.getString( "TITLE" ) );
    rs.close();
    statement.close();
    catch ( SQLException e )
    System.out.println( "JDBC error: " + e );
    finally
    con.close();
    catch( SQLException e )
    System.out.println( "could not get JDBC connection: " + e );
    catch( Exception e )
    System.out.println( "could not load JDBC driver: " + e );
    7. when I run the Java program (java Test), I got
    the message:
    could not load JDBC driver: java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver
    What am I missing?

    Hi,
    I missed to specify test in my last post.
    Try running your program by explicitly setting the classspath when
    running your program . java -classpath c:\mysql-connector-java-3.1.0-alpha-bin.jar test
    Make sure your jar file contains org.gjt.mm.mysql.Driver class

  • 3rd Party JDBC Driver in IAS6

    Hi,
    I set up a third-party JDBC driver on iPlanet App Server 6.0 SP3 Test Drive
    on WinNT 4.0. I then ran HelloDB against a data source pointing to this JDBC
    driver. I got the following exception while trying to make a connection. Any
    hint as to what's wrong would be greatly appreciated.
    Yongtao You
    [email protected]
    PS. The "Driver Classpath" is set to "k:\iPlanet\ias6\neon\scjd12ts.jar"
    which contains the class "com.neon.jdbc.Driver".
    java.sql.SQLException: A. Couldn't load or create 3rd party class:
    com.neon.jdbc.Driver
    at com.netscape.server.jdbc.Driver.connect(Unknown Source)
    at com.netscape.server.jdbc.ConnectionPool.createNewConnection(Unknown
    Source)
    at com.netscape.server.jdbc.ProxyEvaluation.createObject(Unknown Source)
    at com.kivasoft.rlop.ObjectPool.reserveObjectnative(Native Method)
    at com.kivasoft.rlop.ObjectPool.reserveObject(Unknown Source)
    at com.netscape.server.jdbc.ConnectionPool.getFromPool(Unknown Source)
    at com.netscape.server.jdbc.ConnectionPool.getConnection(Unknown Source)
    at com.netscape.server.jdbc.DataSourceImpl.getConnection(Unknown Source)
    at com.netscape.server.jdbc.DataSourceImpl.getConnection(Unknown Source)
    at
    samples.hellodb.servlet.GreeterDBServlet.doGet(GreeterDBServlet.java:91)
    at
    samples.hellodb.servlet.GreeterDBServlet.doPost(GreeterDBServlet.java:132)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:772)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
    Source)
    at
    com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unknown
    Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.thread.ThreadBasic.run(Native Method)
    at java.lang.Thread.run(Thread.java:479)

    Hi,
    I fixed the problem by manually editing the Windows Registry.
    Thanks.
    Yongtao
    Yongtao You <[email protected]> wrote in message
    news:9q52qh$[email protected]..
    Hi,
    I set up a third-party JDBC driver on iPlanet App Server 6.0 SP3 TestDrive
    on WinNT 4.0. I then ran HelloDB against a data source pointing to thisJDBC
    driver. I got the following exception while trying to make a connection.Any
    hint as to what's wrong would be greatly appreciated.
    Yongtao You
    [email protected]
    PS. The "Driver Classpath" is set to "k:\iPlanet\ias6\neon\scjd12ts.jar"
    which contains the class "com.neon.jdbc.Driver".
    java.sql.SQLException: A. Couldn't load or create 3rd party class:
    com.neon.jdbc.Driver
    at com.netscape.server.jdbc.Driver.connect(Unknown Source)
    at com.netscape.server.jdbc.ConnectionPool.createNewConnection(Unknown
    Source)
    at com.netscape.server.jdbc.ProxyEvaluation.createObject(UnknownSource)
    at com.kivasoft.rlop.ObjectPool.reserveObjectnative(Native Method)
    at com.kivasoft.rlop.ObjectPool.reserveObject(Unknown Source)
    at com.netscape.server.jdbc.ConnectionPool.getFromPool(Unknown Source)
    at com.netscape.server.jdbc.ConnectionPool.getConnection(UnknownSource)
    at com.netscape.server.jdbc.DataSourceImpl.getConnection(UnknownSource)
    at com.netscape.server.jdbc.DataSourceImpl.getConnection(UnknownSource)
    at
    samples.hellodb.servlet.GreeterDBServlet.doGet(GreeterDBServlet.java:91)
    at
    samples.hellodb.servlet.GreeterDBServlet.doPost(GreeterDBServlet.java:132)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:772)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    atcom.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
    Source)
    at
    com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unknown
    Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.thread.ThreadBasic.run(Native Method)
    at java.lang.Thread.run(Thread.java:479)

  • How to resolve "Failed to load TTSQLDB JDBC driver" problem

    Hi,
    I installed timesten112140.sparc64.tar on solaris m/c.
    Details of solaris m/c are
    SunOS pun-ldom-rds70 5.10 Generic_139555-08 sun4v sparc SUNW,T5240
    I am getting below mentioned error when trying connecting to the database through java process.
    ERROR: failed to load TTSQLDB JDBC driver.
    java.sql.SQLException: Problems with loading native library/missing methods: /op
    t/TimesTen/ttsolaris21/lib/libttJdbc.so: ld.so.1: java: fatal: /opt/TimesTen/tts
    olaris21/lib/libttJdbc.so: wrong ELF class: ELFCLASS64 (Possible cause: architec
    ture word width mismatch)
    at com.timesten.jdbc.JdbcOdbcConnection.connect(JdbcOdbcConnection.java:
    1753)
    at com.timesten.jdbc.TimesTenDriver.connect(TimesTenDriver.java:349)
    at com.timesten.jdbc.TimesTenDriver.connect(TimesTenDriver.java:205)
    at java.sql.DriverManager.getConnection(DriverManager.java:582)
    at java.sql.DriverManager.getConnection(DriverManager.java:207)
    at CreateConnectionDemo.createConnection(CreateConnectionDemo.java:43)
    at CreateConnectionDemo.<clinit>(CreateConnectionDemo.java:26)
    Exception in thread "main" java.lang.NullPointerException
    at CreateConnectionDemo.closeConnection(CreateConnectionDemo.java:69)
    at CreateConnectionDemo.main(CreateConnectionDemo.java:62)

    You are trying to open a direct mode connection to 64-bit TimesTen from a JVM running in 32-bit mode. This is not possible. Run the JVM in 64-bit mode instead and thsi issue will be resolved.
    Chris

  • Failed to load JDBC driver

    I am trying to run a program and keep getting the error Failed to load JDBC driver. java.lang.ClassNotFoundException
    How can I correct this?

    I was just trying to execute this example from Deitel's Java book.
    import java.awt.*;
    import java.sql.*;
    import java.util.*;
    import javax.swing.*;
    public class DisplayAuthors extends JFrame {
       // JDBC driver name and database URL
       static final String JDBC_DRIVER = "com.ibm.db2j.jdbc.DB2jDriver";
       static final String DATABASE_URL = "jdbc:db2j:books";
       // declare Connection and Statement for accessing
       // and querying database
       private Connection connection;
       private Statement statement;
       // constructor connects to database, queries database, processes
       // results and displays results in window
       public DisplayAuthors()
          super( "Authors Table of Books Database" );
          // connect to database books and query database
          try {
             // specify location of database on filesystem
             System.setProperty( "db2j.system.home", "C:/Cloudscape_5.0" );
             // load database driver class
             Class.forName( JDBC_DRIVER );
             // establish connection to database
             connection = DriverManager.getConnection( DATABASE_URL );
             // create Statement for querying database
             statement = connection.createStatement();
             // query database
             ResultSet resultSet =
                statement.executeQuery( "SELECT * FROM authors" );
             // process query results
             StringBuffer results = new StringBuffer();
             ResultSetMetaData metaData = resultSet.getMetaData();
             int numberOfColumns = metaData.getColumnCount();
             for ( int i = 1; i <= numberOfColumns; i++ )
                results.append( metaData.getColumnName( i ) + "\t" );
             results.append( "\n" );
             while ( resultSet.next() ) {
                for ( int i = 1; i <= numberOfColumns; i++ )
                   results.append( resultSet.getObject( i ) + "\t" );
                results.append( "\n" );
             // set up GUI and display window
             JTextArea textArea = new JTextArea( results.toString() );
             Container container = getContentPane();
             container.add( new JScrollPane( textArea ) );
             setSize( 300, 100 );  // set window size
             setVisible( true );   // display window
          }  // end try
          // detect problems interacting with the database
          catch ( SQLException sqlException ) {
             JOptionPane.showMessageDialog( null, sqlException.getMessage(),
                "Database Error", JOptionPane.ERROR_MESSAGE );
             System.exit( 1 );
          // detect problems loading database driver
          catch ( ClassNotFoundException classNotFound ) {
             JOptionPane.showMessageDialog( null, classNotFound.getMessage(),
                "Driver Not Found", JOptionPane.ERROR_MESSAGE );           
             System.exit( 1 );
          // ensure statement and connection are closed properly
          finally {
             try {
                statement.close();
                connection.close();           
             // handle exceptions closing statement and connection
             catch ( SQLException sqlException ) {
                JOptionPane.showMessageDialog( null,
                   sqlException.getMessage(), "Database Error",
                   JOptionPane.ERROR_MESSAGE );
                System.exit( 1 );
       }  // end DisplayAuthors constructor
       // launch the application
       public static void main( String args[] )
          DisplayAuthors window = new DisplayAuthors();     
          window.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
    }  // end class DisplayAuthors

  • Distribute JDBC driver with our application

    we are not an oracle customer, but we develop an application that has a component that leverages the JDBC driver to connect to the Oracle database. is it ok to distribute the JDBC driver with this application component? i don't see anything in the licensing policy that prevents us from doing so. do we need to be a member of the oracle partner network at a certain level?
    thx.

    we are not an oracle customer, but we develop an application that has a component that leverages the JDBC driver to connect to the Oracle database. is it ok to distribute the JDBC driver with this application component? i don't see anything in the licensing policy that prevents us from doing so. do we need to be a member of the oracle partner network at a certain level?
    You were REQUIRED to accept the license agreement prior to downloading the JDBC driver software. It is expected that you will actually READ the license agreement prior to accepting it.
    Oracle Database 12c Release 1 JDBC Driver Downloads
    You must accept the OTN License Agreement to download this software.
    That license agreement CLEARLY answers your question so you should re-read it. You are bound by ALL of the terms but this is copied directly from that link:
    License Rights
    We grant you a nonexclusive, nontransferable limited license to use the programs: (a) for purposes of developing, testing, prototyping and running applications you have developed for your own internal data processing operations; (b) to distribute the programs with applications you have developed to your customers provided that each such licensee agrees to license terms consistent with the terms of this Agreement, you do not charge your end users any additional fees for the use of the programs, and your end users may only use the programs to run your applications for their own business operations; and (c) to use the programs to provide third party demonstrations and training. You are not permitted to use the programs for any purpose other than as permitted under this Agreement. If you want to use the programs for any purpose other than as expressly permitted under this agreement you must contact us, or an Oracle reseller, to obtain the appropriate license. We may audit your use and distribution of the programs. Program documentation is either shipped with the programs, or documentation may accessed online at http://www.oracle.com/technetwork/indexes/documentation/index.html.
    Item (b) above begins with 'to distribute the programs . . .'
    Yes - you can distribute the JDBC driver as long as you abide by that license agreement in its entirety (not just the quote I provided).
    Any and all questions need to be directed to Oracle as noted in the License Agreement. No one on the forums can speak for Oracle.

  • Problem with Java 5 and Oracle 10g JDBC driver

    Hi All,
    Currently we upgrade our web application to Java 5 and Oracle 10.2 JDBC driver. And we encountered a bug, when the user entered the information through UI and data didn't store into database (Oracle 9i). The problem is that this bug is not happend so often maybe once a day and this did not happen before we upgraded to Java 5 and Oracle 10.2 JDBC driver. Does anyone encounter the same problem ? Is this Java 5 problem or Oracle JDBC driver problem ?
    Thanks,

    sounds like a database problem...
    Are you using a driver version that's supported for your database engine?
    What else did you change? We once ran into a major bug in our application that had for 5 years been masked by performance problems in our hardware and infrastructure.
    Once those were resolved the bug showed itself and caused tens of thousands of records to be erroneously inserted into our database every day.
    It's certainly NOT a problem with your JVM (if it's a decent one, like the Sun implementation).
    So it's either your database, your driver, your network (dropping packets???), or your application.
    The upgrade may just have exposed something that was already there.

  • Re : Error java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDrive

    Hello All,
    I am writing this simple program which connects to Oracle DB ( 10.2 ). The Java version I have is 1.5.0_13 . I do have oracle client installed. When I run the below code ...I get error
    java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
            at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
            at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Class.java:164)
            at OraThin.main(OraThin.java:13)The code I have is :
    import java.io.*;
    import java.sql.*;
    public class OraThin {
      public static void main(String[] args) {
        try {
    System.out.println(System.getProperty ("java.class.path") );
          Connection con=null;
          Class.forName("oracle.jdbc.driver.OracleDriver");
          con=DriverManager.getConnection(
            "jdbc:oracle:thin:@hostname:15282:ServiceName",
            "scott",
            "tiger");
          Statement s=con.createStatement();
          s.execute("SELECT SYSDATE FROM DUAL");
          s.close();
          con.close();
      } catch(Exception e){e.printStackTrace();}
    } Please suggest as to what am I missing, I am not that well versed with Java.
    Thanks in advance,
    Sam

    Hello Paul,
    Thanks for you suggestion. Based on it , I did add the exact jar file in the PATH environmental variable in XP.
    Path=C:\oraclexe\app\oracle\product\10.2.0\server\jdbc\lib\ojdbc14.jar;C:\oraclexe\a
    pp\oracle\product\10.2.0\server\bin;C:\oracle\product\10.2.0\client_1\bin;C:\Ora
    cle\product\10.1.0\Client_1\bin;C:\Oracle\product\10.1.0\Client_1\jre\1.4.2\bin\
    client;C:\j2sdk1.4.2_06\bin;Even after adding the specific jar file *("C:\oraclexe\app\oracle\product\10.2.0\server\jdbc\lib\ojdbc14.jar")* ..I am getting the exact same error. moreover, to verify this I also tried to import import oracle.jdbc.driver.*.....and now my code would not even complie and I get error *(c:\Program Files\Java\jdk1.5.0_13\bin\OraThin.java:3: package oracle.jdbc.driver*
    does not exist ) . I also rebooted my machine just to make sure ...that didnt work either. Also, I changed these jar to be first in the PATH varibale ..to avoid conflict with any later .jar's classes. The code is :
    import java.io.*;
    import java.sql.*;
    import oracle.jdbc.driver.*;
    public class OraThin {
      public static void main(String[] args) {
        try {
    System.out.println(System.getProperty ("java.class.path") );
          Connection con=null;
          Class.forName("oracle.jdbc.driver.OracleDriver");
          con=DriverManager.getConnection(
            "jdbc:oracle:thin:@hostname:15282:ServiceName",
            "scott",
            "tiger");
          Statement s=con.createStatement();
          s.execute("SELECT SYSDATE FROM DUAL");
          s.close();
          con.close();
      } catch(Exception e){e.printStackTrace();}
    }What am I missing here!! ?
    Thanks again,
    Sam

  • Java.lang.AbstractMethodError: oracle.jdbc.driver.OracleResultSet.isLast()Z

    Hello.
    I'm trying to detect if a row is the last one of a ResultSet (from a
    executeQuery):
    ResultSet results = sql.executeQuery();
    if (results.isLast())
         out.println("EMPTY");
    But I get this error message:
    Error 500
    Servlet internal error:
    java.lang.AbstractMethodError: oracle.jdbc.driver.OracleResultSet.isLast()Z
         at estructura_10._jspService(mycode_10.java:93)
         at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java)
         at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
    What am I doing wrong?
    Thank you very much.

    What do you want to do with a RS instead at least 1 next() ?
    Only 1 next() - then you know, if it is empty.
    If it's not empty, I assume you will do any retrieval, so you will have needed at least this first next(), don't you?
    Even if you would like to skip the first row (though you have retrieved it), it would not be too much costs.
    If you don't want to retrieve but only count your rows, do a query "SELECT COUNT(*) FROM table WHERE <your condition ...>".
    However, to get the count you would have to do one - only one - next() call.

Maybe you are looking for