Program to list JDBC drivers

Hi everyone,
I use the following code to list JDBC drivers on my system.
private static void listDrivers() {
//Get all the JDBC drivers
Enumeration<Driver> driverList = DriverManager.getDrivers();
//print out all the drivers using a loop
while (driverList.hasMoreElements()) {
Driver jdbcDriver = (Driver)driverList.nextElement();
System.out.println("JDBC Driver: " + jdbcDriver);
It lists JDBC-ODBC bridge:
JDBC Driver: sun.jdbc.odbc.JdbcOdbcDriver@19efb05
After I installed Microsoft SQL Server JDBC driver. I ran the above program again. Expecting it would return this new driver as well. But, the output is still the same.
Why??? What did I do wrong? How do I get the program to list all the JDBC drivers on my system?
Thanks in advance for your help!
Eric

jwenting wrote:
Where you went wrong was in assuming that just having a jar somewhere on your computer will automatically put it on the classpath of your little application.
Or maybe you went wrong in assuming that jdbc magically detects any jar anywhere on your computer that has a driver in it without being told where to look for that jar.Well, there's that. But, there is also the fact,OP, that the API docs says that the method getDrivers returns all currently loaded Drivers. In other words, OP, even if the jar is on your Classpath, getDrivers won't list it until you've done Class.forName("DriverClass") or DriverManager.registerDriver("DriverClass").
IOW, OP, read the API docs.
Edit: And, no, there is no Class/method (AFAIK) that will search your classpath for any/all possible Driver classes.

Similar Messages

  • Paradox JDBC drivers + server?

    I've been searching high and low for a small footprint program which contains JDBC drivers and a small DB server that would connect to Paradox DB format files.
    So far, the only options that seems to be available for me is:
    1. JDBC-ODBC connection, which still requires the Paradox DB or BDE
    2. Using Corel's Paradox JDBC drivers, which adds a server and JDBC driver layer on top of the BDE.
    These two options requires installation of the BDE, which I'm trying to avoid, since my client needs the software with the smallest possible footprint.
    Just to give an idea of what I'm looking for:
    http://www.atinav.com/products/aveconnect/DBF.htm
    Help pls, anyone?

    I thought they could give you best information for the first. Sounds like you don't trust them.
    Anyway, your question remembers me to similiar ones asked about accessing e.g. Excel without using Excel itself.
    The only possible solution then was to read (or also write - much more difficult) the foreign file format itself.
    So you may not search a driver product, but a file format description.
    A driver product accessing the files without using Paradox itself would have to re-implement the entire functionality of Paradox (regarding the access, not UI of course).
    If someone really has done this, I don't think you'll get it for free.
    So I would rather read them directly or - what may be the best - transform the data to another format or DBMS.

  • List all JDBC drivers from a machine

    How to list all the JDBC drivers supported by Java through programing in Java.
    Thanks in advance

    Write a spider to look though all the links you can
    get to through [url
    http://servlet.java.sun.com/products/jdbc/drivers]this
    page, find the names of the drivers and add themto you list. There are probably some drivers which
    aren't listed there, but I bet a quick google through
    [url
    http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=
    ava+driver]these 1,910,000 pages should get you
    most of the rest.
    So would you suggest doing that once to build a static list or doing it dynamically each time? :)

  • JAR files for SQLJ and JDBC drivers: what is the best practice?

    starting a migration from IAS 10 to WebLogic 11g.
    Apparently the jar files for SQLJ are not on the classpath by default.
    java.lang.NoClassDefFoundError: sqlj/runtime/ref/DefaultContextwhich is the better practice: putting the SQLJ runtime jar into the lib subdirectory of the domain directory, or using a shared library reference? (usage of SQLJ is pretty prevalent in our apps, though we may be getting away from it)
    are the Oracle JDBC drivers on the classpath by default?
    if not, then the same question: put them into the lib subdirectory of the domain directory, or use a shared library reference?

    I'm looking at the setDomainEnv, especially the big note at the top:
    >
    # WARNING: This file is created by the Configuration Wizard.
    # Any changes to this script may be lost when adding extensions to this configuration.
    >
    and am getting squeamish about editing it...
    http://www.bea-weblogic.com/how-do-i-disable-wls-automatically-adding-to-classpath.html looks like the default behaviour is for WebLogic to put $DOMAIN/lib;$WL_HOME/common/lib/ext;$WL_HOME/server/lib/ext on the classpath; there is also a reference to setting weblogic.ext.dirs= when starting weblogic (which means I set the WEBLOGIC_EXTENSION_DIRS environment variable).
    http://download.oracle.com/docs/cd/E12840_01/wls/docs103/programming/libraries.html#wp1067450 also refers at the bottom to using the domain /lib subdirectory.
    so am I correct that a good practice is to just put the jars I think I will globally need into $DOMAIN/lib, rather than putting them in $WL_HOME/common/lib/ext, $WL_HOME/server/lib/ext, or fiddling with the WEBLOGIC_EXTENSION_DIRS environment variable?
    Edited by: user8652010 on Feb 10, 2011 1:08 PM

  • Need information on Weblogic JDBC drivers

    Hi,
    I have been using Weblogic 8.1 sp5 with oracle version -Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production.
    Lately i have observed the below error:-
    <Jun 2, 2009 9:56:58 PM MEST> <Error> <JDBC> <BEA-001112> <Test "SELECT 1 FROM DUAL" set up for pool "WIS03 JDBC Connection Pool" failed with exception: "java.sql.SQLException: OALL8 is in an inconsistent state.".>
    This may be linked to the JDBC drivers used with weblogic.
    At weblogic console i can see the list of drivers as - Oracle Driver (Thin) Versions.9.0.1,9.2.0,10
    Is this driver good for the Oracle version 10 g?
    I am clueless for the above exception. Please suggest.
    Thanks & Regards
    Himanshu Tageja

    Thanks Joe.
    I have found the latest ojdbc.jar, below are the detials mentioned about this jar in the manifest.mf:-
    Oracle Database 10g Release 2 (10.2.0.4) JDBC Drivers
    Specification-Title: Oracle JDBC driver classes for use with JDK14
    Sealed: true
    Created-By: 1.4.2_14 (Sun Microsystems Inc.)
    Implementation-Title: ojdbc14.jar
    Specification-Vendor: Oracle Corporation
    Specification-Version: Oracle JDBC Driver version - "10.2.0.4.0"
    Implementation-Version: Oracle JDBC Driver version - "10.2.0.4.0"
    Implementation-Vendor: Oracle Corporation
    Implementation-Time: Sat Feb 2 11:40:29 2008
    Now the issue is with respect to the Java_version used for this jar which is 1.4.2_14 (Sun Microsystems Inc.)
    but my weblogic server uses jdk142_08.
    I have done quick tests after replacing the jar from the server/lib directory and seems no issue but can the differences in Java version lead to potential issues in future?
    Awaiting your valuable response.

  • Configuration of JDBC drivers for ocnnecting from BOE to Oracle

    HI all,
    I am trying to configure jbdc drivers in solaris for connecting BOE 3.1 sP2 to oracle 10g database.
    issue is not able to create connection in universe designer using jdbc drivers
    i couldnt get the exact info on this, please provide me the steps for connecting to oracle through jbdc drivers, Thanks,
    Thanks
    Ram

    I am now up and running.  Several tips were found on both Adobe and Oracle sites that were helpful. Here is a brief summary of the steps:
    Step 1, download* the Oracle Database11G release 2 Client for Microsoft Windows x64. (not the Instant Client). Follow the instructions provided on the download site. Select just the items you need from the custom install form.
    Step 2, add your datasources using the Oracle Net Configuration Assistant**.  Select Local Net Service Name Config. Follow the prompts, answer the questions.
    Step 3, add your datasources on Windows 2008 Server with Administrative Tools Datasources. Similar to step 2.
    Step 4, in CF10 Administrator set up your datasources. The first thing to do is set your Class Path to the location of the jdbc .jar files.  When you configured the Oracle installation you specified the location of the files. Go there and look for the\jdbc\lib folder. It contains the jar files for your drivers. Example:  C:\\Oracle\home\jdbc\lib\.  Now add your datasources. Select Other from the drivers drop-down list. This may be the tricky part. You will need the database information for connecting, such as host name, port, user, password, etc.  The connect url will look like: jdbc:oracle:thin@hostname:portnumber:servicename. Class: oracle.jdbc.OracleDriver  Name: whatever
    * download from:  oracle.com/technetwork/database/enterprise-edition/downloads/112010-win64soft-094461.html
    ** This utility should be selected as an item to install from step 1.

  • Oracle 8.0.6 JDBC Drivers download

    We are working with an Oracle 8.0.6 Database installed in a Sun Solaris machine.
    Now we need to execute a batch program in a Windows 2000 PC. We wanted to know if we can use the JDBC Drivers used in the Sun Solaris version or we have to download another class files.
    Thanks a lot.

    Ok i have solved the problem. I tried playing with the URL string, and started getting a Refused error along with the other erros. I noticed that i was not using the oracle user/pwd instead was using unix user/pass. I was also using the wrong tnsname that didnt match the IP.
    I changed that and
    String url = "jdbc:oracle:thin:@<database>";
    where <database> is
    @IP:portno:tnsname
    and wooolllaaaa it worked.

  • How to install + where to get: JDBC-drivers for Oracle8i

    hi,
    i need to install the JDBC drivers (to use oracles XSU).
    where can i get them (for oracle 8i) and how do i install them.
    im not familiar with java so im looking for a step-by-step install-manual.
    thanks in advance

    hi
    Go to Oralce.com....on the top right corner click on downloads and then from the list available choose the driver you need....they come with instructions for installing and downloading......Hope this helps

  • JDBC DRIVERS 와 NLS 의 관계

    제품 : JDBC
    작성날짜 : 2003-08-06
    JDBC DRIVERS 와 NLS 의 관계
    ==========================
    PURPOSE
    JDBC drivers 가 지원하는 National Language Support (NLS) 에 대해서
    알아봅니다.
    JDBC Drivers 는 NLS 와 conversion 을 지원합니다.
    JDBC Drivers 는 NLS 를 지원합니다. 오라클이 지원하는 character set
    을 가진 database 라면 어떤 character set 에서라도 data 를 입력, 출력
    할 수 있습니다.
    ASCII 나 ISO-Latin-1 databases 의 경우에는 conversion 이 일어나지
    않아 간단합니다.
    NLS database 라고 하면 일반적으로 non-ASCII database 나
    non-ISO-Latin-1 databases 를 의미 합니다.
    ( 예를 들어 Japanese, Korean 같은 ..)
    JDBC program 에서는 database 가 어떤 character set 을 사용하던지
    간에 target character set 은 항상 Java unicode (UCS-2) 입니다.
    이것은 CHAR 과 VARCHAR2 data 에 한합니다.
    RAW data 의 경우에는 conversion 이 일어나지 않습니다.
    JDBC OCI Driver 와 NLS
    JDBC OCI 의 경우 database 가 특정 character set 을 가지고
    client 또한 고유의 character set 을 가집니다.
    client 의 character set 은 database 와 다를 수 있습니다.
    client 의 character set 은 install 시에 결정되며,
    database 의 character set 은 database 생성시에 결정됩니다.
    따라서 JDBC driver 는 적절한 conversion 을 해주어야 합니다.
    JDBC OCI driver 가 character set conversion 할때 다음 3가지
    사항들을 고려 합니다.
    - database character set 과 language
    - client side character set 과 language
    - JAVA unicode (UCS-2)
    JDBC OCI 를 사용할 경우 data 가 server 에서 client 로 전달될때
    database 의 character set 으로 전달되게 됩니다.
    data 는 client 에 도착할때 까지는 conversion 이 일어나지 않습니다.
    client side 에 도달하면 표준 Oracle conversion routines 을 사용하는
    OCI routines 에 의해 database character set 에서 client character set
    으로 변환되게 됩니다.
    JDBC 개발자들은 각각의 database character set 에 따라 각각 다른
    conversion programs 을 사용하는 것이 아니라 한가지 character set 에서
    Java unicode (UCS-2) 로 변환하는 한가지의 conversion routine
    사용하도록 했습니다.
    오라클이 지원하는 많은 수의 언어들을 encoding 하게 해주는 이 character set
    는 UTF8 (Oracle 7 에서는 AL24) 입니다.
    NLS_LANG 에 따라 data 변환은 다릅니다.
    NLS_LANG 이 설정이 안되어 있거나 ASCII 나 ISO-Latin-1 character set 로
    설정되어 있는 경우에는 JDBC OCI driver 는 ISO-Latin-1 나 ASCII 로 부터
    Java 내에서 UCS-2 로 직접 변환합니다.
    ISO-Latin-1 나 ASCII 로 부터의 변환은 최적화되어 있습니다.
    NLS_LANG 이 ASCII 나 ISO-Latin-1 character set 이외의 character set
    으로 설정되어 있을 경우에는 driver 가 client 에서 NLS_LANG parameter
    를 UTF-8 로 변경합니다. 이것은 JDBC program 에 한하며, system 의
    NLS_LANG 환경에는 영향을 주지 않습니다.
    이것은 자동으로 일어나므로 user 는 해줄일이 없습니다.
    OCI 는 NLS_LANG parameter 값을 읽어와 data 를 database character set
    에서 UTF-8 로 변환해 줍니다. 이 변환은 C 에서 이루어지며 Java 에서
    이루어지는것이 아닙니다. 그 이유는 Java 내에서 이루어지는 변환의
    회수를 줄이기 위해서 입니다.
    그리고 난 후에 JDBC OCI driver 는 UTF-8 data 를 UCS-2 로 변환합니다.
    JDBC Thin Driver 와 NLS
    JDBC thin 에서는 UTF8 로의 변환이 server side 에서 일어나게 됩니다.
    그러나 만일 database 가 ASCII 나 ISO-Latin-1 character set 를 사용하고
    있다면 server side 에서의 변환은 일어나지 않습니다.
    client 에서 JDBC driver 는 UTF8 을 UCS-2 로 바꾸게 됩니다.
    ==================================================================
    주의: OCI 와 Thin drivers 는 모두 동일하게 NLS 를 지원합니다.
    ==================================================================
    Server Driver 와 NLS
    server 에서 실행되는 JDBC code 가 database 에 접속할때
    JDBC Server dirver 는 database character set 를 기반으로
    character set 변환을 수행합니다.
    모든 Java programs 의 target character set 은 UCS-2 입니다.
    JDBC Server driver 는 ASCII 와 ISO-Latin-1 character sets 만을
    지원합니다.
    database server 에 있는 Java VM 이 ASCII 와 ISO-Latin-1 character set
    만을 지원하기 때문입니다.
    Related Documents
    "JDBC Developer's Guide and Reference" , (A64685-01), Chapter 5, Advanced
    Topics, 'Using NLS'.
    "National Language Support Guide", (A67789-01).

  • How to update oracle jdbc driver to 11.1.0.7.0 JDBC Drivers

    HI,
    I got a jdbc exception *" java.lang.ArrayIndexOutOfBoundsException "*.
    I have known that it is a Oracle JDBC bug and Oracle BUG number is BUG-6396242.
    The problem is too many rows per database transaction and it is fixed at version 11.1.0.7 Oracle JDBC Drivers.
    Here is the 11.1.0.7 Oracle JDBC Driver Readme.
    http://www.oracle.com/technetwork/database/enterprise-edition/111070-readme-083278.html
    and the download
    http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-111060-084321.html
    My question is :
    *1.How to update oracle jdbc drivers with those downloads ?*
    (ps. I have replaced ojdbc5_g.jar, ojdbc5.jar, ojdbc6_g.jar, ojdbc6_g.jar in $ORACLE/jdbc, but it did'nt work. )
    *2.My Oracle version is 11.1.0.6.0, will it be OK if only update the JDBC driver?*
    *3.Do I need to update the jdbc driver where my program runs on the client side ?*
    Thanks for answers~ :)

    Upgrade your database version to 11.1.0.7.
    Installation docs are included with all patches and upgrades.

  • Application that handles multiple jdbc drivers. How to load driver classes?

    Hi all,
    I have a question that arised now while I am developing an application that handles different jdbc drivers.
    Do I have to reload the driver class when I want to use a different jdbc driver?
    Does DriverMAnager return connection of the last loaded jdbc driver?
    thank you in advance, Kostas

    No.
    No.
    Read the docs:
    http://java.sun.com/j2se/1.4.2/docs/api/java/sql/DriverManager.html
    which says in part:
    "When the method getConnection is called, the DriverManager will attempt to locate a suitable driver from amongst those loaded at initialization and those loaded explicitly using the same classloader as the current applet or application."
    In other words, getConnection inspects the provided database URL and tries to find a driver that can handle the URL.
    I've had no problems with a program that uses bothe Oracle and MySQL at the same time, alternately reading from one and writing to the other.

  • Orcle JDBC Drivers

    Hi,
    My aim is to write a simple Java program that connects to the
    Oracle Database and displays the data from a table. But I dont
    have any JDBC Drivers for oracle.
    So, I have downloaded the Orcle JDBC Drivers from the Oracle
    Site under the section below :
    Download the drivers NT
    Oracle8i 8.1.7 JDBC Drivers for use with JDK 1.2.x for NT.
    It is an Zip file which consists of so many files/directories..
    Where do I place all these files.
    And how do I create a Datasource which connects to the Oracle
    database and can be used in Java Program?
    Please help me in acheiving this simple task with detailed
    Instructions. ( I can achieve the above task using JDBC:ODBC
    Drivers, but now I want use the latest Drivers)
    Also where can I download the Type4 Drivers for Oracle?
    Thanks in Advance,
    Ram

    Just add the Classes12.zip to your Classpath settings.That is it.
    U unzip them and gets a folder called oracle. place this in ur
    web-inf\classes folder which is also there in classpath
    Here is a sample code code used based on JRUN and Oracle
    Conn.Poll. we have got 2 seperate DBases hence 2 DataSoruces
    package     com.tfl.db;
    import javax.sql.DataSource;
    import javax.naming.InitialContext;
    import javax.sql.ConnectionPoolDataSource;
    import oracle.jdbc.pool.OracleConnectionPoolDataSource;
    import oracle.jdbc.pool.OracleConnectionCacheImpl;
    import oracle.jdbc.pool.OracleConnectionEventListener;
    import java.sql.Connection;
    import java.sql.SQLException;
    import java.sql.ResultSet;
    import java.sql.ResultSetMetaData;
    import java.sql.Statement;
    import java.sql.CallableStatement;
    import java.util.StringTokenizer;
    import java.util.Vector;
    import javax.sql.ConnectionEventListener;
    import javax.activation.URLDataSource;
    import javax.sql.ConnectionEvent;
    public class DbBean     implements ConnectionEventListener
    //     private     javax.sql.PooledConnection          dbconn;     
         // for database connection
    //     private     javax.sql.PooledConnection          dbconn2;
              // for database connection
         Connection          dbconn;          // for database
    connection
         Connection          dbconn2;          // for
    database connection
         private     javax.sql.ConnectionPoolDataSource
         cpds=null;
         private     javax.sql.ConnectionPoolDataSource
         cpds2=null;
         private     OracleConnectionPoolDataSource     ocpds;
         private     OracleConnectionPoolDataSource     ocpds2;
         private     OracleConnectionCacheImpl     ocimpl;
         private     OracleConnectionCacheImpl     ocimpl2;
         java.sql.Connection con=null;
         java.sql.Connection con2=null;
         private Vector                    vector = null;
         ArrayMaker akr=null;
         DataFetcher df=null;
    InitialContext ctx=null;
         String mydb =null;
         String dbname=null;
         URLDataSource uds;
         public DbBean()
              super();
              ocpds=new OracleConnectionPoolDataSource();
              ocpds2=new OracleConnectionPoolDataSource();
              this.getAllConnReady();
         public void getAllConnReady()
              try{
                        ctx=new InitialContext();
              catch(Exception e)     {System.out.println
    ("DataSource Context failure ?? --- "+e);}     
              try{
              ocpds=(OracleConnectionPoolDataSource)ctx.lookup
    ("java:comp/env/jdbc/tfl_afs");
              ocpds2=(OracleConnectionPoolDataSource)ctx.lookup
    ("java:comp/env/jdbc/tfl_twh");
              System.out.println("JNDI Look up done ");
              ctx.close();
              } catch(Exception e){System.out.println
    ("DataSource Look up failure ?? --- "+e);}
              try{
                             ocimpl=new
    OracleConnectionCacheImpl(ocpds);
                             ocimpl2=new
    OracleConnectionCacheImpl(ocpds2);
                             ocimpl.setMinLimit(1);
                             ocimpl.setMaxLimit(20);
                             ocimpl.setCacheScheme
    (OracleConnectionCacheImpl.FIXED_WAIT_SCHEME);
                             ocimpl2.setMinLimit(1);
                             ocimpl2.setMaxLimit(20);
                             ocimpl2.setCacheScheme
    (OracleConnectionCacheImpl.FIXED_WAIT_SCHEME);
              } catch(Exception e){System.out.println
    ("DataSource Estb failed ?? --- "+e);}
              try{
              dbconn          = ocimpl.getConnection();
              dbconn2     = ocimpl2.getConnection();
              System.out.println("Pooled Connection Ready ");
              } catch(Exception e){System.out.println
    ("DataSource Estb failed ?? --- "+e);}
         public static void main(String a[])
              DbBean db = new DbBean();
         public ResultSet execSQL()
         Statement stmt= null;
         ResultSet rs =null;
                   try{
                        stmt= con.createStatement();
                        rs = stmt.executeQuery("Select
    usr_fname from auth_usr_personal where usr_sr_no>100 and
    usr_sr_no<150");
                        System.out.println("DB RS
    Ready to Return --- ");
                        return rs;
                   } catch(Exception e)
                   {System.out.println("DB  Execution
    Error  --- "+e);}
              return rs;
         public java.sql.Connection connect_Me_To(String dbname)     
              Connection con = null;
              this.dbname=dbname;
              try{
                             if
    (dbname.equalsIgnoreCase("afsweb"))
                                  try{     
                                  con=dbconn;
                                  if(con.isClosed
                   System.out.println("dbBean speaks--con
    is closed !--1--make a new ");
                   ocpds=null;
                   ocpds2=null;
                   this.getAllConnReady();
                   con=dbconn;
                   return con;
                                  catch(Exception
    e)
                   System.out.println("dbBean speaks--con
    is closed !--2--make a new ");
                   ocpds=null;
                   ocpds2=null;
                   this.getAllConnReady();
                   con=dbconn;
                   return con;
                             else
                             if
    (dbname.equalsIgnoreCase("twh"))
                             try{     
                                  con=dbconn2;
                                  if(con.isClosed
                   System.out.println("dbBean speaks--con
    is closed !--TWH-1--make a new ");
                   ocpds=null;
                   ocpds2=null;
                   this.getAllConnReady();
                   con=dbconn2;
                   return con;
                                  catch(Exception
    e)
                   System.out.println("dbBean speaks--con
    is closed !--TWH-2--make a new ");
                   ocpds=null;
                   ocpds2=null;
                   this.getAllConnReady();
                   con=dbconn2;
                   return con;
                   }catch (Exception exception)
                        System.out.println(" Exception
    while getting now Connection Remaking.." );     
                        ocpds=null;
                        ocpds2=null;
                        this.getAllConnReady();
                        connectAgain(dbname);
              return con;
    public void connectAgain(String dbname)
    System.out.println(" Exception while getting Conn now Re-
    establ.to--"+dbname );     
    connect_Me_To(dbname);
    public void connectionClosed(ConnectionEvent event)
                        System.out.println("It is a
    closed Connection..........Let us try again..........");
                        ocpds=null;
                        ocpds2=null;
                        this.getAllConnReady();
                        connectAgain(this.dbname);
    public void connectionErrorOccurred(ConnectionEvent event)
                        System.out.println("It is a
    closed Connection.Error Check with DBAs.............");
                        ocpds=null;
                        ocpds2=null;
                        this.getAllConnReady();
                        connectAgain(this.dbname);
    hope this helps

  • How can I install JDBC drivers for Oracle?!?....

    i have a program that has this line:
    import oracle.jdbc.pool.OracleDataSource;
    that gives this error when I compile it:
    package oracle.jdbc.pool does not exist
    So I think I need to install JDBC drivers for Oracle. (?)
    I went here: [http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc_111060.html]
    and downloaded the files for JDBC Thin.
    Then I followed this: [http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/111070_readme.html]
    by entering these commands (I'm using Ubuntu):
    export CLASSPATH=$CLASSPATH:/path/to/files/ojdbc6.jar
    export CLASSPATH=$CLASSPATH:/path/to/files/orai18n.jar
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/files
    When I type echo $CLASSPATH I can see that those commands worked, but it hasn't made any difference when I try to compile.
    I still get the same error. Is it because I didn't do anything about the .so files? The readme page didn't mention them in the installation section.
    Please help! I am so stuck...

    I don't think you need the shared libraries (.so files) and given what I saw when I glanced at those pages, I don't think they'd even work for you, although maybe I just didn't read enough of it.
    What happens when you type
    javap oracle.jdbc.pool.OracleDataSourceon the command line?
    How are you invoking javac? Are you perhaps passing a classpath argument?
    Are you sure that the path to the jar files is correct? Are the paths relative?

  • Using INET and DATADIRECT JDBC Drivers to connect MS SQL Server 2005

    Hi,
    I have reqmt to connect SQL server 2005 from ODI using INET and DATADIRECT JDBC drivers to test Local characters Encoding.
    In my case, Oracle is the Source and SQL Server 2005 is the Target. I have problem while interfacing Local Characters to SQL Server 2005 using com.microsoft.sqlserver.jdbc.SQLServerDriver driver( which is default driver provided by ODI). To fix local charatcters issue, I want to try using INET or DATADIRECT JDBC drivers. Please provide me the below of any one has used these Drivers to connect SQL Server 2005 from ODI.
    We are trying to connect to MS SQL Server 2005 from ODI Topology Mgr using INET and DATADIRECT JDBC Drivers. We need the following info to connect to the same,
    --> What are list of the drivers need to be placed in OraHome_1\oracledi\drivers path?
    --> Where can i get the latest driver versions.
    --> What are the JDBC DRIVER and URL formats.
    --> Any other additional configurations?
    --> Does these drivers support interfacing of Local character data.
    Please respond...
    Regards,
    Anil

    Check this article [HOW TO: SQL & JAVA|http://www.shahriarnk.com/Shahriar-N-K-Research-Embedding-SQL-in-C-Sharp-Java.html] for details on how to connect to SQL Server database from C#.NET database applications as well as Java database applications. It also describes how to pass embedded SQL queries (SELECT, INSERT, UPDATE, DELETE), calling stored procedures, pass parameters etc.

  • Installing addtional JDBC drivers

    Anyone knows where to add third-party JDBC drivers to Toplink?

    Hello,
    If you are referring to the mapping workbench, edit the workbench.cmd file and add your driver to its startup classpath.
    In the MW, you'll have to manually type the name of the JDBC driver, it won't be added to the drop-down list.
    Darren

Maybe you are looking for