1.确认服务名是orcl还是其它,如不确定到Net Manager中查看,可以用命令show parameter service在sql plus中查看,具体如下:

SQL> show parameter service;

NAME                                 TYPE                 VALUE
------------------------------------ -------------------- ------------------------------
service_names                        string               orclhy78
SQL>

 

2.用Net Configuration Assistant创建TNS,如果不成功可以把之前的都删掉再建新的,有时还要多建一个。

3.使用程序连接,如果连接池还是出错则再试第二步。

 

参考资料:

1.https://blog.csdn.net/a313469292/article/details/101733216

2.https://blog.csdn.net/u013594528/article/details/81162869

END

相关文章:

  • 2021-10-28
  • 2022-02-10
  • 2021-05-31
  • 2022-02-10
  • 2022-01-21
  • 2021-09-21
  • 2022-02-10
  • 2022-12-23
猜你喜欢
  • 2021-09-22
  • 2022-12-23
  • 2021-12-05
  • 2021-12-05
  • 2022-12-23
相关资源
相似解决方案