|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30122 ORA-02396 error even though there is a call to ocilogoff
Submitted: 2004-09-16 20:03 UTC Modified: 2005-04-02 01:00 UTC
Avg. Score:4.8 ± 0.4
Reproduced:4 of 4 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (25.0%)
From: atebbe at utk dot edu Assigned: tony2001 (profile)
Status: No Feedback Package: OCI8 related
PHP Version: 5.0.1 OS: Suse Professional 9.1
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2004-09-16 20:03 UTC] atebbe at utk dot edu
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/ on line 38

Warning: ociexecute() [function.ociexecute]: OCIStmtExecute: ORA-01012: not logged on in /srv/www/htdocs/ccbioinfo/bioteams/htdocs/ 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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-09-17 06:42 UTC]
Try to set appropriate idle timeout first. It looks like a problem of your (mis)configuration.
 [2004-09-29 02:23 UTC] 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-29 08:29 UTC]
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 22:36 UTC] 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?
 [2005-03-25 01:32 UTC]
Please try using this CVS snapshot:
For Windows:

 [2005-04-02 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Mon Aug 15 23:05:44 2022 UTC