Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Reg: "ON CPU" in ASH report -

915396Jul 24 2014 — edited Jul 24 2014

Hi Experts,

I am executing a long running query (now since last 55 mins) and want to dig out some details regarding the work performed under the hood.

Got this query from Tim's blog .I am executing this query from another session -

SELECT NVL(a.event, 'ON CPU') AS event,

   COUNT(\*) AS total\_wait\_time

FROM v$active_session_history a

WHERE session_id = 722 -- a.sample_time > SYSDATE - 5/(24*60) -- 5 mins

GROUP BY a.event

ORDER BY total_wait_time DESC;

1.jpg

And, on every execution of this query, the "ON CPU" time is increasing keeping all other constant.

Please help me understand what does "ON CPU" means where most of the time is spent. Help much appreciated.

Thanks and Regards,

-- Ranit

( on Oracle 11.2.0.3.0 )

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 21 2014
Added on Jul 24 2014
4 comments
334 views