Database not working, yet no errors reported

When i go like this:

System.out.print ("creating connection...");
conn = DriverManager.getConnection (url, "root", "code");
System.out.println (" done");

i only get the "creating connection..." part. Then nothing happens. Kind of like if the database hungs (which i'm certain it does not).

Since i'm pretty new to the DB-idea i'm very sure that it's something trivial i have missed. Is somebody bright enough to see what that could be?

Any other info from me that would help you help me? Just ask!

Kind Regards
(+46/0) 708-70 73 92


  • I forgot to add - when i changed port number from :80 to :1521 i got an error message that goes:

    java.sql.SQLException: ORA-01017: invalid username/password; logon denied

    I have created a "local role" with the same name and password as i enter in the "getConnection (...)" so i guess i have missed something else. What could that be?

    Kind Regards
    (+46/0) 708-70 73 92

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion