Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> JDBC + Oracle 8.1.5 personal
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.