SQLException: Io exception: The Network Adapter could not establish the con

I have been trying to find an answer to this but can't.

I have posted a question to the JSP queue but just found the JDBC thread...I hope to get better results here.

Any ideas?

Please read this thread for a history on my question.

Thanks

http://forum.java.sun.com/thread.jspa?threadID=5145851&tstart=0

[343 byte] By [abacaxia] at [2007-11-26 21:18:21]
# 1
Your database is either down or not running or your JDBC URL is incorrect.- Saish
Saisha at 2007-7-10 2:57:15 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 2

Thanks for your reply Saish.

Yes, the DB is definitely up and running.

This is my snipit of code:

Class.forName("oracle.jdbc.driver.OracleDriver");

conn = DriverManager.getConnection(

"jdbc:oracle:thin:@pub:1521:pub",

"name",

"password");

Anything look incorrect?

abacaxia at 2007-7-10 2:57:15 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 3
Strange to see the server and database instance name the same. Try using the fully qualified server name.- Saish
Saisha at 2007-7-10 2:57:15 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...