Installing ODBC and JDBC drivers

I have recently downloaded JDBC drivers from the Oracle driver download page.
How do I install them?

JDBC drivers aren't generally "installed" in the standard sense. They're just JAR files-- you put them in your CLASSPATH and you're done.
For ODBC drivers, you need to install the Oracle client, then you can use the Oracle Universal Installer that's part of the client install to install the latest ODBC driver patchset.
Justin

Similar Messages

  • Any difference in the dbms and jdbc drivers btw oracle 8i lite and 9i lite

    Is there any significant difference between oracle 8i lite and oracle 9i lite in terms of database and jdbc drivers?
    If not, it may be better off using oracle8i.

    According to Oracle , 9i lite is more powerful than 8i Lite.
    one thing, 8i Lite is not certified for windows 2000.
    jothi

  • CLASSPATH and JDBC Drivers in a Jar File

    Hi all, I am creating an application in JDev that uses JDBC to connect to a 10g database. I am deploying my application to a jar and running it on the database server using the jdk installed with the database. $ORACLE_HOME/jdk/bin I want to also use the jdbc driver installed in $ORACLE_HOME/jdbc/lib instead of including the driver in my application jar file. How can I cause my jar file to find the jdbc lib?
    Can I register it directly with the DriverMannager using the file? My app knows the $ORACLE_HOME.
    Or do I just include the jdbc driver in my jar?
    John

    I was hoping it would be that easy. But I am still having problems. Here is my setup.
    export MON_JAVA="$ORACLE_HOME/jdk/bin/java -classpath /u01/app/oracle/product/10.2.0/db_1/jdbc/lib/ojdbc14.jar"
    $MON_JAVA -jar PMonitor.jar -c trace
    and I get this error when connecting to the database.
    Exception in thread "main" java.lang.NoClassDefFoundError: oracle/jdbc/OracleDriver
    I also tried the classes.jar with the same results.

  • 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

  • Installing x64 and x86 drivers for a HP Laserjet p1505n printer on Windows Server 2008

    How do you install both x64 and x86 drivers for a p1505n on a 2008 server? I have now managed to install 64 bit drivers but can't install x86 drivers in the normal way using Additional Drivers from the Sharing tab. I am also trying to do similar for a laserjet 1022n printer.

    On the 2008 Server x64 I installed the FULL driver package 163mb.
    I installed the HP P1505n on Server 2008 and made sure that was working.
    Then I went back in and did the Additional Driver thing and when it asked for the driver for x86 I went to the
    C:\hp_P1000_P1500_Full_Solution folder and scrolled to the bottom and there was the x86 XP driver.
    I hope this helps someone.

  • [SOLVED] Steam not working or installing well and AMD drivers issues

    Well, I figured this was the place to post.
    I just installed Arch in my main box. Since I tried to install steam from the repos using pacman but i got the 'package not found'.
    So I downloaded from the mirror in the official arch repos.
    Then i was going to run steam (that's in /usr/bin/steam) and the script couldnt find a file that was just next door. Thing was, the script couldnt find a file next door cause it will try to find it from / . I added /home/[myuser] .
    I changed the code sightly to my directory so it will find the .xz file.
    Then, the client apparently installed (since it created a .steam  dir) but it did not appear on the screen. I tried running it from .steam, but i get absolutely nothing.
    Also, looking at the script, the installation should have created a desktop icon and, it did not. So its possible that the installation itself is not working.
    Since I make this thread (and since i have your attention) , I want to post another problem that may be, maybe lagging my XFCE interface.
    Its the AMD drivers for my 6950 cards. I saw that the drivers ran with good performance on one of the games I like, so I tried to install them.
    Weirdly, they didnt (couldnt run a module at the ending) ... it thre an error saying that there were problems with the installation. I wasnt running X, and no drivers were previously installed.. but I booted into X and it worked, and also I can see the signature saying 'Testing use Only' from AMD at the bottom.
    Last edited by nullwiz (2013-08-23 13:43:47)

    ChemBro wrote:
    You usually get a "package not found", if you don't update pacman (pacman -Sy) beforehand.
    I changed the code sightly to my directory so it will find the .xz file.
    And this sounds like you don't know how to install Arch packages.
    and also I can see the signature saying 'Testing use Only' from AMD at the bottom.
    Um. Where did you get that driver? Because this thing is so old, AMD does not do the watermark thing anymore.
    I did pacman -Sy , why it still cant find it?
    Got the driver from the page, its a beta driver.. You sure? Im triying to reinstall but i still get an error.
    Please, enlighten me.

  • Does wls8.1 install with oracle jdbc drivers in the classpath by default?

    I just went through the 8.1 install tonight and it looks to me like the
    oracle jars are in the default weblogic classpath.
    set
    WEBLOGIC_CLASSPATH=%JAVA_HOME%\lib\tools.jar;%WL_HOME%\server\lib\weblogic_s
    p.jar;%WL_HOME%\server\lib\weblogic.jar;%WL_HOME%\server\lib\ojdbc14.jar
    Why is that? I don't have oracle, and with just learning how to use wls, it
    took me a bit of time to finally figure this piece out (trying to get MySQL
    drivers loaded). Not everyone has Oracle installed, so why put it on the
    classpath for all servers/domains when they startup?
    Thanks.

    I'm not sure what the best practice is.
    The Oracle driver is set in
    bea/weblogic81/common/commEnv.cmd or commEnv.sh.
    There is a WEBLOGIC_CLASSPATH that has the jars in it and I always
    put my stuff at the beginning.
    I suspect that the preferred way of doing this is to update
    /bea/weblogic81/samples/domains/examples/startExamplesServer.cmd
    or whatever script is used to start the server.
    "Flip" <[remove][email protected]> wrote in message news:[email protected]...
    Hey Stephen, thanks for the reply.
    You got it to work without probs? COOL! :> Where did you stick the driver
    and where did you put the jar reference (in which cmd/sh file and where
    abouts in the file)? Inquiring minds want to know! :>>>> I tried looking
    on the web, but I was referenced to some PRE_CLASSPATH params, as well, as
    putting it into my own directories... I'm just looking to find out what dir
    is the best practise to dump the jar file into and where to put the
    reference in a classpath.
    One small note, I do dev in WIN and run production on linux (that might
    change soon, but that's another question, and another server :>).
    Thanks.
    PS BEA, nice domain config wizard with 8.1! Very sweet, I like the
    integrated connection pool and datasource creation!
    "Stephen Felts" <[email protected]> wrote in message
    news:[email protected]...
    The Oracle driver (client jar) is shipped in the box. Having it in theCLASSPATH makes it easier
    for customers that use it.
    If you don't use it and you want to use another driver, it won't get inthe way
    since your alternate driver will have a different classname.
    I installed and ran MySQL with no problems.
    "Flip" <[email protected]> wrote in message
    news:[email protected]...
    I just went through the 8.1 install tonight and it looks to me like the
    oracle jars are in the default weblogic classpath.
    set
    WEBLOGIC_CLASSPATH=%JAVA_HOME%\lib\tools.jar;%WL_HOME%\server\lib\weblogic_s
    p.jar;%WL_HOME%\server\lib\weblogic.jar;%WL_HOME%\server\lib\ojdbc14.jar
    Why is that? I don't have oracle, and with just learning how to usewls, it
    took me a bit of time to finally figure this piece out (trying to getMySQL
    drivers loaded). Not everyone has Oracle installed, so why put it onthe
    classpath for all servers/domains when they startup?
    Thanks.

  • Error while installing connector and printer drivers for MDSD

    Hi experts,
    When installing printer drivers and connector on my handheld i am getting errors.
    I am usind MDSD21 application.
    here are the components i am installing.
    CONNECTOR_WM50_XSL_CRM_1_2_8
    PIPRONEMF8I_WM50_XSL_CRM
    Also pasting the trace file..
    [20100124 12:14:12:856] I [MI/API/Logging           ] ***** LOG / TRACE SWITCHED ON
    [20100124 12:14:12:856] I [MI/API/Logging           ] ***** Mobile Infrastructure version: MI 70 SP 16 Patch 0 Build 200806100346
    [20100124 12:14:12:856] I [MI/API/Logging           ] ***** Current timezone: PST[20100124 12:14:12:856] I [MI/API/Logging           ] ***** Current Trace Level: 50
    [20100124 13:59:13:250] E [MI/CCMS                  ] Config Info: /Windows/Start Menu/MIServer.lnk
    [20100124 13:59:13:253] E [MI/CCMS                  ] java.io.FileNotFoundException: /Windows/Start Menu/MIServer.lnk
    java.io.FileNotFoundException: /Windows/Start Menu/MIServer.lnk
         at java.io.FileInputStream.<init>()
         at java.io.FileInputStream.<init>()
         at java.io.FileReader.<init>()
         at com.sap.ip.me.ccms.configinfo.ConfigInfoCollector.addMobileEngineLnk()
         at com.sap.ip.me.ccms.configinfo.ConfigInfoCollector.addConfigInfoToContainer()
         at com.sap.ip.me.ccms.configinfo.ConfigInfoCollector.createConfigInfoContainer()
         at com.sap.ip.me.ccms.configinfo.ConfigInfoCheckerInboundProcessor.process()
         at com.sap.ip.me.sync.SyncManagerImpl.processSingleContainer()
         at com.sap.ip.me.sync.SyncManagerMerger.processInboundContainers()
         at com.sap.ip.me.sync.SyncManagerImpl.processSyncCycle()
         at com.sap.ip.me.sync.SyncManagerImpl.syncForUser()
         at com.sap.ip.me.sync.SyncManagerImpl.processSynchronization()
         at com.sap.ip.me.sync.SyncManagerImpl.synchronizeWithBackend()
         at com.sap.ip.me.sync.SyncManagerImpl.synchronizeWithBackend()
         at com.sap.ip.me.api.sync.SyncManager.synchronizeWithBackend()
         at com.sap.ip.me.awtapps.home.Home.doSync()
         at com.sap.ip.me.awtapps.home.HomeFrame.doUserActionSync()
         at com.sap.ip.me.awtapps.home.HomeFrame.userActionSync()
         at com.sap.ip.me.awtapps.home.HomeFrame.access$000()
         at com.sap.ip.me.awtapps.home.HomeFrame$SyncThread.run()
         at java.lang.Thread.run()
    [20100124 13:59:49:323] I [MI/API/Logging           ] ***** LOG / TRACE SWITCHED ON
    [20100124 13:59:49:323] I [MI/API/Logging           ] ***** Mobile Infrastructure version: MI 70 SP 16 Patch 0 Build 200806100346
    [20100124 13:59:49:323] I [MI/API/Logging           ] ***** Current timezone: PST[20100124 13:59:49:323] I [MI/API/Logging           ] ***** Current Trace Level: 50
    [20100124 14:00:51:184] E [MI/Core                  ] Exception while reading installation log file (root cause: /MI/bin/ci/archives/DB2E912/9/install.log [java.io.FileNotFoundException])
    [20100124 14:06:58:283] I [MI/API/Logging           ] ***** LOG / TRACE SWITCHED ON
    [20100124 14:06:58:283] I [MI/API/Logging           ] ***** Mobile Infrastructure version: MI 70 SP 16 Patch 0 Build 200806100346
    [20100124 14:06:58:283] I [MI/API/Logging           ] ***** Current timezone: PST[20100124 14:06:58:283] I [MI/API/Logging           ] ***** Current Trace Level: 50
    [20100124 14:24:05:789] E [MI/Sync                  ] Exception while synchronizing via http
    com.sap.ip.me.api.services.HttpConnectionException: Exception while synchronizing (java.io.FileNotFoundException: http://x.x.x.x:8000/sap/bc/MJC/mi_host?sysid=miq&client=300&~language=en&ACKNOWLEDGE=X&)
         at com.sap.ip.me.sync.HTTPSynchronizer.synchronize()
         at com.sap.ip.me.sync.HTTPSynchronizer.synchronize()
         at com.sap.ip.me.sync.HTTPSynchronizer.exchangeData()
         at com.sap.ip.me.sync.SyncManagerImpl.processSyncCycle()
         at com.sap.ip.me.sync.SyncManagerImpl.syncForUser()
         at com.sap.ip.me.sync.SyncManagerImpl.processSynchronization()
         at com.sap.ip.me.sync.SyncManagerImpl.synchronizeWithBackend()
         at com.sap.ip.me.sync.SyncManagerImpl.synchronizeWithBackend()
         at com.sap.ip.me.api.sync.SyncManager.synchronizeWithBackend()
         at com.sap.ip.me.awtapps.home.Home.doSync()
         at com.sap.ip.me.awtapps.home.HomeFrame.doUserActionSync()
         at com.sap.ip.me.awtapps.home.HomeFrame.userActionSync()
         at com.sap.ip.me.awtapps.home.HomeFrame.action()
         at java.awt.Component.handleEvent()
         at com.sap.ip.me.awtapps.home.HomeFrame.handleEvent()
         at java.awt.Window.postEvent()
         at java.awt.Component.postEvent()
         at java.awt.Component.postEvent()
         at java.awt.Component.postEvent()
         at java.awt.Component.dispatchEventImpl()
         at java.awt.Component.dispatchEvent()
         at java.awt.EventDispatchThread.run()
    [20100124 14:44:29:303] I [MI/API/Logging           ] ***** LOG / TRACE SWITCHED ON
    [20100124 14:44:29:303] I [MI/API/Logging           ] ***** Mobile Infrastructure version: MI 70 SP 16 Patch 0 Build 200806100346
    [20100124 14:44:29:303] I [MI/API/Logging           ] ***** Current timezone: PST[20100124 14:44:29:303] I [MI/API/Logging           ] ***** Current Trace Level: 50
    [20100124 14:45:31:739] E [MI/Core                  ] Exception while reading installation log file (root cause: /MI/bin/ci/archives/XMDSD21_SR01_HOTFIX14/1/install.log [java.io.FileNotFoundException])
    [20100124 14:50:53:165] I [MI/API/Logging           ] ***** LOG / TRACE SWITCHED ON
    [20100124 14:50:53:165] I [MI/API/Logging           ] ***** Mobile Infrastructure version: MI 70 SP 16 Patch 0 Build 200806100346
    [20100124 14:50:53:165] I [MI/API/Logging           ] ***** Current timezone: PST[20100124 14:50:53:165] I [MI/API/Logging           ] ***** Current Trace Level: 50
    [20100124 14:55:57:120] E [Unknown                  ] java.lang.NullPointerException
         at com.sap.dsd.init.HHDataInitiator.isEmptyMaterial()
         at com.sap.dsd.init.HHDataInitiator.copyDataFromCheckOut()
         at com.sap.dsd.init.HHDataInitiator.run()
         at com.sap.dsd.init.TaskRunner.runTask()
         at com.sap.dsd.init.TaskRunner.runTasks()
         at com.sap.dsd.ui.tour.Init.display()
         at com.sap.dsd.ui.adapterAWT.ScreenManagerAWT.switchScreen()
         at com.sap.dsd.appctrl.ControllerImpl.nextState()
         at com.sap.dsd.appctrl.ControllerImpl.startup()
         at com.sap.dsd.appctrl.DSDMain.activate()
         at com.sap.dsd.appctrl.DSDMain.activateApplication()
         at com.sap.ip.me.core.ApplicationManager.activateApplication()
         at com.sap.ip.me.core.ApplicationManager.startApplication()
         at com.sap.ip.me.awtapps.home.HomeFrame.startApp()
         at com.sap.ip.me.awtapps.home.HomeFrame.action()
         at java.awt.Component.handleEvent()
         at com.sap.ip.me.awtapps.home.HomeFrame.handleEvent()
         at java.awt.Window.postEvent()
         at java.awt.Component.postEvent()
         at java.awt.Component.postEvent()
         at java.awt.Component.postEvent()
         at java.awt.Component.dispatchEventImpl()
         at java.awt.Component.dispatchEvent()
         at java.awt.EventDispatchThread.run()
    [20100124 14:55:57:233] E [Unknown                  ] java.lang.Exception: INI????#HHDataInitiator#run#Inventory could not be initialized from Check-Out data
         at com.sap.dsd.init.HHDataInitiator.run()
         at com.sap.dsd.init.TaskRunner.runTask()
         at com.sap.dsd.init.TaskRunner.runTasks()
         at com.sap.dsd.ui.tour.Init.display()
         at com.sap.dsd.ui.adapterAWT.ScreenManagerAWT.switchScreen()
         at com.sap.dsd.appctrl.ControllerImpl.nextState()
         at com.sap.dsd.appctrl.ControllerImpl.startup()
         at com.sap.dsd.appctrl.DSDMain.activate()
         at com.sap.dsd.appctrl.DSDMain.activateApplication()
         at com.sap.ip.me.core.ApplicationManager.activateApplication()
         at com.sap.ip.me.core.ApplicationManager.startApplication()
         at com.sap.ip.me.awtapps.home.HomeFrame.startApp()
         at com.sap.ip.me.awtapps.home.HomeFrame.action()
         at java.awt.Component.handleEvent()
         at com.sap.ip.me.awtapps.home.HomeFrame.handleEvent()
         at java.awt.Window.postEvent()
         at java.awt.Component.postEvent()
         at java.awt.Component.postEvent()
         at java.awt.Component.postEvent()
         at java.awt.Component.dispatchEventImpl()
         at java.awt.Component.dispatchEvent()
         at java.awt.EventDispatchThread.run()
    [20100124 14:56:03:820] E [Unknown                  ] Use single thread pricing
    [20100125 08:19:10:792] I [MI/API/Logging           ] ***** LOG / TRACE SWITCHED ON
    [20100125 08:19:10:792] I [MI/API/Logging           ] ***** Mobile Infrastructure version: MI 70 SP 16 Patch 0 Build 200806100346
    [20100125 08:19:10:792] I [MI/API/Logging           ] ***** Current timezone: PST[20100125 08:19:10:792] I [MI/API/Logging           ] ***** Current Trace Level: 50
    [20100125 08:24:26:188] E [Unknown                  ] java.lang.NullPointerException
         at com.sap.dsd.init.HHDataInitiator.isEmptyMaterial()
         at com.sap.dsd.init.HHDataInitiator.copyDataFromCheckOut()
         at com.sap.dsd.init.HHDataInitiator.run()
         at com.sap.dsd.init.TaskRunner.runTask()
         at com.sap.dsd.init.TaskRunner.runTasks()
         at com.sap.dsd.ui.tour.Init.display()
         at com.sap.dsd.ui.adapterAWT.ScreenManagerAWT.switchScreen()
         at com.sap.dsd.appctrl.ControllerImpl.nextState()
         at com.sap.dsd.appctrl.ControllerImpl.startup()
         at com.sap.dsd.appctrl.DSDMain.activate()
         at com.sap.dsd.appctrl.DSDMain.activateApplication()
         at com.sap.ip.me.core.ApplicationManager.activateApplication()
         at com.sap.ip.me.core.ApplicationManager.startApplication()
         at com.sap.ip.me.awtapps.home.HomeFrame.startApp()
         at com.sap.ip.me.awtapps.home.HomeFrame.action()
         at java.awt.Component.handleEvent()
         at com.sap.ip.me.awtapps.home.HomeFrame.handleEvent()
         at java.awt.Window.postEvent()
         at java.awt.Component.postEvent()
         at java.awt.Component.postEvent()
         at java.awt.Component.postEvent()
         at java.awt.Component.dispatchEventImpl()
         at java.awt.Component.dispatchEvent()
         at java.awt.EventDispatchThread.run()
    [20100125 08:24:26:296] E [Unknown                  ] java.lang.Exception: INI????#HHDataInitiator#run#Inventory could not be initialized from Check-Out data
         at com.sap.dsd.init.HHDataInitiator.run()
         at com.sap.dsd.init.TaskRunner.runTask()
         at com.sap.dsd.init.TaskRunner.runTasks()
         at com.sap.dsd.ui.tour.Init.display()
         at com.sap.dsd.ui.adapterAWT.ScreenManagerAWT.switchScreen()
         at com.sap.dsd.appctrl.ControllerImpl.nextState()
         at com.sap.dsd.appctrl.ControllerImpl.startup()
         at com.sap.dsd.appctrl.DSDMain.activate()
         at com.sap.dsd.appctrl.DSDMain.activateApplication()
         at com.sap.ip.me.core.ApplicationManager.activateApplication()
         at com.sap.ip.me.core.ApplicationManager.startApplication()
         at com.sap.ip.me.awtapps.home.HomeFrame.startApp()
         at com.sap.ip.me.awtapps.home.HomeFrame.action()
         at java.awt.Component.handleEvent()
         at com.sap.ip.me.awtapps.home.HomeFrame.handleEvent()
         at java.awt.Window.postEvent()
         at java.awt.Component.postEvent()
         at java.awt.Component.postEvent()
         at java.awt.Component.postEvent()
         at java.awt.Component.dispatchEventImpl()
         at java.awt.Component.dispatchEvent()
         at java.awt.EventDispatchThread.run()
    [20100125 08:24:33:057] E [Unknown                  ] Use single thread pricing
    [20100125 08:27:38:462] E [Unknown                  ] Use single thread pricing
    [20100125 08:28:29:726] E [MI/DSDSYNC               ] Response size=3369541, Actual response size=3369541
    [20100125 08:32:31:003] E [Unknown                  ] Use single thread pricing
    [20100125 09:27:14:483] I [MI/API/Logging           ] ***** LOG / TRACE SWITCHED ON
    [20100125 09:27:14:483] I [MI/API/Logging           ] ***** Mobile Infrastructure version: MI 70 SP 16 Patch 0 Build 200806100346
    [20100125 09:27:14:483] I [MI/API/Logging           ] ***** Current timezone: PST[20100125 09:27:14:483] I [MI/API/Logging           ] ***** Current Trace Level: 50
    [20100125 09:28:24:993] E [Unknown                  ] Customer 0060005626 in tour S0000001224 visit 6 not downloaded; check customer IDoc and middleware.
    [20100125 09:28:24:998] E [Unknown                  ] Customer 0060005460 in tour S0000001224 visit 12 not downloaded;

    applied hotfix

  • MTS and JDBC drivers

    I having trouble getting MTS to work with 8.1.5 on solaris, I think the problem might be that my clients are using the JDBC thin drivers (in classes111.zip). Should this work?

    Yes, but what made me suspect JDBC was the doc says the listener sends back a "reconnect" to tell the client to reconnect to the selected dispatcher. I wasn't sure this was working, since LSNRCTL> SERVICES indicated connections going to the dispatchers but I was getting connect errors back from the JDBC library. Another odd thing is LSNRCTL> SERVICES shows two entries for my service -- both with the same name. The first has a dedicated server only, and the second has a dedicated server and dispatchers.

  • Netbeans and JDBC drivers

    try {
            String driver = "com.mysql.jdbc.Driver";
            Class.forName(driver).newInstance();
    catch( Exception e ) {
            System.out.println("Failed to load the mysql driver");
            return;
         }This code works fine when run outside netbeans, ie. from the command line because my classpath includes the appropriate JDBC driver. When I use the code in netbeans it throws the exception. Why does it do this when my system classpath is set correctly?

    i have exactly the same problem. none of the 4 replies here earlier than this has offered any help. will anyone who knows please help? put in another way, the question is "how do you get your j2se application to connect to a database from within netbeans using jdbc? netbeans have tutorial for a web application connecting with jdbc, but none for j2se application!!!! wonderful! i thought the philosophy was to keep simple things simple and difficult things possible, and i would have thought it should be simple for a j2se app to connect to a dbase. can anyone from netbeans probably reading this please show us how?

  • Installing ODBC Drivers on a Server with multiple users.

    We are trying to install ODBC drivers on our web server and want to know what is the minimum we can install and be able to add a DSN through the MS ODBC Administrator. This is a server that is used by multiple companies and we do not want to do something that will affect them.
    The oracle installation does not warn you when it overwrites existing files, which is why we cannot simply install everything. For example, on my test machine it trashed the Java installation without asking or telling me. I discovered it this morning when I tried to go to a site that uses Java. That was a low risk on the SQL server, because we did not have Java installed. Other elements, though, cannot be risked in that fashion. We have to find out what files are required in order to solve the problem.
    The oracle installation does not warn you when it overwrites existing files, which is why we cannot simply install everything. For example, on my test machine it trashed the Java installation without asking or telling me. I discovered it this morning when I tried to go to a site that uses Java. That was a low risk on the SQL server, because we did not have Java installed. Other elements, though, cannot be risked in that fashion. We have to find out what files are required in order to solve the problem.
    Version 9i on a Windows 2003 Server.

    1) I’m not certain about the overwrite vs separate machine. What happened is that it installed its own Java, which was much older than the Java previously installed. Following the oracle installation, internet explorer was no longer able to find Java at all, prompting for a new Java installation. During the installation, no mention was made of the changes that were being made.
    2) Each company has its own account on our server, its own instance of the database, etc. nowhere in the oracle release notes or the installer could I find anything that provided for a user-limited installation: it was global. Even though the oracle installation suggested, and I accepted, unique folders for its installation targets, the problems mentioned occurred. The web server it wants to install is not possible to be user-limited: it wanted to take over http for the machine.

  • Differences between Oracle JDBC Thin and Thick Drivers

    If any body is looking for this information...
    ============================================================
    I have a question concerning the Oracle JDBC thin vs. thick drivers
    and how they might affect operations from an application perspective.
    We're in a Solais 8/Oracle 8.1.7.2 environment. We have several
    applications on several servers connecting to the Oracle database.
    For redundancy, we're looking into setting up TAF (transparent
    application failover). Currently, some of our apps use the Oracle
    <B>JDBC thin</B> drivers to talk to the database, with a connection
    string that like this:
    <B> jdbc:oracle:thin:@host:port:ORACLE_SID </B>
    In a disaster recovery mode, where we would switch the database
    from one server to another, the host name in the above string
    would become invalid. That means we have to shut down our application
    servers and restart them with an updated string.
    Using the Oracle <B>OCI (thick)</B> driver though, allows us to connect
    to a Net8 service instead of a specific server:
    <B> jdbc:oracle:oci8:@NET8_SERVICE_NAME </B>
    Coupled with the FAILOVER=ON option configured in Net8, it is
    then possible to direct a connection from the first server to
    the failover database on another server. This is exactly what
    we would like to do.
    My question is, from an application perspective, how is the Oracle
    thick driver different from the thin driver? If everything
    else is "equal" (i.e. the thick driver is compatible with the
    app servers) would there be something within the the thick/OCI
    driver that could limit functionality vs. the thin driver?
    My understand, which obviously is sketchy, is that the thick
    driver is a superset of the thin driver. If this is the case,
    and for example if all database connections were handled through
    a configuration file with the above OCI connection string, then
    theoretically the thick driver should work.
    ============================================================
    <B>
    In the case with the Oracle, they provide a thin driver that is a 100% Java driver for client-side use without the need of an Oracle installation (maybe that's why we need to input server name and port number of the database server). This is platform indipendent, and has good performance and some features.
    The OCI driver on the other hand is not java, require Oracle installation, platform dependent, performance is faster, and has a complete list of all the features.
    </B>
    ========================================================
    I hope this is what you expect.
    JDBC OCI client-side driver: This is a JDBC Type 2 driver that uses Java native methods to call entrypoints in an underlying C library. That C library, called OCI (Oracle Call Interface), interacts with an Oracle database. <B>The JDBC OCI driver requires an Oracle (7.3.4 or above) client installation (including SQL*Net v2.3 or above) and all other dependent files.</B> The use of native methods makes the JDBC OCI driver platform specific. Oracle supports Solaris, Windows, and many other platforms. This means that the Oracle JDBC OCI driver is not appropriate for Java applets, because it depends on a C library to be preinstalled.
    JDBC Thin client-side driver: This is a JDBC Type 4 driver that uses Java to connect directly to Oracle. It emulates Oracle's SQL*Net Net8 and TTC adapters using its own TCP/IP based Java socket implementation. <B>The JDBC Thin driver does not require Oracle client software to be installed, but does require the server to be configured with a TCP/IP listener. Because it is written entirely in Java, this driver is platform-independent.</B> The JDBC Thin driver can be downloaded into any browser as part of a Java application. (Note that if running in a client browser, that browser must allow the applet to open a Java socket connection back to the server.
    JDBC Thin server-side driver: This is another JDBC Type 4 driver that uses Java to connect directly to Oracle. This driver is used internally by the JServer within the Oracle server. This driver offers the same functionality as the client-side JDBC Thin driver (above), but runs inside an Oracle database and is used to access remote databases. Because it is written entirely in Java, this driver is platform-independent. There is no difference in your code between using the Thin driver from a client application or from inside a server.
    ======================================================
    How does one connect with the JDBC Thin Driver?
    The the JDBC thin driver provides the only way to access Oracle from the Web (applets). It is smaller and faster than the OCI drivers, and doesn't require a pre-installed version of the JDBC drivers.
    import java.sql.*;
    class dbAccess {
    public static void main (String args []) throws SQLException
    DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
    Connection conn = DriverManager.getConnection
    ("jdbc:oracle:thin:@qit-uq-cbiw:1526:orcl", "scott", "tiger");
    // @machineName:port:SID, userid, password
    Statement stmt = conn.createStatement();
    ResultSet rset = stmt.executeQuery("select BANNER from SYS.V_$VERSION");
    while (rset.next())
    System.out.println (rset.getString(1)); // Print col 1
    stmt.close();
    How does one connect with the JDBC OCI Driver?
    One must have Net8 (SQL*Net) installed and working before attempting to use one of the OCI drivers.
    import java.sql.*;
    class dbAccess {
    public static void main (String args []) throws SQLException
    try {
    Class.forName ("oracle.jdbc.driver.OracleDriver");
    } catch (ClassNotFoundException e) {
    e.printStackTrace();
    Connection conn = DriverManager.getConnection
    ("jdbc:oracle:oci8:@qit-uq-cbiw_orcl", "scott", "tiger");
    // or oci7 @TNSNames_Entry, userid, password
    Statement stmt = conn.createStatement();
    ResultSet rset = stmt.executeQuery("select BANNER from SYS.V_$VERSION");
    while (rset.next())
    System.out.println (rset.getString(1)); // Print col 1
    stmt.close();
    =================================================================

    Wow, not sure what your question was, but there sure was a lot of information there...
    There really is only one case where failover occurs, and it would not normally be in a disaster recovery situation, where you define disaster recovery as the obliteration of your current server farm, network and concievably the operational support staff. This would require a rebuild of your server, network etc and isn't something done with software.
    Fail over is normally used for high availablity that would take over in case of hardware server failure, or when your support staff wants to do maintenance on the primary server.
    Using the thin and thick driver should have ZERO affect on a failover. Transparent failover will make the secondary server the same IP as the primary, therefore the hostname will still point to the appropriate server. If you are doing this wrong, then you will have to point all your applications to a new IP address. This should be something that you tell your management is UNACCEPTABLE in a fail-over situation, since it is almost sure to fail to fail-over.
    You point out that you are providing the TNSNAME, rather than the HOSTNAME when using the thick driver. That's true within your application, but that name is resolved to either a HOSTNAME, or IP ADDRESS before it is sent to the appropriate Oracle server/instance. It is resolved using either a NAME server (same as DNS server but for Oracle), or by looking at a TNSNAMES file. Since the TNSNAMES files profilerate like rabbits within an organization you don't want a fail over that will make you find and switch all the entries, so you must come up with a fail over that does not require it.
    So, the application should not be concerned with either the hostname, or the IP address changing during fail over. That makes use of the thin or thick client acceptable for fail over.
    Don't know if this will help, but this shows the communication points.
    THIN DRIVER
    client --> dns --> server/port --> SID
    THICK DRIVER
    client --> names server --> dns --> server/port --> SID
    client --> tnsnames     --> dns --> server/port --> SID

  • Installing the jdbc drivers

    Hello Guys:
    I am new to Oracle Application DBA stuff and here is what I have to do now.
    I need to install the jdbc drivers in our oracle financials UAT.
    Here is what I heard from our Oracle support:
    ANSWER
    ======
    The Patch #4159795 status is Deleted, indicates that the patch has been deleted from the patch repository. This usually occurs when the patch has been obsoleted.
    However, this bug (BUG:4159795) has been fixed in version 10.2 which means it's solved in the latest releases.
    The JDBC drivers are certified to work with the currently supported versions of the Oracle Database. For example, the JDBC Thin drivers in Oracle Database 10g a re certified to work with the 9.2.x, 9.0.1.x, and 8.1.7 Oracle Database releases.
    However, they are not certified to work with older, unsupported database releases, such as 8.0.x and 7.x.
    http://download.oracle.com/docs/cd/B19306_01/java.102/b14355/getsta.htm#i1008205
    Now please tell me what needs to be done. Should i install this on the application server or on the database server. If any one could give me a heads or give me pointers to documents it will be great.
    Regards,
    Bala

    If you are using Oracle 11i, the JDBC drivers are normally upgraded via a patch during a JDK upgrade (1.3.1, or 1.4.2, or 1.5.0). I am pretty sure the note referenced by the analyst has no relevance to Oracle EBS.
    Upgrading JDBC drivers with Oracle Applications 11i
    http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=164317.1
    Upgrading Oracle Applications 11i to use JDK 1.3
    http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=130091.1
    Upgrading to J2SE 1.4.2 with Oracle Applications 11i
    http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=246105.1
    Using J2SE Version 5.0 with Oracle E-Business Suite 11i
    http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=304099.1

  • 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

  • SAP BI 4.0 SP2 on Linux and Postgresql Datasource via JDBC drivers

    Hi,
    I installed SAP BI Platform 4.0 SP2 on Redhat 5.2 and i try to access as a universe datasource a postgresql database (v8.4). But i don't know how to configure the postgresql JDBC driver on linux server.
    does anyone have a step by step procedure to configure this JDBC postgresql driver on linux ?
    I download this driver : http://jdbc.postgresql.org/download/postgresql-8.4-703.jdbc3.jar
    I read the SAP Data Access document for SAP BI 4.0 SP2 about JDBC connexions, they talk about a SBO file located in $ROOT_DIR/sap_bobj/enterprise_xi40/dataAccess/connectionServer/jdbc , but there isn't any SBO file for postgresql database ?
    Thanks in advance
    JP
    Edited by: Jean-Philippe ARNALOT on Oct 6, 2011 6:58 PM

    Hi
    I found a solution alone, this note 1347514 helps me :
    My conf : Redhat 5.2 + SAP BI 4.0 SP2 + postgresql 8.4 datasource + jdbc drivers
    My solution :
    1) Download JDBC drivers on client side (http://jdbc.postgresql.org/download/postgresql-8.4-703.jdbc3.jar)
    2) Create and export a JDBC connexion for postgresql8
    3) Create and export a universe using this connexion (test a query in universe design tool tools/Querybuilder)
    4) install JDBC drivers on server side, i copied the jar file in this location : $ROOT_DIR/sap_bobj/enterprise_xi40/dataAccess/connectionServer/drivers/java/postgresql-8.4-703.jdbc3.jar
    5) Set your classpath in your .profile : CLASSPATH=$CLASSPATH:/export/logiciels/tes-boxi/sap_bobj/enterprise_xi40/dataAccess/connectionServer/drivers/java/postgresql-8.4-703.jdbc3.jar; export CLASSPATH
    6) Source your .profile
    7) Restart servers (i think restarting only webi server would be ok)
    8) Open BI LaunchPad, start Webi and execute a query on postgresql universe
    It Works with my configuration
    Thanks for your help 
    JP

Maybe you are looking for

  • How can I salvage a defective Time Machine?

    I had a major system failure with multiple kernel craches that wiped my system disk.  No errors reported when I tried to rebuild it from the Time Machine, but I only recovered about 10%.  When I opened Time Machine, there was a list of backup dates g

  • Firefox will not display, and It appears that there is an incompatible program installed.

    How do I locate and remove incompatible programs that are preventing Firefox from displaying on my screen? I have the latest Firefox program installed, but I cannot get it onscreen. I ha ve removed Babylon, or at least I have performed the recommende

  • PO related query

    Hi, We are using the function module BAPI_PO_CREATE for creating PO's,after creating PO it is sent to the vendor through mail or fax and the status is green. Our requirement is that the PO created should not be sent immediately to the vendor, the sta

  • Difference between Yammer and Newsfeed in 2013

    Major benefits using Yammer over Newsfeed in 2013

  • USB Takes a While (rc.sysinit)

    FYI to anyone who needs USB support during rc.sysinit I just spent most of a day trying dozens of modprobe this and modprobe that, trials and errors, with lenthy reboots in between, just to discover: It takes more than 5 seconds from a 'lshwd -a' to