MySQl /Oracle drivers

I need information on where to get the drivers for:
'MySQL and Oracle 9i
and how to install them and use them with Jdeveloper.
newbie

Both "Oracle 9.2.0.1's driver for JDK 1.4" and "MySQL
3.23.55's Connector/J 3.0.6" have problem working with
my JDK 1.4.1_01! Why? My OS is WinXP SP1.There are several possibilities.
1. There is something wrong with your code and/or environment. Depending on your programming experience level there is a 90% to 99.999% chance that this is the problem.
2. The same person/company wrote both drivers and so it has similar bugs. I would expect that this is close to zero percent on the possibility scale.
3. Different people/companies wrote both drivers and it is just coincidence that the same bugs show up. Again almost zero percent chance.

Similar Messages

  • Oracle drivers not found by servlets after upgrade of JDK

    I am using jakarta-tomcat 4.0.1 with WIN2K.
    After a recent upgrade to jdk 1.4.0_02 from jdk1.3.1, servlets that try to use oracle crash with this error:
    java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriver
         at ProductLookup.loadJDBCDriver(ProductLookup.java:23)
    the code at line 23 is:
    DriverManager.registerDriver ( new oracle.jdbc.driver.OracleDriver());
    This all worked prior to the upgrade of jdk.
    The code at line 23 does work using the command line.
    I did check the ENVIRONMENT VARIABLES - in my limitted knowledge they look OK. But I am sure there MUST be something missing &/or incorrect.
    During execution, the servlet is just not finding "something".
    I am relatively new to JAVA and especially new to servlets.
    What should I look for to solve this problem?
    TIA
    WalkGood

    The oracle drivers are in a file called classes12.zip.
    Make sure that you unzip these files to where the
    servlets can find them.
    %TOMCAT_HOME%\common\classes
    or
    %TOMCAT_HOME%\classes
    or
    %TOMCAT_HOME\webapps\{app name}\WEB-INF\classesIs %TOMCAT_HOME% an environment variable? I have one called CATALINA_HOME. It is set the jakarta folder "C:\jakarta-tomcat-4.0.1"
    Something I noticed: If I execute tomcat "startup.bat" in a command prompt window, I see echo'd messages. One says "Using CLASSPATH: C:\jakarta-tomcat-4.0.1\bin\bootstarp.jar;C:\jakarta-tomcat-4.0.1\lib\tools.jar" but this NOT match the Environment Variable "classpath" which does specify the path to the classes12.zip folder. Should the "catalina.bat" file assemble the classpath to include the same Environment Variable "classpath" in addition to bootstrap.jar and tools.jar?
    Where can I find specific documentation on how to setup the environment for jakarta-tomcat to find the ORACLE drivers during execution of a servlet?
    TIA
    WalkGood

  • Oracle Drivers

    I'm kinda desperate here, and I think you guys can help. Here is some information first.
    Currently using Oracle database, 8i
    Using JSP coding
    On Apache Tomcat.
    OK. I can't connect the JSP to the Oracle database. Obviously I need something like a driver and a connection string.
    Recommended ones so far are oracle.jdbc.driver.OracleDriver (driver) and jdbc:oracle:oci8:@ for connection string.
    Seriously, I have no idea what these are about.
    1) Are there any Oracle drivers I need to further install, or have they been installed already? I always get the javax.servlet.ServletException: No suitable driver error. Is it because I don't have the above driver installed?
    2) What other drivers/connection string do you recommend that are less of a hassle to use?
    3) jdbc:oracle:oci8:@ <--- what is this ??? I've tried searching up but i can't find it. Does it vary from computer to computer?
    4) Are there any drivers that can be supported on Linux? Or are they the same? :(
    5) once i get the drivers in hand, what's the code to connect to it?
    So far I have this
    <%@ page import = "java.sql.*" %>
    <%
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Connection conn = DriverManager.getConnection("jdbc:oracle:oci8:@" ,"abc", "def");
    Statement stmt = conn.createStatement ();
    %>
    Got no idea how to work it to fit any new recommendations you might have... :(
    Please help me I have a deadline in two weeks and everything has been coded fine, except for the database connectivity, which, of all things, is the most important!
    Kindly respond, you experts out there!

    Hi there...
    oracle.jdbc.driver.OracleDriver - this is just a java class. You should be able to find it in classes12.zip. Also you sould add that classes12.zip to the classapth of your webserver. And try to use jdbc:oracle:thin:@db_ip:db_port:db_sid.
    Hope this helps.

  • Differences in Oracle Drivers

    We're running 5.1 sp11, and we're encountering the ORA-01475 error with the
    Weblogic Oracle Driver.
    The suggestions are to either change to the Oracle Thin driver or to set the
    statement cache to 0.
    It seems to me at this stage that setting the statement cache would be the
    "safest", though it supposedly has some potential performance hit.
    If I were to change to the Thin driver, what kind of issues might I
    encounter? Is the Thin driver faster or slower? Do the different drivers
    have any dramatic compatability issues? We're using CLOBs and BLOBs in our
    application if that has any bearing.
    Thanx!
    Regards,
    Will Hartung
    ([email protected])

    As a further word of warning -- not all classes12.zip are equal. The name classes12.zip
    belongs to at least a half dozen different versions and releases of the Oracle
    thin driver... You shouldn't assume you have the right one. Go to Oracle's website
    and get the right thin driver for your exact database version, as Kenneth recommends...
    "Kenneth A Kauffman" <[email protected]> wrote:
    >
    "Will Hartung" <[email protected]> wrote in message
    news:3e970812$[email protected]..
    We're running 5.1 sp11, and we're encountering the ORA-01475 errorwith
    the
    Weblogic Oracle Driver.
    The suggestions are to either change to the Oracle Thin driver or toset
    the
    statement cache to 0.
    It seems to me at this stage that setting the statement cache wouldbe the
    "safest", though it supposedly has some potential performance hit.
    If I were to change to the Thin driver, what kind of issues might I
    encounter? Is the Thin driver faster or slower? Do the different drivers
    have any dramatic compatability issues? We're using CLOBs and BLOBsin our
    application if that has any bearing.
    Thanx!
    Regards,
    Will Hartung
    ([email protected])
    JDBC drivers vary, especially by version of Oracle. There's even a
    different between 8.1.7.1 and 8.1.7.4. Use the Oracle drivers for the
    version of Oracle that you have for either thin or OCI. Classes12.zip
    should be the library. Add it to your classpath and configure according
    to
    the documentation. You may even notice an increase in performance.
    ken k

  • How to find Oracle drivers are installed in WAS

    Hi
    I am doing Proto type application using webdynpro.I want to create tables in Oracle database,because WAS is installed on Oracle.Now i went to Visual Admin tool and checked the "JDBC Connector" properties.I tried to create the new 'DataSource".While creating DataSource ,it is asking me DriverName,Driver ClassName,Version.I have following questions:
    1.How to find the wheather Oracle drivers are installed or not?if not where to get these drivers?
    2.Once DataSource is created ,how to test wheater it is working fine or not?please help
    Thanks
    Prasad

    Hello Prasad,
    Don't create a new datasource, but create a datasource alias for the existing SAP<sid>DB datasource with your new name.
    <u>(remember to restart the j2ee cluster)</u>
    Then in your application instatiate the datasource and use your create/update/select statements.
    <b><i>Once this is set up test from your java code as follows:</i></b>
    InitialContext ic = new InitialContext(); 
    DataSource mySource = (DataSource)ic.lookup("java:comp/env/jdbc/YourDataSource");
    or.. DataSource mySource = (DataSource)ic.lookup("java:jdbc/YourDataSource"); <b>(can't remember which of the 2 worked)</b>
    if this throws a NamingException, then your alias doesn't work, or perhaps you forgot to restart the cluster.
    After this executes successfully, use the datasource freely.
    Connection con = mySource.getConnection();
    con.executeQuery
    con.executeUpdate
    con.executeStatement
    ect...
    And forget about oracle, sapdb, informix, db2, or whatever drivers. This makes your application portable and independent from the DB layer.
    Please feel free to reward points if this solves your problem.
    Best regards,
    Homer Vargas

  • Specifying Different Oracle Drivers

    I'm having some issues using some Oracle drivers versions in different applications that use different Oracle versions (8 and 9), is there a way to define for one Connection Pool one version and for another a different one but still have XA support?
    Thanks,
    Johann

    johann renck wrote:
    I'm having some issues using some Oracle drivers versions in different applications that use different Oracle versions (8 and 9), is there a way to define for one Connection Pool one version and for another a different one but still have XA support?
    Thanks,
    JohannHi, nope. The whole JVM will only load one version of a given class.
    I would do everything you need to do to use the 10.2.0.3 thin
    driver in all cases.
    Joe

  • Help on how to install ODBC Oracle drivers

    I need to install ODBC drivers for Oracle on a W95 machine.
    I tryed to install ODBC Oracle drivers on my W95 machine but when
    I extracted the zipped file from ora8052 it created a directory
    called win32; then I searched for the 'setup' executable...
    without to find one...
    In the readme file, on 'software required' I read that I need the
    Oracle Net8 client and teh Oracle8 installer to install ODBC.
    Where can I find Oracle Net8 client and teh Oracle8 installer
    without downloading all the try and by version of Oracle??
    null

    Fulvio,
    you have to get hold of a CD containing Oracle Client software;
    you should ask Oracle for it. SQL*Net itself is free for
    owners of the server license, but I do not know how Oracle
    handles users of the free development kits. If you plan to
    use Oracle for software development I strongly recommend to enter
    one of the partner programmes; it's not free, but very good value
    for money.
    Thomas
    Fulvio Drago (guest) wrote:
    : I need to install ODBC drivers for Oracle on a W95 machine.
    : I tryed to install ODBC Oracle drivers on my W95 machine but
    when
    : I extracted the zipped file from ora8052 it created a directory
    : called win32; then I searched for the 'setup' executable...
    : without to find one...
    : In the readme file, on 'software required' I read that I need
    the
    : Oracle Net8 client and teh Oracle8 installer to install ODBC.
    : Where can I find Oracle Net8 client and teh Oracle8 installer
    : without downloading all the try and by version of Oracle??
    null

  • Where to get Old Oracle Drivers (for Mac)?

    Hi, I need to run an old Mac OS 9 application (actually I'm trying with Classic under OS X on a Mac Mini G4)
    This application needs the OCI library OracleOci73Lib.
    I've been searching it in Oracle web downloads section, but i can't find it.
    I've tried installing the newer OCI drivers, but these are for Mac OS X and I suppose Classic doesn't even "see" them.
    Does anyone know where could I get old Oracle drivers?
    thanks!

    Hi Alexlee,
    Welcome to Lenovo Community!
    As per the query we understood that you are looking for driver to your ThinkPad T430.
    Below is the link to enter the downloads page and download latest application accordingly, please click on "Select Product" then in "QUICK PATH" enter the MTM no. select the exact model.
    http://support.lenovo.com/en_US/downloads/default.​page#
    Hope this helps!
    Best regards,
    Hemanth Kumar
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • Problems with classpath and oracle drivers

    Hi, i've developed an application that uses oracle drivers "classes12.jar" using Eclipse. While i was writing the code, i manually specified the classpath which contains "classes12.jar" file using Eclipse's own configuration tool and now it works perfect when i run it under Eclipse. I then tried to run it using dos prompt but when i tried to run the program i got "ClassNotFoundException: oracle.jdbc.driver.oracledriver". As you can guess, i thought that was a classpath issue so i set the classpath as follows:
    set CLASSPATH=C:\oracle\ora92\jdbc\lib
    where the directory "C:\oracle\ora92\jdbc\lib" is the one that contains classes12.jar file which i had also specified using Eclipse before.
    After that, i recompiled my application and tried to launch it as follows:
    ->javac Test.java
    ->java Test
    But then i got the following runtime error:
    Exception in thread "main" java.lang.NoClassDefFoundError: Test
    Since this happened after i manually set CLASSPATH variable, this has something to do with that. What should i do now? Thanks in advance.

    Correct - the JAR has to be spelled out in the CLASSPATH.
    I'd also recommend that you not set CLASSPATH using a system environment variable. Better to use the -classpath parameter on javac.exe when you compile and java.exe when you run. Put the command into a script that you invoke when you start up the app. It'll document the fact that it's needed for anyone that comes after you and relieves you from having to change the CLASSPATH on machines you deploy to. And, for good measure, app servers like Tomcat and WebLogic totally ignore the system CLASSPATH. I don't even have one.
    %

  • Replace Quotes, Connection Pooling, and Sun Web Server with MySQL, Oracle

    This is code I use to insert data into my MySQL and Oracle databases.
    I takes care of quotes and shows use of context, i.e. when you use Sun Web Server's
    ConnectionPooling. This code works. Feel free to reply if you have questions on how to set up connection pooling using Sun Web Server 6.1SP - it took quite a long time to learn and I couldn't find much information throughout the web, so I hope this helps...
    This is not a question and I am not looking for an answer, but please post comments or suggestions.
    dailysun
    This is in one class where I have a hashtable containing the
    column name / value pairs that I want to enter into my table.
    This class simply creates the SQL string from the values in the
    hashtable. It then passes that hashtable including the database
    name to a class which executes that sql statement (second code
    portion).
    /* Insert data into sf_parts. Create the column strings from
             * the provided hash table. Be sure to parse out hash elements which
             * are used for the createTemplate process
            StringBuffer values = new StringBuffer();
            StringBuffer fields = new StringBuffer();
            Enumeration keys = fieldHash.keys();
            while(keys.hasMoreElements()){
                Object currentKey = keys.nextElement();
                    String fieldValue = (String) fieldHash.get(currentKey);
                    if(values.length() >0){
                        values.append(",");
                    values.append("'"+fieldValue.replaceAll("'","''")+"'"); // Takes care of quotes and various other special characters!
                    if(fields.length() >0){
                        fields.append(",");
                    fields.append(currentKey);
            sql = "INSERT INTO myTable (" + fields.toString() + ") VALUES (" + values.toString() + ");";
            String insertResult = caq.getInsertDelete(sql,"myDatabaseName"); // your database name is defined in web.xml and sun-web.xml when you use Sun Web Server's Connection Pooling.
            returnValue += "<br><br><b>Rows inserted into table(myTable): </b>" + insertResult + "<br>\n";
            And, like I describe above, this method executes the sql statement.
         * Takes care of insert, update and delete requests.
         * Must have set both dbName as well as the sql String.
         * Will return number of rows affected as String.
         * @return String Number of rows affected
         * @exception SQLException
         * @exception Exception
        public String getInsertDelete() {
            checkData(); // this simply checks if the variables dbName and sql are not empty ;-)
            InitialContext initContext = null;
            int rv = 0;
            try{
                // Get connection from configured pool
                initContext = new InitialContext();
                source = (DataSource) initContext.lookup("java:comp/env/jdbc/" + dbName); // I have this set up in web.xml and sun-web.xml (I use Sun Web Server 6.1SP which does connection pooling for me)
                conn = source.getConnection();
                if(conn != null){
                    stmt = conn.createStatement();
                    rv = stmt.executeUpdate(sql);
            }catch (SQLException e){
                // do something
            }catch (Exception e){
                // do something
            }finally{
                try{
                    stmt.close();
                }catch(Exception e){
                    // do something
                try{
                    conn.close();
                }catch(Exception e){
                    // do something
                try{
                    initContext.close();
                }catch(Exception e){
                    // do something
            return rv+"";
        }  

    This is code I use to insert data into my MySQL and
    Oracle databases.
    I takes care of quotes and shows use of context, i.e.
    when you use Sun Web Server's
    ConnectionPooling. This code works. Feel free to
    reply if you have questions on how to set up
    connection pooling using Sun Web Server 6.1SP - it
    took quite a long time to learn and I couldn't find
    much information throughout the web, so I hope this
    helps...
    This is not a question and I am not looking for an
    answer, but please post comments or suggestions.Using prepared statements would mean that you wouldn't have to worry about quotes.
    You should be closing the result set.
    You are handling all fields as strings. That won't work with time fields and might not work for numeric fields.
    Presumably most of your variables are member variables. They should be local variables because that is the scope of the usage.
    You must do something with the exceptions.
    Hashtables although convienent mean that problems with usage can only be resolved at run time rather than compile time.

  • Mysql jdbc drivers not found in weblogic server

    I want to create a connection pool in weblogic server,
    and use mysqldatabase.
    My drivers is "org.gjt.mm.mysql.Driver"
    I put the jar in "D:\bea\weblogic700\server\lib" ,but when i apply ,there is
    an error blow:
    Error creating connection pool
         at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:635)
         at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:419)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)<2003-4-6 ����10��00��34��> <Error> <JDBC> <001060> <Cannot startup connection pool "mssqlserverPool" weblogic.common.ResourceException: Cannot load driver class: org.gjt.mm.mysql.Driver>
    Can anybody tell me why,thanks!

    Weblogic has been designed for nannies...
    I've developed a application which uses internally my own jdbc-driver.
    After months of really hard work on tomcat (the application works fine) I've tried migrate it to weblogic.
    But ...
    In weblogic seems mandatory to put the jdbc drivers out of the war!!!. Brilliant!!!
    If I move the driver out, I need move the 50% of the application out, also!
    If I move part of the application out, nothing works, because... �are the class loaders distinct?. And I'll need to do a lot of extra work because one day one weblogic architect had a great great inspiration.
    In the future I'll suggest to my customers to run and not stop when they listen the WEBLOGIC word.
    Regards,
    Pablo

  • Using Refcursor in Callable Statement without using the Oracle Drivers

    Hello all,
    Is there anyway to have a stored procedure (Oracle 8i) return a refcursor to my CallableStatement without using the Oracle Thin drivers (i'm now using jdbcodbc). I've tried registering my out parameter with every possible type i can think of...REF, JAVA_OBJECT, OTHER, etc. but with no luck.
    Help!!!!

    Certainly...I connect to the database using the
    jdbcodbc driver and when i execute any of the code, i
    get the following error:
    java.sql.SQLException: [Oracle][ODBC][Ora]ORA-06550:
    line 1, column 7:
    PLS-00306: wrong number or types of arguments in call
    to 'PVISUAL_GET'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    It's bombing on the line that i attempt to register
    OracleTypes.CURSOR. It works fine when i use the
    oracle thin drivers, but i want to get this puppy
    working with the JdbcOdbcDriver. Here's the code:
    CallableStatement dbCall =
    nt dbCall =
    (CallableStatement)connection.prepareCall("{ call
    PAK_VISUAL_GET.pvisual_get(?, ?, ?, ?, ?, ?) }");
    dbCall.setString(1, sessionKey);
    dbCall.setInt(2,
    l.setInt(2, Integer.parseInt(storedVizID));
    dbCall.registerOutParameter(3,
    arameter(3, OracleTypes.CURSOR);
    dbCall.registerOutParameter(4,
    arameter(4, OracleTypes.NUMBER);
    dbCall.registerOutParameter(5,
    arameter(5, OracleTypes.VARCHAR);
    dbCall.registerOutParameter(6,
    arameter(6, OracleTypes.NUMBER);
    dbCall.execute();when you don't use oracle thin driver, you cannot use the OracleTypes. but, instead use the java.sql.Types values.Replace dbCall.registerOutParameter(3, OracleTypes.CURSOR); with
    dbCall.registerOutParameter(3,java.sql.Types.OTHER). things should be fine.
    Ganesh

  • PHP,MYSQL,ORACLE,APACHE issue?

    Hello All,
    In my oracle 10gr2 server that is build on rhel4, we have web based portal, now that web based portal connects to oracle and mysql, my problem is that, the developer told me that i have to install php4, apache2 with support of OCI8, i have tried every thing in google but unable to find, how can i do this, please help me out, thanks

    Some example guides show installing Apache as a non-root user just to avoid breaking production web servers when installing for the first time. A non-root user cannot start Apache on a privileged port like 80. Once you're familiar with the install process you can always install on the system default Apache or use 80 as the port number.
    The free, prebuilt PHP and Oracle-client stack called Zend Core for Oracle runs on x64. ZCO can be very easy to install. http://www.oracle.com/technology/tech/php/zendcore/index.html
    -- cj

  • Oracle Drivers Problem

    I am facing unique problem. I am connecting to Oracle using Oracle Inproc server 3.0 type library(Set Session = CreateObject("OracleInProcServer.XOraSession")).
    After establising the connection when we execute the a stored procedure using the datbase object
    Set SQLStmt = Database.CreateSql(SQL, &H0)
    Now when we try and insert nine digit decimal number e.g 1011111.87 instead of updating it with above no it updates it to 1011111.88 or 1011111.77 or any other random last 2 chars
    Now here the SQL is of the type string which fires a stored procedure
    Table details
    CREATE TABLE XXX_TEST (
    PAYMENTID NUMBER (9),
    PAYMENTAMOUNT NUMBER (10,2))
    TABLESPACE DATA NOLOGGING
    PCTFREE 10
    PCTUSED 40
    INITRANS 1
    MAXTRANS 255
    STORAGE (
    INITIAL 1048576
    NEXT 1048576
    MINEXTENTS 1
    MAXEXTENTS 1024
    FREELISTS 1 FREELIST GROUPS 1 )
    NOCACHE;
    Stored Procedure details
    PROCEDURE prc_XXX_temp
    payment_id_i IN NUMBER(6),
    payment_amount_i IN NUMBER(10,2),
              payment_amount_o out NUMBER(10,2)
    IS
    BEGIN
    Insert into XXX_TEST
              (paymentid ,
                   paymentamount )
                        values
                        (payment_id_i,
                        payment_amount_i);
                        payment_amount_o:=payment_amount_i;
                        return;
    COMMIT;
    END prc_XXX_temp;

    I am glad I found this post!
    I am using Sun Java 1.1.8 to build a signed applet.
    My database is upgrading to 9.2.0.5
    I get this exception when I try "DriverManager.getConnection";
    java.lang.NullPointerException
    at oracle.jdbc.ttc7.O3log.marshal(Compiled Code)
    at oracle.jdbc.ttc7.TTC7Protocol.logon(Compiled Code)
    at oracle.jdbc.driver.OracleConnection.<init>(Compiled Code)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(Compiled Code)
    at oracle.jdbc.driver.OracleDriver.connect(Compiled Code)
    at java.sql.DriverManager.getConnection(Compiled Code)
    * at java.sql.DriverManager.getConnection(Compiled Code)
    at TestApplet.paint(Compiled Code)
    at java.awt.Component.dispatchEventImpl(Compiled Code)
    at java.awt.Container.dispatchEventImpl(Compiled Code)
    at java.awt.Component.dispatchEvent(Compiled Code)
    at java.awt.EventDispatchThread$EventPump.dispatchEvents(Compiled Code)
    at java.awt.EventDispatchThread.run(Compiled Code)
    at netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(Compiled Code)
    I had no problem connecting to the db as an application, but the applet did not work. I "downgraded" the JDBC driver to 9.0.1 and it works fine now. I second Dennis' plea to Oracle. The 9.2 jdbc drivers are broken!

  • MYSQL + Oracle Forms

    I am an experienced Oracle developer who has only worked with Oracle products and I have never developed any application for the web.
    Question:
    Can I develop a application using Oracle Forms on my home pc and have it work on my web server who uses a MYSQL DB ?
    If so, what version of Forms should I use? I have access to just about all of them.
    Then there is the connectivity issue. Is this done with the tnsnames.ora & listener.ora files??
    I feel stupid asking such a basic question like this since I have been working with Oracle development tools for over 15 years and you think I would already the answer to this.
    Any help you can give me would be appreciated.
    Thanks.

    Can I develop a application using Oracle Forms on my home pc and have it work on my web server who uses a MYSQL DB ?Answer: No.
    Then there is the connectivity issue. Is this done with the tnsnames.ora & listener.ora files??
    Answer: No, there is native (mysql) library, ODBC (MyODBC), Java and .NET connectors
    More at http://www.mysql.com

Maybe you are looking for