note 10745 modified in function.ocilogon by sixd

From: Date: Mon, 05 Oct 2009 01:28:29 +0000
Subject: note 10745 modified in function.ocilogon by sixd
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-161281@lists.php.net to get a copy of this message
If you are experiencing problems logging onto your Oracle DB, maybe a ORA-12154 error or something like that, try setting the ORACLE_HOME, ORACLE_SID, TNS_ADMIN vars in your Apache config, rather than using PutEnv() inside PHP. Its because PHP/Apache needs to know these variables upon server startup, not when it serves the PHP page. Of course, this assumes you have OCI installed locally on the webserver, if you dont, no matter what variables you set and where, it just wont work. --was-- If you are experiencing problems logging onto your Oracle DB, maybe a ORA-12154 error or something like that, try setting the ORACLE_HOME, ORACLE_SID, TNS_ADMIN vars in your Apache config, rather than using PutEnv() inside PHP. Its because PHP/Apache needs to know these variables upon server startup, not when it serves the PHP page. Of course, this assumes you have OCI installed locally on the webserver, if you dont, no matter what variables you set and where, it just wont work. http://php.net/manual/en/function.ocilogon.php

« previous php.notes (#161281) next »