oracle connectivity

Posted by jayprakash on Stack Overflow See other posts from Stack Overflow or by jayprakash
Published on 2010-05-13T19:00:44Z Indexed on 2010/05/13 19:04 UTC
Read the original article Hit count: 268

Filed under:

String serverName = "127.0.0.1"; String portNumber = "1521"; String sid = "database"; String url = "jdbc:oracle:thin:@" + serverName + ":" + portNumber + ":" + sid; String username = "scott"; String password = "tiger"; connection = DriverManager.getConnection(url, username, password);

Could not connect to the database

© Stack Overflow or respective owner

Related posts about java