首页  >  文章  >  后端开发  >  php 远程连接oracle 报TNS:listener does not currently know of service

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

WBOY
WBOY原创
2016-09-05 08:59:541738浏览

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

<code>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
</code>

回复内容:

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

<code>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
</code>
声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn