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: Urgent Oracle parsing question

Re: Urgent Oracle parsing question

From: Barbara Kennedy <barbken_at_teleport.com>
Date: Fri, 13 Nov 1998 18:58:22 GMT
Message-ID: <ij%22.513$Zk4.374111@news.teleport.com>


You need to use host variables and as someone else said make sure the SQL statements are the same. For example,
select * from emp where empid=5;
is different from
select * from Emp where empid=5;
is differnet from
select * from emp where empid=7;

but you could do
select * from emp where empid=:hvEmpid; where hvEmpid is a host variable with a value of 5 and then
select * from emp where empid=:hvEmpid; where hvEmpid is a host variable with a value of 7 Then Oracle does not need to reparse etc. There is a section in the application developers guide that addresses this at length. If you are using ODBC the backend will only see the ? parameters as string substitutions and that won;t help. but OCI or proC etc. will allow you to use host variables.
Jim

Rajesh Bhave wrote in message <364BD569.ED9B8D21_at_india.hp.com>...
>Hello Oracle gurus,
>
>We are facing extensive performance degradation.
>This is because of Oracle parsing the same SQL
>statements for too many number of times. If someone
>could throw some lights on how to stop / avoid this,
>it will of great help.
>
>Thanx and Regards,
>Rajesh
>
Received on Fri Nov 13 1998 - 12:58:22 CST

Original text of this message

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