Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Connecting to DB crashes Java
Everytime I try to connect to my database using jdbc Java crashes on me.
I use jdk1.2.2 on an Oracle 8.1.5 database on Windows 98SE. Here's my problem
/*
DB access method 1
Class.forName("oracle.jdbc.driver.OracleDriver");
}catch(ClassNotFoundException e){
System.out.println("Could not load Oracle Driver");
}
String user, pass;
user = readEntry("userid: ");
pass = readEntry("password: ");
Connection conn =
DriverManager.getConnection("jdbc:oracle:oci8:"+user+"/"+pass+"@orcl.25hoursaday.com");
or
DriverManager.getConnection ("jdbc:oracle:oci8:@", "scott", "tiger");
or
DriverManager.getConnection("jdbc:oracle:oci8:"+user+"/"+pass+"@");
all cause the following error message to crop up
JAVA caused an invalid page fault in
module JAVAI.DLL at 017f:6ee0fb83.
Registers:
EAX=1000a1e4 CS=017f EIP=6ee0fb83 EFLGS=00010216 EBX=00000000 SS=0187 ESP=0063f11c EBP=0063f1a4 ECX=12e67a4b DS=0187 ESI=014fe480 FS=4e27 EDX=00006874 ES=0187 EDI=00654758 GS=0000Bytes at CS:EIP:
javai.dll is a dll in the lib subfolder of the jre folder in the Oracle
program files
directory.
*/
/*
method 2
OracleDriver ora = new OracleDriver(); Connection conn = ora.defaultConnection();
comment: This just causes java.sql.SQLExceptions to be thrown. */
Anybody have an idea what's wrong? Received on Thu Mar 09 2000 - 01:53:20 CST
![]() |
![]() |