A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
REST with Spring (video course)
this week in the
JDBC and Relational Databases
Joined: Jun 05, 2008
Jun 15, 2008 23:24:00
i am getting error by running the below code so help me please
conn = DriverManager.getConnection(url,sysusername,syspassword);
Statement stmt = conn.createStatement();
} catch (
// TODO Auto-generated catch block
adding classes111.jar and classes12.jar but I am getting this error
Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=153092352)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
Joined: Mar 24, 2004
Jun 16, 2008 10:00:00
It looks like you supply a wrong username/password...
Joined: Oct 14, 2005
Jun 16, 2008 12:00:00
"Connection refused" usually means there is no server running at the port you tried to connect to.
In your example, that's port 1521 on localhost. Are you running an Oracle server on the same computer where that code was running? And is it configured to listen at port 1521?
I agree. Here's the link:
subject: database connection
java lang NoClassDefFoundError
connecting to Webtrends reporting DB using JDBC-ODBC
JDBC/Oracle access problem
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015