oracle connectivity
- by jayprakash
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