ORA-12519, TNS:no appropriate service handler found
The Connection descriptor used by the client was:
172.30.63.67:1521:SLN
public static Connection getConnection() throws Exception{
Connection con=null;
try{
Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
String url = "jdbc:oracle:thin:@172.30.60.58:1521:SPCGTHR";
String user = "spc";
String password = "spc";
con = DriverManager.getConnection(url, user, password);
}catch (InstantiationException e1) {
e1.printStackTrace();
throw e1;
} catch (IllegalAccessException e1) {
e1.printStackTrace();
throw e1;
} catch (ClassNotFoundException e1) {
e1.printStackTrace();
throw e1;
} catch (SQLException e) {
e.printStackTrace();
throw e;
}
return con;
}jdbcjavaoracle数据库