try
adding System.out.printStackTrace() to your catch block..
this
extended information should give you a clue as to the source
of the
error..most likely this is classpath or connect string
related
ruling
out any DB config issues..
____________________________________________________-----Original Message-----
From: Mark Leganza [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 11:00 AM
To: JDJList
Subject: [jdjlist] RE: Java Oracle Coonection
Also tnsping is a utility from oracle that pings the database
server, validating the connection... Also - the server may not
be configured for scott/tiger - you have to enable this, or it
may have been removed.
Regards, Mark
==========================================================
At 10:43 AM 1/30/2003 -0500, you wrote:
What if you try the actual ip address instead of the domain name. Maybe it
can't be resolved. You might want to ping the server from wherever you
are trying to connect from.
Can you connect from this location using something else like sqlplus?
-----Original Message-----
From: Anthony Shaw [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 28, 2003 10:45 AM
To: JDJList
Subject: [jdjlist] Java Oracle Coonection
I have tried many times for help!!!
Using Oracle8i:
code snippet:
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
onnection =
DriverManager.getConnection("jdbc:oracle:thin:@COMP43:1521:orclpp","scott","
tiger");
This is my error:
H:\oracle java>java -classpath .;classes102.zip CreateEmployees
Unable to connect : java.sql.SQLException: 20
What could be wrong?......
thanks all
N!jx�‹$2Kh&بey++"m
2ȱ'rX
W�žr
lmⷶ�ަ\
____________________________________________________
To change your JDJList options, please visit:
http://www.sys-con.com/java/list.cfm
Be respectful! Clean up your posts before replying
____________________________________________________ ____________________________________________________
To change your JDJList options, please visit:
http://www.sys-con.com/java/list.cfm
Be respectful! Clean up your posts before replying
____________________________________________________
To change your JDJList options, please visit:
http://www.sys-con.com/java/list.cfm
Be respectful! Clean up your posts before replying
____________________________________________________
