From: peter30 <hliNOhlSPAM@gl.umbc.edu.invalid>
Subject: JDBC + Oracle 8.1.5 personal
Date: 2000/08/08
Message-ID: <017ab97c.7a31619e@usw-ex0106-048.remarq.com>#1/1
Bytes: 1076
X-Originating-Host: 131.118.254.169
X-Complaints-To: wrenabuse@remarq.com
X-Trace: WReNphoon2 965745792 10.0.2.48 (Tue, 08 Aug 2000 07:43:12 PDT)
Organization: http://www.remarq.com: The World's Usenet/Discussions Start Here
NNTP-Posting-Date: Tue, 08 Aug 2000 07:43:12 PDT
X-Wren-Trace: eEBlTUxVElgTCFhBZQdNB0deUkYLQQRDBR0cEgcFCFgBFFUVAFEDFw==
Newsgroups: comp.databases.oracle.server


Hi,

I am a newbie. I am writing a java application to access oracle
databases. I use JDK1.3 and oracle 8.1.5 personal edition, which are
all installed on the same PC running windows98. The environment was set
as:

Path=d:\oracle\ora81\bin;d:\oracle\ora81\jdbc\lib;d:\jdk1.3\bin;
CLASSPATH=d:\oracle\ora81\jdbc\lib\classes111.zip;d:\oracle\ora81\jdbc\lib\nls_chaset11.zip;

The JDBC part of java program like this:
			Class.forName("oracle.jdbc.driver.OracleDriver");
Connection conn = DriverManager.getConnection ("jdbc:oracle:oci8", 
"scott","tiger");

The program was compiled with no error. But when excuting it, "No valid
driver" was reported for getConnection line.

I don't know why? Do I need to configure Listener and Net service name
? How to do it? It seems that the java program don't know where the
database is, though they are running on the same computer.

Thanks a lot.

Peter.





* Sent from RemarQ http://www.remarq.com The Internet's Discussion Network *
The fastest and easiest way to search and participate in Usenet - Free!



