RE: [PHP-DB] Linux, Oracle, Apache with PHP oci8 module TNS resolve problem

From: Date: Sun, 03 Dec 2000 11:10:38 +0000
Subject: RE: [PHP-DB] Linux, Oracle, Apache with PHP oci8 module TNS resolve problem
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-4975@lists.php.net to get a copy of this message
Hi, > I had a every thing running but then someone decided that I had to use > the new oci8 support with php instead of the normal ora_ with that > result: > Warning: _oci_open_server: ORA-12154: TNS:could not resolve service > name first - the "normal" ora_ functions are for accessing oracle 7.x servers whereas oci8 is for accessing oracle 8. as far as i know, you can't mix these two. but the problems is probably caused by missing ORACLE_HOME environment variable, which tells the oci8 libraries where to look for the configuration files. you can doublecheck that by generating a simple phpinfo() page and checking the HTTP_ENV_VARS from there. Rgds, Tfr --==< tfr@cafe.ee >==< http://tfr.cafe.ee/ >==< +372-50-17621 >==--

« previous php.db (#4975) next »