日期:2014-05-16 浏览次数:20548 次
DBA有时用的到的。
?
SELECT s.Osuser Os_User_Name,Decode(Sign(48 - Command),1,To_Char(Command), 'Action Code #' || To_Char(Command)) Action, p.Program Oracle_Process, Status Session_Status, s.Terminal Terminal, s.Program Program, s.Username User_Name, s.Fixed_Table_Sequence Activity_Meter, '' Query, 0 Memory, 0 Max_Memory, 0 Cpu_Usage, s.Sid, s.Serial# Serial_Num FROM V$session s, V$process p WHERE s.Paddr = p.Addr AND s.TYPE = 'USER' ORDER BY s.Username, s.Osuser;
?
收一下,总结的。