首页 > 数据库技术 > 详细

java.sql.SQLException: Listener refused the connection with the following error

时间:2015-03-04 16:19:23      阅读:280      评论:0      收藏:0      [点我收藏+]

      jdbc连接ORACLE数据库时出现如题错误的一种可能: 

//oracle连接标识
        String url = "jdbc:oracle:thin:@192.168.0.200:1521:orcl";

必须与

文件:oracle\product\10.2.0\db_1\network\admin\tnsnames.ora中:

RHORCL =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.200)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = orcl)
    )
  )

对应:@后面接相对应的HOST,PORT,SERVICE_NAME的值

java.sql.SQLException: Listener refused the connection with the following error

原文:http://www.cnblogs.com/xuyadong/p/4313449.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!