-
1. Re: Oracle Open Cursers
Dan Bracuk Dec 4, 2009 12:35 PM (in response to Dan Bracuk)Oops, accidentally submitted the form before I finished.
The question is, would the change we are contemplating have any effect on the number of cursers we are using? If so, will it be a reduction?
-
2. Re: Oracle Open Cursers
Adam Cameron. Dec 9, 2009 8:28 AM (in response to Dan Bracuk)We have an issue with reaching the amount of available open cursers, and believe that a contributing factor is mixing cfqueryparams with other variables. Something like this:
This doesn't directly answer your question, but if you make sure your DSN's "maximum pooled statements" setting is lower than Oracle's OPEN_CURSORS (or whatever it is) setting, you should not get these errors.
I've never got to the bottom of the direct corelation of the pooled statements / open cursors error, but it seems to me if one floods the Oracle server with really a lot of poorly parameterised queries, you can consume all the available cursors before Oracle has a chance to recycle already used ones. Or at least this is what seems to happen.
The more of your queries that are completely parameterised, the fewer cursors you'll need on Oracle to cache them, and the less likelihood you'll have of running out of available ones, because existing ones will get reused rather than needing to consume another one because of some dynamic value that's been hard-coded into an SQL string on the CF side of things.
--
Adam

