note 47464 added to function.ocilogon

From: Date: Wed, 17 Nov 2004 09:44:04 +0000
Subject: note 47464 added to function.ocilogon
Groups: php.notes 
Request: Send a blank email to php-notes+get-80630@lists.php.net to get a copy of this message
In reply to william_poulsen at hotmail dot com: I was trying to connect to a Oracle database wich worked fine in a web browser but failed when i executed the script from command line. Thanks to william_poulsen at hotmail dot com i learned that the problem was that the command line can't find the TNSNAMES. His solution was to edit you DB to the TNSNAMES entry. Sadly enough this didn't do the trick. I got segmantation fault when the script was executed. So i started to set my Oracle variables prior to executing the script. ORACLE_SID, ORACLE_HOME, ORACLE_BASE and added $ORACLE_HOME/BIN to the path. After that PHP seems to use this variables and the connection can be made. Problem solved. I hope this can help somebody out there. ---- Manual Page -- http://www.php.net/manual/en/function.ocilogon.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+47464 Delete -- http://master.php.net/manage/user-notes.php?action=delete+47464&report=yes Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+47464&report=yes&reason=bad+code Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+47464&report=yes&reason=spam Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+47464&report=yes&reason=useless+example Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+47464&report=yes&reason=contains+commercial+links Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+47464&report=yes&reason=useless+note Reject -- http://master.php.net/manage/user-notes.php?action=reject+47464&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#80630) next »