Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: concerning hard parses
ignore. wrong test. I didnt get a hard parse with this one. I have to find the test i did... sorry about this.
>
> From: <ryan.gaffuri_at_cox.net>
> Date: 2004/03/05 Fri PM 04:26:42 EST
> To: oracle-l_at_freelists.org
> Subject: concerning hard parses
>
> I ran a test with bind variables from sqlplus. I am not sure why Im getting a hard parse.
>
> 1. create table myTable as select * from dba_objects;
> 2. I then ran a script to tell me how many parses my current session has.
> 3. I then initialized a bind variable with 'test_bind.sql'
> and ran the following query from test_select.sql
>
> select object_name
> from mytable
> where object_name like :object_name
> and rownum < 2
>
> 4. I then re-initialized the bind variable to a different value and ran it again. I got a hard parse. Shouldn't I get a soft parse since I'm using bind variables?
>
> so that its readable. I attached the results and I attached the 3 scripts I used. I hope this is ok...
>
>
> ----------------------------------------------------------------
> 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
> -----------------------------------------------------------------
>
-- 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 Sat Mar 06 2004 - 01:28:47 CST
![]() |
![]() |