note 9959 added to Oracle 8 functions
| From: | fhamonno at club-internet dot fr | Date: | Mon, 04 Dec 2000 13:06:49 +0000 |
| Subject: | note 9959 added to Oracle 8 functions | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-8373@lists.php.net to get a copy of this message | ||
In my case, using OCI8 under Unix (Solaris2.7), the global variable TNS_ADMIN must be set to the
directory containing 'tnsnames.ora' prior to connecting to the base:
putenv('ORACLE_HOME=/.../oracle');
putenv('TNS_ADMIN=/.../oracle/network/admin');
$idDB = OCILogon( $User,$Psw,$SIDalias );
Otherwise, an error ORA-12154 is generated.
http://www.php.net/manual/ref.oci8.php