Which JDBC driver do I want?

I have the oracle database on a oracle linux guest VM on a Windows 7 host.
I want to run queries on the windows 7 host that execute in the linux oracle guest OS running the oracle database.
I would like to run [http://squirrel-sql.sourceforge.net/|http://squirrel-sql.sourceforge.net/] and execute SQL queries and write java programs that use the jdbc drivers to execute queries on windows 7.
Sooo.... I go to this page:
[http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-112010-090769.html|http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-112010-090769.html]
And I'm overwhelmed with choices! Can someone help me identify which JDBC driver I want?
Oracle Database 11g Release 2 (11.2.0.3) JDBC Drivers
SimpleFAN
simplefan.jar (20,345 bytes), simplefan policy, javadoc
JDBC Thin for All Platforms
     JavaDoc (6,456,081 bytes)
     README
     ojdbc5.jar (2,095,932 bytes) - Classes for use with JDK 1.5. It contains the JDBC driver classes, except classes for NLS support in Oracle Object and Collection types.
     ojdbc5_g.jar (3,426,203 bytes) - Same as ojdbc5.jar, except that classes were compiled with "javac -g" and contain tracing code.
     ojdbc6.jar (2,714,189 bytes) - Classes for use with JDK 1.6. It contains the JDBC driver classes except classes for NLS support in Oracle Object and Collection types.
     ojdbc6_g.jar (4,463,274 bytes) - Same as ojdbc6.jar except compiled with "javac -g" and contains tracing code.
     ojdbc5dms.jar (2,617,374 bytes) - Same as ojdbc5.jar, except that it contains instrumentation to support DMS and limited java.util.logging calls.
     ojdbc5dms_g.jar (3,447,502 bytes) - Same as ojdbc5_g.jar, except that it contains instrumentation to support DMS.
     ojdbc6dms.jar (3,327,932 bytes) - Same as ojdbc6.jar, except that it contains instrumentation to support DMS and limited java.util.logging calls.
     ojdbc6dms_g.jar (4,486,082 bytes) - Same as ojdbc6_g.jar except that it contains instrumentation to support DMS.
     orai18n.jar (1,656,248 bytes) - NLS classes for use with JDK 1.5, and 1.6. It contains classes for NLS support in Oracle Object and Collection types. This jar file replaces the old nls_charset jar/zip files.
     demo.zip (606,505 bytes) - contains sample JDBC programs.
     xdb6.jar (262,740 bytes) - To use the standard JDBC4.0 java.sql.SQLXML interface with JDBC 11.2.0.3, you need to use xdb6.jar (instead of xdb.jar) from the 11.2.0.3 distribution..
Note: For platform specific JDBC-OCI libraries See Instant Client
Thanks!
Siegfried

I restored the original source and compiled it on my linux VM and recieved a similar stack trace.
Here is the result of the first command:
[oracle@localhost conn]$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 28-SEP-2012 20:57:19
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=0.0.0.0)(PORT=1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.2.0 - Production
Start Date 28-SEP-2012 19:24:47
Uptime 0 days 1 hr. 32 min. 32 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /home/oracle/app/oracle/product/11.2.0/dbhome_2/network/admin/listener.ora
Listener Log File /home/oracle/app/oracle/diag/tnslsnr/localhost/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=0.0.0.0)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=0.0.0.0)(PORT=80))(PROTOCOL_STACK=(PRESENTATION=HTTP)(SESSION=RAW)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=0.0.0.0)(PORT=21))(PROTOCOL_STACK=(PRESENTATION=FTP)(SESSION=RAW)))
Services Summary...
Service "orcl" has 1 instance(s).
Instance "orcl", status READY, has 2 handler(s) for this service...
Service "orclXDB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
The command completed successfully
[oracle@localhost conn]$
Here is the second
[oracle@localhost conn]$ lsnrctl service
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 28-SEP-2012 20:58:42
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=0.0.0.0)(PORT=1521)))
Services Summary...
Service "orcl" has 1 instance(s).
Instance "orcl", status READY, has 2 handler(s) for this service...
Handler(s):
"DEDICATED" established:34 refused:0 state:ready
LOCAL SERVER
"N000" established:0 refused:0 current:0 max:20000 state:ready
CMON <machine: localhost.localdomain, pid: 2750>
(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=22398))
Service "orclXDB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:0 refused:0 current:0 max:1022 state:ready
DISPATCHER <machine: localhost.localdomain, pid: 2700>
(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=31281))
The command completed successfully
[oracle@localhost conn]$
Thanks!

