Rumah  >  Artikel  >  pembangunan bahagian belakang  >  php 远程连接oracle 报TNS:listener does not currently know of service

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

WBOY
WBOYasal
2016-09-05 08:59:541722semak imbas

  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>
Kenyataan:
Kandungan artikel ini disumbangkan secara sukarela oleh netizen, dan hak cipta adalah milik pengarang asal. Laman web ini tidak memikul tanggungjawab undang-undang yang sepadan. Jika anda menemui sebarang kandungan yang disyaki plagiarisme atau pelanggaran, sila hubungi admin@php.cn