Article View: aus.computers.linux
Article #444Re: how to get worked Java with Oracle 8.1.6 on SUSE7
From: Craig Jackson
Date: Mon, 22 Jan 2001 09:25
Date: Mon, 22 Jan 2001 09:25
94 lines
4487 bytes
4487 bytes
Looking at your message, I presume you have Oracle installed already. Note that Oracle comes with it's own JVM. I haven't modified the classes111.zip file, I can't think of a reason for doing so. If you just want to write Java that accesses Oracle via JDBC, then simply add the classes111.zip file to your Java classpath, and you should be able to install the latest JDK and have it work with the Oracle JDBC drivers in classes111.zip. Finally, note that Oracle 8i isn't certified to work with SUSE7, which doesn't mean you can't get it working, but it might be a factor in your lack of success. Does Oracle 8i work OK alone? Can you use SQLPLUS etc? Cheers, Craig "Sergei Gouskov" <sgouskov@ue.com.au> wrote in message news:M8La6.2819$cF2.57353@ozemail.com.au... > Hello all, > > Running Oracle 8.1.6 on SUSE7 ( from the book "Oracle 8i for LINUX Starter > Kit" but it looks > identical to that dstributed by Oracle). > I would like to test java but the book says "should have jdk 1.1.6 installed > and configured". > > My questions would be: > > - Has someone had successfuly modified oracle jdbc classes for lunux - > classes111.zip or classes12.zip (last should exist for other platforms) so > that they can be used > with one of JDKs that are preinstalled in SUSE7 ( 1.1.8, 1.2, 1.3 )? > > - (in case that it is the only option :) Has anybody installed JDK 1.1.6 > from adviced in the > book www.blackdown.org? Are preinstalled jdks stay preserved in this case? > What else is actually > modified on linux with jdk1.1.6 installation? > > Any information on installing and running java with oracle8.1.6 on linux > would be appreciated. > > Thank you ahead. > > Sergei > > > > if you still read :) > > I've tried to compile sample code for jdbc access to oracle8i using existing > 1.2 compiler it went without > a message but at runtime got this error: > > Connecting ... Exception in thread "main" java.sql.SQLException: ORA-12154: > TNS:could not resolve service name > > at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java) > at oracle.jdbc.oci8.OCIDBAccess.check_error(OCIDBAccess.java) > at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java) > at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java) > at > oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java) > at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java) > at java.sql.DriverManager.getConnection(DriverManager.java:453) > at java.sql.DriverManager.getConnection(DriverManager.java:133) > at JdbcConnect.main(JdbcConnect.java:21) > > > also tried to compile with existing 1.1.8 compiler: > > oracle@linux:/usr/lib/jdk1.1.8/bin >./javac -d > /tmp/8istarterkit/Java -classpath > ".:/usr/lib/jdk1.1.8/lib/classes.zip:/usr/oracle/jdbc/classes111.zip:/tmp/8i > starterkit/Java" > /tmp/8istarterkit/Java/JdbcConnect.java > > /tmp/8istarterkit/Java/JdbcConnect.java:7: Class > oracle.jdbc.driver.OracleDriver not found in type declaration. > DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver()); > ^ > 1 error > > > > >
Technical Details
Message-ID:
<v0Ta6.76531$xW4.588448@news-server.bigpond.net.au>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!fr.clara.net!heighliner.fr.clara.net!news.tele.dk!139.130.240.98!intgwlon.nntp.telstra.net!news-server.bigpond.net.au!not-for-mailReferences:
<M8La6.2819$cF2.57353@ozemail.com.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d6db,48a7808f336be258 X-Google-Attributes: gid10d6db,public X-Google-Thread: 102983,48a7808f336be258 X-Google-Attributes: gid102983,public X-Google-ArrivalTime: 2001-01-22 01:19:11 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!fr.clara.net!heighliner.fr.clara.net!news.tele.dk!139.130.240.98!intgwlon.nntp.telstra.net!news-server.bigpond.net.au!not-for-mail From: "Craig Jackson" <cjackson@bigpond.net.au> Newsgroups: aus.computers.linux,aus.computers.java References: <M8La6.2819$cF2.57353@ozemail.com.au> Subject: Re: how to get worked Java with Oracle 8.1.6 on SUSE7 Lines: 96 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Message-ID: <v0Ta6.76531$xW4.588448@news-server.bigpond.net.au> Date: Mon, 22 Jan 2001 09:25:47 GMT NNTP-Posting-Host: 61.9.178.93 X-Complaints-To: news@bigpond.net.au X-Trace: news-server.bigpond.net.au 980155547 61.9.178.93 (Mon, 22 Jan 2001 20:25:47 EST) NNTP-Posting-Date: Mon, 22 Jan 2001 20:25:47 EST Organization: BigPond Internet Services (http://www.bigpond.net.au)