码迷,mamicode.com
首页 > 数据库 > 详细

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 14:20:44      阅读:200      评论:0      收藏:0      [点我收藏+]

标签:cal   The   size   exce   解决方案   follow   rac   rip   连接   

问题描述:

在使用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

标签:cal   The   size   exce   解决方案   follow   rac   rip   连接   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!