JDBC OCI8 driver for Redhat linux 6.1

I have oracle 8.1.5.0.1 Enterprise server loaded on RedHat linux 6.1 and i am trying to access database through jdbc. When I am trying to execute one of the compiled class say Employee.class provided in the JDBC samples directory using OCI* driver it is coming up with an error libocijdbc8.so can not open shared object file: no such file or directory. This libocijdbc8.so file can not be found on the disk. Can some one please provide me leads where can find this driver? ar Oracle's website or somewhere else?. Any help in this regard will be greatly appreciated.
Thanks
Naidu

One more thing, I tried this with both jdk1.1.6_v5 and jdk1.1.8 and also i have class path pointing to $ORACLE_HOME/jdbc/lib/classes111.zip file. and the code is
/* This sample shows how to list all the names from the EMP table
// You need to import the java.sql package to use JDBC
import java.sql.*;
class Employee
public static void main (String args [])
throws SQLException, ClassNotFoundException
Class.forName("oracle.jdbc.driver.OracleDriver");
// Load the Oracle JDBC driver
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
// Connect to the database
// You can put a database name after the @ sign in the connection URL.
Connection conn =
DriverManager.getConnection ("jdbc:oracle:oci8:@NaiduT2", "scott", "tiger");
// Create a Statement
Statement stmt = conn.createStatement ();
// Select the ENAME column from the EMP table
ResultSet rset = stmt.executeQuery ("select ENAME from EMP");
// Iterate through the result and print the employee names
while (rset.next ())
System.out.println (rset.getString (1));
// Close the RseultSet
rset.close();
// Close the Statement
stmt.close();
// Close the connection
conn.close();
}

Similar Messages

  • ODBC Driver for Redhat Linux Configuring

    HI,
    Any one know the procedure of installing ODBC driver in redhat linux.
    The requirement is the application is running on windows and oracle 11g database is running on linux. All the Exe of application uses ODBC driver to connect to oracle database 11g.
    Is there any process to install ODBC driver in linux so that i can ran all the EXE's in linux. Can any one provide the docs on these topics.
    i have read some topics and enquired most of them they said can be done using the wine utility in linux. So i think to post in Oracle forum so that i get some clue to proceed.
    Thanks in advance...
    SAI

    Oracle provides a driver that allows a Windows client to connect to databases on any platform. If you're looking for an ODBC driver for a non-Windows client, there are a few third parties that produce these sorts of drivers (DataDirect comes to mind), but most of them are commercial. http://www.unixodbc.org is an open source project to do the same thing.
    Justin

  • Cannot connect using oracle jdbc oci8 driver

    I am using Oracle 8.1.5 JDBC oci8 driver, but when try to connect, always got ERROR: java.lang.UnsatisfiedLinkError:make_c_state
    With the same code, but change to connect with thin driver, it works fine. Pls tell me the problem. Thank you.

    Hi,
    Here is the snippet code from oracle,
    // You need to import the java.sql package to use JDBC
    import java.sql.*;
    // We import java.io to be able to read from the command line
    import java.io.*;
    class JdbcCheckup
    public static void main (String args [])
    throws SQLException, IOException
    // Load the Oracle JDBC driver
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    // Prompt the user for connect information
    System.out.println ("Please enter information to test connection to the database");
    String user;
    String password;
    String database;
    user = readEntry ("user: ");
    int slash_index = user.indexOf ('/');
    if (slash_index != -1)
    password = user.substring (slash_index + 1);
    user = user.substring (0, slash_index);
    else
    password = readEntry ("password: ");
    database = readEntry ("database (a TNSNAME entry): ");
    System.out.print ("Connecting to the database...");
    System.out.flush ();
    System.out.println ("Connecting...");
    Connection conn =
    DriverManager.getConnection ("jdbc:oracle:oci8:@" + database,
    user, password);
    System.out.println ("connected.");
    // Create a statement
    Statement stmt = conn.createStatement ();
    // Do the SQL "Hello World" thing
    ResultSet rset = stmt.executeQuery ("select 'Hello World' from dual");
    while (rset.next ())
    System.out.println (rset.getString (1));
    System.out.println ("Your JDBC installation is correct.");
    // close the resultSet
    rset.close();
    // Close the statement
    stmt.close();
    // Close the connection
    conn.close();
    // Utility function to read a line from standard input
    static String readEntry (String prompt)
    try
    StringBuffer buffer = new StringBuffer ();
    System.out.print (prompt);
    System.out.flush ();
    int c = System.in.read ();
    while (c != '\n' && c != -1)
    buffer.append ((char)c);
    c = System.in.read ();
    return buffer.toString ().trim ();
    catch (IOException e)
    return "";
    This code can be run without specifying a TNSNAME connection string, as the oci8 jdbc driver will take localhost as default.
    OR
    Only specifying the TNSNAME is enough, i.e. edit %ORACLE_HOME%\network\ADMIN\TNSNAMES.ORA file and locate the XXXXX.WORLD entry in the file. This is the TNSNAME entry referred to.
    Without TNSNAME entry you can re-run,
    %ORACLE_HOME%\jdbc\demo\samples\oci8\basic-samples> java JdbcCheckup
    Please enter information to test connection to the database
    user: system
    password: manager
    database (a TNSNAME entry):
    Connecting to the database...Connecting...
    connected.
    Hello World
    Your JDBC installation is correct.
    Hope that helps.
    Best Luck!
    Senthil Babu J

  • Do_open() problem with JDBC oci8 driver

    I am using the JDBC-OCI driver for NT (jdbc817jdk12-nt.zip). I get a 'unresolved link error': do_open() exception stack trace when I connect to the Oracle 8i DB. I can connect successfully via SQLPlus to the same. I have Oracle 8.1.7 client installed on the system. I also have my PATH pointing to the ORACLE_HOME/bin directory where the ocijdbc8.dll is located.
    Prelimnary analysis shows that the driver's Java layer is not finding the method do_open() in the .dll via JNI.
    How do I resolve this?. Thanks.

    Hi Balakris;
    I am experiencing the same problem with OCI8. Since you posted your message over 2 weeks ago I am hoping you have solved the problem. If so could you add the solution to this topic?
    Thanks
    Vadim
    null

  • JDBC/OCI driver for JDK1.2

    Hi,
    I have an evaluation copy of Oracle8 version 8.0.3.0 and
    downloaded the JDBC/OCI driver for JDK1.1 (classe111.zip). The
    example I used was also taken from this site, which connects to
    the database and lists ename from emp, using scott/tiger.
    Everything worked fine under JDK1.1 but I can't get the code to
    work with JDK 1.2
    Does Oracle provide a JDBC/OCI driver that will work with JAVA
    1.2 or am I missing something. Please note that I am not using
    Oracle8i.
    Any assistance would be greatly appreciated.
    Karim
    null

    Karim,
    Openlink Software (http://www.openlinksw.com) provides JDBC 2.0
    drivers in version 3.2. This version will be hitting our public
    web site next week, but you can get pre-release components from
    ftp://ftp.openlinksw.com/pre-3.2/index.html
    The JDK 1.2 drivers are all the way at the bottom under the
    Windows section.
    HTH,
    Stephen
    Karim (guest) wrote:
    : Hi,
    : I have an evaluation copy of Oracle8 version 8.0.3.0 and
    : downloaded the JDBC/OCI driver for JDK1.1 (classe111.zip). The
    : example I used was also taken from this site, which connects
    to
    : the database and lists ename from emp, using scott/tiger.
    : Everything worked fine under JDK1.1 but I can't get the code
    to
    : work with JDK 1.2
    : Does Oracle provide a JDBC/OCI driver that will work with JAVA
    : 1.2 or am I missing something. Please note that I am not using
    : Oracle8i.
    : Any assistance would be greatly appreciated.
    : Karim
    null

  • Oracle JDBC Thin Driver for oracle 9.2.0.4

    Hi,
    It would be nice if someone please guide me to the download of Oracle JDBC Thin Driver for oracle 9.2.0.4.
    Thanks in anticipation

    user566773,
    As far as I know, all Oracle JDBC drivers are meant to be backward compatible.
    According to the table on the following Web page, the latest Oracle JDBC driver can be used with Oracle 9.2.0.x DBMS.
    http://www.oracle.com/technology/tech/java/sqlj_jdbc/index.html
    Good Luck,
    Avi.

  • Configure BPMJ2EE 10.3.1 for Redhat Linux

    install BPM J2EE 10.3.1 for Redhat Linux and weblogic server 10.3 for linux in Redhat Enterprise Linux 5.
    The oracle DB is installed in Windows 2003 server sp1 of another machine.
    When I configure the BPM, it is failed at about 70%.
    Mush I install weblogic server and BPM and config the BPM as root?

    Hi YE,
    If you are deploying BPM on a Weblogic Server you'll find your workspace on the following url
    http://localhost:7001/workspace
    This is because the all the jar services are deployed to the WLS. You can monitor if it is installed by going into the Process administrator -> Engines -> J2EE jar deployment (or something)
    There you'll find all the jars that are/can be deployed. If you make any changes using the BPM admin center configuration don't forget to recreate and redeploy the jar file.
    Hope this helps.
    Kind regards
    Nils

  • Oracle firewire modules for Redhat Linux 2.6.9-34.EL

    Hi,
    I need oracle firewire modules for Redhat Linux 2.6.9-34.EL. Can you please help where can I find firewire modules for this kernel.
    Thanks
    Haranath

    According to http://www.linux1394.org/download.php you should not need any additional kernel module support. You may need to install the libraw1394 RPM packages, but you can get those from your distribution media or from ULN, if your are subscribed.

  • Is there any Oracle client for RedHat Linux

    Hi,
    I m searching for the Oracle9i client for RedHat linux. Is it available free. If yes please tell the site name.
    thanx
    -biyat

    Which oracle version u have for Solaris intel
    [email protected]
    Hi,
    We have an oracle server (8i) running on Windows NT. I need a oracle client on Solaris Intel 8 to connect to the Oracle server running on NT.
    Thanks
    --John

  • Is Oracle 8 EE available for REdhat Linux 6.0

    Would anyone know whether Oracle 8 EE available
    for REdhat Linux 6.0 ? Also, what is the fundamental
    difference between the standard edition, Oracle 8 and Oracle 8i
    for Linux (briefly).
    Thanks
    Eashwer
    null

    Eashwer Iyer (guest) wrote:
    : Would anyone know whether Oracle 8 EE available
    : for REdhat Linux 6.0 ? Also, what is the fundamental
    : difference between the standard edition, Oracle 8 and Oracle 8i
    : for Linux (briefly).
    : Thanks
    : Eashwer
    Oracle 8i for Linux 2.2 kernels (using glibc 2.1) is supposed to
    be out the first part of June. I don't know what they will do
    about 8SE and 8EE. Maybe supply patches? Anyway, Oracle is
    aware of the problems associated with glibc 2.1 and is working on
    it.
    I installed Caldera Openlinux 2.2 and used a previously installed
    Oracle 8EE installation. So far, it is working. I believe they
    have said that it should work, but you may encounter a few
    errors.
    I believe that Oracle 8EE adds Partitioning and Objects. 8i is
    made for use with the internet and allows you to create stored
    procedures in Java. I have never used the product, but that is
    my understanding of it.
    I hope this helps.
    null

  • Oci8 driver for JDBC on Redhat 6.1

    I have oracle 8.1.5.0.1 Enterprise server loaded on RedHat linux 6.1 and i am trying to access database through jdbc. When I am trying to execute one of the compiled class say Employee.class provided in the JDBC samples directory using OCI* driver it is coming up with an error libocijdbc8.so can not open shared object file: no such file or directory. This libocijdbc8.so file can not be found on the disk. Can some one please provide me leads where can find this driver? ar Oracle's website or somewhere else?. Any help in this regard will be greatly appreciated.
    Thanks
    Naidu

    One more ething I tried this with both jdk1.1.6_v5 and jdk1.1.8 and my class path is pointing to the $Oracle_Home/jdbc/lib/classes111.zip?. ANd the the Example i am using is Employee.java and appending my database name NaiduT2.
    Thanks
    Naidu

  • Need jdbc driver for Ingres, linux

    where can I find a try version of linux jdbc driver for Ingres.
    how to know what jdbc drivers are in the jdk's java.sql?

    where can I find a try version of linux jdbc driver
    for Ingres.I'd check the driver list on the Javasoft site http://industry.java.sun.com/products/jdbc/drivers
    Other good resources can be found here http://ourworld.compuserve.com/homepages/Ken_North/jdbcvend.htm and here http://www.javaskyline.com/database.html#ordbms
    how to know what jdbc drivers are in the jdk's
    java.sql?I believe its only the JDBC/ODBC bridge but the JDBC documentation should tell you.
    Col

  • Is there free jdbc type4 driver for oracle?

    i neen to connect to oracle to develop my application, but there's a problem when tryin' to resolve peoblem of character set. in oracle, as i know, it uses unicode that resulting in the font code, which is not falling into the character set of unicode, whould cause failure in translating user defined font code. beside, for i do not know what kind of license that oracle jdbc type4 driver publishes, hope someone are able to tell me wheather there's any software like freetds in sql2000, because, if necessary, i may need to redistrubite the jdbc driver for my own use!
    thanks in advice,

    Oracle has drivers available from their site (free ones) for java and the specific version of Oracle you are running.

  • Fonts for RedHat Linux

    The Adobe font store lists fonts for Windows and Mac.  What about fonts for Linux?
    We are using LaTeX on RedHat Linux and a requirement is to use the Adobe Univers 57 Condensed font family in a report I am generating.
    The IT department is leaning towards requiring use of Type 1 fonts rather than allowing use of OpenType fonts.
    Which Type 1 product (Mac or Windows)  do we need to license for use on Linux?  And just in case they allow OpenType fonts, which OpenType product (Mac or Windows)  do we need to license for use on Linux?
    Is there anything else we need to consider in regards to using Adobe Fonts on Linux?  Same for use with LaTeX on Linux?

    You can almost certainly use Windows Type 1 fonts in your Linux app (though some require .AFM files, these are also supplied with the fonts, even though Windows doesn't need them).
    On the OpenType side, the fonts are the same files for Mac and Windows.
    Your only complication is that to use the Adobe download manager and get the files in the first place, you may have to do the purchase from either Windows or Mac OS.
    Regards,
    T

  • JDBC thin driver for oracle 7.1.3

    Hi,
    we r using Oracle 7.1.3. i would like to know where i can get the
    thin driver for java compatible with the oracle version 7.1.3 so
    that i need not install an oracle client in the clients pc.
    thanks
    veera
    null

    Jay (guest) wrote:
    : BUBBA (guest) wrote:
    : : Veera Nagendran (guest) wrote:
    : : : Hi,
    : : : we r using Oracle 7.1.3. i would like to know where i can
    : get
    : : the
    : : : thin driver for java compatible with the oracle version
    : 7.1.3
    : : so
    : : : that i need not install an oracle client in the clients pc.
    : : : thanks
    : : : veera
    : : Thedatabase you're using went out of support over 2 years
    ago.
    : : oracle doesn't provide jdbc drivers for anything less than
    : : supported version 7.3.4.
    : So why does Oracle make this claim
    : "The Thin driver does not require Oracle software on the client
    : side. It connects to any Oracle database of version 7.2.x and
    : higher. The driver requires a TCP/IP listener on the server
    : side. " ???
    : Jay
    re-read my earlier reply -- the comment was :
    Thedatabase you're using went out of support over 2 years
    ago. oracle doesn't provide jdbc drivers for anything less
    than the minimum supported version ---> 7.3.4.At no time did i refer to the client s/w being required !!
    also it was not tested against unsupported version of the
    rdbms ...
    also rdbms 7.1.3 isn't y2k compliant.
    use it at your own risk..
    what "claim" are you saying oracle made ??
    null

Maybe you are looking for

  • CS2 Premium reinstalling Adobe Photoshop activation problems

    To: Adobe.com From: Paul Sacca [email protected] Subject: CS2 Premium To Whomever it Concerns, After recently upgrading my computer's CPU, Memory and Graphics it became necessary to singularly reinstall my Adobe Photoshop (inc. Illustrator & Bridge)

  • Moved music folder to external drive, how do I get Match/ITunes to recognise it?

    Hi guys, I've been rather stupid in restoring my computer. I moved all the music to an external harddrive before I restored my PC but forgot to bring the Itunes library file with it. I've got ITunes Match so I can stream all my songs, but is there an

  • Premiere cs4 will not export sequence

    I am not new to Premiere, but I am  new to the CS4 version. I have set up a simple serquence with a single  dissolve between clips. But i cannot export it to any format. I am on a PC using XP Professional. My Procedure: I  select the sequence created

  • Macbook microphone is not working

    I have a Macbook, 2.26 GHz Intel Core 2 Duo 2GB 1067 Mhz DDR3 Recently, my macbook's microphone has not been working. I tried photobooth and garageband and no sound gets recorded. I have no idea whats wrong? Could someone please help me? Thank you.

  • Permissions all_tab_columns

    Hello to everybody, I've got a small problem. I have got a function which compairs the tables and colums of two schemas of the same data base. this function is defined in one of the two schemas. The function has two querys : select count(*) from all_