Oracle是IP: ps-server-dom
端口: 1521
Usado o adaptador HOSTNAME para resolver o apelido
Tentativa de contatar (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=))(ADDRESS=(PROTO
COL=TCP)(HOST=192.168.0.101)(PORT=1521)))
OK (10 ms)
错误:
java.sql.SQLException: Exceção de E/S: The Network Adapter could not establish the connection
代码:
Class.forName("oracle.jdbc.OracleDriver").newInstance();;
conn = DriverManager.getConnection("jdbc:oracle:thin:@ps-server-dom:1521:PSYS", "psyst", "psyst");