Re: v$sql problem

  • From: Tanel Põder <tanel.poder.003@xxxxxxx>
  • To: <oracle-l@xxxxxxxxxxxxx>
  • Date: Thu, 8 Jul 2004 01:12:07 +0300

> I am testing the insert performance into a table from 2 sessions both
> reading from same table. I am inserting in a batch of 1000 rows at a
> time and in 1 session we are inserting 1000 batches so total 1M rows
> inserted. Also we are doing commit after every 1000 rows. When I check
> the view v$sql and run statement from only 1 session it shows executions
> as 1000 (for 1000 batches) and increment in 1000 for each run. But when
> I run both sessions concurrently it only increases the execution by 1010
> instead of 2000. Is this the normal stats or it is not showing execution
> stats properly?

I think Oracle is doing latchless updates to these execution counts to avoid
contention/performance issues, that's how few of the incrementations might
get lost. However, losing nearly half of the updates seems somewhat unlikely
for a two session operation, so there might be some other issues.

Btw, what's your session_cached_cursors and cursor_space_for_time
parameter's values? And which version/platform?

Tanel.


----------------------------------------------------------------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
----------------------------------------------------------------
To unsubscribe send email to:  oracle-l-request@xxxxxxxxxxxxx
put 'unsubscribe' in the subject line.
--
Archives are at //www.freelists.org/archives/oracle-l/
FAQ is at //www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------

Other related posts: