Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: v$sql problem
> 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.
-- 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 Wed Jul 07 2004 - 17:08:48 CDT