HP-UX hpn2 B.11.00 U 9000/800 08/05/0318:26:32 %usr %sys %wio %idle
注:我在redhat下查看是这种结果,不知%system就是所谓的%wio
linux 2.4.21-20.ELsmp (YY075) 05/19/200510:36:07 AM CPU %user %nice %system %idle10:36:09 AM all 0.00 0.00 0.13 99.8710:36:11 AM all 0.00 0.00 0.00 100.0010:36:13 AM all 0.25 0.00 0.25 99.4910:36:15 AM all 0.13 0.00 0.13 99.7510:36:17 AM all 0.00 0.00 0.00 100.0010:36:17 AM CPU %user %nice %system %idle10:36:19 AM all 0.00 0.00 0.00 100.0010:36:21 AM all 0.00 0.00 0.00 100.0010:36:23 AM all 0.00 0.00 0.00 100.0010:36:25 AM all 0.00 0.00 0.00 100.00
SELECT a.username,a.machine,a.PRogram,a.sid,a.serial#,a.status,c.piece,c.sql_text from v$session a,v$process b,v$sqltext c WHERE b.spid='ORCL' AND b.addr=a.paddr AND a.sql_address=c.address(+)order BY c.piece
SELECT se.sid,se.serial#,pr.SPID,se.username,se.status,se.terminal,se.program,se.MODULE,、se.sql_address,st.event,st.p1text,si.physical_reads,si.block_changes FROM v$session se,v$session_wait st,v$sess_io si,v$process pr WHERE st.sid=se.sid AND st.sid=si.sid AND se.PADDR=pr.ADDR AND se.sid>6 AND st.wait_time=0 AND st.event NOT LIKE '%SQL%' ORDER BY physical_reads DESC