Seeking for jdbc drivers for oracle

I am new to java. I want to connect java with oracle databases(8i or 9i)
but don't know the driver name and how to use it, and from where i can
download it for free...

Hi ,
To connect to Oracle U certainly need the Thin Driver classes12.zip in the ClassPath . And here is the code Example .
import java.sql.SQLException;
import java.sql.Connection;
import java.sql.Statement;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import oracle.jdbc.driver.*;
import java.sql.DriverManager;
public class MyJdbc
  public MyJdbc( int startPoint)
       try {
          Class.forName( "oracle.jdbc.driver.OracleDriver" );
     }catch(ClassNotFoundException nf)
          System.out.println("Clas Not Found" + nf.toString());
     try
          DriverManager.registerDriver (new  oracle.jdbc.driver.OracleDriver());
          /* Connection  */
             String      url="jdbc:oracle:thin:@10.236.148.52:1521:DPEG";  // Machine IP , POrt No and SID
          Connection con = DriverManager.getConnection(url , "username","pasword");
       String sqlString = "Select EName , Age , Dob From Emp ";     
          Statement stmt = con.createStatement();
          ResultSet rs = stmt.executeQuery(sqlString);
           while(rs.next())
                    System.out.println("Name " + rs.getString("ENAME"));
                    System.out.println("Age " + rs.getString("AGE"));
                    System.out.println("Dob " + rs.getString("DOB"));
           rs.close();
           stmt.close();
           con.close();
    }catch(SQLException z)
      System.out.println("######" + z.toString());
      z.printStackTrace();
  public static void main(String[] args)
    MyJdbc myoracle = new MyJdbc();   
}

