Hi to all,
I am new to
java. I am getting
error[b]:"The Network Adapter could not establish" [/b]the connection while establishing connection to oracle database.
//code
try {
String jdbcurl = "jdbc:oracle:thin:@localhost:1521:" + "ORCL";
Class c= Class.forName("oracle.jdbc.driver.OracleDriver");
Driver d = (Driver) c.newInstance();
Properties p = new Properties();
p.put("user", "scott");
p.put("password", "tiger");
Connection con = d.connect(jdbcurl,p);
System.out.println(con);
} catch (Exception e) {
System.out.println("The exception raised is:" + e);
}
If anybody is familar with this one, can help me to resolve this error.
Advanced thanks to all,
withregards,
srini