刚才的问题已解决,但是还有问题!连接oracle数据库!!!
qyluo 2003-03-25 03:57:57 protected Statement openDB() {
Statement stmt = null;
try {
DBDriver = "oracle.jdbc.driver.OracleDriver";
ConnStr = "jdbc:oracle:thin:@192.168.0.103:1521:ora1";
Class.forName(DBDriver);
Connection conn = DriverManager.getConnection(ConnStr, LoginName, Passwd);
stmt = conn.createStatement();
}
catch(ClassNotFoundException e) {
System.out.println("mydb(): " + e.getMessage());
}
catch(SQLException e2) {
System.out.println("SQLException: " + e2.getMessage());
}
return stmt;
}
现在执行Connection conn = DriverManager.getConnection(ConnStr, LoginName, Passwd);时报错:SQLException: Io 异常: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=134238208)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
哪位帮帮忙!!!!