Home » RDBMS Server » Server Administration » querying the highest CPU using user
querying the highest CPU using user [message #62832] Wed, 18 August 2004 02:29 Go to next message
Devnarayan
Messages: 7
Registered: June 2004
Junior Member
Is there any way to query which user of oracle is using the highest CPU resource. Is there any dynamic performance view available like v$session through which we can check which user/session is using the highest CPU usage.

Devnarayan
Re: querying the highest CPU using user [message #62834 is a reply to message #62832] Wed, 18 August 2004 03:23 Go to previous message
Daljit Singh
Messages: 290
Registered: October 2003
Location: Texas
Senior Member
Hi,

Try this :

select sid,a.value from v$sesstat a, v$sysstat b
where a.statistic#=b.statistic# and
b.name='CPU used by this session';

The above query will show the amount of CPU time (in 10s of milliseconds) used by per session.

Daljit Singh.
Previous Topic: problem with installing oracle on unix
Next Topic: Data Upload using DDL from new to old DB with fewer columns
Goto Forum:
  


Current Time: Fri Sep 27 08:31:50 CDT 2024