Please see my other blog for Oracle EBusiness Suite Posts - EBMentors

Search This Blog

Note: All the posts are based on practical approach avoiding lengthy theory. All have been tested on some development servers. Please don’t test any post on production servers until you are sure.

Tuesday, March 15, 2011

DB Global waits

Create Or Replace Force View Sys.Av_db_global_waits (Wait_class,

   Select   Wait_class, Total_waits,
            Round (100 * (Total_waits / Sum_waits), 2) Pct_waits,
            Round ((Time_waited / 100), 2) Time_waited_secs,
            Round (100 * (Time_waited / Sum_time), 2) Pct_time
       From (Select Wait_class, Total_waits, Time_waited
               From V$system_wait_class
              Where Wait_class != 'Idle'),
            (Select Sum (Total_waits) Sum_waits, Sum (Time_waited) Sum_time
               From V$system_wait_class
              Where Wait_class != 'Idle')
   Order By 5 Desc;

No comments: