how much CPU a session consuming at a given time in oracle
问题 I am looking for a script/process to check the amount of CPU (in terms of percentage) each query consumes at any point of time in my oracle database. My Oracle version is : 12.1.0.2 Database is hosted on Exadata X7_2 It is a shared server, and many databases also running on the same server. SELECT AVG(value/vp.cpu_count) FROM v$sysmetric_history,(SELECT value cpu_count FROM v$parameter WHERE name LIKE 'cpu_count') vp WHERE metric_name = 'CPU Usage Per Sec' AND group_id = 2 AND end_time >