Similar Messages

  • Which jdbc driver should be used for sqlserver 2000 and where to put it.

    hi all,
    My odi is 11g. I met the error infor "Could not load JDBC driver class [com.microsoft.sqlserver.jdbc.SQLServerDriver]" when i tried to connect to a sqlserver2000 database.
    The questions are:
    1. which jdbc driver should be used for sqlserver 2000?
    2. which folder to put it in?
    3. how to set the physical topological "Microsoft Sql Server" to use this jdbc driver?
    failed tries:
    i downloaded the driver "SQL Server 2000 Driver for JDBC Service Pack 2" and put it in the following folders:
    1. .../oracledi/drivers, and set this path to CLASSPATH.
    2. .../oracledi/userlib didn't exist, i created it and put the driver in.
    3. .../oracledi/agent/dirvers, in which a readme file exists and told me to put drivers in this folder.
    All these works were not useful. when I start odi.sh and try to connect to sqlserver2000 database, the same error infor came up.
    my environment is:
    os: Linux 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
    java: Java(TM) SE Runtime Environment (build 1.6.0_13-b03) Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02, mixed mode)
    ODI: 11g, installed in /users/oracle/odi/
    please help me,thanks a lot.
    jun
    帖子经 Jun编辑过

    Hi,
    You should check which JVM version is required by that version of the driver, I think the 2.x versions require a 1.6 JVM
    What error are you getting? If it is the "com.sunopsis.sql.c: No suitable driver", it indicates it can't find the jar file (sqljdbc.jar) for the driver you specify.
    Drivers folder in ODI 11g is under
    C:\oracle\product\11.1.1\Oracle_ODI_1\oracledi\agent\drivers.
    if you are using the standolone version
    On windwos :
    C:\Documents and Settings\<userName>\Application Data\odi\oracledi\userlib
    on linux
    $HOME/.odi/oracledi/userlib
    Have a read of :- http://download.oracle.com/docs/cd/E14571_01/core.1111/e16453/install.htm#CHDBIFAJ
    Thanks,
    Sutirtha

  • How do I known Which JDBC Driver Type in ConnectionPool?

    Usually, we have to specify the JDBC driver type 1, 2, 3, 4 in our programs as
    "COM.ibm.db2.jdbc.app.DB2Driver" or "COM.ibm.db2.jdbc.net.DB2Driver"
    However, when we use connection pool, we just use the Data Source class file instead e.g. "COM.ibm.db2.jdbc.DB2ConnectionPoolDataSource" or "COM.ibm.db2.jdbc.DB2XADataSource". No program need to specify the driver.
    Why is it like that? How do I know which driver type is using in the connection pool?

    Yes, I have the same problem in a BEA environment. Which is the driver for two phase commit?
    XADatasource or ConnectionPoolDataSource?
    Do I have to provide the implementation for the ConnectionPoolDataSource?

  • XMLType, TopLink 1013dp3r2 = which JDBC driver supports XMLType?

    I'm using the oracle thin driver 10.1.0.4 and getting this exception when reading an XMLType column that is mapped to a string:
    [exec] Exception Description: The object [oracle.sql.OPAQUE@f63c6a], of class [class oracle.sql.OPAQUE], could not be converted to [class java.lang.String].
    [exec] Internal Exception: java.lang.ClassCastException
    [exec] at oracle.toplink.exceptions.ConversionException.couldNotBeConverted(ConversionException.java:59)
    [exec] at oracle.toplink.xdb.DirectToXMLTypeMapping.getAttributeValue(DirectToXMLTypeMapping.java:122)
    Reading the forum, it seems like only certain drivers support XMLType but doesn't mention which ones.
    Which JDBC drivers will get rid of this error?
    Thanks,
    Steve

    I'm not using TopLink at all.
    Right now i'm just letting the oc4j load ojdbc14dms.jar through the shared-lib "oracle.jdbc". Although now i'm gettting ClassNotFounds with XMLType because it's not in the same classloader as oracle.sql.OPAQUE. XMLType is loaded though the application classpath.
    I've added some more details on this post.
    Deploying XML-DB(xdb.jar) with OAS 10.3

  • Oracle 10.1.0.5 and JDK 1.5. Which JDBC Driver?

    The driver download site does not have a driver listed for JDK1.5 and Oracle 10.2.05.
    Are the two compatible? Can I use the driver posted for JDK1.4 when I am actually running JDK 1.5?
    Thank you for your help!

    The driver download site does not have a driver listed for JDK1.5 and Oracle 10.2.05.
    Are the two compatible? Can I use the driver posted for JDK1.4 when I am actually running JDK 1.5?
    Thank you for your help!

  • Selection of jdbc driver for oracle 8i

    Which jdbc driver should be used for connecting with oracle 8i?

    8i is not supported with the 11g driver. (Node ID:401934.1)
    But not supported does not mean not working .
    Since your database is out of support anyway you may not be looking for a supported solution, right?
    So I'd give the 11g JDBC driver a try...
    Nevertheless you should consider upgrading the database you run.
    bye
    TPD

  • Oracle JDBC Driver to J2EE

    I'm trying to install an Oracle JDBC driver to connect my application with my oracle database server, but I'm having some problems. I downloaded the drive classes from the Oracle website, but now now I need to know how to configure my j2ee server to stabilish a connection with my database.
    Can anyone help me?
    Thanks a lot,
    Ricardo - from Brazil

    Hi Ricardo,
    Which JDBC driver are you trying to install. I mean which type driver?.
    Anyways i am sending a general page where in you can find the installation procedure for the Oracle JDBC driver installation. Hope it is helpful to you.
    Regards,
    G. Gowrishankar
    This link is for Installing Oracle Thin Driver
    http://www.lbl.gov/Education/CSEE/cup/Su01/Sum01Web/Mo/java/orionprimer/install_jdbc.htm
    This link if for installing Oracle JDBC driver
    http://home.clara.net/dwotton/dba/jdbc_test.htm

  • JDBC driver install for SQLSERVER 2000

    I am porting my application from Oracle DB to SQLServer2000.
    Which JDBC driver and where can I get the drivers and procedures to
    install the driver?
    Any advice for the porting procedures will be appreciated.
    Thanks in advance for any comments.
    Judy

    This comes up over and over and over and over; use the "search Forums" feature...

  • JDBC Driver File

    Hi all,
    I am using Oracle 9i application server and have installed an OC4J instance on it. I am trying to execute some servlet that makes JDBC calls(This servlet is mounted on the OC4J instance).
    When I start my OC4J instance using "java -jar oc4j.jar" I found that it was using classes12dms.jar(under <ORACLE_HOME>/jdbc/lib directory) as the JDBC driver.
    But I am not able to figure out which JDBC driver file is being used when I start the OC4J instance using
    "java -jar orion.jar". Also can anyone point out to me as to why there are 2 ways to start the OC4J instance (is it only 2 different versions- oc4j.jar and orion.jar- or do they have different functionalities?) . This might look naive to you, but I am new to this.
    This is very critical for my debugging.
    Can anybody provide any pointers regarding this?
    I would be really grateful.
    Thanks in Advance.
    Warm Regards,
    Chetan Dixit

    Chetan,
    As far as I know, "orion.jar" was only used in the first version of OC4J (1.0.2.2.1). Since then, each version only has an "oc4j.jar" file. Hence I don't understand your question. You simply cannot start OC4J using the "orion.jar" file (because OC4J does not have an "orion.jar" file).
    Of-course OrionServer still has an "orion.jar" file. If I remember correctly, JDBC driver files are usually installed into the "j2ee/home/lib" subdirectory (of the "OrionServer" installation).
    Good Luck,
    Avi.

  • Where to find the useful jdbc driver

    Dear Pro.:
    now i am trying to convert my ODBC/C/Oracle project into JDBC/java/Oracle one. i used Oracle 8i database version 8.1.7., but i encounter some questions about this process:
    1. Does the Java SDK version has anything to do with the jdbc driver? i know java2 sdk's newest version is 1.4, and the jdbc is 3.0. what is the best solution for matching jdbc driver with sdk?
    2. which jdbc driver is best for Oracle, and where i can get it? i know i can get from DataDirect(15 day try out version) or Oracle. my project evnironment is simple, i run the Oracle 8.1.7 on my personal computer, that is all.
    3. should i learn SQLJ or just jdbc?
    thank you for your consulting ...

    Dear Pro.:
    now i am trying to convert my ODBC/C/Oracle project into JDBC/java/Oracle one. i used Oracle 8i database version 8.1.7., but i encounter some questions about this process:
    1. Does the Java SDK version has anything to do with the jdbc driver? i know java2 sdk's newest version is 1.4, and the jdbc is 3.0. what is the best solution for matching jdbc driver with sdk? there isn't per say an exact match between JDBC drivers spec and JDK versions
    2. which jdbc driver is best for Oracle, and where i can get it? i know i can get from DataDirect(15 day try out version) or Oracle. my project evnironment is simple, i run the Oracle 8.1.7 on my personal computer, that is all. check 8.1.7 drivers, here http://otn.oracle.com/software/tech/java/sqlj_jdbc/content.html
    3. should i learn SQLJ or just jdbc?
    thank you for your consulting ... SQLJ provides the simplicity of embeding SQL statements in Java similat to embeding SQL statements in C (a.k.a. Pro*C). In Oracle9i Database release 2, SQLJ is functionally on par wiht JDBC ( dynamic SQL, support for advanced JDBC features) - bottom line use SQLJ is you are looking for simplicity, productivity, stronger type checking.
    Kuassi

  • J2EE SDK & SQL Server JDBC Driver

    I am trying to use SQL Server JDBC Driver with J2EE SDK.
    Following with the instruction of Deployment tool's help, I configured both the SQL Server JDBC and JDBC-ODBC Bridge. My classpath has include SQL Server JDBC Driver's lib, and my java program can connect to SQL Server 2000 correctly. but deployment tool always told me "no suitable driver" with SQL Server JDBC Driver when I want to generate SQLs. With JDBC-ODBC bridge, it's OK.
    Why? I just want to know that if there is anywhere else that I can configure the class lib. I think it's because J2EE can't find the classes of SQL Server JDBC, but I don't know how to do.

    step 1:download the sql driver and unzip it
    step 2:copy the .jar file to $j2ee_home%/lib/system
    step 3:modif userconfig.bat file ,add the .jar files
    to j2ee_classpath
    step 4:modify you resource.properpties files,add
    yourself
    JNDI name.
    because i am a chinese,have poor english,if can't
    trouble,send e-mail to me,i can replay to u with the
    config files.I do as your steps,but it still cannot work. for bookstore1(j2ee tutorial example), it give out such exception:
    javax.servlet.UnavailableException: Couldn't get database.
         at BookStoreServlet.init(BookStoreServlet.java:28)
    what 's the problem?
    please give me some advice.

  • JMX with JDBC Driver

    Hi,
    I am newbie to JMX and trying to explore the JMX feature "Monitoring and Management" . We have implemented Type 3 JDBC driver and we want to include JMX in it. What type of MBeans would be appropriate to use for JDBC Driver?
    Thanks in advance,
    Regards,
    -Sushama

    One of the most concise explanations I have seen of the different types of MBeans and where each is most appropriate is in the [Javadoc for the javax.management package|http://java.sun.com/javase/6/docs/api/javax/management/package-summary.html]. I find myself using MXBean as my default type of MBean unless I need the additional functionality (and am willing to deal with the additional complexity of) a dynamic MBean. If using J2SE 5, then the Standard MBean is my default choice because custom MXBeans are not available until J2SE 6. I use the Spring Framework quite a bit with JMX and so indirectly use the ModelMBean quite often as well, though it would be much more effort to use ModelMBeans directly than it is using Spring to do much of it for me.
    The simplest and most straightforward approach is to use Standard MBean or MXBean unless you need the additional features the more dynamic MBean types support.

  • Tomcat7 + JDBC driver jar

    Context:
    According to the installation guide for bonitasoft (http://documentation.bonitasoft.com/dat … add_driver)
    Tomcat 7
    For Tomcat, simply add the JDBC driver jar file in the appropriate folder:
        Bonita BPM Tomcat bundle: in the bundle folder add the driver to the lib/bonita folder.
        Bonita BPM deploy bundle: in the Tomcat folder add the driver to the lib folder.
        Ubuntu/Debian package: add the driver to /usr/share/tomcat7/lib.
        Windows as a service: add the driver to C:\Program Files\Apache Software Foundation\Tomcat 7.0\lib
    Problem:
    Which JDBC driver is meant ? I searched the web for an tomcat JDBC jar file for tomcat7 ?
    This confused me further, I tought archlinux is analog to ubuntu and read the section platform installation example for (Ubuntu + OpenJDK + Tomcat + MySQL):
    Add JDBC driver
    You need to include JDBC driver in Tomcat classpath:
        Change to Tomcat libraries directory: cd /usr/share/tomcat7/lib.
        Download the library mysql-connector-java from the MySQL site to this directory.
    But the mysql site (recommended by the installation guide) provides a download link for an tar.gz file and on google.code (https://code.google.com/p/find-ur-pal/d … 8-bin.jar&) I found .jar file. The installation guide clearly speaks about an .jar file. There are different version of the JDBC jar file on the web. Which one is right ?

    Do you intend on continuing to spam the boards with this issue? Read the Etiquette and the wiki: https://wiki.archlinux.org/index.php/Tomcat_and_Apache
    Moving to NC...

  • I have a new MAcBook Air and my photos don't fit on the internal hard drive.  I want to store my photos on an external hard drive which I will connect to my Air when using Iphoto.  How do I set an external hard drive as the default drive?

    I have a new MAcBook Air and my photos don't fit on the internal hard drive.  I want to store my photos on an external hard drive which I will connect to my Air when using Iphoto.  How do I set an external hard drive as the default drive in Iphoto?

    Make sure the drive is formatted Mac OS Extended (Journaled)
    1. Quit iPhoto
    2. Copy the iPhoto Library from your Pictures Folder to the External Disk.
    3. Hold down the option (or alt) key while launching iPhoto. From the resulting menu select 'Choose Library' and navigate to the new location. From that point on this will be the default location of your library.
    4. Test the library and when you're sure all is well, trash the one on your internal HD to free up space.
    Regards
    TD

  • I want to connect to a Profile database using the Sanchez JDBC Driver.

    I want to connect to a Profile database using the Sanchez JDBC Driver. Is that possible? Would I need to create an extension?

    You can't do it directly - only those databases listed in the help under third party databases are supported.
    You may well be able to write an extension to connect to an additional database, but it seems like a lot of work.

Maybe you are looking for

  • Palm desktop 4.2 calendar items gone.

    Hi.  I'm really hoping someone can help me.  I have the Palm Destop 4.2 software and Windows XP Home on my machine.  I haven't synched in literally years - I don't use the device any more, but I still use the software for my calendaring and datebook.

  • Errors in system.log since leopard upgrade

    I have a mac mini core duo 1.83, with 2gb ram. It was running Tiger until I upgraded it to Leopard about October 27th. I used the archive and install installation method. It has been running fine. The only "glitch" I have noticed is a very occasional

  • Function, cursor item as parameter in oracle 9i

    Hello, i have a block that make treatment for every cursor iteration in fact, i wanna make a function that take as parameter the cursor iteration so there is two possibilitities , i call this function when looping under the cursor, or when i has a sp

  • New quicktime screen recorder and other apps

    Anyway I can use this while recording a keynote or ppt presentation. Basically, I need to be able to record pointer movements with narration while switching from slide to slide.

  • Error message when capturing......

    A very recent problem: during my last two capturing attempts the error message "dropped frames were detected during your last capturing attempt" has appeared. The tape then stops and the capture vanishes. This is very strange and has not happened pre