R: [PHP-DB] Connection to Oracle Fails Sometimes
| From: | Roberto Sartor | Date: | Wed, 22 Nov 2000 07:30:53 +0000 |
| Subject: | R: [PHP-DB] Connection to Oracle Fails Sometimes | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-4640@lists.php.net to get a copy of this message | ||
Did you set environment vars in /etc/rc.d/init.d/httpd or
/etc/rc.d/init.d/functions (for RedHat)?
And TWO_TASK (almost for Oracle8,I'm not sure whether it's the same name for
Oracle 8i)?
Ciao
Roberto
> -----Messaggio originale-----
> Da: Sugianto Halim [mailto:lim@srw.iao.co.id]
> Inviato: mercoledì 22 novembre 2000 7.15
> A: php-db@lists.php.net
> Oggetto: [PHP-DB] Connection to Oracle Fails Sometimes
>
>
> Our scripts have to connect to a remote database. Sometimes it works
> fine, sometimes oracle errors appear like:
>
> "Could not resolve service name"
>
> The enviroment (ORACLE_HOME, ORACLE_SID, ORA_NLS, NLS_LANG) and the
> ora_logon command should
> be alright, because sometimes the db connect works without any error!
> what is happening here?
>
> System php is running on:
> - linux Mandrake 7
> - apache 1.3.12
> - php 4.0.3pl1 configured with:
> ./configure --with-apxs=/usr/local/www/bin/apxs
> --with-oci8=/usr/local/oracle
> - Oracle 8i Client 8.1.5.2
>
> Oracle Server is running on :
> - linux redhat 6.1
> - Oracle 8i Server 8.1.6
>
> Most time it fails when i click F5 (refresh) too fast. I tested
> tnsnames.ora with SQLPLUS
> and it work fine, the problem only show up when I use OCILogon on PHP.
> Is anyone have the
> problem
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
>