Mailing List
Home
Forum Home
Oracle List - by freelists.org
Oracle on SUSE Linux - Runing Oracle on SUSE Linux
Oracle database error code ...
www.freelists.org
Subjects
ORA 12540: TNS:internal limit restriction exceeded
ORA 12838 please : Is possible to append two times to the same table befo
ORA 12838 please : Is possible to append two times to the same table before
ora 04031
ora 12500 on windows
ORA 32004: obsolete and/or deprecated parameter(s) specified
ORA 01925: maximum of 30 enabled roles exceeded
ORA 01925: maximum of 30 enabled roles exceeded
ora 12500 on windows
ORA 01650, one idea
ORA 01650
ORA 4030
ORA 12838 please : Is possible to append two times to thesametable before do
ORA 12838 please : Is possible to append two times to thesame table before d
ORA 01536
ORA 03113 end of file on communication channel
ORA 32004: obsolete and/or deprecated parameter(s) specified
ORA 00600:
ORA 00020: maximum number of processes (%s) exceeded
ORA 01925: maximum of 30 enabled roles exceeded
ORA 3113 while creating a cluster database 9201 RAC on Linux with OCFS
ora 12500 on windows
ora 12500 on windows
ora 12500 on windows
ORA 01650, one idea
ora 12500 on windows
ora 12500 on windows
ora 12500 on windows
ORA 2000 Error Using DBMS STATS GATHER SCHEMA STATS
ORA 01650, one idea
ORA 01650, one idea
ORA 01650, one idea
ORA 01650
ORA 01650
Subject: ora 01031
ORA 4030
ORA 4030
ORA 06502: PL/SQL: numeric or value error: Bulk Bind: Truncated Bind
Subject: Re: ORA 01722 invalid number
 
Subject: Re: CPU Time calculation in AWR Reports

Subject: Re: CPU Time calculation in AWR Reports

2007-11-01       - By Luis Fernando Cerri

 Back
Thanks for your valuable and precise suggestion, Tanel.

In a nutshell, this is what AWR does:

  select 'CPU' , (e.value-b.value)/1000000 time
    from dba_hist_sys_time_model b, dba_hist_sys_time_model e
   where e.snap_id         = :v_eid
     and b.snap_id         = :v_bid
     and e.stat_name       = 'DB CPU'
     and b.stat_name       = 'DB CPU';


Best regards,
Cerri




2007/11/1, Tanel Poder <tanel.poder.003@(protected)>:
> Well you can trace the awrrpt run...
>
> I suspect (but don't know for sure) that AWR uses DBA_HIST_SYS_TIME_MODEL
> for its CPU info... V$SYS_TIME_MODEL CPU values can differ from V$SYSSTAT
> ones...
>
> SQL> select
>  2     a.value/1000000 time_model_seconds,
>  3     b.value/10000   sysstat_seconds,
>  4     a.value/1000000 - b.value/10000 missing_seconds
>  5  from
>  6     v$sys_time_model a,
>  7     v$sysstat b
>  8  where
>  9     a.stat_name = 'DB CPU'
>  10  and b.name = 'CPU used by this session'
>  11  /
>
> TIME_MODEL_SECONDS SYSSTAT_SECONDS MISSING_SECONDS
> -- ---- ---- ----- -- ---- ---- -- -- ---- ---- --
>        126.997282          4.6276      122.369682
>
>
> --
> Regards,
> Tanel Poder
> http://blog.tanelpoder.com
>
>
> > -- --Original Message-- --
> > From: oracle-l-bounce@(protected)
> > [mailto:oracle-l-bounce@(protected)] On Behalf Of Luis
> > Fernando Cerri
> > Sent: Thursday, November 01, 2007 23:20
> > To: oracle-l@(protected)
> > Subject: CPU Time calculation in AWR Reports
> >
> > Hello, list.
> >
> > At Statspack age, 'CPU Time' value in section 'Top 5 Timed
> > Events' was calculated as the difference of 'CPU used by this
> > session' values between two snapshots:
> >
> >                        select 'CPU' , (e.value-b.value)/100 time
> >                          from stats$sysstat b, stats$sysstat e
> >                         where e.snap_id         = :v_eid
> >                           and b.snap_id         = :v_bid
> >                           and e.name            = 'CPU used
> > by this session'
> >                           and b.name            = 'CPU used
> > by this session';
> >
> >
>
>
--
http://www.freelists.org/webpage/oracle-l