`
yinchunjian
  • 浏览: 283097 次
  • 性别: Icon_minigender_1
  • 来自: 苏州
社区版块
存档分类
最新评论

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

 

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

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics