Two Microsoft JDBC Drivers - WL is picking its own

We want to use Microsoft's own version of JDBC, not WL's version.
Currently WL is choosing it's own (mssqlserver4v65.jar) that's in ...bea\weblogic700\server\lib over the MS SQL Server one I thought I'd installed properly.
Guess the question is: how do you install an additional MS SQL Server JDBC driver so when you call it in your Java code (jsp, bean, etc.) it uses the NEWLY installed one & not WL's own mssqlserver4v65.jar?
1. How do you change the classpath? Do you change the system classpath as well as the WL classpath?
2. Which folder does the NEW MS JDBC driver go in?
3. Do you have to make a special reference to the NEW JDBC driver so WL doesn't use its own?
Thanks!

steve garrison wrote:
We want to use Microsoft's own version of JDBC, not WL's version.
Currently WL is choosing it's own (mssqlserver4v65.jar) that's in ...bea\weblogic700\server\libover the MS SQL Server one I thought I'd installed properly.
That's very odd. That could only happen if the two drivers accpeted the same
URL, but I don't think that's true. If you show me the pool definition I can
help.
Guess the question is: how do you install an additional MS SQL Server JDBC driverso when you call it in your Java code (jsp, bean, etc.) it uses the NEWLY installed
one & not WL's own mssqlserver4v65.jar?
If two drivers have the same Driver class name and accept the same URL, the one
that comes first in the classpath will be the one used.
1. How do you change the classpath? Do you change the system classpath as well as the WL classpath?
Open the startWeblogic script and you will see how the classpath is formed for the
execution line that starts weblogic.
2. Which folder does the NEW MS JDBC driver go in?It doesn't matter as long as it's listed in the classpath the server uses.
3. Do you have to make a special reference to the NEW JDBC driver so WL doesn't use its own?Typically the pool just needs the driver's class name (which is different for all different
vendor's drivers), and the URL that driver takes (which except for very rare cases is
also different for different drivers).
As a last resort you can always move/remove drivers that you don't want to use. However,
do show your pool definition and we'll solve this.
Joe
Thanks!

