Install a JDBC driver

I have installed MySQL and downloaded the JDBC driver.
What is the proper way to install this driver on a weblogic application server 8.1?
Placing it in the server\lib or portal\lib didn't work.
I 've managed add it to the classpath in my domain's startWebLogic bat script, but that doesn't seem a clean way.

Howdy.
re doesn't seem like a clean way
I agree, but I think that's the way to do it. Someone else I'm sure will
correct me/you if we're wrong.
One alternative is to use the pre classpath and/or post classpath env vars.
Or something else, add a classes dir to your domain, and add that classes
path. It's a bit more visually understood where the third party jars are
located in that case.
"Geoffrey" <[email protected]> wrote in message
news:3f6ad58c$[email protected]..
I have installed MySQL and downloaded the JDBC driver.
What is the proper way to install this driver on a weblogic applicationserver 8.1?
>
Placing it in the server\lib or portal\lib didn't work.
I 've managed add it to the classpath in my domain's startWebLogic batscript, but that doesn't seem a clean way.

Similar Messages

  • Installing Postgresql JDBC Driver WLS 8.1

    Hi,
    Can somebody explain how I install the JDBC Driver for postgresql? I have WLS
    8.1.2 on Win XP. I think the solution would be to set the CLASSPATH to the appropriate
    location. But how do I do this permanently?
    Thanks,
    Oliver

    Oliver wrote:
    Hi,
    Can somebody explain how I install the JDBC Driver for postgresql? I have WLS
    8.1.2 on Win XP. I think the solution would be to set the CLASSPATH to the appropriate
    location. But how do I do this permanently?
    Thanks,
    OliverHi. Read the startWeblogic script to see how it constructs the -classpath argument for
    the weblogic JVM. You can either add the postgres classes to an environment variable
    PRE_CLASSPATH, or edit the startup script etc.
    Joe

  • How to install a JDBC driver?

    Hello, everybody!
    I'm new to Java and I'm trying to install a JDBC driver. So, I downloaded the JayBird,
    a JDBC driver for Firebird, and now I don't know how to install the driver. I keep
    getting this message from the compiler when I try to compile the example that comes
    with the driver:
    DriverExample.java:182: package org.firebirdsql.jdbc does not exist
    d = new org.firebirdsql.jdbc.FBDriver ();
    ^
    1 error
    So, in the directory that has the example file (DriverExample.java) I created the
    following directory structure:
    C:\Example\org\firebirdsql\jdbc
    and inside the jdbc directory I copied the driver files:
    firebirdsql.jar
    mini-concurrent.jar
    jaas.jar
    mini-j2ee.jar
    log4j-core.jar
    and I still keep getting the error from the compiler. I just would like to
    know what I have to do to install this driver correctly for the compiler to
    find its packages.
    Below are the instructions the comes with the help to install JayBird, but I
    think that I did everything and it still didn't work:
    ======================================================================
    The classes from firebirdsql.jar must be in the classpath of the Java
    application being compiled, or otherwise made available to your application.
    The classes from the following packages must also be available:
    mini-concurrent.jar
    jaas.jar (included in jdk 1.4)
    mini-j2ee.jar (now including JDBC classes)
    log4j-core.jar (if you want logging available)
    The firebirdsql-full.jar file has all of the needed files in one
    archive for ease of use.
    These archives are included in the binary package.
    ======================================================================
    Please can someone help me?
    Thank you...
    Marcos

    My file (DriverExample.java) is in the directory 'Example' and the driver files are in the directory 'Example\org\firebirdsql\jdbc'
    That's what I did inside the directory 'Example'
    javac -classpath org/firebirdsql/jdbc/firebirdsql.jar DriverExample.java
    And that compiled ok.
    Now how can I specify where the driver files are for the java.exe? Of course I tried:
    java DriverExample
    and it didn't work.

  • Help installing new JDBC driver on LINUX

    Hello,
    Today, I downloaded the new SQL Server 2005 JDBC Driver onto
    my Linux Server. The path to the driver's .jar file is
    /root/sqljdbc_1.0/enu/sqljdbc.jar. I placed that path in my CF
    Adminstrator "Java and JVM" page's Class Path field. I restarted
    the app server but each time I try to establish a dsn connection I
    keep getting this error. (note: I have dsn's set up already to this
    instance of SQL Server 2005 so the communicatio is there but I
    would prefer to use this new driver)
    Connection verification failed for data source: dsnTestDB
    java.sql.SQLException: No suitable driver available for
    dsnTestDB, please check the driver setting in resources file,
    error: null
    The root cause was that: java.sql.SQLException: No suitable
    driver available for dsnTestDB please check the driver setting in
    resources file, error: null
    Any help would be greatly appreciated.
    Thanks,
    mdg1
    Houston, TX

    Try placing the jar file in the
    {cfmx-root}/runtime/servers/lib (create if not already there)
    directory if you have the server install or the
    {jrun-root}/servers/lib directory if you have the multiserver or
    j2ee install on JRun. Restart the Coldfusion applicatioin server.
    Ted Zimmerman

  • How do I install the jdbc driver for sql server 2005, in sql developer 4.0 ?

    Hallo together
    I need access to tables in a MS SQL Server 2005 database.
    One possibility is the JDBC driver.
    How do i install this driver ?
    Thank you very much for your postings.

    Hi,
      This is from the documentation -
    Database: Third Party JDBC Drivers
    The Third Party JDBC Drivers pane specifies drivers to be used for connections to third-party (non-Oracle) databases, such as IBM DB2, MySQL, Microsoft SQL Server, or Sybase Adaptive Server. (You do not need to add a driver for connections to Microsoft Access databases.) To add a driver, click Add Entry and select the path for the driver:
    For Microsoft SQL Server or Sybase Adaptive Server: jtds-1.2.jar, which is included in the jtds-1.2-dist.zip download
    To find a specific third-party JDBC driver, see the appropriate website (for example, http://www.mysql.com for the MySQL Connector/J JDBC driver for MySQL, http://jtds.sourceforge.net/ for the jTDS driver for Microsoft SQL Server and Sybase Adaptive Server, or search at http://www.teradata.com/ for the JDBC driver for Teradata). For MySQL, use the MySQL 5.0 driver, not 5.1 or later, with SQL Developer release 1.5.
    You must specify a third-party JDBC driver or install a driver using the Check for Updates feature before you can create a database connection to a third-party database of that associated type. (See the tabs for creating connections to third-party databases in the Create/Edit/Select Database Connection dialog box.)
    Alternative:
    As an alternative to using this preference, you can click Help, then Check for Updates to install the JTDS JDBC Driver for Microsoft SQL Server and the MySQL JDBE Driver as extensions.
    Regards,
    Mike

  • SQLDeveloper 3.1 EA3 -- error installing JTDS JDBC Driver for Microsoft SQL

    After installing sqldeveloper64-3.1.06.82-no-jre.zip I get an error when trying to add the "JTDS JDBC Driver for Microsoft SQL Server" extension.
    The error returned is an invalid URL.
    The URL is http://download-llnw.oracle.com/otn-pub/sqldeveloper/oracle.sqldeveloper.thirdparty.drivers.sqlserver.58.17.zip

    Hi Chris,
    A bug was logged for this a few days ago:
    Bug 13547400 - CHECK UPDATES FAILS DUE TO SERVER RETURNED HTTP RESPONSE CODE: 400
    This is similar to another bug which has already been fixed (not a product bug, just a bad URL in an OTN web page):
    Bug 13530787 - 3.1 EA2: FORUM: CHECK FOR UPDATE HAS BAD URL FOR CVS
    3.1EA2 Sqldeveloper Updates Fail to install
    So I imagine yours will get fixed soon.
    Regards,
    Gary
    SQL Developer Team

  • How to install jTDS jdbc driver

    I've heard so much about this jTDS driver, and had it with the current jdbc driver i'm using. I'm using slserver 7. i would like to install the jtds driver. I just downloaded the .jar file. how do i install the driver. which directory do i put it in? pls help asap. thanks a million.

    "Install" it?
    The directory you put it in depends greatly on the application that's using it.
    If it's a desktop app, put in in the CLASSPATH for the app.
    If it's a Web app, put it in the WEB-INF/lib directory for your app.
    It's not a cut & dried answer. I don't think one JAR file will necessarily serve all apps. Expect to have duplicates as needed. I do.
    %

  • Installing a JDBC-driver in the classpath in win 2000

    Hi
    I'm trying to make an aplication, that can access a remote DataBase, with the mm.mysql driver.
    I have tryed to add the path to the libery where the jar file is in the classpath (in win 2000). But I can't get it to work from a dos-promt.

    put it in your enviroment.
    Control Panel -> System -> Enviroment.

  • How can i install jdbc driver

    Hi
    i install websphere 5 and try to connect to my sql server but cannot find jdbc driver class path and can not find any jdbc driver
    pls tell me how can i install jdbc driver in my websphere
    with regards

    You may get a better response posting this question in a WebSphere specific forum. Maybe this will help, the following link shows the command you need to execute to install a JDBC driver in websphere 5.0.
    http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?tab=search&searchWord=mysql+driver&maxHits=50

  • Difficulty Installing the MySQL JDBC Driver

    I am trying to install mySQL JDBC driver "mysql-connector-java-2.0.14.tar.gz" to link up with the mySQL server on a Windows XP OS.
    The error is:
    Cannot find database driver classes
    java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
    I have read the USAGE AND INSTALLATION in the README file, but it can not seem to find these drivers still. I added the location to my PATH variable in the environment variables, and set CLASSPATH= ... as well and still can not find them
    Paths i added to PATH and CLASSPATH variables
    C:\j2sdk1.4.0_01\mysqlconnector.tar
    C:\j2sdk1.4.0_01\JDBC
    I did both methods it suggested, within the JDBC folder are the com and org folders. Anyone offer some suggestions.
    I know some smart person is going to say just use linux, but it is needed for my father and he can barely use MS Windows.
    Cheers for any help

    Dear Java Newsgroup User
    I would like to understand more around the Java and MySQLJDBC Configuration. Because I have some problem trying to install and Testing the MySQL JDBC Connector Driver.
    I use Windows XP Professional.
    I Downloaded and Intalled Sun One Studio to start learning JAVA and Features. This SDK Package make 3 Packages (directories):
    Directory No1 C:\JSDK4\j2sdk1.4.1_02 (JAVA_HOME)
    Directory No2 C:\JSDK4\s1studio (Source Examples ...)
    Directory No3 C:\Archivos de programa\Java\j2re1.4.1_02 (Java R. Env.)
    In the WINDOWS XP PANNEL CONTROL apper Java Plugins Control Pannel also
    when I press or click this icon apper a Java Screen where i can see the following Configuration in the Advanced Option:
    Java RuntTime Enviroment:
    Use Java Plugin Default
    JRE 1.4.1_02 in C:\Archivos de programa\Java\j2re1.4.1_02
    SDK 1.4.1_02 in C:\JSDK4\j2sdk1.4.1_02
    MySQL Driver Confiration and Version:
    This is my Un-ziped MySQL JDBC connector Path:
    C:\JSDK4\j2sdk1.4.1_02\mysql-connector-java-3.0.8-stable
    Into mysql-connector-java-3.0.8-stable directory exist an directory called [testsuite] that have some jar, java and class files.
    Testing MySQL JDBC Connecto Driver and Error Message:
    When i try to run the BaseTestCase.class file the system give me the following ERROR Message:
    C:\JSDK4\j2sdk1.4.1_02\mysql-connector-java-3.0.8-stable\testsuite>java BaseTestCase
    Exception in thread "main" java.lang.NoClassDefFoundError: BaseTestCase (
    ame: testsuite/BaseTestCase)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.
    3)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
    My Question are the following:
    1- What is the meaning of this message error?
    2- What i need to do to solve this problem?
    3- What is the function specificly of the JRE 1.4.1_02 in C:\Archivos de programa\Java\j2re1.4.1_02 Directory in My JAVA Instalation.
    I you need more detail of my instalation please write me and i write back a soon as possible.
    Dear Users:
    Please Help Me! to continue with the next steps ...
    Best Regards and Than's so much for read this message
    From Panama City
    VanyRon

  • Oracle JDBC driver 10.1.0.2.0

    Hi All,
    I have installed Oracle 9iR2 on Windows 2000 Advance server, and i am looking for Oracle JDBC driver 10.1.0.2.0 to be installed and configured, it would be real help if some one could send me the download path and how to continue further with installing the JDBC driver
    Thanks,
    Kumar

    You can download the latest JDBC drivers from http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html
    You just need to place the jar somewhere and add the location to your classpath.
    Kuassi

  • Test JDBC Driver For SQL Server 2000 Failed

    Hi:
    I have trouble setting up the database connection using jdbc driver in the studio, could anyone help me please? I have MS SQL 2000 MSDE installed on my local machine. I downloaded and installed the JDBC Driver for MSSQL 2000 from Microsoft.
    I put the following jar files into the/lib/ext/ directory
    msbase.jar
    mssqlserver.jar
    msutil.jar
    In Studio 4.1 EE, I went to Runtime>Databases>Drivers, Add a new Driver with these information:
    Name: MSSQL Driver
    Driver: com.microsoft.jdbcx.sqlserver.SQLServerDataSource
    URL Prefix: jdbc:microsoft:sqlserver://localhost:<PORT>[;DatabaseName=<DB>]
    Next I run the Test Driver...
    Database URL: jdbc:microsoft:sqlserver://<machineName>\\<instanceName>;DatabaseName=<xxx>
    User: <username>
    Password: <password>
    I receieved the a popup box and message in the output window:
    Internal test driver incomplete. the driver may not support the required DatabaseMetadata methods. take a look at the Output Window for details.
    Warning: No tables were found. Check your database.
    Warning: No views were found. Check your database
    Warning: No procedures were found. Check your database.
    Your replies are greatly appreciated.
    Perry

    com.microsoft.jdbcx.sqlserver.SQLServerDataSource is a very old direct driver. I'd recommend using the DataDirect 3.2 driver. It can be found at:
    http://www.datadirect-technologies.com/products/jdbc/jdbcindex.asp

  • JDBC driver installation

    Hi,
    I'm a newbie and just started programming in java. I dont know if this message is to be posted here or somewhere else. This is my first post. So please tolerate..
    I use Fedora Core 4. I installed the JDBC driver (mysql-connector-java-3.1.12) for the mysql database as specified in the instructions. I copied the mysql-connector-java-3.1.12-bin.jar file to /root/jdk_nb/j2sdk1.4.2/jre/lib/ext and set the CLASSPATH environment variable in .bashrc as follows
    export CLASSPATH=${PATH}:/root/jdk_nb/j2sdk1.4.2/jre/lib/ext
    I also run the .bashrc file.
    THen i executed a small program to get the names of the drivers loaded.
    import java.sql.*;
    import java.util.*;
    class listJdbcDrivers
    public static void main(String args[])
    List drivers = Collections.list(DriverManager.getDrivers());
    for (int i=0; i<drivers.size(); i++)
    Driver driver = (Driver)drivers.get(i);
    // Get name of driver
    String name = driver.getClass().getName();
    System.out.println(name);
    // Get version info
    int majorVersion = driver.getMajorVersion();
    int minorVersion = driver.getMinorVersion();
    boolean isJdbcCompliant = driver.jdbcCompliant();
    System.out.println("Major Version"+majorVersion);
    System.out.println("isJdbcCompliant"+isJdbcCompliant);
    Then i did a javac listJdbcDrivers.. It compiled
    Then i did a java -Djdbc.drivers=mysql-connector-java-3.1.12 listJdbcDrivers..
    But it does not print out any drivers. Why is this happening?

    That's a lot of chutzpah. No, I will not do your work for you.
    DriverManager#registerDriver() adds a driver and registers it. I believe after you do this, getDrivers() would return that driver.
    I also mentioned for completeness that instantiating a driver (via newIntance() on a class or via its constructor) normally results in that driver registering itself via DriverManager#registerDriver().
    - Saish

  • Jdbc driver & charset problem

    The charset of my oracle database is ISO8859p15.
    SO I need to add nslcharset12.jar in my classpath.
    In a servlet engine like Tomcat or Resin I MUST add this jar to the startup script of the servlet engine. But with Oracle IAS, I'm not able to install it.
    I try to add the jar in the WEB-INF/lib of my webapps, I try to replace the jar in the ORACLE_HOME/jdbc/lib, I try to put it in ORACLE_HOME/lib but I receive allways an exception during database query like :
    - UNKNOWN CHARSET ID 46
    - Class violate classloader loading.
    I have the same behavior under Weblogic.
    What is the correct way to install this jdbc driver(I try oci & thin connection).

    391347,
    More recent versions of OC4J (stand-alone) use the "j2ee/home/applib" subdirectory for extra JAR files.
    On my OC4J 9.0.4 installation, there is a "readme.txt" file in that subdirectory. Here are its contents:
    This directory should be used to place common jar files,
    and they'll be loaded by default and will be available to
    all j2ee applications deployed to this OC4J instance.Note, however, that OC4J can be configured to use a different directory. The default configuration uses the "applib" subdirectory, so if you have not changed the default configuration, putting your "nslcharset12.jar" file in that directory should work.
    Good Luck,
    Avi.

  • Sql server 2000 JDBC driver

    I installed the Jdbc driver for sql server 2000 and set the classpath. When when I was trying to
    connect to the sql server database from a java program, I kept getting the following error;
    There was an error connecting to the DataSource: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Login failed for user 'jet123'. Reason: Not associated with a trusted SQL Server connection.
    The whole scenario is like this:
    I have a sql server 2000 installed in my windows 2000 machine, and I created a MISM\myBase server under the SQL Server group, where MISM is the name of my machine, and myBase is the name of the sql server. Under the MISM\myBase server I created a database named "Aromatherapy". I added new login(username:jet123, passwd:1001) to the MISM\myBase server and also added user jet123 to the Aromatherapy database. The login(jet123, 1001) is my user name and passwd to my windows machine and has the administrator privillege.
    Here is the code:
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
    Connection connection = DriverManager.getConnection("jdbc:microsoft:sqlserver://128.2.76.102:1433;databasename=Aromatherapy;user=jet123;password=1001");
    Could anyone help?
    Thanks,
    David

    make sure that user jet123 access to the sql server used by ms-sql queryanlayzer
    not?
    first check if your sql authentication mode is windows and sql server
    or, allow the permistion to jet123 to access the database, by ordinary to be db_owner.

Maybe you are looking for

  • Attachments can't be dragged to desktop, get Text Clipping instead

    Has anyone had this problem? I have a MacBook Air, OS 10.5.2, Mail 3.2. Every time or almost every time (98% of the time) when I try to drag an attachment or attachments to the desktop (from the attachment window within the email) I get a Text Clippi

  • Limiting Number of connections from a single user

    Hi , I am using 9.2.0.6 DB, i need to restrict the number of connections from a single user to 100. Currently the user is having DEFAULT profile, this profile is having several other users associated to it. What are all the available options to creat

  • How do I delete or clear my browsing history?

    I can't clear my history is there a simple way to do this?

  • GR Error in process

    Hi Experts, We have an issue where GR is not able to do From SRM front end , is shows that it is in Error in process but from backedn MiGO T-code we are able to do that Any suggestions sameer

  • Workflow for combining C300, C100 and GoPro?

    I'm working on a feature documentary and have an overwhelming amount of Canon C300 (MXF), C100 (MTS) and GoPro (MOV) footage. I'm editing with premiere pro CC and the problem is everything is slowing down and crashing now that there is so much footag