Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: how to get worked Java with Oracle 8.1.6 on SUSE7

Re: how to get worked Java with Oracle 8.1.6 on SUSE7

From: Alex Filonov <afilonov_at_pro-ns.net>
Date: Mon, 22 Jan 2001 02:26:32 GMT
Message-ID: <94g5oj$hof$1@nnrp1.deja.com>

I tried classes111 with all mentioned jdk versions (IBM 1.1.8, SUN 1.2.2 and SUN 1.3), works fine. I tried it on RedHat Linux 6.2, HP-UX 11. Also tried it on OS/2 with 1.1.8 via network. Works fine with 8.0.5 and 8.1.6. Don't see any reason why it wouldn't work on SUSE. Try any of samples supplied with Oracle jdbc. When compiling and running, you should have classes111.zip in your CLASSPATH.

In article <16La6.2817$cF2.56813_at_ozemail.com.au>,   "Sergei Gouskov" <sgouskov_at_ue.com.au> wrote:
> 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_at_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
>
>

Sent via Deja.com
http://www.deja.com/ Received on Sun Jan 21 2001 - 20:26:32 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US