Home > Article > Backend Development > PHP remote connection oracle reports TNS: listener does not currently know of service
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>
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>