首页 > 数据库技术 > 详细

java.sql.SQLException: Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor

时间:2018-08-12 13:10:07      阅读:143      评论:0      收藏:0      [点我收藏+]

问题描述:

在使用JDBC连接数据库的时候,报错:

java.sql.SQLException: Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor

解决方案:

经检查,是由于连接的URL写错导致,原URL:"jdbc:oracle:thin:@localhost:1521:java78"

更改后:"jdbc:oracle:thin:@localhost:1521:ORCL"

java.sql.SQLException: Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor

原文:https://www.cnblogs.com/goodgo0study/p/9462434.html

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