select vs.SID,vp.SPID, to_char(logon_time,'yyyy-mm-dd hh24:mi') "logon_time",
round(((sysdate - logon_time)*24*60),2) "期間(分)",
last_call_et/60 "Idle",
a.user_name, a.description, vs.module,vs.action, vs.sql_id
from
( select /*+ no_merge */ fsav.user_name, fu.description, fsav.pid, fsav.process_spid
from apps.FND_SIGNON_AUDIT_VIEW fsav,
apps.FND_USER fu
where fsav.user_name = 'A100078'
and fsav.user_id = fu.user_id
) a,
v$process vp,
v$session vs
where a.pid = vp.pid
and a.process_spid =vp.spid
and vp.addr = vs.paddr ;