Return-Path: <php-db-return-37331-christopher.jones=oracle.com@lists.php.net>
Received: from rgmum104.us.oracle.com by rgmum103.us.oracle.com
	with ESMTP id 2061132941100787546; Thu, 18 Nov 2004 07:19:06 -0700
Received: from rgmgw1.us.oracle.com by rgmum104.us.oracle.com
	with ESMTP id 2164185801100787540; Thu, 18 Nov 2004 07:19:00 -0700
Received: from agminet02.oracle.com (agminet02.oracle.com [141.146.126.229])
	by rgmgw1.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id iAIEJ06j004343
	for <christopher.jones@oracle.com>; Thu, 18 Nov 2004 07:19:00 -0700
Received: from agminet02.oracle.com (localhost [127.0.0.1])
	by agminet02.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id iAIEIs7E022420
	for <christopher.jones@oracle.com>; Thu, 18 Nov 2004 06:18:54 -0800
Received: from pb1.pair.com (pb1.pair.com [216.92.131.4])
	by agminet02.oracle.com (Switch-3.1.4/Switch-3.1.0) with SMTP id iAIEIqFE022400
	for <christopher.jones@oracle.com>; Thu, 18 Nov 2004 06:18:53 -0800
Received: (qmail 3862 invoked by uid 1010); 18 Nov 2004 14:17:15 -0000
Mailing-List: contact php-db-help@lists.php.net; run by ezmlm
Precedence: bulk
list-help: <mailto:php-db-help@lists.php.net>
list-unsubscribe: <mailto:php-db-unsubscribe@lists.php.net>
list-post: <mailto:php-db@lists.php.net>
Delivered-To: mailing list php-db@lists.php.net
Received: (qmail 3848 invoked by uid 1010); 18 Nov 2004 14:17:15 -0000
Delivered-To: ezmlm-scan-php-db@lists.php.net
Delivered-To: ezmlm-php-db@lists.php.net
Message-ID: <A722EED83069D611AED200508B8B0D9106348C52@EXCHANGE>
From: Michael Caplan <michael.caplan@lechateau.ca>
To: "'John Lim'" <jlim@natsoft.com.my>
Cc: "'php-db@lists.php.net'" <php-db@lists.php.net>
Date: Thu, 18 Nov 2004 09:15:35 -0500
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C4CD79.1276D0D0"
Subject: RE: [PHP-DB] Re: oci8 cannot connect after restarting DB

------_=_NextPart_001_01C4CD79.1276D0D0
Content-Type: text/plain

Hi John,

Just saw your blog today on Andi's PHP5 / Oracle article.  

One of the two bugs you sited in your previous email was one that I opened
(http://bugs.php.net/bug.php?id=30808)  I'm not sure what the case is with
the 4.3.x line, but my hunch this issue is 'bigger' than PHP5.  More
troubling is tony2001 response to my bug report (we don't want to turn on
the noted fix, but will implement something workable with PDO).  I'm anxious
to hear his reply to my follow-up: it makes no sense to me that oracle users
will have to settle for broken logon functions (with the fix sitting
commented in the current code) or abandond the oci8 library all together for
PDO when it hits the streets (which will be some time).

Best,

Michael


-----Original Message-----
From: John Lim [mailto:jlim@natsoft.com.my] 
Sent: Thursday, November 18, 2004 3:42 AM
To: php-db@lists.php.net
Subject: [PHP-DB] Re: oci8 cannot connect after restarting DB


Michael,

After rereading your post again, i realise you mentioned it's happening with

non-persistent connections also. That puzzles me. Perhaps we are talking 
about multiple bugs here. In general, I have not found PHP5 and oci8 to be 
very stable, and would not recommend moving anything production to use PHP5 
just yet.

Regardsd, John

"John Lim" <jlim@natsoft.com.my> wrote in message 
news:20041118072559.26084.qmail@pb1.pair.com...
> Hi
>
> This is because you are using persistent connections, which are left 
> dangling and do not restart after the database restarts. Apparently 
> you can hack your tnsnames.ora or oci8 extension.
>
> See http://bugs.php.net/bug.php?id=15390
>
> and http://bugs.php.net/bug.php?id=30808
>
> Regards, John
>
> "Michael Caplan" <michael.caplan@lechateau.ca> wrote in message
> news:A722EED83069D611AED200508B8B0D9106348C4E@EXCHANGE...
>> Every evening, for whatever reason, our Oracle db (9.2.0) is 
>> restated. After it is restarted, I am unable to build a connection 
>> with Oracle from PHP untill Apache is restarted.
>>
>> Whenever I do an ociplogon() or ocilogon() following an Oracle DB
>> restart,
>> it fails but I am unable to get a description of the error.  Restarting
>> Apache "fixes" the problem.
>>
>> Has anyone else experianced the same issue?  It appears to me that 
>> this
>> is a
>> php oci8 bug.  (shouldn't a new connection be built if a persistant
>> connection fails, and if not using persistant connections, shouldn't this

>> be
>> a non issue?)
>>
>> Thanks,
>>
>> Michael
>>
>> 

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



------_=_NextPart_001_01C4CD79.1276D0D0--
