刚解决连接的问题,现在又碰上了这个,干就完事了。

问题分析,这个是 oracle 在建立时 SID 的问题, SID 属性 标识唯一

那么问题就出在 orcl 上了。

1. win + R 输入 regedit 

打开路径 HKEY_LOCAL_MACHINE\SOFTWARE\Oracle\KEY_OraDB18Home1;

2. 找到 ORACLE_SID

JDBC 连接 Oracle: Listener refused the connection with the following error: ORA-12505 的问题(已解决)

 3. 双击,查看数据值,将 url 如 jdbc:oracle:thin:@localhost:1521:orcl,最后的 orcl 改为 该项值就好了,这里改为 oracle

不建议改变 SID 的值。

JDBC 连接 Oracle: Listener refused the connection with the following error: ORA-12505 的问题(已解决)

相关文章:

  • 2022-12-23
  • 2021-08-28
  • 2021-10-28
  • 2021-07-07
  • 2021-11-03
  • 2022-02-01
  • 2021-08-08
猜你喜欢
  • 2021-10-27
  • 2021-11-27
  • 2022-12-23
  • 2021-09-16
  • 2021-11-10
  • 2022-01-20
相关资源
相似解决方案