hi,
i am getting error by running the below code so help me please
Class.forName("oracle.jdbc.driver.OracleDriver");
String url="jdbc:oracle:thin:@localhost:1521:sid";
System.out.println("urllllllllll"+url);
Connection conn;
try {
conn = DriverManager.getConnection(url,sysusername,syspassword);
System.out.println("connnnnnnnn"+conn);
Statement stmt = conn.createStatement();
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
adding classes111.jar and classes12.jar but I am getting this error
Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=153092352)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))