Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

DB connection refused....

843854Jun 16 2004 — edited Jun 16 2004
hi,
Am trying to connect to Oracle and had writterenthe following code snippet to connect one line of it is as here this is in my properties file..

jdbc.URL=jdbc:oracle:thin:@192.168.1.46:1521:<hoststring>

when i run my class it gives me this error

Exception in thread "main" java.sql.SQLException: Io exception: Connection refus
ed(DESCRIPTION=(TMP=)(VSNNUM=153092352)(ERR=12504)(ERROR_STACK=(ERROR=(CODE=1250
4)(EMFI=4))))
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:333)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:404)

at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
va:468)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at Database.main(Database.java:11)

can u help out of this.... i did this many times earlier but now...unable to figureout what the problem is...
thanks in advance....
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 14 2004
Added on Jun 16 2004
1 comment
185 views