If we run a TOracleQuery.Execute then it opens the appropriate number of cursors, but upon closing and freeing the component the cursors still exist. We realise these are kept open for performance reasons, but is there not some way to close them? (Having read old posts there is a closeall for the dataset component, but this does not exist for the query).
If we subsequently execute another TOracleQuery which requires less open cursors it still hangs on to the higher number for the original query. Closing the form makes no difference, only when the TOracleSession component is disconnected do we get to reclaim the cursors.
This issue has only come to light as one of our customers has started hitting the maximum open_cursors (set at 1000, which we aren't happy about increasing any further for 45 users). Trying to diagnose the offending code is proving difficult when the application keeps hanging onto open cursors it doesn't need.
If we subsequently execute another TOracleQuery which requires less open cursors it still hangs on to the higher number for the original query. Closing the form makes no difference, only when the TOracleSession component is disconnected do we get to reclaim the cursors.
This issue has only come to light as one of our customers has started hitting the maximum open_cursors (set at 1000, which we aren't happy about increasing any further for 45 users). Trying to diagnose the offending code is proving difficult when the application keeps hanging onto open cursors it doesn't need.