Bug #1557 Updated: connection to oracle fails sometimes
| From: | Bug Database | Date: | Wed, 08 Dec 1999 11:46:00 +0000 |
| Subject: | Bug #1557 Updated: connection to oracle fails sometimes | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-13506@lists.php.net to get a copy of this message | ||
ID: 1557
User Update by: stefang@feedback.de
Status: Closed
Bug Type: Oracle related
Description: connection to oracle fails sometimes
Thank you very much for your efforts !!!
We found a reason for the problems described in this report:
Every time a php script sets wrong enviroment variables
(e.g. a not existing path) and the db connect fails, other
php scripts, although setting the right enviroment, run
into errors connecting to the database.
So everything seems to run alright until the 'bad' script
is executed by the server.
We solved the problem by setting the enviroment variables
(ORACLE_HOME, ORACLE_SID, ORA_NLS, NLS_LANG) in the
apache start script 'apachectl' and not in the php scripts
itself.
Yours,
Stefan Grosse
stefang@feedback.de
Feedback GmbH, Regensburg, Germany
http://www.feedback.de
Full Bug description available at: http://bugs.php.net/?id=1557