hi all,
when i run the following code from eclipse
import java.sql.*;
public class db
{
Connection conn;
public static void main(
String[] args)
{
new db();
}
public db()
{
try
{
Class.forName("oracle.jdbc.driver.OracleDriver");
System.out.println("loaded successfully1");
String url = "jdbc:oracle:thin:@localhost:1521:PLSExtProc";
System.out.println("loaded successfully2");
conn = DriverManager.getConnection(url, "SYSTEM", "manager");
System.out.println("loaded successfully3");
}
catch (ClassNotFoundException ex) {System.out.println(ex.getMessage());}
// catch (IllegalAccessException ex) {System.err.println(ex.getMessage());}
// catch (InstantiationException ex) {System.err.println(ex.getMessage());}
catch (SQLException ex) {System.out.println(ex.getMessage());}
}
}
am getting error as:
loaded successfully1
loaded successfully2
Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=135290880)(ERR=12500)(ERROR_STACK=(ERROR=(CODE=12500)(EMFI=4))(ERROR=(CODE=12538)(EMFI=4))(ERROR=(CODE=12560)(EMFI=4))(ERROR=(CODE=508)(EMFI=4))(ERROR=(BUF=''))))
pleade help.
thanks