Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> REPOST: Re: tuning sql statement with bind value
AUTOTRACE=true doesn't work unless you bind the variables and execute the statement, however the following does work:
SQL> desc mytab;
Name Null? Type ------------------------------- -------- ---- COL1 VARCHAR2(10) COL2 NUMBER COL3 CHAR(1)SQL> explain plan for select * from mytab where col1 = :1 2 ;
Explained.
SQL> @/opt/app/oracle/admin/util/getplan
Query Plan
-Kevin
"Mike F" <u518615722_at_spawnkill.ip-mobilphone.net> wrote in message
news:l.1011976519.1981536865@[64.94.198.252]...
> I am learning the most difficult part of performance tuning.
> Almost all of our sql statement use bind values. With binding
> variables in your sql statement, oracle does not allow you to explain
> plan, should i just change the sql, hard code it and explain it and
> believe that oracle will use the same execution path as the binding one?
>
> > > > > >
This message was cancelled from within The Unacanceller's glorious new software, Lotus 1-2-3 For Rogue Cancellers. Received on Fri Jan 25 2002 - 11:57:00 CST
![]() |
![]() |