Re: Oracle TNS no listener
| From: | David Mitchell | Date: | Thu, 07 Jun 2007 14:58:23 +0000 |
| Subject: | Re: Oracle TNS no listener | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-43668@lists.php.net to get a copy of this message | ||
Have you rebooted windows since setting the environment variable? I believe
that's the only way for windows services to see the change.
HTH
On 6/7/07, steve@sdconsulting.co.uk <steve@sdconsulting.co.uk> wrote:
Hi All I've a bit code that connects to a remote Oracle DB, does a simple query and returns the result. Running from a Windows command prompt as php oratest.php the script runs fine and returns the results I'm expecting. If I run it through a browser I get oci_connect() [function.oci-connect]: ORA-12541: TNS:no listener in ....... Webserver is IIS on my local box. PHP is running on my local box. I've got TNS_ADMIN set as an env variable Any help gratefully received :-) Cheers Steve -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php