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

Home -> Community -> Usenet -> c.d.o.server -> Re: hard vs soft parse

Re: hard vs soft parse

From: <sybrandb_at_my-deja.com>
Date: Tue, 21 Nov 2000 09:11:43 GMT
Message-ID: <8vde8d$2ug$1@nnrp1.deja.com>

In article <8vd90r$u9t$1_at_nnrp1.deja.com>,   arminseidel_at_my-deja.com wrote:
> Oracle tuning books distinguish between hard and soft parsing of SQL
> statements. However, I haven't found any description of the difference
> between hard and soft parsing.
> Can you explain the two types of parsing?
> Tuning measures?
>
> Thanks,
> Armin
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
>

If a statement is submitted and it appears to be already in memory (whether the same or a different user) this is considered a soft parse. If it is not in memory it needs to be parsed completely: this is a hard parse.
Tuning measures: never use hardcoded literals, always use bind variables and always write your statements exactly the same.

Hth,

--
Sybrand Bakker, Oracle DBA

All standard disclaimers apply
------------------------------------------------------------------------


Sent via Deja.com http://www.deja.com/
Before you buy.
Received on Tue Nov 21 2000 - 03:11:43 CST

Original text of this message

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