欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

php 远程连接oracle 报TNS:listener does not currently know of service

程序员文章站 2022-05-15 18:28:13
...
  1. 我本地php连接远程oracle 数据库,我下载了 oracle的客户端instantclient-basic-nt-11.2.0.2.0,配置了环境变量,把开启了php_oci8和 php_oci8_11,重启了电脑然后用连接,报了下面的错误

Warning: ocilogon() [function.ocilogon]: ORA-12514: TNS:listener does not currently know of service requested in connect descriptor in D:\WWW\php-interface\sqlserver.php on line 53
ORA-12514: TNS:listener does not currently know of service requested in connect descriptor

回复内容:

  1. 我本地php连接远程oracle 数据库,我下载了 oracle的客户端instantclient-basic-nt-11.2.0.2.0,配置了环境变量,把开启了php_oci8和 php_oci8_11,重启了电脑然后用连接,报了下面的错误

Warning: ocilogon() [function.ocilogon]: ORA-12514: TNS:listener does not currently know of service requested in connect descriptor in D:\WWW\php-interface\sqlserver.php on line 53
ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
相关标签: php