Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> need urgent help! why is parsing=executing in v$sqlarea
<HTML>
Hi profs!
<P>We've got a problem in our production database.
<BR>We 're using sql-statements (insert,update) and the parse_calls is
almost exactly the amount of executions of the statement.
<BR>We're using bind variables and have got an amount of free memory 1116572bytes
(v$sgastat).
<BR>The statements are written as embedded sql (ProCobol).
<P>Here's an example, how it works:
<P>SQL*Plus>create table x (y number);
<P>SQL*Plus> var a number;
<BR>SQL*Plus>begin
<BR> 2> :a:=5;
<BR> 3> insert into x values(:a);
<BR> 4> end;
<BR> 5> /
<BR>...successfully completed.
<BR>SQL*Plus>/
<BR>SQL*Plus>/
<BR>SQL*Plus>/
<BR>-> 5 rows created !!!
<P><B><FONT COLOR="#990000">ORA 7.1.4:</FONT></B>
<BR>select executions,parse_calls from v$sqlarea
<BR>where upper(sql_text) like 'INSERT INTO X%'
<BR>/
<P><FONT FACE="Times New Roman,Times">EXECUTIONS PARSE_CALLS</FONT>
<BR><FONT FACE="Times New Roman,Times">---------------- -----------------</FONT>
<BR><FONT FACE="Times New Roman,Times">
10
5</FONT>
<BR><FONT FACE="Times New Roman,Times">...</FONT>
<BR><B><FONT FACE="Times New Roman,Times"><FONT COLOR="#990000">ORA 7.3.2.3.0:</FONT></FONT></B>
<BR><FONT FACE="Times New Roman,Times">select executions,parse_calls from
v$sqlarea</FONT>
<BR><FONT FACE="Times New Roman,Times">where upper(sql_text) like 'INSERT
INTO X%'</FONT>
<BR><FONT FACE="Times New Roman,Times">/</FONT>
<P><FONT FACE="Times New Roman,Times">EXECUTIONS PARSE_CALLS</FONT>
<BR><FONT FACE="Times New Roman,Times">---------------- -----------------</FONT>
<BR><FONT FACE="Times New Roman,Times">
5
5</FONT>
<P><FONT SIZE=+2>=> each execution is one parsing. =>=>=>=>
WHY ???</FONT>
<P><FONT SIZE=+2>Please help !!!!!</FONT>
<P><FONT SIZE=+2>Yours Tobias Hitzfeld.</FONT>
<BR>Oracle DBA</HTML>
Received on Sat Oct 04 1997 - 00:00:00 CDT
![]() |
![]() |