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: Transaction rate question

Re: Transaction rate question

From: <fitzjarrell_at_cox.net>
Date: 13 Jan 2006 09:56:00 -0800
Message-ID: <1137174960.650572.203630@f14g2000cwb.googlegroups.com>

Ranko.Mosic_at_gmail.com wrote:
> select count(*) from v$sysstat
> where name like '%commit%rollback%'

If this query returns anything more than a 0 count I"ll be surprised, as no such string exists in any NAME value in V$SYSSTAT. Possibly you're confused and meant:

select sum(value)
from v$syssat
where name in ('user commits','user rollbacks');

Using count(*) in place of sum(value) would return 2, always, and provide absolutely no insight into the transactional activity of the instance.

Before posting more useless drivel to this newsgroup TEST your queries.  Such testing might have prevented this embarassing example being posted.

David Fitzjarrell Received on Fri Jan 13 2006 - 11:56:00 CST

Original text of this message

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