Win a copy of Functional Reactive Programming this week in the Other Languages forum!
    Bookmark Topic Watch Topic
  • New Topic

Io exception: Connection refused(DESCRIPTION

 
shyam prasad prasad
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
thanks
Class.forName("oracle.jdbc.driver.OracleDriver");


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



java.sql.SQLException: Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNU
M=153092352)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
va)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at J2.main(J2.java:14)


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

thanks
 
Paul Clapham
Sheriff
Posts: 21416
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Report post to moderator
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.
 
    Bookmark Topic Watch Topic
  • New Topic