Oracle 9.2.0.6 , JDK 5 and JDBC driver

Hi Friends,
At my work place they have Oracle 9.2.0.6 and now they want to user JDK 5. I find that JDBC driver only supports JDK 1.4. Can some one suggest what I need to do so that later I should not face unknown issues
Thx
V

Oracle database 10.2 drivers ojdbc14.jar may also be used with JDK 5.0.
http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq.htm#02_03

Similar Messages

  • JDBC on ORACLE 10 G 2: Where is the Jdbc driver?

    Hi,
    I have the JDBC tutorial working with Jdeveloper 1.3 (wich uses Java 1.5), but I would like to test a standalone java source against ORACLE 10 (wich uses Java 1.4).
    So far I have found these snippets:
    ******************** Quote 1 ***********************************************************
    // Import the JDBC classes
    import java.sql.*;
    import oracle.jdbc.pool.OracleDataSource;
    // Import the java classes used in applets
    import java.awt.*;
    import java.applet.*;
    import java.awt.event.*;
    import java.io.*;
    import java.util.*;
    public class JdbcApplet extends java.applet.Applet
    implements ActionListener
    // The connect string
    static final String connect_string = "jdbc:oracle:thin:hr/hr@//localhost:1521/orcl.oracle.com";
    ****************************** End quote 1 *******************************************
    That does not compile (Java 1.4 is in PATH and CLASSPATH)
    Here is the error message:
    *************************** Quote ****************************************************
    JdbcAplaite.java:22: package oracle.jdbc.pool does not exist
    import oracle.jdbc.pool.OracleDataSource;
    ^
    JdbcAplaite.java:82: cannot resolve symbol
    symbol : class OracleDataSource
    location: class JdbcAplaite
    OracleDataSource ods = new OracleDataSource();
    ******************** End Quote *****************************************************
    This other snippet:
    ***************************** Quote 3 *************************************************
    // You need to import the java.sql package to use JDBC
    import java.sql.*;
    class Selector
    public static void main (String args [])
    throws SQLException
    // Load the Oracle JDBC driver
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    // Connect to the database
    // You must put a database name after the @ sign in the connection URL.
    // You can use either the fully specified SQL*net syntax or a short cut
    // syntax as <host>:<port>:<sid>. The example uses the short cut syntax.
    Connection conn =
    DriverManager.getConnection ("jdbc:oracle:thin:@oracle-prod:1521:8PRD",
                        "USERNAME", "PASSWORD");
    does not work either. Error message:
    ******************************* Quote *********************************************************
    Selector.java:23: package oracle.jdbc.driver does not exist
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    ^
    1 error
    I try to locate the source generated by JDevelopper when using JDBC but I find only XML files.
    But I really need Jdbc Java 1.4 style, since I can't change PATH and CLASSPATH if I want to keep ORACLE 10 running on XP PRO.
    So I'm stuck.
    Many thanks for your help :-)

    Hi,
    I don't want to use JDeveloper.
    I want to write a Java program that connects to the database using Jdbc.
    The PATH and CLASSPATH are defined for Java 1.4.
    Here is the current CLASSPATH:
    L:\oracle\product\10.2.0\db_1\jdbc\lib\ojdbc14.jar;
    L:\oracle\product\10.2.0\db_1\jlib\orai18n.jar;.
    What "import java......." should I code?
    Many thanks.

  • Reading Advance Queuing with XMLType payload and JDBC Driver character encoding

    Hi
    I've got a problem retrieving the message from the queue with XMLType payload in Java.
    It was working fine in 10g database but after the switch to 11g it returns corrupted string instead of real XML message. Database NLS_LANG setting is AL32UTF8
    It is said that JDBC driver should deal with that automatically but it obviously don't in this case. When I dequeue the message using database functionality (DBMS_AQ package) it looks fine but not when using JDBC driver so Ithink it is character encoding issue or so. The message itself is enqueued by the database and supposed to be retrieved by dedicated EJB.
    Driver file used: ojdbc6.jar
    Additional libraries: aqapi.jar, xdb.jar
    All file taken from 11g database installation.
    What shoul dI do to get the xml message correctly?

    Do you mean NLS_LANG is AL32UTF8 or the database character set is AL32UTF8? What is the database character set (SELECT value FROM nls_database_parameters WHERE parameter='NLS_CHARACTERSET')?
    Thanks,
    Sergiusz

  • Handheld and jdbc driver

    hello,
    i have to develop an application in java for handeld devices .i want to connect my handheld database through jdbc driver with the database on the desktop. .
    so is there any jdbc driver of any database available which can solve this problem.
    or is there any other way to do this?
    hoping a quich reply. thanking u
    its
    abhishek chopra
    ispan technologies

    Hi,
    Better way to connect to a database is using an intermediate JSP or servlet which receives request from client, executes SQL command on database and sends the result to the client. The reason why it is better to use this method is that any change to database will not need change in client code.

  • Pda and jdbc driver

    hello,
    i have asked this question before also .
    my question is can i use jdbc driver in handhelds(PDA) so that i can connect my database which is residing on desktop through my java program.
    i got answer that there is no jdbc driver that can be put on handhelds but now i have came to know that i can use hsqldb jdbc driver and postgresql jdbc driver in handhelds to access desktop database.
    so i am very much confused that whether i can use jdbc driver in handhelds on not?
    kindly help me
    thanking u in advance
    its
    abhishek chopra

    hi,
    thanks for reply. ya i visited that site .but its not free as u have said.
    but i inquired about hsqldb jdbc driver in their forum and mailing lists and they have said that hsqldb drivers can be used on handheld devices to access desktop database.
    same thing for postgresql jdbc driver. they all r telling that drivers came in the form of jar file and we can deploye it on handheld (pda) with the java application
    so sir how can i get confirmed about it.
    about ur another option to use intermediate servelets to access database is also good. but problem will be that when we have to access that via http call and for it we require internet connection to access to servlet which is on our lan network(if am not wrong) . i have doubt that is internet connection is required to communicate to servlet if we connect to our pda in network.
    please suggest me.
    thanking u
    its
    abhishek

  • Dreamweaver CS5 and JDBC Driver

    Does Dreamweaver CS5 support JDBC Driver for MySQL ?
    If yes how to set up a JDBC connexion to a MySQL database ?
    If no how can I connect a JSP page/application to a MySQL database ?
    Thanks.

    Support for JSP has not been available since Dreamweaver CS4.
    Correct, but the JSP Server Model functionality can be installed as an Extension that is delivered with Dreamweaver. You can find it here:
      [install-dir]/configuration/DisabledFeatures/
    HTH,
    Randy

  • MS SQL Server 2000 and JDBC Driver Problem

    I was wondering if you could help me. I installed Java 1.4.1 on my Win2K machine along with MS SQL Server 2000 JDBC Service Pack 1 drivers.
    The drivers and JDK installed perfectly and I properly set my class path. Yet everytime I try to execute my code I get the: java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver error.
    Any idea why? Is it posisible that the JDBC drivers are not comaptible with Java 1.4? I also installed 1.3.1 and I get the same issue. Let me know if you have any insisghts. Much thanks.
    [email protected]

    Those drivers are perfectly compatible with JDK 1.4.1. I've used them successfully.
    CNF Exception ALWAYS means that the class loader can't find the JAR in the CLASSPATH. You said you "properly" set your CLASSPATH. Am I right in assuming that you mean a Win2K environment variable?
    I think that's a bad idea. I don't have one on my machines at all.
    I always set the CLASSPATH myself when I compile and run an app, to make sure that I always have exactly what I need.
    If you're running Tomcat, it doesn't even look at the system CLASSPATH as far as I know. If you're using this in a Web app, but those JARs in your WEB-INF/lib directory and deploy your stuff as a WAR file. Tomcat will find it in the CLASSPATH for sure then.
    Let me know if either of those suggestions hits the mark. If not, send more info and I'll try again. - MOD

  • Sql 2008 peer-to-peer replication and jdbc driver

    Hi, sorry but i'm a sql dummy...:-)
    I setup a sql 2008 p2p replication for a database.
    Can i specify, on a jbdc connection string, the path of the 2nd sql server for automatic failover?
    I try failoverPartner variable, but this is only for database mirroring.....
    Can u help me?
    Thanks in advance

    Hi, sorry but i'm a sql dummy...:-)
    I setup a sql 2008 p2p replication for a database.
    Can i specify, on a jbdc connection string, the path of the 2nd sql server for automatic failover?
    I try failoverPartner variable, but this is only for database mirroring.....
    Can u help me?
    Thanks in advance

  • Getting started with oracle and jdbc

    i have downloaded ojdbc14.zip from oracle.com
    it's documentation only tells you about the api and the packages and nothing about how to configure it.
    how do i get started? where do i unzip those files and what to do next?
    please help

    "The Old oracle.jdbc.driver Package Will Go Away Soon
    If you still have existing applications that use the
    old oracle.jdbc.driver
    package, now is the time to convert your code."
    And who is so foolish as to use concrete types
    instead of java.sql and javax.sql interfaces or embed
    driver class names in their code? Well, anybody who's more interested in optimal performance than being generic, and willing to put up with the headaches of that, such as providers of high-performance OR mapping tools or someone tuning a very heavily used bit. Or anybody working in a committed Oracle-only shop. It's not a one-size-fits-all world...
    Again, Oracle is evolving the standard. No, the standard is Sun's java.sql interface.Yea, Sun evolved Java, and Oracle is recommending the use of Datasources to keep step with that evolution...
    This still
    works, but Oracle is shifting away from <sid> and
    using <service name> instead. The alternate syntax
    for the URL is:
    String url=jdbc:oracle:thin:@<host>:<port>/<database>
    This has been true for as long as Oracle has had a
    thin, type IV JDBC driver. The URL syntax hasn't
    changed.
    Yes it has and Oracle says it has, here:
    http://download-west.oracle.com/docs/cd/B14117_01/java.101/b10979/urls.htm#BEIJFHHB
    Wherein it is written, in Section 3.2.1 of the Oracle� Database JDBC Developer's Guide and Reference, the sesction on the several supported URL formats for Oracle 10.1
    Notes:
    * Oracle Service IDs are no longer supported at 10g Release 1 (10.1).
    They go on to list three URL styles supported:
    Oracle Net connection descriptor - like an entry in tnsnames.ora (ick!)
    Thin-style service name - the most common, what was quoted above.
    LDAP syntax - for having an LDAP service resolve the database for you
    However, in the old 8.1.7 JDBC documentation, here:
    http://download-east.oracle.com/docs/cd/A87860_01/doc/java.817/a83724/basic1.htm#1006213
    Oracle lists support for:
    Net8 connection descriptor - Net8 is the old name for Oracle Net
    Thin-style sid name - what was quoted in the post to which I first responded.
    Thin-style sid name syntax has a colon between the port and the sid; thin-style service name syntax has a forward slash between the port and the service name. SIDs and service names are not the same thing, although they serve the same purpose in a URL (connecting you to the right instance) and often have the same value. However, a SID for a database is set at DB creation time, is unique to the DB, and cannot be changed easily. Multiple service names can be configured for a database, and they can easily be changed (if you're the DBA). Oracle is providing an additional leval of abstraction by moving to service names, to support additional features and choices. While many installations don't need all that and have in essence ignored the distinction bewteen SID and service name, some multi-database projects can benefit from it.
    >
    StuDerby, I think you should look into this a bit
    more. Your advice is far from optimal, IMO.
    Yeah, I could've taken the time to write a more generic, newbie friendly repsonse; instead, I lifted directly from the Oracle documentation that was cited earlier since newbies seem to have an aversion to reading documentation.

  • TAF and JDBC

    Today it's possible to use TAF with JDBC OCI.
    When will be possible to use TAF with JDBC Thin ?

    I remember TAF only works with OCI (thick) JDBC driver. Not sure about the restriction is there or not in the latest version of Oracle. Tell us your Oracle version and JDBC driver.
    sqlplus uses OCI.
    Yong Huang

  • JDBC Adapter Error - SAPClassNotFoundException: oracle.jdbc.driver.OracleDr

    Hi,
    I am trying to implement JDBC to File scenario.
    Trying to connect to Oracle Database. Oracle drivers are installed on XI server
    JDBC Adapter parameters:
    JDBC Driver  - oracle.jdbc.driver.OracleDriver
    Connection - jdbc:oracle:thin:@10.25.228.156:1521:databaseName=XE
    Error which I can see in Communication Channel Monitoring is:
    Error during database connection to the database URL 'jdbc:oracle:thin:@w4inpusyga6:1521:XE' using the JDBC driver 'oracle.jdbc.driver.OracleDriver': 'com.sap.aii.adapter.jdbc.sql.DriverManagerException: Cannot establish connection to URL 'jdbc:oracle:thin:@w4inpusyga6:1521:XE': SAPClassNotFoundException: oracle.jdbc.driver.OracleDriver'
    All your inputs are welcome!
    Thanks
    Mugdha Kulkarni

    Hi
    we are integrating XI with IBM DB2 database.
    we have used 2 Jar files ( DB2jcc4.jar  & DB2jcc.jar ).
    but after deployment the jar file was deployed in different location, not in D:\usr\sap\XR3\DVEBMGS00\j2ee\cluster\server0\bin\ext\
    trying many times this deployment, we manually copy/paste
    our driver jar file to legitimate directory..
    Now the error has change as .UnsupportedClassVersionError: com/ibm/db2/jcc/DB2Driver (Unsupported major.minor version 50.0)
    Any one could through some light on it..
    Regards,
    Ashutosh
    Edited by: ashutosh rawat on Dec 5, 2009 4:48 AM

  • Accessing Informatica File Archive Service using its native JDBC driver

    Good morning,
    Using the Informatica ILM suite, we've retired a number of database applications (which ran on Oracle) into the so-called Optimized File Archive, or OFA.
    The information stored in there can be accessed using their File Archive Service, or FAS.
    To allow access for certain tools, they've also got an ODBC and JDBC driver (from the original company that created the archive bit, RainStor), to be able to get to tables in archives.
    I've been able to set it up for Aquafold's Aqua Data Studio (ADS), but given that that is shareware I've only got an evaluation version, expiring in 2 weeks.
    Since SQLdeveloper, like ADS, is a Java-based tool, and it also allows for third party JDBC drivers, I'm inclined to think that somehow SQLdeveloper should also be able to connect to those archives. Unfortunately, I always get an error message: "Invalid connection information specified. Verify the URL format for the specified driver"
    There are some slight differences between ADS and SQLdev in setting up such a JDBC connection.
    In ADS, apart from providing user/pw, I have to specify following:
    - name of the JDBC driver ("com.simba.client.core.SimbaJDBCDriver")
    - location of the JDBC driver (e.g. "C:\Ora\RainStorJDBC-3.0.1.2.jar")
    - JDBC URL of format "jdbc:simba://<host>:<port>;Archive=<archive>;ConnectionTimeout=3600;Parser=ORACLE"
    In SQLdev I can import the JDBC driver (menu > Tools > Preferences, then under Database > Third Party JDBC Drivers), and in the Database Connection Screen create a new connection, provide the user/pw of the so-called Service Manager (from FAS), and choose Connection Type "Advanced" to then specify the "Custom JDBC URL", which would have to be the same as above. If I test the connection, I get an instant error:
    "Status: Failure -Test failed: Invalid connection information specified. Verify the URL format for the specified driver".
    Informatica's Global Customer Support are saying that SQLdev can't do it, but I'm just wondering whether some really bright lights in the Oracle community have found an alternative route to be able to connect to such FAS/OFA archives. Given the similarities between ADS and SQLdev, to me it seems it - somehow - has to be possible as well...
    Thanks in advance for thinking about this problem/challenge.
    Cheers!
    Edited by: exapat on Dec 7, 2012 10:43 AM
    Did some further investigations, on other third party drivers. Those ones (e.g. for SQL Server) - when loaded - create an extra tab in the connection screen.
    The RainStor JDBC driver does not do that, and I can imagine that that's where it falls short.
    If indeed the case, what could be done to overcome this?

    Hi,
    Did some further investigations, on other third party drivers ... If indeed the case, what could be done to overcome this?That is the case. Currently browsing and migration support for third-party databases is limited to the following:
    http://www.oracle.com/technetwork/developer-tools/sql-developer/supportedmigplatforms-086703.html
    See section 1.1 for currently supported databases and section 1.3 for those planned for a future release.
    To see an example of some (all?) of the extra bits needed to support browsing of a third-party database, find the extensions directory in your SQL Developer installation, look for
    oracle.sqldeveloper.thirdparty.browsers.jarthen browse it to see the various class, properties, and xml files necessary for supporting connections to databases like mysql or sybase. You may conclude adding browsing support is not all that complicated. Migration support is an entirely different matter, however. Oracle is the thirdparty.browsers extension owner. Support for more third-party databases would normally be added by the SQL Developer group based on a database's general popularity or a feature request on the SQL Developer Exchange -- obviously a long-term proposition.
    If you look at the [Extensions Exchange|http://www.oracle.com/technetwork/developer-tools/sql-developer/extensions-083825.html] maybe you can get some ideas how best to proceed if you have the resources to build your own extension to support RainStor.
    Regards,
    Gary
    SQL Developer Team

  • Spatial data through JDBC driver

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

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

  • [FMWGEN][DB2 JDBC Driver]Remote Database Not Found:

    while connecting to DB 2 i am getting this error can any help me what to do resolve this. thanks

    If working with Database adapter then refer section "Deployment with Third Party Databases" and "JDBC Driver and Database Connection Configuration" at-
    http://docs.oracle.com/cd/E23943_01/integration.1111/e10231/adptr_db.htm#BGBBHJGC
    Regards,
    Anuj

  • JDBC Driver 9.2.0.1

    Hello,
    iam connecting a Oracle 8.1.7 with the new JDBC Driver 9.2.0.1.
    I do this with the dbcache Implementation.
    In the new JDBC Driver 9.2.. the are methods which allow to set Timeouts
    for the Pooled Connections and the cache.
    But it seems to me that this things didn't work on Ora. 8.1.X Databases.
    Did anyone know more about ? Or can help me ?
    Greetings

    I'll use exactly the same setup for our next application. So,
    if timeouts don't work -> "Houston, we have a problem".
    So, can anyone confirm that connection timeouts do work?
    Cheers,
    HKRedwood Shores:
    " using the 9.2 jdbc driver and OracleConnectionCacheImpl
    class, all the supported timeout properties will work regardless of the
    database server version (8.1.7 and up)"

Maybe you are looking for