col USERNAME for a10 col machine for a30 col Text for a50 wrap on select se.SID, ss.serial#, ss.username, ss.machine, ss.sql_id, to_char(s.last_active_time,'DD-MON-YY HH:MI:SS'), s.last_load_time, VALUE/100 cpu_secs , substr(s.sql_text,1,50) Text from v$session ss, v$sesstat se, v$statname sn, v$sql s where se.STATISTIC# = sn.STATISTIC# and NAME like '%CPU used by this session%' and se.SID = ss.SID --and --ss.status='ACTIVE' --and -- ss.username is not null and ss.username!='DBMANAGER' and ss.sql_id=s.sql_id order by VALUE desc;