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 -> JDBC + Oracle 8.1.5 personal

JDBC + Oracle 8.1.5 personal

From: peter30 <hliNOhlSPAM_at_gl.umbc.edu.invalid>
Date: 2000/08/08
Message-ID: <017ab97c.7a31619e@usw-ex0106-048.remarq.com>#1/1

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.

Received on Tue Aug 08 2000 - 00:00:00 CDT

Original text of this message

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