Oracle数据库连接失败……

love1901 2010-07-13 02:04:23
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
The Connection descriptor used by the client was:
127.0.0.1:1521:orcljava

出错的代码是下面这行:
DriverManager.getConnection("jdbc:oracle:thin:@127.0.0.1:1521:orcljava","lisi", "lisi") ;
我的oracle SID是orcljava

谢谢……
...全文
98 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
qysnowqy 2010-07-14
  • 打赏
  • 举报
回复
顶楼上的,应该是监听器的问题
lk198186 2010-07-14
  • 打赏
  • 举报
回复
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor

看下监听器吧

25,980

社区成员

发帖
与我相关
我的任务
社区描述
高性能WEB开发
社区管理员
  • 高性能WEB开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