Home  >  Article  >  Backend Development  >  PHP remote connection oracle reports TNS: listener does not currently know of service

PHP remote connection oracle reports TNS: listener does not currently know of service

WBOY
WBOYOriginal
2016-09-05 08:59:541723browse

  1. My local php connects to the remote oracle database. I downloaded the oracle client instantclient-basic-nt-11.2.0.2.0, configured the environment variables, enabled php_oci8 and php_oci8_11, restarted the computer and connected using Got the following error

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

Reply content:

  1. My local php connects to the remote oracle database. I downloaded the oracle client instantclient-basic-nt-11.2.0.2.0, configured the environment variables, enabled php_oci8 and php_oci8_11, restarted the computer and connected using Got the following error

<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>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn