java.sql.SQLException: Io 异常: Connection refused(DESCRIPTION=(TMP=)(VSNN

连接是出现以下错误:
java.sql.SQLException:   Io   异常:   Connection   refused(DESCRIPTION=(TMP=)(VSNNUM=153092352)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
at   oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at   oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
at   oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:333)
at   oracle.jdbc.driver.OracleConnection. <init> (OracleConnection.java:404)
at   oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:468)
at   oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)
at   java.sql.DriverManager.getConnection(DriverManager.java:582)
at   java.sql.DriverManager.getConnection(DriverManager.java:185)
查看原因 是  tomcatdburl配置错误

jdbc:oracle:thin:@127.0.0.1:1521:orcl

改为

jdbc:oracle:thin:@//127.0.0.1:1521/orcl

 

对于这个问题主要查看 连接的常规配置有没有问题

你可能感兴趣的:(java,oracle,sql,jdbc)