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 -> need urgent help! why is parsing=executing in v$sqlarea

need urgent help! why is parsing=executing in v$sqlarea

From: Tobias Hitzfeld <Hitzfeld_at_Schoepflin.de>
Date: 1997/10/04
Message-ID: <34367449.28ECD362@Schoepflin.de>#1/1

<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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2> :a:=5;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3> insert into x values(:a);
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 4> end;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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">----------------&nbsp; -----------------</FONT>
<BR><FONT FACE="Times New Roman,Times">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
10&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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">----------------&nbsp; -----------------</FONT>
<BR><FONT FACE="Times New Roman,Times">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5</FONT>

<P><FONT SIZE=+2>=> each execution is one parsing.&nbsp;&nbsp;&nbsp; =>=>=>=>
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

Original text of this message

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