php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21215 OCI8 calls not taking advantage of SHARED_MODE
Submitted: 2002-12-27 11:23 UTC Modified: 2012-12-11 02:25 UTC
From: ldixon at mail dot communityconnect dot com Assigned: maxim (profile)
Status: Closed Package: OCI8 related
PHP Version: 4.2.3 OS: Linux 2.4
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
49 - 13 = ?
Subscribe to this entry?

 
 [2002-12-27 11:23 UTC] ldixon at mail dot communityconnect dot com
OCIServerAttach() is used, implying that the module should take advantage of shared data mode, but OCIInitilize() was not passed SHARED_MODE flag (#define PHP_OCI_INIT_MODE OCI_DEFAULT), so I don't believe it's really taking advantage of shared data mode.  Excerpt from OCI8 docs:

<code>
To trigger OCI shared mode functionality, process handle parameters must be set and OCIInitialize() must be called with the mode flag set to OCI_SHARED. For example: 

ub4 mode = OCI_SHARED | OCI_THREADED;
OCIInitialize (mode, 0, 0, 0, 0);

The first application that initializes OCI in shared mode starts up the shared subsystem using the parameters set by that OCI application. When subsequent applications initialize using the shared mode, they use the previously started shared subsystem.
</code>

Using this should reduce memory usage when large number of simultaneous connections are open and large numbers of concurrent statements (differing only by bind values) are running.

ref: http://www.csee.umbc.edu/help/oracle8/server.815/a67846/basics.htm#425685

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-24 14:14 UTC] maxim@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


From what I see in CVS ldixon has already fixed this one himself. Will mark it as closed.
 [2012-12-11 02:23 UTC] maxim@php.net
-Assigned To: +Assigned To: maxim
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 23:01:27 2024 UTC