Howdy, Stranger!

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

Categories

Database not working, yet no errors reported

chamsterchamster Member Posts: 662
When i go like this:

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

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
Konrad
----------------------------
(+46/0) 708-70 73 92
chamster@home.se
http://konrads.webbsida.com

Comments

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

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

    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
    Konrad
    ----------------------------
    (+46/0) 708-70 73 92
    chamster@home.se
    http://konrads.webbsida.com

  • Chris BrownChris Brown USAMember Posts: 4,624 ✭✭

    ________ // http://forcoder.org // free video tutorials and ebooks about < Delphi Objective-C C PHP Scratch C# Ruby Python MATLAB Assembly JavaScript PL/SQL R Go Visual Basic .NET C++ Java Swift Visual Basic Perl Prolog Rust Lisp F# COBOL Crystal Lua Dart FoxPro Kotlin Apex Transact-SQL Logo ML D ABAP Alice Erlang Hack Ada Clojure SAS Scala Bash Awk LabVIEW VBScript Julia Scheme Fortran /> __

Sign In or Register to comment.