开发者社区 问答 正文

hibernate连接数据库问题??报错

web项目中连接oracle数据库报错,

Cannot create PoolableConnectionFactory (Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor

我在本地连接的是我们内网的其他机器,不是我本地的数据库,其他人跑着没问题,我这里报错了,1.这个我本机上开不开监听没关系吧?2.大家遇到过这问题怎么解决呢?

展开
收起
爱吃鱼的程序员 2020-06-08 16:58:15 645 分享 版权
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    看你连接的方式了。怎么连的数据库?OCI的话必须你本地有监听服务的。

    2020-06-08 16:58:26
    赞同 展开评论