Is ojdbc5.jar type of thin or oci jdbc driver?

Hi!
I have downloaded ojdbc5.jar(file of jdbc driver classes for oracle 11g) from OTN,but I don't know what kind of jdbc driver class it contains,THIN or OCI?
Thanks!
Huang

I went to the OTN download site. The download area of the page was titled "JDBC Thin for All Platforms". Of course, that doesn't mean much.
So I looked at [url-http://download.oracle.com/otn/utilities_drivers/jdbc/111060/Readme.txt]this ReadMe information, found one line above the at the same place as the download. That might be helpful, would it not?
And, of course, thgere is some added information in the FAQ at
http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq.html
<g>

Similar Messages

  • RMS installation error: JDBC-thin client oracle/jdbc/driver/T2CConnection.getLibraryVersionNumber()

    Trying to Install RMS application 13.2.2 and I get past the pre-installation checks and when I get to the Data Source details and enter the data source details with the check box checked to validate the schema/Test Data Source I get the following error:
    Error Connecting to database URL jdbc:oracle:oci:@rmsdbtst as user rms13 java.lang.Exception:UnsatisfiedLinkError encountered when using the Oracle driver. Please check that the library path is set up properly or switch to the JDBC thin client oracle/jdbc/driver/T2CConnection.getLibraryVersioNumber()
    Checks performed:
    RMS Application code location and directory contents:
    [oracle@test-rms-app application]$ pwd
    /binary_files/STAGING_DIR/rms/application
    [oracle@test-rms-app application]$ ls -ltr
    total 144
    -rw-r--r-- 1 oracle oinstall   272 Dec 7  2010 version.properties
    -rw-r--r-- 1 oracle oinstall   405 Jan 16 2011 expected-object-counts.properties
    -rw-r--r-- 1 oracle oinstall   892 May 13 2011 ant.install.properties.sample
    -rw-r--r-- 1 oracle oinstall 64004 Jun  6  2011 build.xml
    drwxr-xr-x 9 oracle oinstall  4096 Jun 16 2011 rms13
    drwxr-xr-x 3 oracle oinstall  4096 Jun 16 2011 installer-resources
    drwxr-xr-x 3 oracle oinstall  4096 Jun 16 2011 antinstall
    drwxr-xr-x 2 oracle oinstall  4096 Jun 16 2011 ant-ext
    drwxr-xr-x 5 oracle oinstall  4096 Jun 16 2011 ant
    -rw-r--r-- 1 oracle oinstall 11324 Dec 18 09:18 antinstall-config.xml.ORIG
    -rwxr-xr-x 1 oracle oinstall  4249 Dec 18 10:01 install.sh
    drwxr-xr-x 4 oracle oinstall  4096 Dec 18 10:06 common
    -rw-r--r-- 1 oracle oinstall 16244 Dec 19 10:37 antinstall-config.xml
    -rw-r--r-- 1 oracle oinstall   689 Dec 19 10:37 ant.install.log
    [oracle@test-rms-app application]$
    Application installation:
    [oracle@test-rms-app application]$ ./install.sh
    THIS IS the driver directory
    Verified $ORACLE_SID.
    Verified SQL*Plus exists.
    Verified write permissions.
    Verified formsweb.cfg read permissions.
    Verified Registry.dat read permissions.
    Verified Java version 1.4.2.x or greater. Java version - 1.6.0
    Verified Tk2Motif.rgb settings.
    Verified frmcmp_batch.sh status.
    WARNING: Oracle Enterprise Linux not detected.  Some components may not install properly.
    Verified $DISPLAY - 172.16.129.82:0.0.
    This installer will ask for your "My Oracle Support" credentials.
    Preparing installer. This may take a few moments.
    Your internet connection type is: NONE
    Integrating My Oracle Support into the product installer workflow...
         [move] Moving 1 file to /binary_files/STAGING_DIR/rms/application
    Installer preparation complete.
    MW_HOME=/u01/app/oracle/Middleware/NewMiddleware1034
    ORACLE_HOME=/u01/app/oracle/Middleware/NewMiddleware1034/as_1
    ORACLE_INSTANCE=/u01/app/oracle/Middleware/NewMiddleware1034/asinst_1
    DOMAIN_HOME=/u01/app/oracle/Middleware/NewMiddleware1034/user_projects/domains/rmsClassDomain
    WLS_INSTANCE=WLS_FORMS
    ORACLE_SID=rmsdbtst
    JAVA_HOME=/u01/app/oracle/jrockit-jdk1.6.0_45-R28.2.7-4.1.0
    Launching installer...
    To make sure I have connectivity from the app server to the database (on a database server) here are the steps followed:
    [oracle@test-rms-app application]$ tnsping rmsdbtst
    TNS Ping Utility for Linux: Version 11.1.0.7.0 - Production on 19-DEC-2013 10:41:40
    Copyright (c) 1997, 2008, Oracle.  All rights reserved.
    Used parameter files:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = test-rms-db.vonmaur.vmc)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SID = rmsdbtst)))
    OK (0 msec)
    [oracle@test-rms-app application]$
    [oracle@test-rms-app application]$ sqlplus rms13@rmsdbtst
    SQL*Plus: Release 11.1.0.7.0 - Production on Thu Dec 19 10:46:18 2013
    Copyright (c) 1982, 2008, Oracle.  All rights reserved.
    Enter password:
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> exit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    [oracle@test-rms-app application]$
    [oracle@test-rms-app application]$ ping test-rms-db
    PING test-rms-db.vonmaur.vmc (192.168.1.140) 56(84) bytes of data.
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=1 ttl=64 time=0.599 ms
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=2 ttl=64 time=0.168 ms
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=3 ttl=64 time=0.132 ms
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=4 ttl=64 time=0.158 ms
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=5 ttl=64 time=0.135 ms
    --- test-rms-db.vonmaur.vmc ping statistics ---
    5 packets transmitted, 5 received, 0% packet loss, time 4001ms
    rtt min/avg/max/mdev = 0.132/0.238/0.599/0.181 ms
    [oracle@test-rms-app application]$
    [oracle@test-rms-app application]$ uname -a
    Linux test-rms-app.vonmaur.vmc 2.6.18-128.el5 #1 SMP Wed Jan 21 08:45:05 EST 2009 x86_64 x86_64 x86_64 GNU/Linux
    [oracle@test-rms-app application]$
    [oracle@test-rms-app application]$ cat /etc/*-release
    Enterprise Linux Enterprise Linux Server release 5.3 (Carthage)
    Red Hat Enterprise Linux Server release 5.3 (Tikanga)
    [oracle@test-rms-app application]$
    The database is created and all the batch file scripts have been successfully deployed.  Now working on the application server.  The  Weblogic server is installed and 11g forms and reports are installed successfully.
    Any help would be helpful.
    Thanks,
    Ram.

    Please check MOS Notes:
    FAQ: RWMS 13.2 Installation and Configuration (Doc ID 1307639.1)

  • SetString/executeBatch fails in Oracle 10g OCI JDBC driver

    Hi,
    I am using Oracle 10g OCI jdbc driver for batch updates.
    Following is the the code that I am using
    import java.sql.*;
    import oracle.jdbc.*;
    import oracle.jdbc.pool.OracleDataSource;
    public class BatchUpdates
    public static void main(String[] args)
    Connection conn = null;
    Statement stmt = null;
    PreparedStatement pstmt = null;
    ResultSet rset = null;
    int i = 0;
    try
    String url = "jdbc:oracle:oci:@kctutf8";
    try {
    String url1 = System.getProperty("JDBC_URL");
    if (url1 != null)
    url = url1;
    } catch (Exception e) {
    OracleDataSource ods = new OracleDataSource();
    ods.setUser("kctuser");
    ods.setPassword("kana");
    ods.setURL(url);
    conn = ods.getConnection ();
    stmt = conn.createStatement();
    try { stmt.execute(
    "create table mytest_table (col1 number, col2 varchar2(20))");
    } catch (Exception e1) {}
    pstmt = conn.prepareStatement("insert into mytest_table values (?, ?)");
    pstmt.setInt(1, 1);
    pstmt.setString(2, "row 1");
    pstmt.addBatch();
    pstmt.setInt(1, 2);
    pstmt.setString(2, "row 2");
    pstmt.addBatch();
    pstmt.setInt(1, 3);
    pstmt.setString(2, "row 3");
    pstmt.addBatch();
    pstmt.setInt(1, 4);
    pstmt.setString(2, "row 4");
    pstmt.addBatch();
    pstmt.setInt(1, 5);
    pstmt.setString(2, "row 5");
    pstmt.addBatch();
    pstmt.executeBatch();
    rset = stmt.executeQuery("select * from mytest_table");
    while (rset.next())
    System.out.println(rset.getInt(1) + ", " + rset.getString(2));
    catch (Exception e)
    e.printStackTrace();
    finally
    if (stmt != null)
    try { stmt.execute("drop table mytest_table"); } catch (Exception e) {}
    try { stmt.close(); } catch (Exception e) {}
    if (pstmt != null)
    try { pstmt.close(); } catch (Exception e) {}
    if (conn != null)
    try { conn.close(); } catch (Exception e) {}
    When I run this class I get the following output
    1, row 1
    2, row 3
    3, row 5
    4, null
    5,
    But It should have been
    1, row 1
    2, row 2
    3, row 3
    4, row 4
    5, row 5
    The same class runs fine if I use Thin driver.
    Can anyone please help me solve this issue.
    Note: This happens only in case we use setString with Varchar2 in the DB. This works fine if I have two number columns
    Thanks,
    Raja.S

    Please post this question to the Java forum. It is located under "Technologies".

  • Required appropriate OCI JDBC driver for   Oracle 9i

    Required appropriate OCI JDBC driver for Oracle 9i Enterprise Edition Release 9.2.0.6.0.

    Stick to one thread please.
    http://forum.java.sun.com/thread.jspa?messageID=9552360

  • Can't connect using OCI JDBC driver in OC4J 10.1.3.3 standalone

    Hi all,
    I've recently upgraded my JDev from 10.1.3.2 to 10.1.3.3 and now I'm unable to establish any OCI connections with my local Oracle 10.1.0.4 database. Not even through a connection pool. The strangest thing is that when I test an OCI connection running from JDeveloper it works fine and the JDBC jars and the oci client are exactly the same.
    The error is always the same when I execute a test on a connection pool using the OCI driver:
    WARNING J2EE DS-00001 Exception occurred testing connection. Exception: java.sql.SQLException: Closed Connection.
    If I just change the driver to the THIN one, the same test works. If I take the same URL from the OCI test and use it in a test class and run it inside JDeveloper, it works also.
    I've even downloaded the instant client 10.1.0.5 (which happens to be exactly the same version of the JDBC driver that comes with JDev 10.1.3.3) and tried to use it with no success.
    THIN connections are working just fine. The problem happens only when I try to connect via OCI and this problem was not happening in version 10.1.3.2.
    Any help?

    I found the cause of this problem. It turns out that you must be very careful with the environment variable ORACLE_HOME. On Windows, normally, we don't even set this variable because most applications are able to get it from the system's registry.
    Well, it happened that I've edited the script start_oc4j.bat and, for organization reasons, I set the ORACLE_HOME variable with my JDeveloper's home directory (which is the same as my OC4J standalone's). By doing that, I kind of confused the OCI client. Once I removed the "set ORACLE_HOME=C:\JDev" line from the script, everything worked just fine again.
    So, always remember: avoid setting environment variable ORACLE_HOME when using Windows and, if you must set it, be sure to do it right.
    Regards,
    Eduardo.

  • What are the benefits to using the OCI JDBC driver?

    I understand that the Thin JDBC driver is geared toward Applets since it is all Java and relatively small for download. If I am running servlets is there any compelling reason for me to use the OCI driver? I would think my application would be more portable if I stuck with the Thin driver even on the server side. This would allow me to easily move my servlet application to UNIX from NT, Java Web Server to IIS, IIS to Apache... So, does anyone know what one would gain by maintaining the Oracle Client software on the server and using the OCI driver?
    Thanks in advance.

    It's not a separate account. It's simply an additional address on your existing account and you can use it or not use it at your own convenience. Your @me.com address will be unaffected.

  • OCI JDBC Driver migration

    Hi,
    We are trying to make a migration from Thin driver to OCI in a Java-Oracle application. All the paths seems to be OK (OCI classes are in casses12.zip, aren4t they?) , we have an Oacle client in the machine and the program says:"java.lang.UnsatisfiedLinkError:no ocijdbc8 in java.library.path"
    In any case, is it reasonable change from Thin to OCI
    to get better performance?
    Thanks.

    Some more info from gdb at the point of the segmentation fault:
    (gdb) bt
    #0 0x00002ad2b30a1326 in ?? ()
    #1 0x00002aaadbfcc938 in ?? ()
    #2 0x00002ad2b21dea13 in InterpreterRuntime::resolve_invoke () from /usr/local/java/jre/lib/amd64/server/libjvm.so
    Backtrace stopped: previous frame inner to this frame (corrupt stack?)
    (gdb) info reg
    rax 0x2aaaeac240f8 46913571406072
    rbx 0x2aaaeac240f8 46913571406072
    rcx 0x2aaadbfcc938 46913323583800
    rdx 0x0 0
    rsi 0x2aaadbfcc938 46913323583800
    rdi 0x2aaab1c6dba8 46912615406504
    rbp 0x0 0x0
    rsp 0x42675760 0x42675760
    r8 0x2ad2b27e8000 47084426133504
    r9 0x2aaab1c6d7f8 46912615405560
    r10 0x2ad2b27b9c40 47084425944128
    r11 0x2ad2b321e9b0 47084436842928
    r12 0x2 2
    r13 0x426758b0 1114069168
    r14 0x42675918 1114069272
    r15 0x2aaab1c6d000 46912615403520
    rip 0x2ad2b30a1326 0x2ad2b30a1326
    eflags 0x10206 [ PF IF RF ]
    cs 0x33 51
    ss 0x2b 43
    ds 0x0 0
    es 0x0 0
    fs 0x63 99
    gs 0x0 0
    fctrl 0x27f 639
    fstat 0x20 32
    ftag 0xffff 65535
    fiseg 0x2ad2 10962
    fioff 0xb249282f -1303828433
    foseg 0x0 0
    fooff 0x42676cf8 1114074360
    fop 0x55d 1373
    mxcsr 0x1fa0 [ PE IM DM ZM OM UM PM ]

  • Cant get OCI jdbc driver working on Mac OS X

    I have installed the 10g final release for Mac OS X 10.3.7.
    I did a custom install...ONLY the JDBC drivers...nothing else.
    I have gotten the THIN driver to work fine and connect to the database. But when I try to use the OCI driver, I keep getting unsatisifed link errors. I have set my LD_LIBRARY_PATH and such but no luck. Anyone got any ideas for what I need to do?
    Environment vars:
    echo $LD_LIBRARY_PATH
    /Users/michaelm/other/oracle/product/10.1.0/client_1/lib
    This shows that the file in question DOES exist:
    ls -l /Users/michaelm/other/oracle/product/10.1.0/client_1/lib/libocijdbc10.jnilib
    -rw-r--r-- 1 michaelm michaelm 93028 29 Dec 21:22 /Users/michaelm/other/oracle/product/10.1.0/client_1/lib/libocijdbc10.jnilib
    When I run the program, I get this:
    Exception in thread "main" java.lang.UnsatisfiedLinkError: /Users/michaelm/other/oracle/product/10.1.0/client_1/lib/libocijdbc10.jnilib:
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1586)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1511)
    at java.lang.Runtime.loadLibrary0(Runtime.java:788)
    at java.lang.System.loadLibrary(System.java:834)
    at oracle.jdbc.driver.T2CConnection.loadNativeLibrary(T2CConnection.java:2927)
    at oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:225)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:347)
    at oracle.jdbc.driver.T2CConnection.<init>(T2CConnection.java:139)
    at oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:79)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:549)
    at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:196)
    at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:146)
    at Test.getConnection(Test.java:32)
    at Test.main(Test.java:12)
    What else do I need to do?

    Same error. I just don't get it. Here are some of the environment vars:
    echo $ORACLE_HOME
    /Users/michaelm/other/oracle/product/10.1.0/client_1
    echo $LD_LIBRARY_PATH
    /Users/michaelm/other/oracle/product/10.1.0/client_1/lib
    echo $DYLD_LIBRARY_PATH
    /Users/michaelm/other/oracle/product/10.1.0/client_1/lib
    What in the world am I doing wrong? Seems like with such a basic installation (just the JDBC drivers) this thing would work!
    thanks,
    Mike

  • Trying to use OCI Jdbc driver

    I'm using OC4J v2, with JDK1.3.1 under Linux
    what libs / configs are required to use OCI Jdbc Drivers ?
    thanks
    N.

    Debu, I spent much time searching this forum for answers to the ocijdbcX.dll problems in OC4J. I finally found my answer on Metalink. Apparently this is Bug# 1918517. The recommended fix on metalink for this bug solved my problem and is probably the problem that everyone else is experiencing. Setting LD_LIBRARY_PATH and ORACLE_HOME had no affect on OC4J.
    Jeff Kirby
    Lockheed Martin Mission Systems

  • Where can i download oracle oci jdbc driver 1.2?

    http://otn.oracle.com/software/tech/java/sqlj_jdbc/content.html
    some error in this page. several days.

    Please be more specific about the file(s) you are having trouble with.
    Regards,
    OTN

  • Configure Oracle OCI JDBC drivers

    What is the correct configuration of the connection pools in order to use
    Oracle's OCI JDBC driver:
    DB=8.1.7.3
    thanks,
    catharine

    There is a small machine specific library that's part of the JDBC OCI drivers. But it does you no good unless you have the OCI libraries themselves. And you must have exactly the same versions of the JDBC Java code, and that small machine specific library as you do OCI libraries for the driver to work. Those OCI C libraries are licensed products. If you want to use the JDBC OCI driver you should get the small machine specific library and Java code from the same source as the OCI libraries themselves. The JDBC OCI drivers are on the install CDs.
    I must admit, it's not clear to me what the benefit of having the OCI driver available for download is. If you can use it, then you have access to an Oracle install CD or a downloaded installer which will contain the JDBC OCI driver. I guess that if you already have an OCI install, it's easier to download the driver than it is to find the install CD.
    I'm not an expert on what is packaged where or how it's all licensed so I could be confused about some of this. I've asked Product Management to give me a clue. I could use one. I'll post another reply when I hear back.

  • Which driver comes  with oracle9i (thin or OCI)

    I want to install oracle 9i. but I want to know which driver(thin ot OCI) will be installed along along with 9i installation. I want thin, is it possible?
    Thanks for your reply
    Ganibabu

    Hi,
    Both will be available in classes12.jar or classes12.zip.
    Regards
    Pete

  • When I get a date field value using the Oracle thin (type 4) JDBC driver...

    ....in 'DD-MMM-YY' format from an Oracle 8i database and pass it in to the java.util.Date() constructor, I get a IllegalArgumentException. This error doesn't occur when I use the type 2 driver, so it is apparently a driver-specific thing. It happens on both Win32 and Linux.
    Has anyone seen this before? Is there a newer version of the Oracle thin (i.e., type 4) driver than is listed here?
    http://web77-02.us.oracle.com/software/tech/java/sqlj_jdbc/content.html
    Thanks,
    Tom
    [email protected]

    Yup, that original post didn't make much sense, did it? Let's try again.
    I've got an EJB app that runs on WebLogic 6.0 (on Solaris in production, on Win2K for development) and accesses an Oracle 8i database. This app currently uses the Oracle type 2 JDBC drivers. All is well.
    So I wanted to see how it would run on Linux. I've got a Redhat 7.1 box handy, so I installed the JDK and WL6.0 and slapped the ear file on there. Problem! Can't deploy because there are no Oracle drivers on this machine!
    Makes sense. So I started looking around, and it seems installing Oracle on a RH 7.1 box involves patching glibc and other such nastiness. So let's just try the type 4 JDBC driver - no glibc patch, no shared object libraries, just good 'ol pure Java talking to Oracle on port 1521.
    Once I had the URLs and whatnot set up, the app connected to the DB just fine, created the connection pool, read some data, etc. But when my app read a date from the DB and instantiates a new java.util.Date object, I got an IllegalArgumentException - i.e., the date can't be parsed.
    "Hmm... that's odd", I thought, so back I went to my trusty Win2K machine, modified my configuration files to use the type 4 driver and - same error! So I switched back to the type 2 driver - and everything works fine, Dates and all. Hmmm.....
    As you correctly state, that Date constructor is deprecated and I should use DateFormats and GregorianCalendars and whatnot instead.
    But has anyone seen this weird behavior before - code that works fine on a type 2 driver starts throwing exceptions when used with a type 4 driver? Anyone have any solutions?
    Thanks much,
    Tom

  • JDBC OCI和JDBC Thin有什么区别?

    JDBC OCI和JDBC Thin有什么区别?
    效果有什么区别?(都是通过weblogic连db的)

    一般来说
    OCI效率应该高一些
    不过使用的时候一般使用jdbc直接连接
    因为OCI不是纯java实现

  • Upgrading WebLogic 10.0 to use ojdbc5.jar

    I am considering upgrading to ojdbc5.jar in WebLogic 10.0 to go against Oracle 11g.
    1) Is there any reason I should not? Is this supported?
    2) Is it ok to stay on ojdbc4.jar if we're not using the latest JDBC apis?
    3) If it's ok to upgrade, how do I override the ojdbc4.jar since it's referenced in the weblogic.jar manifest without having to edit the file/jar? Change config.xml to something like:
    <class-path>some_path/ojdbc5.jar;some_path/orai18n.jar</class-path>
    4) Also, I've been told to include orai18n.jar, does adding it to the class-path in config.xml include this jar? How do I verify the jar is actually being used?
    Thanks in advance,
    Jim
    Edited by: user614591 on Jan 25, 2010 12:37 PM

    Joe -
    We are facing the following issues: -
    Our setup consists of 1 weblogic home with multiple domains, where each application within the domain uses datasource to connect to different databases. JDBC driver for this datasource is being provided by weblogic's server/lib/ojdbc14.jar file.
    One of the application within a domain need to upgraded to ojdbc5 driver, and that is where we are facing issue. We added ojdbc5.jar and orai18n.jar to our application specific domain/lib directory and update the domain/setDomainEnv.sh with PRE_CLASSPATH entry pointing to the updated jdbc jar locations within domain. I have not deleted / renamed the ojdbc14.jar file under weblogic server/lib directory, since this driver is used by other applications in different domains. When the server starts I do find that the first classpath entry is for ojdbc5.jar and orai18n.jar it is followed by ojdb14.jar entry. I thought that ojdbc5 classes would take precedence, but it doesn't look like its happening and the system is using ojdbc14 classes.
    So is there a way, by which I can, for our domain, not use ojdbc14 jar file without deleting / renaming it from server /lib directory, with the file setup mentioned above?
    Best Regards-
    Dev

Maybe you are looking for