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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: CURSOR_SHARING in 9i: FORCE vs. SIMILAR

RE: CURSOR_SHARING in 9i: FORCE vs. SIMILAR

From: Jesse, Rich <Rich.Jesse_at_quadtechworld.com>
Date: Wed, 19 May 2004 10:01:45 -0500
Message-ID: <FBE1FCA40ECAD41180400050DA2BC54004E939A2@qtiexch2.qgraph.com>


I was checking the explain plan with EXPLAIN via TOAD. Once I fired up = a 10046 trace, I clearly saw the diffs between the two executions in the = STAT lines. And, as a bonus, the trace has the updating of = SYS.OBJECT_USAGE after the query that used the index. :)

Prepare to change CS=3DF to CS=3DS...

Thanks, Jonathan!

Rich

Rich Jesse                        System/Database Administrator
rich.jesse_at_quadtechworld.com      QuadTech, Sussex, WI USA


> From: oracle-l-bounce_at_freelists.org
> Sent: Wednesday, May 19, 2004 7:04 AM
> Subject: Re: CURSOR_SHARING in 9i: FORCE vs. SIMILAR

>=20

> How are you checking the execution plan ?
>=20

> If you use autotrace, you WILL be told about
> two different plans, because Oracle does not
> use cursor_sharing for explain plan.
>=20

> e.g.
> set autotrace on
> select * from t1 where id =3D 88
>=20
> Two rows appear in v$sql
> EXPLAIN PLAN SET STATEMENT_ID=3D'PLUS701' FOR select * from=20
> t1 where id =3D
> 88
> select * from t1 where id =3D :"SYS_B_0"
>=20
>=20

> Regards

>=20
> Jonathan Lewis


Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------
Received on Wed May 19 2004 - 10:02:16 CDT

Original text of this message

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