Forums Register Login
JDBC Oracle connection error
Hi all
I was trying to connect to my oracle database with Type 4 driver....also added classes111.zip in my class path then
ran the following java script to check my connection
it gave me the following error
Testing: jdbc:oracle:thin:somelogin/somepass@some.db.server.com:1521:jive
An exception occurred while connecting and performing our test query.

I can't figure out the reason...can someone help me
Kris Iyer
:roll: :roll:
[ Edited bt Dave to format code and fix smilies ]
[ March 27, 2002: Message edited by: David O'Meara ]
Here is the code for the connection part which may help u ,


[ Edited by Dave to format code and fix smilies ]
[ March 27, 2002: Message edited by: David O'Meara ]
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp.
We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please edit your profile and select a new name which meets the requirements.
Hi Mahesh
Big thanks....:-)I made some changes in my script ...earlier i was reffering to SERVICE NAME from my tnsnames and also added classes12.zip to classpath and now it's working fine
A berm makes a great wind break. And Iwe all like to break wind once in a while. Like this tiny ad:
Why should you try IntelliJ IDEA ?

This thread has been viewed 1997 times.

All times above are in ranch (not your local) time.
The current ranch time is
Aug 14, 2018 14:24:35.