Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> JDBC Problem: Can't establish the connection
Hi,
I have a problem connecting to a database using JDBC.
I use the thin driver. I can connect to the
database using SQLPlus. When I start the following program an
SQLException is thrown:
"java.sql.SQLException: E/A-Exception: The Network Adaper could not
establish the connection"
The simple propgram for testing is:
public class Applik1
{
public static void main(String[] args) throws ClassNotFoundException, SQLException { Class.forName("oracle.jdbc.driver.OracleDriver"); String user = "scott"; String password = "tiger"; String database = "MeineDB"; Connection conn =
}
}
I use Win XP. "notebook" is the name of the computer (do I have to use something different ? It also doesn't work with "127.0.0.1"). The listener is started. Firewall is disabled. I searched the net for several hours now but couldn't find a solution. I would be very grateful if someone could give me a hint.
Greets
Soeren Received on Thu Oct 30 2003 - 19:26:24 CST