The moose likes JDBC and Relational Databases and the fly likes Io exception: Connection refused(DESCRIPTION Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Reply locked New topic

Io exception: Connection refused(DESCRIPTION

shyam prasad prasad

Joined: Sep 18, 2008
Posts: 5
i have got one problem java.sql.SQLException. Io Exception connection refused could not establish the connection when iam connecting oracle9i to my jdbc program i ma trying last two days but it was not executed it says
please help me urgently

Connection con=DriverManager.getConnection("jdbcracle:thin:@localhost:1521racle9i","scott","tiger");

java.sql.SQLException: Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNU
at oracle.jdbc.dbaccess.DBError.throwSqlException(
at oracle.jdbc.dbaccess.DBError.throwSqlException(
at oracle.jdbc.driver.OracleConnection.<init>(
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
at oracle.jdbc.driver.OracleDriver.connect(
at java.sql.DriverManager.getConnection(
at java.sql.DriverManager.getConnection(
at J2.main(

i have tried lot of ways but idid not get answer please help me urgently

Paul Clapham

Joined: Oct 14, 2005
Posts: 19973

Actually you did get an answer the last time you posted the identical question (here). It was a good one too but you just chose to ignore it. Please continue with your original thread.
I agree. Here's the link:
subject: Io exception: Connection refused(DESCRIPTION
It's not a secret anymore!