File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC 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
Reply locked New topic
Author

Io exception: Connection refused(DESCRIPTION

shyam prasad prasad
Greenhorn

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
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
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

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: http://aspose.com/file-tools
 
subject: Io exception: Connection refused(DESCRIPTION
 
Similar Threads
JDBC Error
Exception in thread "main" java.sql.SQLException: No suitable driver
How to verify JDBC version using oracle thin driver
WSAD Database Problem (JDBC, Oracle)
Connection not available