Similar Messages

  • JDBC drivers for oracle 8.0.5 on HP UX 11.0

    Where do I find JDBC drivers for oracle 8.0.5 on HP UX 11.0?

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by greg freda ([email protected]):
    Where do I find JDBC drivers for oracle 8.0.5 on HP UX 11.0?<HR></BLOCKQUOTE>
    Did you find out where you can find the drivers for Oracle 8.0.5 HP-Unix ??

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

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

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

  • JDBC drivers for MSSQL 7.0

    Hi,
    We have installed JDBC drivers for MSSQL by following guide "how to install and configure a JMS and JDBC adapter" and they are "msutil.jar, mssqlserver.jar, msbase.jar". Our platform is NETweaver 2004s PI 7.0 on UNIX and Oracle.
    The interfaces are working fine when we are sending data to MSSQL 2000, but when we are sending data to MSSQL 7.0, we are getting errors incompatible drivers.
    Are there seperate drivers MSSQL 7.0 or we need to have different set of drives. Checked Note 639702 and as per note we should be able to find drivers installed on system at
    - (NetWeaver 2004s:)
    usr\sap\<SAPSID>\SYS\exe\<NUC|UC>\Platform\mssjdbc
    I did not find the 'Platform' in my system at the above mentioned path.
    Can anyone help us with this issue.
    Thank You,
    Praveen

    Hi Praveen,
    As I know, there is no JDBC driver MSSQL 7.0, so there is no direct way to get access to it.
    But there is another way to do it if you have access to a MSSQL 2000 or above server.
    In MSSQL 2000 you can create a linked server to the MSSQL 7.0, and then you can use XI to get access to MSSQL 7.0 tables.
    Regards,
    Hui

  • No JDBC drivers for Linux??

    On the Oracle Tech Net site, it seems I can only download
    JDBC drivers for NT or for Solaris... no linux...
    Where can I get Oracle JDBC drivers for 8.0.5 for Linux?
    Thanks!
    Greg
    null

    The thin driver will work from either download (classes111.zip)
    since it is pure java. There is no OCI driver for Linux that I
    know of.
    null

  • JDBC Drivers for Linux

    How come Oracle's web site only has downloads for NT and Solaris. Where do I get the latest JDBC driver for Linux?

    You should be able to use clases111.zip from AIX or NT with your
    Linux client, just copy the file, and add it to your CLASSPATH.
    I'm using classes111.zip from AIX (8.1.5) on NT and Win95
    clients.
    This will work for the thin client, the oci8 needs SQL*Net
    (and some more support libs.) installed to work
    Hilsen Jan
    Greg Patrick (guest) wrote:
    : Well that's no good! I don't have the database client
    : for Linux. Our 8.0.5 DB is on AIX. We have Windows NT
    : 8.0.5 client CD's. I shouldn't need an entire 8.0.5
    : Linux client installation just to use JDBC, should I?
    : JDBC drivers are available for download for NT and Solaris,
    : why not Linux?
    : John Salvo (guest) wrote:
    : : They are included with the 8 and 8i installations.
    : : Greg Patrick (guest) wrote:
    : : : I can't find any JDBC drivers for Linux on the Oracle
    : Technet
    : : : site... It seems very strange that Oracle would have an
    : : : 8i database for Linux but not have JDBC drivers. Is this
    : true?
    : : : All I want is for a java program on a Linux machine to be
    : : : able to use the OCI drivers to talk to the database on
    : another
    : : : machine. Even JDBC thin drivers would be better than
    : nothing.
    : : : Where are they?
    : : : Thanks,
    : : : Greg Patrick
    : : : http://www.abe.com
    null

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

  • Are there any JDBC Drivers for SQL Server 2000?

    Hello Everyone,
    Any news on the JDBC drivers for SQL Server 2000? I know it is not
    certified yet but is there a date when it will be.
    Which versions of WLS will they work with? Any help is appreciated.
    Sincerely,
    --Luis

    Hello Michael,
    Any news on the JDBC drivers for SQL Server 2000? I know it is not
    certified yet but is there a date when it will be.
    Which versions of WLS will they work with? Any help is appreciated.
    Sincerely,
    --Luis
    "Michael Girdley" <[email protected]> wrote in message
    news:3a6549bb$[email protected]..
    Not yet, but they will appear on the web site in about two weeks.
    Thanks,
    Michael
    Michael Girdley, BEA Systems Inc
    Learning WebLogic? Buy the book.
    http://www.learnweblogic.com/
    "Stefano Picozzi" <[email protected]> wrote in message
    news:[email protected]..
    Are there any JDBC Drivers for SQL Server 2000 for Weblogic Server.

  • Looking for LabVIEW drivers for Aritsu MS462XX VNA?

    I'm looking for LabVIEW drivers for the Anritsu model MS4623D Vector Network Analyzer?  Have gone to Aritsu's site and downloaded their tools but no LabVIEW source found.   The other thing is whether anyone's developed LabVIEW interfaces to theirTools (Navigator or Power Tools or SCE)???

    Hi,
    Unfortunately, we do not have an instrument specific driver for this Anritsu model MS4623D. Here is a link to the drivers we do have for Anritsu. We may be able to get communication to your device threw another means. How does your device communicate? For example is it GPIB or Serial. We may be able to use an NI driver and a programming manual for your device and communicate with it in LabVIEW threw this.
    Regards
    Krista S.
    Applications Engineering
    National Instruments

  • Configuration of JDBC drivers for ocnnecting from BOE to Oracle

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

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

  • 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

  • Appropriate JDBC drivers for 7.0 version and SP16

    Hi all
    we are using XI 7.0 SP 16.
    what type/verion of JDBC drivers should be used for database connectivity?
    while i was going through "How to install external JDBC Drivers" it was suggesting to use
    Oracle 9i and Oracle 10g:
    ojdbc14.jar
    u2022 Microsoft SQL Server:
    msbase.jar, mssqlserver.jar, msutil.jar
    (in screen shots  as well it was showing he was using msbase.jar, mssqlserver.jar, msutil.jar and ojdbc14.jar)
    should we use both ojdbc14.jar and msbase.jar, mssqlserver.jar, msutil.jar or else one of them would be sufficient?
    Is OJDBC a type 4 and type 2 driver?
    Full Points are guaranteed
    Regards
    Bhasker

    Hi,
    You have to use ojdbc14.jar or classes12.zip/.jar for Oracle and msbase.jar, mssqlserver.jar, msutil.jar for Microsoft SQL Server. Thus both are required to be deployed on J2EE server.
    And Oracle JDBC is a type 4 driver.
    refer --> http://www.aquafold.com/docs-jdbcdrivers-oracle10g.html
    Refer
    SAP Note : 1078420, 831162, 941317, 1138877
    Thanks
    Swarup
    Edited by: Swarup Sawant on Aug 4, 2008 10:25 AM

  • JDBC Drivers for Windows 2000

    I am new to JDBC and relatively new to Java. I am trying to set up my environment to connect to an Oracle database and am running Windows 2000 Professional. I need advice on what driver I need to install and where to get it. Have looked at Oracle but they only offer drivers for Win NT. Don't want to pay for it either!
    Thanks in advance

    Anything that runs under Win NT will run under Win 2000.
    Search the internet for free JDBC drivers - it might turn that you get what you pay for, however. If your site has an Oracle database then it probably has a support contract - check with your admin.

  • JDBC drivers for Oracle734 on Solaris7 and JDK 1.2

    Hi there,
    I'm trying to JDBC to an Oracle 7.3.4 running on Solaris7 while
    writing JDK 1.2.2 application. Here's the trace of what's
    happenning:
    Connecting to the database...Connecting...
    Exception in thread "main" java.lang.UnsatisfiedLinkError:
    /space/javapkg/oracle7/liboci73jdbc.so: ld.so.1:
    /space/jdk1.2.2/bin/../bin/sparc/native_threads/java: fatal:
    relocation error: file /space/javapkg/oracle7/liboci73jdbc.so:
    symbol makeJavaString: referenced symbol not found
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1330)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1254)
    at java.lang.Runtime.loadLibrary0(Runtime.java:644)
    at java.lang.System.loadLibrary(System.java:815)
    at oracle.jdbc.oci7.OCIDBAccess.logon(OCIDBAccess.java:149)
    at
    oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:103)
    at
    oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:148)
    at java.sql.DriverManager.getConnection(DriverManager.java:515)
    at java.sql.DriverManager.getConnection(DriverManager.java:175)
    at JdbcCheckup.main(JdbcCheckup.java:43)
    Is there a nice solution for that? Please, do not advise to
    upgrade Oracle / degrade JDK: it's not my call and is out of the
    question. There's an existing solution where we use $30,000
    WebLogic ridiculous license just to use their JDBC drivers but
    that's exactly what we want to switch from.
    Sincerely,
    -Evgeni
    null

    Yup, thanks a lot. I am ashamed. I know: "read the FAQ then
    ask; read the FAQ then ask"... Eventually I'll get it :)).
    Thanks again,
    -Evgeni
    Oracle Product Development Team wrote:
    : Our 7.3.4 OCI driver doesn't work with JDK 1.2, but our 8.1.6
    : release of the OCI driver will. In the meantime, you can try
    our
    : 8.1.6SDK thin driver if you have to stick with JDK 1.2. It
    : should be compatible with your 7.3.4 database.
    http://technet.oracle.com/tech/java/sqlj_jdbc/htdocs/jdbc_faq.htm
    : #_1_
    : Evgeni (guest) wrote:
    : : Hi there,
    : : I'm trying to JDBC to an Oracle 7.3.4 running on Solaris7
    while
    : : writing JDK 1.2.2 application. Here's the trace of what's
    : : happenning:
    : : Connecting to the database...Connecting...
    : : Exception in thread "main" java.lang.UnsatisfiedLinkError:
    : : /space/javapkg/oracle7/liboci73jdbc.so: ld.so.1:
    : : /space/jdk1.2.2/bin/../bin/sparc/native_threads/java: fatal:
    : : relocation error: file
    /space/javapkg/oracle7/liboci73jdbc.so:
    : : symbol makeJavaString: referenced symbol not found
    : : at java.lang.ClassLoader$NativeLibrary.load(Native
    : Method)
    : : at java.lang.ClassLoader.loadLibrary0
    : (ClassLoader.java:1330)
    : : at java.lang.ClassLoader.loadLibrary
    : (ClassLoader.java:1254)
    : : at java.lang.Runtime.loadLibrary0(Runtime.java:644)
    : : at java.lang.System.loadLibrary(System.java:815)
    : : at oracle.jdbc.oci7.OCIDBAccess.logon
    : (OCIDBAccess.java:149)
    : : at
    : : oracle.jdbc.driver.OracleConnection.<init>
    : (OracleConnection.java:103)
    : : at
    oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:148)
    : : at java.sql.DriverManager.getConnection
    : (DriverManager.java:515)
    : : at java.sql.DriverManager.getConnection
    : (DriverManager.java:175)
    : : at JdbcCheckup.main(JdbcCheckup.java:43)
    : : Is there a nice solution for that? Please, do not advise to
    : : upgrade Oracle / degrade JDK: it's not my call and is out of
    : the
    : : question. There's an existing solution where we use $30,000
    : : WebLogic ridiculous license just to use their JDBC drivers
    but
    : : that's exactly what we want to switch from.
    : : Sincerely,
    : : -Evgeni
    : Oracle Technology Network
    : http://technet.oracle.com
    null

  • JDBC DRIVERS FOR LINUX (8.1.6)

    So that we may better diagnose DOWNLOAD problems, please provide the following information.
    Where can a person download the JDBC Drivers (CLASSES12.ZIP ORA)
    for Linux? I see information on Solaris and NT but not Linux.
    - Server name
    - Filename
    - Date/Time
    - Browser + Version
    - O/S + Version
    - Error Msg
    Connie

    if you have oracle 8i server you will find the classes12.zip(thin jdbc drivers )in the [ORAHOME]/jdbc/lib directory. You have to added the zip to the classpath in the jserv.properties file eg. wrapper.classpath=D:\oracle\ora81\jdbc\lib\classes12.zip(if you orahome is D:\oracle\ora81.)
    otherwise for just using the java classes for compiling and running in the consile you have to set the classpath of classes12.zip in your system environment.
    Thanks.

