How can I get Application username associated with a database session.
Does anyone have an idea if fnd_logins table captures the Session_number, PID and SPID information correctly for all Application activity.
SELECT s.sid,
s.serial#,
s.program "Client Program Name",
fu.user_name,
s.action,
s.module,
s.event,
s.seconds_in_wait
FROM v$process p,v$session s, apps.fnd_logins fl, apps.fnd_user fu
WHERE s.sid in (SELECT a.sid sess