Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: number of transactions in a day

Re: number of transactions in a day

From: Jared Still <jkstill_at_gmail.com>
Date: Fri, 1 Jun 2007 13:30:03 -0700
Message-ID: <bf46380706011330x5c2ccd0fue5135791287b0fb3@mail.gmail.com>


On 6/1/07, Alexander Fatkulin <afatkulin_at_gmail.com> wrote:
>
> You can use something like statspack does:
>
> user commits + user rollbacks
>
> v$sysstat
>
>

I like this one:

with commits as (

   select value commits
   from v$sysstat
   where name = 'user commits'
),
gets as (

   select sum(value) gets
   from v$sysstat
   where name like '%gets%'
)
select g.gets / c.commits transactions
from gets g, commits c
/

Or pick any alternative that makes the mgrs happy.

The database cannot tell them what they want to know.

-- 
Jared Still
Certifiable Oracle DBA and Part Time Perl Evangelist

--
http://www.freelists.org/webpage/oracle-l
Received on Fri Jun 01 2007 - 15:30:03 CDT

Original text of this message

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