0

I get the following error when I try to run my project:

java.sql.SQLException: Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=169870080)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4)))) 

Any ideas?

1
  • 1
    Some source code relating the problem would be appreciated/helpful. Commented Jul 6, 2009 at 13:56

2 Answers 2

3

You're getting an ORA-12505 error ("TNS: listener could not resolve SID given in connection description."). This happens when the SID (System ID) of the database you wish to connect to isn't registered with Oracle's listener. If you can find the JDBC connection information, you may find something that matches this pattern:

jdbc:oracle:thin:[user]/[password]@[host]:[port]:[sid]

In this case, Oracle is telling you that [sid] does not exist on the server [host]. You may be connecting to the wrong server.

Sign up to request clarification or add additional context in comments.

Comments

0

Connection refused means that the server is not allowing your client to connect. Double check the server settings and make sure your host is allowed to connect, at the very least.

Comments