Specifying Different Oracle Drivers

I'm having some issues using some Oracle drivers versions in different applications that use different Oracle versions (8 and 9), is there a way to define for one Connection Pool one version and for another a different one but still have XA support?
Thanks,
Johann

johann renck wrote:
I'm having some issues using some Oracle drivers versions in different applications that use different Oracle versions (8 and 9), is there a way to define for one Connection Pool one version and for another a different one but still have XA support?
Thanks,
JohannHi, nope. The whole JVM will only load one version of a given class.
I would do everything you need to do to use the 10.2.0.3 thin
driver in all cases.
Joe

Similar Messages

  • Oracle drivers not found by servlets after upgrade of JDK

    I am using jakarta-tomcat 4.0.1 with WIN2K.
    After a recent upgrade to jdk 1.4.0_02 from jdk1.3.1, servlets that try to use oracle crash with this error:
    java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriver
         at ProductLookup.loadJDBCDriver(ProductLookup.java:23)
    the code at line 23 is:
    DriverManager.registerDriver ( new oracle.jdbc.driver.OracleDriver());
    This all worked prior to the upgrade of jdk.
    The code at line 23 does work using the command line.
    I did check the ENVIRONMENT VARIABLES - in my limitted knowledge they look OK. But I am sure there MUST be something missing &/or incorrect.
    During execution, the servlet is just not finding "something".
    I am relatively new to JAVA and especially new to servlets.
    What should I look for to solve this problem?
    TIA
    WalkGood

    The oracle drivers are in a file called classes12.zip.
    Make sure that you unzip these files to where the
    servlets can find them.
    %TOMCAT_HOME%\common\classes
    or
    %TOMCAT_HOME%\classes
    or
    %TOMCAT_HOME\webapps\{app name}\WEB-INF\classesIs %TOMCAT_HOME% an environment variable? I have one called CATALINA_HOME. It is set the jakarta folder "C:\jakarta-tomcat-4.0.1"
    Something I noticed: If I execute tomcat "startup.bat" in a command prompt window, I see echo'd messages. One says "Using CLASSPATH: C:\jakarta-tomcat-4.0.1\bin\bootstarp.jar;C:\jakarta-tomcat-4.0.1\lib\tools.jar" but this NOT match the Environment Variable "classpath" which does specify the path to the classes12.zip folder. Should the "catalina.bat" file assemble the classpath to include the same Environment Variable "classpath" in addition to bootstrap.jar and tools.jar?
    Where can I find specific documentation on how to setup the environment for jakarta-tomcat to find the ORACLE drivers during execution of a servlet?
    TIA
    WalkGood

  • Differences in Oracle Drivers

    We're running 5.1 sp11, and we're encountering the ORA-01475 error with the
    Weblogic Oracle Driver.
    The suggestions are to either change to the Oracle Thin driver or to set the
    statement cache to 0.
    It seems to me at this stage that setting the statement cache would be the
    "safest", though it supposedly has some potential performance hit.
    If I were to change to the Thin driver, what kind of issues might I
    encounter? Is the Thin driver faster or slower? Do the different drivers
    have any dramatic compatability issues? We're using CLOBs and BLOBs in our
    application if that has any bearing.
    Thanx!
    Regards,
    Will Hartung
    ([email protected])

    As a further word of warning -- not all classes12.zip are equal. The name classes12.zip
    belongs to at least a half dozen different versions and releases of the Oracle
    thin driver... You shouldn't assume you have the right one. Go to Oracle's website
    and get the right thin driver for your exact database version, as Kenneth recommends...
    "Kenneth A Kauffman" <[email protected]> wrote:
    >
    "Will Hartung" <[email protected]> wrote in message
    news:3e970812$[email protected]..
    We're running 5.1 sp11, and we're encountering the ORA-01475 errorwith
    the
    Weblogic Oracle Driver.
    The suggestions are to either change to the Oracle Thin driver or toset
    the
    statement cache to 0.
    It seems to me at this stage that setting the statement cache wouldbe the
    "safest", though it supposedly has some potential performance hit.
    If I were to change to the Thin driver, what kind of issues might I
    encounter? Is the Thin driver faster or slower? Do the different drivers
    have any dramatic compatability issues? We're using CLOBs and BLOBsin our
    application if that has any bearing.
    Thanx!
    Regards,
    Will Hartung
    ([email protected])
    JDBC drivers vary, especially by version of Oracle. There's even a
    different between 8.1.7.1 and 8.1.7.4. Use the Oracle drivers for the
    version of Oracle that you have for either thin or OCI. Classes12.zip
    should be the library. Add it to your classpath and configure according
    to
    the documentation. You may even notice an increase in performance.
    ken k

  • Can I Specify an Oracle Hint for a Query

    We are BW 3.1 Oracle 9.2.  We have a few InfoCube queries that would perform better if a full table scan on the fact table was done rather than using the system generated Star Transformation hint.
    When use RSRT or other entry points to see the SQL and the Explain plan, I have the option of putting in an Oracle hint and generating another Explain Plan.
    Is there any way to save the query with a different Oracle hint than the Star Transformation hint?

    Klaus -
    Thanks for responding.
    It is only a handful of queries that this is an issue with.  Overall, we are certainly better off using the star transformation. 
    Do you know the reasoning behind letting you specify a hint when running a query through RSRV if you can never actually specify those hints for actual production execution? Is the ability to add a hint anything that we might see in the future?
    In looking into this a little more, I looked at an explain plan for a query on one of our transactional InfoCubes.  We are Oracle 9.2, and transactional Infocubes have B-tree indices rather than bitmap on the F fact table.  Presumably to better support the input of transactions.  I see in the explain plan that with the star transformation, the btree indices are converted to  bitmap, then a bitmap merge, then the result of that is converted back to a btree index to read the F fact table.  Without the star transformation, the query cost is half, so the ability to suppress the star transformation on F fact queries on transactional cubes would also be nice.
    At another job, I used to use Brio to query a data warehouse and although Brio didn't have facility to specify a hint, you could define a calculated field in the query and actually enter the hint text as the calculation and as long as that field was the first to follow the Select stmt, it was recognized as an Oracle hint.  Maybe there could be some way to sneak a hint into the query.  It's not something you would want every query developer doing, but as long as someone knew when it was appropriate to override/surpress star transformation, it would be nice to be able to do.
    John

  • Problems with classpath and oracle drivers

    Hi, i've developed an application that uses oracle drivers "classes12.jar" using Eclipse. While i was writing the code, i manually specified the classpath which contains "classes12.jar" file using Eclipse's own configuration tool and now it works perfect when i run it under Eclipse. I then tried to run it using dos prompt but when i tried to run the program i got "ClassNotFoundException: oracle.jdbc.driver.oracledriver". As you can guess, i thought that was a classpath issue so i set the classpath as follows:
    set CLASSPATH=C:\oracle\ora92\jdbc\lib
    where the directory "C:\oracle\ora92\jdbc\lib" is the one that contains classes12.jar file which i had also specified using Eclipse before.
    After that, i recompiled my application and tried to launch it as follows:
    ->javac Test.java
    ->java Test
    But then i got the following runtime error:
    Exception in thread "main" java.lang.NoClassDefFoundError: Test
    Since this happened after i manually set CLASSPATH variable, this has something to do with that. What should i do now? Thanks in advance.

    Correct - the JAR has to be spelled out in the CLASSPATH.
    I'd also recommend that you not set CLASSPATH using a system environment variable. Better to use the -classpath parameter on javac.exe when you compile and java.exe when you run. Put the command into a script that you invoke when you start up the app. It'll document the fact that it's needed for anyone that comes after you and relieves you from having to change the CLASSPATH on machines you deploy to. And, for good measure, app servers like Tomcat and WebLogic totally ignore the system CLASSPATH. I don't even have one.
    %

  • How do you join two tables from different Oracle schemas using a subquery

    I am trying to join two tables from different Oracle schemas using a subquery. I can extract data from each of the tables without a problem. However, when I combine the select statements using a subquery I get the Oracle error *'ORA-00936: missing expression'*. Since each SELECT statement executes on its own without error I don't understand what is missing. The result set I am trying to get is to match up the LINE_ID from PDTABLE_12_1 in schema DD_12809 with the MAT_DESCRIPTION from table PDTABLE_201 in schema RA_12809.
    The query is as follows:
    sql = "SELECT [DD_12809].[PDTABLE_12_1].LINE_ID FROM [DD_12809].[PDTABLE_12_1] JOIN " _
    + "(SELECT [RA_12809].[PDTABLE_201].MAT_DESCRIPTION " _
    + "FROM [RA_12809].[PDTABLE_201]) AS FAB " _
    + "ON [DD_12809].[PDTABLE_12_1].PIPING_MATER_CLASS = FAB.PIPING_MATER_CLASS"
    The format of the query is copied from a SQL programming manual.
    I also tried executing the query using a straight JOIN on the two tables but got the same results. Any insight would be helpful. Thanks!
    Edited by: user11338343 on Oct 19, 2009 6:55 AM

    I believe you are receiving the error because you are trying to JOIN on a column that doesn't exist. For example you are trying to join on FAB.PIPING_MATER_CLASS but that column does not exist in the subquery.
    If you want to do a straight join without a subquery you could do the following
    SELECT  DD_12809.PDTABLE_12_1.LINE_ID
    ,       FAB.MAT_DESCRIPTION
    FROM    DD_12809.PDTABLE_12_1
    JOIN    RA_12809.PDTABLE_201    AS FAB ON DD_12809.PDTABLE_12_1.PIPING_MATER_CLASS = FAB.PIPING_MATER_CLASS  HTH!

  • URGENT HELP!!. Applying 8.1.7.4 patch in different Oracle Homes.

    Hi all,
    We are using 8.1.7.0 on SunSolaris OS(5). We've 4 oracle instances running on 817 and one on 8174. They are all in different oracle homes.
    Oraclehome1 - 8170
    Oraclehome2 - 8174
    When I tried to put 8174 patch on Oraclehome1 the installation terminates without installing the software and its not giving any errors. In oracInventory logs it displays the following version numbers.
    8.1.7.4 > 8.1.7.4
    I also tried to reinstall full software on Oraclehome1. It is also failing with link errors.
    How can I install 8174 patch in oraclehome1? OR how can upgrade the oracle instance under oraclehome1 to 8174?
    Thanks for any inputs.
    Regards

    Yes I did shutdown the database and stopped all other services running on the machine.

  • How can I specify different settings in CustomSettings.ini based on the OS that is being deployed?

    I originally thought this could be achieved using "OSVersion" or "OSCurrentVersion" but (unless I'm mistaken) those variables are in fact tied to the OS from witch you actually launch the MDT Wizard right? i.e. say I run MDT from within
    Windows PE to deploy Windows 8. The "OSVersion" and "OSCurrentVersion" will contain values for the Windows PE instance that is currently running MDT and not the Windows 8 OS I am actually deploying right? Assuming that is the case then
    is there some variable in MDT that stores version information about the OS you are currently deploying? If so can I use that in CustomSettings.ini to specify different settings for specific OSes I deploy?

    Rens,
    First thanks for responding. Next please don't take my response the wrong way but this is a bit of a pet peeve of mine. Maybe I'm just "doing it wrong" but I have used the TaskSequenceID trick in the past and thats actually where my problem lies.
    Too many people are recommending this course of action without including the caveats. Your response implies that using TaskSequenceID is as simple as just adding "TaskSequenceID" to priority and then creating entries based on the TSIDs themselves.
    In reality getting this to work is far more challenging. One needs to only check the following threads (and several others) for the issues other people are having when they try to use TaskSequenceID in CustomSettings.ini:
    http://social.technet.microsoft.com/Forums/en-US/e17a1952-d1f7-41ef-8231-0d6fcc41882e/mdt-2012-settings-per-task-sequence?forum=mdt#f0810428-e6fd-468e-8c76-ca18b210c191
    http://social.technet.microsoft.com/Forums/en-US/320aafee-07d2-4b96-9138-a902fec7edf5/mdt-2012-custom-rules-by-tasksequenceid-not-working-now
    In fact, following the steps outlined here was the *only* way I was able to get TaskSequenceID to work for me:
    http://www.the-d-spot.org/wordpress/2012/07/20/how-to-use-different-settings-per-task-sequence-with-mdt-2012/
    Even then its causing some erratic issues in some areas like button lag in the Wizard because ZTIGather has to run twice and pre-checked Applications in the wizard still installing even if they are unchecked. Since my needs are more OS-specific (as opposed
    to Task Sequence specific) I was hoping for a better solution. I suppose I can check BDD.log but I was hoping someone here had already encounter this same issue and hit upon a solution they could share. 
    Anyone?

  • How do I specify different emails for a form to send to based on different selections?

    How do I specify different emails for a form to send to based on different selections?
    Creating a form that can be sent to an email address is simple enoug but my problem I can't figure out.  There is a drop down menu on the form and based on what the user selects the form will be sent to 1 of 3 groups of email addresses.  How can I specify which group of email addresses belong to a particular dropdown menu selection?

    You can populate the drop down with a dataprovider that has the dropdown field and the emailgroup field.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
      <mx:Script>
        <![CDATA[
          import mx.events.FlexEvent;
          import mx.collections.ArrayCollection;
          [Bindable] private var dataAC:ArrayCollection = new ArrayCollection([
            {label: "one", email: "[email protected]"},
            {label: "two", email: "[email protected]"},
            {label: "three", email: "[email protected]"},
          private function changeFunc(evt:FlexEvent):void{
            txt.text = evt.currentTarget.selectedItem.email;
        ]]>
      </mx:Script>
      <mx:ComboBox id="cmbx" dataProvider="{dataAC}" valueCommit="changeFunc(event)"
        labelField="label" creationComplete="cmbx.selectedIndex=0"/>
      <mx:Text id="txt"/>
    </mx:Application>
    If this post answers your question or helps, please mark it as such.
    Greg Lafrance - Flex 2 and 3 ACE certified
    www.ChikaraDev.com
    Flex / AIR Development, Training, and Support Services

  • Can I attach two scanners each having a different twain drivers

    Can I attach two scanners each having a different twain drivers?
    I have a brothers all in one printer (scan print fax) it has a twain driver for the scan.
    I want to add a slide scanner to my system, it requires a different twain driver.
    Ia thi a problem? I i have a problem how do i remove one or both twain drivers?

    Two links may help
    In Brother website there is a link describing how to remove drivers.  The example shows multiple drivers, multiple vendors
    http://www.brother-usa.com/FAQs/Solution.aspx?FAQID=200000032625&ProductID=MFC44 20C&Keyword=#.VHNPbIuWXoY
    The second link from Brother shows their supported Yosemite products
    http://support.brother.com/g/s/id/os/macintosh.html

  • Oracle Drivers

    I'm kinda desperate here, and I think you guys can help. Here is some information first.
    Currently using Oracle database, 8i
    Using JSP coding
    On Apache Tomcat.
    OK. I can't connect the JSP to the Oracle database. Obviously I need something like a driver and a connection string.
    Recommended ones so far are oracle.jdbc.driver.OracleDriver (driver) and jdbc:oracle:oci8:@ for connection string.
    Seriously, I have no idea what these are about.
    1) Are there any Oracle drivers I need to further install, or have they been installed already? I always get the javax.servlet.ServletException: No suitable driver error. Is it because I don't have the above driver installed?
    2) What other drivers/connection string do you recommend that are less of a hassle to use?
    3) jdbc:oracle:oci8:@ <--- what is this ??? I've tried searching up but i can't find it. Does it vary from computer to computer?
    4) Are there any drivers that can be supported on Linux? Or are they the same? :(
    5) once i get the drivers in hand, what's the code to connect to it?
    So far I have this
    <%@ page import = "java.sql.*" %>
    <%
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Connection conn = DriverManager.getConnection("jdbc:oracle:oci8:@" ,"abc", "def");
    Statement stmt = conn.createStatement ();
    %>
    Got no idea how to work it to fit any new recommendations you might have... :(
    Please help me I have a deadline in two weeks and everything has been coded fine, except for the database connectivity, which, of all things, is the most important!
    Kindly respond, you experts out there!

    Hi there...
    oracle.jdbc.driver.OracleDriver - this is just a java class. You should be able to find it in classes12.zip. Also you sould add that classes12.zip to the classapth of your webserver. And try to use jdbc:oracle:thin:@db_ip:db_port:db_sid.
    Hope this helps.

  • So how to specify different answer file for different install images in WDS snap-in?

    hello
    in WDS snap-in, in properties on server name, on client tab, we can define an answer file for unattended windows installation on WDS clients.
    my question is, maybe we have added multiple images in WDS snap-in (win xp image, win 7 , win 2008,...)
    now this one answer file applies to all of them ?
    so how to specify different answer file for different install images in WDS snap-in?
    thanks in advanced 

    Under the "Client" tab of WDS, you should only use an answer-file with settings relevant for the installation. This would be credentials for the WDS deployment share, international settings used during the setup and possibly also destination drive
    details (if you want the installation to take care of partitioning the disk etc). The settings relevant for unattend-files used under "Client" would only be of those in phase 1 (WinPE).
    However, if you would like to have specific unattend file for every installation, e.g. Win7, Server 2008, Win 8 etc, you can browse to the image under "Install Images" under the image Groups. There you can select properties for every image and
    have a personal unattend-file.
    hi Joel
    very cool. thanks a lot, that really helped me.
    best regards

  • Oracle 9i and Oracle Forms 6i in 2 different Oracle-Homes

    My OS: Windows XP
    First I installed "Oracle9i Database 9.2.0.1.0" with Oracle-Home-Path "OraHome92".
    Then I wanted to install "Oracle Forms Developer/Services 6i Release 2", because I need to use the Form Builder. I wasn't able to install this in the same Oracle-Home, so I installed it with a new one called "oradev". Now my Oracle Installation-Folder looks like this:
    -oracle
    ---admin
    ---ora92 (comment: HOME 0)
    ---oradata
    ---oradev (comment: HOME 1)
    Working with the database directly works fine, with Enterprise Manager I created a user, database and my first tables. No problems there.
    But now I do have a problem: When I try to connect to my database with Form Builder, I get the following error message:
    ORA-12154: TNS:Der Dienstname konnte nicht aufgelöst werden.
    In english it should be this:
    ORA-12154: TNS: could not resolve service name.
    I guess the problem might be the two different oracle-homes?!??
    Does anybody have an idea how I can connect to my database with Form Builder?

    How can I do that?Use Oracle Net8 Easy Config utility (Windows menu).
    I try to connect with the user I created with
    Enterprise Manager.When you connect to DB you use a username, a password, and a connection string. The last one (a TNS alias) is necessary because you're working in a different Oracle Home, it's the same as you were on a different machine.

  • How to synchronize two different oracle designer repositories

    Hi
    we have the following situation
    we use Oracle designer and SCM repsository to manage our datamodels and server models.
    we have two teams working in two different locations. Both teams are working on the same datamodels/ server models.
    issue is , the network speed is slow between the two locations, so we dont want to use same instance of SCM repository (or in other words same oracle database server) to manage work.
    is there a way/Tool , whereby Both teams can work in separate repositories at their respective locations (i.e. on two different oracle servers ) and we keep transfering the changes (deltas) between two repositories to keep them in sync ?
    Tia and Regards

    You might be able to use a database link to connect from one db to another.

  • Can't Create TNS-connections for different Oracle Homes

    I've installed Oracle 9.2 client and also the Oracle XE 10g Database on my computer. So there are two files "tnsnames.ora"
    (C:\oraclexe\app\oracle\product\10.2.0\server\NETWORK\ADMIN, C:\Programme\ORA92\network\ADMIN). By creating a new connection with
    "TNS" option there is only the content of the XE-tnsnames.ora file. How can I choose the tnsnames.ora in Oracle 9.2 Home?
    Edited by: @chris on 15.05.2009 15:54
    Is there a preference for SQL-Developer to choose any installed Oracle Client?
    Is there a file where I can configure a different Oracle Client for SQL Developer?
    Remark: My "Windows XP - Path" settings are: C:\Programme\ORA92\BIN;C:\oraclexe\app\oracle\product\10.2.0\server\bin;...
    Edited by: @chris on 03.06.2009 19:12
    No comments since 2 weeks :-(
    So I think there is no possibility to select an installed Oracle client when creating "connections" in SQL Developer.
    Would anybody else like to have this feature in future releases of SQL Developer?
    PS: In "SQL Navigator" (by Quest Software) you can select your Oracle Client when creating a connection.

    I had this same issue only with SSMS 2005 x86.
    I unchecked the "Allow inprocess" and I was able to connect.
    You will need the security "Be made using this security context" with the U/P that you mention
    "+same userid and pwd which I use in SQL* Plus to connect to same oracle database+"
    Hopefully you will get pass that issue. The issue I have now is that I can't do a select on
    one of the linked tables.

Maybe you are looking for