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
Similar Messages
-
I'm using IBM's WebSphere JDBC connection pool to manage oracle
connections. While the code worked normally on Sun Solaris, I
get ORA-03123, ORA-03127 etc errors on AIX. I'm closing the
resultsets, the statement handles and releasing the connection
after each SQL execution. Is this an AIX JDBC OCI driver problem
or am I missing something.
Thanks,
Ravi
nullI found problem like you but on DIGITAL UNIX 4.0D It's an
AIO Consistency Error.. did you know some thing about this??
and For your question OCI7 driver to connect to ORACLE7.3.4 are
in liboci73.so or another extension depend on your OS (I don't
know what's one on AIX) but it must come with Oracle
Installation Package you can install on AIX :>
Prashant (guest) wrote:
: Hi:
: Does any one know where I could find JDBC/OCI level 2 driver
: for AIX (4.2) running Oracle (7.3.4). All I have been able to
: locate is the NT and Solaris. Both contains classes and shared
: libraries for that machine. I saw someone posted this question
: before, however, suggestions was to use dynamic library
generated
: for Solaris, this will not work. Does anyone have other
: suggestions.
: Any and all help is appreciated.
: Many Thanks
: Prashant.
null -
OCI Driver for oracle 8.1.5 under Linux OS?
Hello *,
Can somebody help me with a JDBC (level 2/OCI) Driver for Linux
(Suse7.1) running a 1.3 JavaVM from Sun?
Many thanx in advanceThe Oracle ODBC driver is a Windows-only product. It won't install on a UNIX machine.
Justin -
How do you install the JDBC-OCI patch for a Windows NT4 IFS Installation?
I am about to install IFS on a Windows NT4 Server. I dont understand the instructions for installing the JDBC-OCI patch.
How do you install the JDBC-OCI drivers?
Do I install them after installing Oracle 8.1.6? and before installing IFS?
Is it necessary to install them?
I would be grateful for as much help as possible, I have never done anything like this before.
[email protected]<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Jaikishan Tada, Oracle Support:
Before installing iFS, you need to install
Oracle8i Client (with Administrator option).
This installs JDBC-OCI driver and other
common Oracle components such as Net8,
OEM ....
The JDBC-OCI driver patch is available from
technet to download. Go to the url - http://technet.oracle.com/software/tech/java/sqlj_jdbc/software_index.htm
and download Oracle8i 8.1.6.0.1 JDBC Drivers for use with JDK 1.1.x.
Apply the patch and carry out iFS installation/configuration.
Go through the iFS installation guide.
Good Luck,<HR></BLOCKQUOTE>
null -
How to use the Oracle 10g JDBC OCI driver in JBoss ?
Greetings,
I deployed ojdbc14.jar in JBoss and I created an Oracle datasource. I have the following questions:
1. In the datasource descriptor file I have:
<connection-url>jdbc:oracle:oci:@(description=(address=(host=localhost)(protocol=tcp)(port=1521))(connect_data=(SERVICE_NAME=xe)))</connection-url>
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
Is it enough in order to use the Oracle 10g JDBC OCI driver ?
2. After having looked-up the datasource and created a connection, the classe of these objects are org.jboss.resource.adapter.jdbc.WrapperDataSource and, respectivelly, org.jboss.resource.adapter.jdbc.WrappedConnection. How can I have access to oracle.jdbc.oci and oracle.jdbc.pool packages ?
Many thanks in advance,
NicolasHello
We were banging our heads on a similar thing, maybe this will help
We needed to convert the wrapped connection to an OracleConnection so that we could do a proxy switch, but maybe you could apply it to your situation anyway
1-you have to convert the Connection object to an OracleConnection in order to use the method that does the proxy switch
The method to do this is getInnermostDelegate()
Once you call this method, you get a new Connection object that can be cast to an OracleConnection object
See below for the snippet of code
// now switch the user and reselect
if (conn instanceof DelegatingConnection) {
properties.put("PROXY_USER_NAME","peter/peter");
oraConn =((DelegatingConnection)conn).getInnermostDelegate();
if (oraConn == null)
out.println("oraConn is null\n");
((OracleConnection)oraConn).openProxySession(OracleConnection.PROXYTYPE_USER_NAME,properties);
2-you have to put a setting in the xml file in conf/Catalina/localhost that allows you to call the getInnermostDelegate() method
By default, Tomcat does not allow you to call this method, it will always return null
You have to change the xml to allow it to return an object
It seems that WebSphere and Tomcat both frown on vendor-specific methods that do not comply with the JDBC standards, but do allow it
Here is the setting:
<parameter>
<!-- NOTE: This is necessary to enable access to the Oracle connection object -->
<name>accessToUnderlyingConnectionAllowed</name>
<value>true</value>
</parameter>
Note, this setting was also put in the conf/server.xml file
Thanks
Peter -
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 anticipationuser566773,
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. -
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
NaiduOne 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();
} -
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.
-
I have downloaded oracle 8.1.6.0 jdbc thin driver(named classes12.zip) to run with jdk1.3 to access oracle 8.0.5, but when I compile and run the jdbccheckup.java downloaded from oracle website like this:
javac -classpath d:\jdbc\classes12.zip jdbccheckup.java
(compile succeed)
java -classpath d:\jdbc\classes12.zip jdbccheckup
an error occured:
Exception in thread "main" java.lang.NoClassDefFoundError:jdbccheckup
Why??????Try this isntead.
java -classpath d:\jdbc\classes12.zip;. jdbccheckup
an error occured:
Exception in thread "main" java.lang.NoClassDefFoundError:jdbccheckup
Why?????? -
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
nullJay (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 -
I just upgraded to Tomcat 6. For older version of Tomcat I was using ojdbc14.jar and for Tomcat 6 I am still using ojdbc14.jar.
Everything is working but wanted to know if there is a newer version of the Oracle Thin Driver for JDBC?There is one version per release of the database (with sometimes minor releases for bugfixes released later. which will have the same filename but different internal version numbers).
Only exception I know of is Oracle 11 which ships with both 1.5 and 1.6 compiled drivers. -
Oracle 8 JDBC thin driver for tomcat
Hi all,
I have tomcat3.3 installed on HP UNIX with java version "HP-UX Java C.01.18.05"
I need to connect to an oracle 8 database using a Oracle JDBC thin driver. Where can I obtain this driver? How to install and configure it for the tomcat application?
Thanks for your help.
Regards
ShriramIf you go to the link which the last person posted, http://technet.oracle.com/software/tech/java/sqlj_jdbc/content.html, there is no indication for HP-UX. The only OS it lists are NT and Solaris. Does anyone know if these versions will work on HP-UX?
Please help.
Thanks,
Sam -
Failed to call Oracle JDBC OCI driver
Hi - there,
I have just loaded JDBC classes for Oracle 8.0.5, which is running on Sun Solaris.
The Path setup for this driver is
CLASSPATH=$ORACLE_HOME/jdbc/lib/classes111.zip
LIBRARY_PATH=$ORACLE_HOME/jdbc/lib:$ORACLE_HOME/lib.
But I am not able to run any test programs and keep getting the error of
"java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriver
Someone can help me to jump-start this driver?
Thank a lot
CharlieTry to use Backslashes in the classpath.
It is a problem of your Classpath, because it don't find the class.
Regards,
Geri -
Oracle 7.3.4.0.2 JDBC Thin Driver for NT 4.0
I'm unable to download the Oracle 7 JDBC driver even after using the GetRight Download utility.
- Oracle 7.3.4.1.0
- jdbc73402-nt.zip
- 2/8/02 10am ET
- IE 5.0 & Netscape 4.7.3
- Win 2000 Terminal
- Error Message : " The document contains no data. "You can try substituting any of the following in the download URL for the product: download-west.oracle.com , download-east.oracle.com , or download-uk.oracle.com
Please let us know if this helps,
OTN
I'm unable to download the Oracle 7 JDBC driver even after using the GetRight Download utility.
- Oracle 7.3.4.1.0
- jdbc73402-nt.zip
- 2/8/02 10am ET
- IE 5.0 & Netscape 4.7.3
- Win 2000 Terminal
- Error Message : " The document contains no data. " -
I have weblogic server 8.1 sp4 running on Linux E3.0 using JRockit 1.4.2_5.
I cannot seem to get the Oracle driver ojdbc14.jar to work. Yes I have added $ORACLE_HOME/bin to my classpath prior to any weblogic classes, I added $ORACLE_HOME/lib and $ORACLE_HOME/jdbc/lib to my LD_LIBRARY_PATH with no luck.
I get the error "no ojdbc10 in java.library.path".
I keep reading in the JDBC driver notes that the driver is compatible with different version of JDK 1.x but not JRockit. Perhaps Oracle 10 has this fixed.
Anyone experiences the same problem ? I am stuck ..Oracle database 10.2 drivers ojdbc14.jar may also be used with JDK 5.0.
http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq.htm#02_03
Maybe you are looking for
-
XP SP3 Adobe Air Installation Problem
After installing Adobe Air Runtime (http://get.adobe.com/air/?promoid=BUIGQ) I do not have the Acrobat_com.exe file in "C:\Program Files\Adobe\Acrobat_com\Acrobat_com.exe". On the other computers this is the file that I am using to start Adobe Air. I
-
FCP quits when exporting ref movie or self contained
This one has be pulling my hair out. When I try to export an hour long project, FCP quits about half way in. Doesn't seem to matter if it is a ref movie or self contained. I get the unexpectedly quit window. I have no idea how to fix this. It is extr
-
Are L2TPv3 endpoints not supported to source from VRFs?
Hi, I have a customer that needs to tunnel serial data from remote sites to a central site. This serial data is HDLC encapsulated and the remote site has a Cisco 1921 router with HWIC4A/S. The central router is a Cisco 2951, also with HWIC4A/S. This
-
I want to add a simple glossary to my training--anyone have suggestions on how to start? Ideally I'd like to be able to import a CSV with terms and definitions and have it autopopulate the content and a simple alphabetic navigation but I'm guessing
-
Why does xls files open with textedit
Here lately when I download files that are .xls the textedit program opens up? I can close and click on the download and it opens with microsoft excel. I download a lot of excel files and this happens all the time. Prior to 2 months ago when I downlo