Re: Problem with ocilogon

From: Date: Fri, 16 Feb 2007 14:50:04 +0000
Subject: Re: Problem with ocilogon
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-43088@lists.php.net to get a copy of this message
Dominik Helle wrote:
Hi, I've a problem with php-oci and I hope anybody can help me. I want to connect with ocilogon to an Oracle Database. If i call my php-Script in the browser, this error message turn up: Warning: ocilogon() [function.ocilogon]: OCIEnvNlsCreate() failed. There is something wrong with your system - please check that ORACLE_HOME is set and points to the right directory in... That is very funny, because if i activate the file on the command line - the connect is possible and no error message turns up. FYI: My System: Ubunutu 6, Apache 2 and php 5-with-oci & Oracle Database 10g (10.1.0.2). Thank you for helping. Dominik I'm assuming since you mention the apache, this is a web application...
It looks like the ORACLE_HOME path is not know by apache/PHP. So, you might try stopping apache, and doing something like 'source /etc/profile' or wherever your ORACLE_HOME env variable is set, and then restarting apache and trying again... HTH -B

« previous php.db (#43088) next »