Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Oracle 8.1.7, OCI and opening/closing connection

Re: Oracle 8.1.7, OCI and opening/closing connection

From: Sybrand Bakker <gooiditweg_at_sybrandb.demon.nl>
Date: Tue, 04 Feb 2003 23:31:18 +0100
Message-ID: <13f04v456f56tkp22vrvgp6g4hpo9omj4k@4ax.com>


On Tue, 04 Feb 2003 21:53:21 GMT, "Roberto Vespa" <wasp_at_inwind.it> wrote:

>- if I open connection when app starts, and close when exiting, chances are
>that situation would improve? even if my sql stamements are built using OCI
>binding, and in every transactions data are different? I have to use sql
>statements on the fly, and not procedures, because of requirements to
>support Oracle andf SQL server, and requirements to support different
>versions of the same database, and so on...
>- if yes (situation would improve), I suppose shared pool will be "thrashed"
>anyway, even if far less, I hope... for what I understand from what you
>said, every application that must use shared pool with sql statements on the
>fly sooner or later would trash shared pool... is that true? if yes, what
>should be done to avoid troubles? and if no, why?? :o)
>- changing a little my scenario, what about a web application? should I
>mantain connection open between pages? does this scale?
>
>Thanks a lot again :o)

The broad picture

In a properly designed app, after a while, the cache will hold all possible variants of all statements, so it will never thrash the shared pool. However in an app designed for sqlserver, just because of the hardcoded literals, the situation will only get worse. Setting cursor_sharing = force which should be considered as trying to kill a wasp with an elephant, doesn't seem to work in all situations. (Yes, I just delivered a report on yet another Sqlserver beastie running under Oracle, and guess what is happening. I will turn the report into a template, the basic outline is the same everywhere)

Regards

Sybrand Bakker, Senior Oracle DBA

To reply remove -verwijderdit from my e-mail address Received on Tue Feb 04 2003 - 16:31:18 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US