#30122 [Asn->Fbk]: ORA-02396 error even though there is a call to ocilogoff
| From: | sniper@php.net | Date: | Fri, 25 Mar 2005 00:32:28 +0000 |
| Subject: | #30122 [Asn->Fbk]: ORA-02396 error even though there is a call to ocilogoff | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-77143@lists.php.net to get a copy of this message | ||
ID: 30122
Updated by: sniper@php.net
Reported By: atebbe at utk dot edu
-Status: Assigned
+Status: Feedback
Bug Type: OCI8 related
Operating System: Suse Professional 9.1
PHP Version: 5.0.1
Assigned To: tony2001
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2004-09-29 22:36:09] atebbe at utk dot edu
Our timeout is set to 30 for the Oracle database. I still don't
understand though why the connection is not being closed by PHP at the
end of the page. It is as though a persistent connection is opened,
even though I am not using that function within PHP. Is there any way
to force PHP to terminate this connection, so that when a page is
reloaded or a new page is viewed, it will open a new connection to
Oracle?
------------------------------------------------------------------------
[2004-09-29 08:29:39] tony2001@php.net
Could you plz tell me what's the value of the IDLE_TIME variable? You
should be able to get it with "select * from dba_profiles".
------------------------------------------------------------------------
[2004-09-29 02:23:00] atebbe at utk dot edu
This issue still has not been resolved and should remain categorized as
Open. It is my understanding that ocilogoff does not even need to be
called, and PHP should disconnect from Oracle at the end of the page,
but it does not seem to do so....
------------------------------------------------------------------------
[2004-09-17 06:42:27] tony2001@php.net
Try to set appropriate idle timeout first. It looks like a problem of
your (mis)configuration.
------------------------------------------------------------------------
[2004-09-16 20:03:48] atebbe at utk dot edu
Description:
------------
Using Apache 2 to connect to a remote Oracle 9 database. PHP was built
on an AMD64 machine with both OCI8 and ORA functions using the Oracle 9
libraries. When a PHP page is loaded , it calls ocilogon at the top,
generates the page, then calls ocilogoff at the bottom. When the page
sites for a while, then is refreshed, the following message is
produced:
Warning: ociexecute() [function.ociexecute]: OCIStmtExecute: ORA-02396:
exceeded maximum idle time, please connect again in
/srv/www/htdocs/ccbioinfo/bioteams/htdocs/oracle.inc.php on line 38
Warning: ociexecute() [function.ociexecute]: OCIStmtExecute: ORA-01012:
not logged on in
/srv/www/htdocs/ccbioinfo/bioteams/htdocs/oracle.inc.php on line 55
Errors: ORA-02396: exceeded maximum idle time, please connect again
Resource id #9
This occurs consistently when letting the page site for a while before
reloading it.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30122&edit=1