Maybe you are looking for

  • Nano Replacement package - never received.  Who do I need to contact/ what do I need to do?

    I received an Apple email saying my Nano Replacement package would be sent in two business days with a return address.  It's now been a week and I haven't received anything.  Who do I need to contact/ what do I need to do? Thanks

  • Just switched over to Firefox; not enabling me to send out in messages since switching over..

    While in Internet Explorer; my yahoo internet account was compromised and I wasn't able to open any emails. I decided to give up on Internet Explorer and moved over to Mozilla Firefox for the added protection it offered. Now that I moved I am not abl

  • Change Log data into SAP BI

    Any best practices for getting change-log data similar to that captured in CDHDR/CDPOS tables into SAP BI? What options exist for tracking changes to sales orders or invoices into SAP BI without touching CDHDR/CDPOS tables? Thanks, Vinny Ahuja

  • How to Call third party Jar into Application

    Hi Can any Expert help ? I want to put third party Jar into my application but i have some problem occur. 1. how to call jar with parameter in application ? 2. when i exit the third party jar task, it will exit my main task too. How to set my main ta

  • OEL 5.7 UEK will NOT boot on OVM 3.0.3

    I just installed Oracle VM 3.0.3, and everything seems fine. I created my first VM, using an OEL 5.7 to create an HVM. The installation seemed okay, but the UEK kernel will NOT boot after the install. The 2.6.18 kernel boots just fine, however. If I