Similar Messages

  • *****Error in Microsoft JDBC drivers for SQL Server 2000****

    hi guys,
    I am getting the following error in my application. The error seems to have thrown by Microsoft JDBC drivers for SQL Server 2000
    The application tries to execute the the following query when the error is thorwn:
    SELECT getDate(); // getDate is a function which returns currebt date time. The error is thrown occassionally. Other times the same query is executed correctly by the application.
    Can any one help with this one.
    The error is:
    java.lang.NullPointerException
         at com.microsoft.jdbc.base.BaseImplStaticCursorResultSet.setupTempFiles(Unknown Source)
         at com.microsoft.jdbc.base.BaseImplStaticCursorResultSet.<init>(Unknown Source)
         at com.microsoft.jdbc.base.BaseStatement.chainInServiceImplResultSets(Unknown Source)
         at com.microsoft.jdbc.base.BaseStatement.getNextResultSet(Unknown Source)
         at com.microsoft.jdbc.base.BaseStatement.commonGetNextResultSet(Unknown Source)
         at com.microsoft.jdbc.base.BaseStatement.executeQueryInternal(Unknown Source)
         at com.microsoft.jdbc.base.BaseStatement.executeQuery(Unknown Source)
         at com.sanderson.tallyman.util.TallymanDB.executeQuery(Unknown Source)
         at com.sanderson.tallyman.util.TallymanDB.getCurrentDate(Unknown Source)
         at com.sanderson.tallyman.operations.interfaces.RecordUpdateControl.updateRecord(Unknown Source)
         at com.sanderson.tallyman.operations.interfaces.DebtInterfaceControl.processUpdate(Unknown Source)
         at com.sanderson.tallyman.operations.interfaces.DebtInterfaceControl.processInterface(Unknown Source)
         at com.sanderson.tallyman.operations.interfaces.InterfaceHandler$ProcessRecord.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    rgds,

    Hi,
    Did you ever get an answer to this? I am also having this problem.

  • Urgent ****Error in Microsoft JDBC drivers:****

    hi Guys,
    I am getting the following error when I am trying to execute the query:
    'Select getDate()'
    getDate is a function which returns the system date. The query works perfectly fine when run from query analyser and most of the times from within the application as well. But some times it throws the following error. I am having multiple threads executing the above query.
    It seems to be a bug in the driver. Any idea/workaround ???
    I am using jdk 1.3.1 and SQL Server 2000
    cheers,
    java.lang.NullPointerException
         at com.microsoft.jdbc.base.BaseImplStaticCursorResultSet.setupTempFiles(Unknown Source)
         at com.microsoft.jdbc.base.BaseImplStaticCursorResultSet.<init>(Unknown Source)
         at com.microsoft.jdbc.base.BaseStatement.chainInServiceImplResultSets(Unknown Source)
         at com.microsoft.jdbc.base.BaseStatement.getNextResultSet(Unknown Source)
         at com.microsoft.jdbc.base.BaseStatement.commonGetNextResultSet(Unknown Source)
         at com.microsoft.jdbc.base.BaseStatement.executeQueryInternal(Unknown Source)
         at com.microsoft.jdbc.base.BaseStatement.executeQuery(Unknown Source)
         at com.sanderson.tallyman.util.TallymanDB.executeQuery(Unknown Source)
         at com.sanderson.tallyman.util.TallymanDB.getCurrentDate(Unknown Source)
         at com.sanderson.tallyman.operations.interfaces.RecordUpdateControl.updateRecord(Unknown Source)
         at com.sanderson.tallyman.operations.interfaces.DebtInterfaceControl.processUpdate(Unknown Source)
         at com.sanderson.tallyman.operations.interfaces.DebtInterfaceControl.processInterface(Unknown Source)
         at com.sanderson.tallyman.operations.interfaces.InterfaceHandler$ProcessRecord.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)

    >
    It seems to be a bug in the driver. Any
    idea/workaround ???
    My first idea would be that it is very likely that is has nothing to do with the driver and the problem is in your code.
    If you have reduced this to a simple test case that clearly demonstrates that it isn't your code, but is the driver, then post it here.

  • Restarting on its own -all the time!

    My iMac G5 is behaving very oddly. About two weeks ago it began restarting on its own whenever I left it for more than an hour or two. It rarely restarted because it would hang up on closing an application that had something to save, like a word doc or a Firefox with multiple tabs. Always there is a timed-out error on logout operations. I can not think of any certain piece of software I recently installed at the time, no idea why its happening.
    -My energy saver does not have a scheduled shut down and restart pref, neither is it in my Cocktail settings.
    -I created a second admin user, restarted and logged in as it, and it still happened.
    -I did an archive and install and it still happens
    Welcome to any ideas.

    js--
    Let's say your Mac shut down yesterday afternoon about 3.
    Go into the console logs and take your time to just read it,
    and see what happens a few lines before "Shutdown."
    If you just hunker in there are read, you'll begin to see normal patterns
    and abnormal events prior to the accidental restarts.
    You could paste the information here, but first try to get
    a better feel for the reports.

  • Macbook Pro 2010 upgraded from Mavericks to Yosemite keeps shutting down on its own

    I upgraded to OS X Yosemite about a month ago, I have a macbook pro 2010, and in the last two weeks it started shutting down on its own. At first when i'd wake it, the fan would come on loudly and then it would shut down. In the last couple of days, I would make sure all programs were shut when it wasn't in use and then put it to sleep but every time i'd return it would be shut down and need a hard restart. If i just pressed the on button lightly it wouldn't start. And when i turn it on the fan comes on immediately. I'm a publisher so I'm working in indesign and illustrator a lot but I keep a constant look out for my memory and this isn't the problem. I'm working to a deadline here and can't afford to lose my computer for 3 days in the mac store (I live in Barbados) to get it fixed. Any advise?
    Thanks

    These instructions must be carried out as an administrator. If you have only one user account, you are the administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Select the most recent panic report (with a name that begins with "Kernel" and ends in ".panic") under the heading System Diagnostic Reports on the left. If you don't see that heading, select  
    View ▹ Show Log List
    from the menu bar. Post the entire contents of the report—the text, please, not a screenshot. In the interest of privacy, I suggest you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header and body of the report, if it’s present (it may not be.) Please don't post any other kind of diagnostic report, such as a hang report.

  • Having trouble with iPad mini doing things on its own 2014 anybody got any results

    Having trouble with iPad mini doing things on its own bought dec 2013 been great up until two weeks ago then it types on its own moves between apps flicks pages in my book. Does anyone know how to fix this.?

    Probably a hardware problem. Call a Apple Support or take it to an Apple Store for evaluation.

  • Microsoft SQL Server JDBC Drivers 4.0.2206 timeout on first connection to SQL Server Express after it sleeps

    Our builds kick off and run integration tests. They are configured to hit a SQL Server Express server.
    If the builds have been quiet for a while, the first test to connect fails after stalling for 20 minutes.
    Subsequent tests are fine.
    Reversing test order does the same thing, with a different test.
    We noticed in the SQL Server express log the server saying it is waking up after being idle.
    Microsoft SQL Server Express with Microsoft SQL Server JDBC Drivers 4.0.2206.
    Connection times out after 20 minutes.Occurs with the first connection made after the SQL Server Express server wakes up from going to sleep.Connections after the first are just fine, until SQL Server Express sleeps.SSL enabled. Timeout duration for the connection failure is unaffected by setting timeout options for the connection.  Work around:
    cron-like job that runs every minute that makes a simple query on the server keeps the server from going to sleep.
    Has anyone else run into this?

    Hello,
    SQL Server Express will go to sleep if idle, this behavior is not configurable.
    When SQL Express transitions from idle to active some of the memory that was released needs to be reclaimed; this results is a slight lag during "startup time" when you're first connecting to SQL Express.
    The other sort of sleep occurs when a database with AUTO_CLOSE unloading itself after a period of inactivity. This can be resolved by setting AUTO_CLOSE to false.
    You can refer to the following blog about more details about this:
    http://blogs.msdn.com/b/sqlexpress/archive/2008/02/22/sql-express-behaviors-idle-time-resources-usage-auto-close-and-user-instances.aspx
    You can try to upgrade the SQL Server Express to a non-free version to get rid of this.
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • Microsoft JDBC SQL Server Drivers

    I want to use the Microsoft JDBC SQL Server Drivers. I know they are not supported.
    What do I need to do to my 9iAS install so that my reports can use this JDBC connection.
    I have 5 simple reports I want to run from a very simnple menu. I want to hide the JDBC connection in the URL. But I want the report to use the URL to connect to a MS SQL Server 200 database and generate a report that was created using Reports Builder.
    Obviosly I am new to all of this. And someone else is doing the 9iAS install.
    What do I need to do to get this going?
    Thanks for any help.
    Jeanne

    I am now using mth Merant SQL Server JDBC Driver.
    But I still get the following error when running from the URL from my local OC4J.
    I have added classpath of YM*.jar files to rwEng and rwUrlEng in rep_<myserver>.conf.
    Why can't it find the drivers?
    Thanks.
    Reports Error Page
    Wed May 28 10:08:52 PDT 2003
    javax.servlet.jsp.JspException: rwlib-1: REP-4100: Failed to execute data source. JDBCPDS-62008:com.oracle.ias.jdbc.sqlserver.SQLServerDriver
    javax.servlet.jsp.JspException: rwlib-1: REP-4100: Failed to execute data source.
    JDBCPDS-62008:com.oracle.ias.jdbc.sqlserver.SQLServerDriver
    at oracle.reports.jsp.ObjectsTag.doEndTag(ObjectsTag.java:180)
    at test.WLBNTemp._jspService(_WLBNTemp.java:85)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
    at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:508)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:255)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:407)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:330)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:243)
    at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)

  • How to use Multiple JDBC Drivers?

    Hi,
    I'm working with an application that connects to an Oracle 8 database and Oracle 10 databases as a single user/schema and then the application users all share the single Oracle user. When we use an Oracle 8 JDBC driver, then a module that inserts a large number of records (1500+) into an oracle table behaves inconsistently and either times out, pauses inserting records for exactly 1 hour, or throws an error. It also seems somewhat inconsistent from user to user.
    The problem goes away when we use an Oracle 10 or Oracle 11 JDBC driver. However, the Oracle 10 JDBC driver has a problem with truncating the hh:mi:ss from datetime column types to 00:00:00. This is a known Oracle error and I know there is a flag that can fix this with the Oracle 10 driver. However, with the way the JDBC driver gets installed in the application, we are unable to set that flag.
    Oracle 11 JDBC driver also doesn't have the Oracle 8 issue inserting a large number of records. However, we need to connect to an Oracle 8 database and Oracle 11 JDBC does not support that. The database is still active but being retired soon so no chance of upgrading to a newer Oracle version.
    I asked on the application forum (it's SAP Manufacturing Intelligence and Integration - MII) and was told the following. Data Server is a name for the connection to the database.
    "If the class packages are the same (assuming so since all of the oracle drivers I've seen use the same driver) then you can't have 2 at the same time, since they will overlap and you can't prioritize or point one data server to 8 and the other to 11."
    My experiments with trying to use two drivers have also shown this to be the case for what I tried.
    Any ideas or thoughts of how to make this work? We are using a JDK 1.5.
    Thanks for the help.
    Kerby Johnson

    The most reliable way would be to load each driver (and all code using it) using its own classloader.
    But that would likely be overly complicated.
    The most viable solution will likely be (especially as this is a short term project, you say it's going to be retired soon) to ensure a commit after every smaller subset of the total data volume and keep using the Oracle 8 drivers.
    Try forcing a commit after say every 100 records and see if you still have the timeout problems. Most likely this will take care of your problems at the cost of a slight performance decrease (but better somewhat less than optimal performance than risk database corruption or crashing applications, right?).

  • JDBC drivers not working in QA for multibye characters

    Hi,
    we have a problem with JDBC and deployed in DEV system and its works fine, but the same when we deply in QA its not working.
    the problem we are trying to use the simple select query from ORACLE DB.
    In ORACLE DB they converted the chenise char to English after that our JDBC drivers are not able to pick the multibite char.
    XI JDBC Adapter shows below error with a SELECT Query
    SELECT Query:SELECT * FROM APPS.ITEM_XI_V The Chinese character are converted to English and becomes multibye characters.
    Error:Error during conversion of query result to XML: java.sql.SQLException: Fail to convert between UTF8 and UCS2: failUTF8Conv
    Assumption is that the issue with older version of  ojdbc14.zip (JDBC Driver file)
    Reference:http://www.coderanch.com/t/299231/JDBC/java/UTF-conversion
    implement SAP Note 941317 in order to resolve the current issue.
    Note 941317 - XI / PI JDBC Adapter: Known Problems / Incompatibilities JDBC Driver Deployment. Refer to  SAP Note 831162
    after apply as per note for DEV system its works fine, but the same when we did for our QA system still the same error.
    Thanks,
    Venkat.

    Hi Gurus,
    Any idea where i am doing wrong.. in QA i am able to extract data with simple select statment with normal tables...
    Thanks,
    Venkat

  • Oracle JDBC Drivers 8.1.6.0.1

    In the readme file of Oracle JDBC drivers 8.1.6.0.1 (http://technet.oracle.com/software/tech/java/sqlj_jdbc/files/Readme_01.txt)
    it mentioned that it supports "connection pooling" and "distributed transactions".
    Later on in the same file under "Oracle JDBC Connection Caching", it says it "facilitates" users in their own connection pooling. Does this mean there is not complete implementation of connection pooling in the driver and users has to do the work themselves?
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by JDBC_TX ():
    In the readme file of Oracle JDBC drivers 8.1.6.0.1 (http://technet.oracle.com/software/tech/java/sqlj_jdbc/files/Readme_01.txt)
    it mentioned that it supports "distributed transactions".
    As I understand, JDBC transaction is connection based and uses Oracle internal transaction manager. In order to do "distributed transactions", I must have at least two connections open at the same time each to its own database instance. How does the two connections coordinate the transactions? I thought in order to support "distributed transactions", one has to build a higher layer to encapsulate the two connections and therefore coordinate the distributed transactions. Any examples will be welcome.<HR></BLOCKQUOTE>
    The two branches of the transaction are coordinated using 2-phase commit.
    For samples look under
    $ORACLE_HOME/jdbc/demo/samples/oci8/jdbc20-samples/
    null

  • Websphere 6.0 DataSource, Microsoft JDBC driver

    I am trying to configure a DataSource using Websphere 6.0 and Microsoft's JDBC Driver for SQL Server 2000.
    I am configuring a V4 DataSource (not a V6 DataSource).
    After configuring the JDBC Provider and the DataSource, the Test Connection operation generates this message:
    DSRA8101E: DataSource class cannot be used as one-phase:
    ClassCastException: com/microsoft/jdbc/sqlserver/SQLServerDriver incompatible with javax/sql/ConnectionPoolDataSource,
    error code: NOT_A_1_PHASE_DS
    How can I fix this? Is anybody using Microsoft�s JDBC driver and Websphere 6.0?

    looks like it's a problem between single phase and two-phase commit drivers. They're different, of course. there are extra steps required to get SQL Server to participate in 2 phase XA.
    I know how to do it in WebLogic. Not sure about WebSphere.
    %

  • 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.

  • Com.microsoft.jdbc.sqlserver.SQLServerDriver not found

    Hi All,
    I have created an Entity Bean to connect to my Database...when i use the inbuilt OC4J instance of JDeveloper my client application can easily connect to the database using tis Beab....But while using an external oc4j server downloaded explicitly...it says...
    java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver
    I have already set the classpath for msbase.jar, mssqlserver.jar and msutils.jar files....
    even then i am facing the same problem...
    Please help me out....its very urgent....
    Thanx in advance to all....
    Praveen

    Using the Enterprise Manager web interface navigate to the 'Administration' tab.
    Under 'Administrative Tasks' -> 'Properties' you should find Shared libraries. Be SURE that your libraries are in fact located there.
    I'm assuming you have also set up Datasources and connections pools for your database? Verify that they are showing the correct SQL Server driver class.
    Hope this points you in the right direction!

  • Can't download JDBC Drivers

    I've been unable to download Oracle's latest thin jdbc drivers for the past several days. Is anyone else having this problem???

    I've been trying for a couple of days now -- ftp connections to ftp.oracle.com technet.oracle.com and download.oracle.com reveal the same FTP server, and it's completely empty.
    This is going on 4 days now, and I have to wonder why I'm spending this ludicrous amount of money on software from a company that can't get its FTP server up within 4 days that I know of, who knows how long it's been in this state.
    To charge the amount of money Oracle is for its software, you'd think there'd be at least a remotely helpful level of support -- at least available downloads.
    null

Maybe you are looking for